From f6dc05f424b1c8df1aba4ba4c985903f9900e45b Mon Sep 17 00:00:00 2001 From: Reiner Schinkoethe Date: Fri, 21 Jun 2024 08:25:53 +0200 Subject: [PATCH] chore: fix naming and add repolinter rules --- apax.yml | 2 +- repolint.json | 158 ++++++++++++++++++++++++++++++++++++++++++++++++ repolinter.json | 21 ------- 3 files changed, 159 insertions(+), 22 deletions(-) create mode 100644 repolint.json delete mode 100644 repolinter.json diff --git a/apax.yml b/apax.yml index 6826cd5..5a64212 100644 --- a/apax.yml +++ b/apax.yml @@ -1,5 +1,5 @@ # General information -name: ae-trafficlight +name: '@simatic-ax/ae-trafficlight' version: 0.0.0-placeholder type: app # Description will be displayed in the apax extension diff --git a/repolint.json b/repolint.json new file mode 100644 index 0000000..4dff505 --- /dev/null +++ b/repolint.json @@ -0,0 +1,158 @@ +{ + "$schema": "./schema.json", + "version": 2, + "axioms": { + "linguist": "language", + "licensee": "license", + "packagers": "packager" + }, + "rules": { + "license-file-exists": { + "level": "error", + "rule": { + "type": "file-existence", + "options": { + "globsAny": [ "LICENSE.md" ], + "nocase": true + } + } + }, + "readme-file-exists": { + "level": "error", + "rule": { + "type": "file-existence", + "options": { + "globsAny": [ "README*.md" ], + "nocase": true + } + } + }, + "readme-references-license": { + "level": "error", + "rule": { + "type": "file-contents", + "options": { + "globsAll": [ "README*" ], + "content": "license", + "flags": "i" + } + } + }, + "binaries-not-present": { + "level": "warning", + "rule": { + "type": "file-type-exclusion", + "options": { + "type": [ "**/*.exe", "**/*.dll", "!node_modules/**" ] + } + } + }, + "test-directory-exists": { + "level": "warning", + "rule": { + "type": "directory-existence", + "options": { + "globsAny": [ "**/test*" ], + "nocase": true + } + } + }, + "source-directory-exists": { + "level": "warning", + "rule": { + "type": "directory-existence", + "options": { + "globsAny": [ "**/src*" ], + "nocase": true + } + } + }, + "additional-docs-directory-exists": { + "level": "warning", + "rule": { + "type": "directory-existence", + "options": { + "globsAny": [ "**/docs*" ], + "nocase": true + } + } + }, + "integrates-with-ci": { + "level": "error", + "rule": { + "type": "file-existence", + "options": { + "globsAny": [ + ".github/workflows/*" + ] + } + } + }, + "markdownlint-config-exit": { + "level": "error", + "rule": { + "type": "file-existence", + "options": { + "globsAny": [ + ".markdownlint.yml" + ] + } + } + }, + "apax-yml-exit": { + "level": "error", + "rule": { + "type": "file-existence", + "options": { + "globsAny": [ + "apax.yml" + ] + } + } + }, + "gitignore-exit": { + "level": "error", + "rule": { + "type": "file-existence", + "options": { + "globsAny": [ + ".gitignore" + ] + } + } + }, + "gitattributes-exit": { + "level": "error", + "rule": { + "type": "file-existence", + "options": { + "globsAny": [ + ".gitattributes" + ] + } + } + }, + "apax-files-section-exit": { + "level": "error", + "rule": { + "type": "file-existence", + "options": { + "globsAny": [ + "apax-files-section.yml" + ] + } + } + }, + "CODEOWNERS-exit": { + "level": "error", + "rule": { + "type": "file-existence", + "options": { + "globsAny": [ + "CODEOWNERS" + ] + } + } + } + } +} diff --git a/repolinter.json b/repolinter.json deleted file mode 100644 index f662361..0000000 --- a/repolinter.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "$schema": "https://raw.githubusercontent.com/todogroup/repolinter/master/rulesets/schema.json", - "version": 2, - "axioms": { - "linguist": "language", - "licensee": "license", - "packagers": "packager" - }, - "rules": { - "license-file-exists": { - "level": "off", - "rule": { - "type": "file-existence", - "options": { - "globsAny": ["LICENSE*", "COPYING*"], - "nocase": true - } - } - } - } -} \ No newline at end of file