repolinter
Version:
Lint open source repositories
60 lines (59 loc) • 1.44 kB
JSON
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://raw.githubusercontent.com/todogroup/repolinter/master/fixes/file-modify-config.json",
"type": "object",
"properties": {
"nocase": {
"type": "boolean",
"default": false
},
"newlines": {
"type": "object",
"default": {},
"properties": {
"begin": { "type": "number", "default": 0 },
"end": { "type": "number", "default": 0 }
}
},
"files": {
"type": "array",
"items": { "type": "string" }
},
"skip-paths-matching": {
"type": "object",
"additionalProperties": false,
"properties": {
"extensions": {
"type": "array",
"items": { "type": "string" }
},
"patterns": {
"type": "array",
"items": { "type": "string" }
},
"flags": { "type": "string" }
},
"required": ["patterns"]
},
"text": {
"oneOf": [
{ "type": "string" },
{
"type": "object",
"additionalProperties": false,
"properties": { "url": { "type": "string" } }
},
{
"type": "object",
"additionalProperties": false,
"properties": { "file": { "type": "string" } }
}
]
},
"write_mode": {
"default": "append",
"enum": ["prepend", "append"]
}
},
"required": ["text"]
}