repolinter
Version:
Lint open source repositories
60 lines (59 loc) • 1.15 kB
JSON
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://raw.githubusercontent.com/todogroup/repolinter/master/rules/file-not-contents-config.json",
"type": "object",
"properties": {
"nocase": {
"type": "boolean",
"default": false
},
"globsAll": {
"type": "array",
"items": { "type": "string" }
},
"content": { "type": "string" },
"contents": {
"type": "array",
"items": {
"type": "string"
}
},
"flags": { "type": "string" },
"human-readable-content": { "type": "string" },
"fail-on-non-existent": {
"type": "boolean",
"default": false
},
"display-result-context": {"type": "boolean", "default": false},
"context-char-length": {
"type": "number",
"default": 50
}
},
"oneOf": [
{
"required": [
"content",
"globsAll"
]
},
{
"required": [
"contents",
"globsAll"
]
},
{
"required": [
"content",
"files"
]
},
{
"required": [
"contents",
"files"
]
}
]
}