Skip to content

Commit

Permalink
chore: add repolint rule set
Browse files Browse the repository at this point in the history
  • Loading branch information
ReinerSchinkoethe committed Jun 20, 2024
1 parent 58ed828 commit 9d42a42
Showing 1 changed file with 158 additions and 0 deletions.
158 changes: 158 additions & 0 deletions repolint.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
}
}
}
}

0 comments on commit 9d42a42

Please sign in to comment.