Skip to content

Commit

Permalink
add config file for reprolinter
Browse files Browse the repository at this point in the history
  • Loading branch information
ReinerSchinkoethe committed Jun 19, 2024
1 parent 0d723a9 commit 4218578
Showing 1 changed file with 186 additions and 0 deletions.
186 changes: 186 additions & 0 deletions repolint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,186 @@
{
"$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*", "COPYING*"],
"nocase": true
}
}
},
"readme-file-exists": {
"level": "error",
"rule": {
"type": "file-existence",
"options": {
"globsAny": ["README*"],
"nocase": true
}
}
},
"readme-references-license": {
"level": "error",
"rule": {
"type": "file-contents",
"options": {
"globsAll": ["README*"],
"content": "license",
"flags": "i"
}
}
},
"binaries-not-present": {
"level": "error",
"rule": {
"type": "file-type-exclusion",
"options": {
"type": ["**/*.exe", "**/*.dll", "!node_modules/**"]
}
}
},
"test-directory-exists": {
"level": "error",
"rule": {
"type": "directory-existence",
"options": {
"globsAny": ["**/test*", "**/specs"],
"nocase": true
}
}
},
"integrates-with-ci": {
"level": "error",
"rule": {
"type": "file-existence",
"options": {
"globsAny": [
".gitlab-ci.yml",
".travis.yml",
"appveyor.yml",
".appveyor.yml",
"circle.yml",
".circleci/config.yml",
"Jenkinsfile",
".drone.yml",
".github/workflows/*",
"azure-pipelines.yml"
]
}
}
},
"javascript-package-metadata-exists": {
"level": "error",
"where": ["language=javascript"],
"rule": {
"type": "file-existence",
"options": {
"globsAny": ["package.json"]
}
}
},
"ruby-package-metadata-exists": {
"level": "error",
"where": ["language=ruby"],
"rule": {
"type": "file-existence",
"options": {
"globsAny": ["Gemfile"]
}
}
},
"java-package-metadata-exists": {
"level": "error",
"where": ["language=java"],
"rule": {
"type": "file-existence",
"options": {
"globsAny": ["pom.xml", "build.xml", "build.gradle"]
}
}
},
"python-package-metadata-exists": {
"level": "error",
"where": ["language=python"],
"rule": {
"type": "file-existence",
"options": {
"globsAny": ["setup.py", "requirements.txt"]
}
}
},
"objective-c-package-metadata-exists": {
"level": "error",
"where": ["language=objective-c"],
"rule": {
"type": "file-existence",
"options": {
"globsAny": ["Cartfile", "Podfile", "*.podspec"]
}
}
},
"swift-package-metadata-exists": {
"level": "error",
"where": ["language=swift"],
"rule": {
"type": "file-existence",
"options": {
"globsAny": ["Package.swift"]
}
}
},
"erlang-package-metadata-exists": {
"level": "error",
"where": ["language=erlang"],
"rule": {
"type": "file-existence",
"options": {
"globsAny": ["rebar.config"]
}
}
},
"elixir-package-metadata-exists": {
"level": "error",
"where": ["language=elixir"],
"rule": {
"type": "file-existence",
"options": {
"globsAny": ["mix.exs"]
}
}
},
"license-detectable-by-licensee": {
"level": "off",
"where": ["license=*"],
"rule": {
"type": "license-detectable-by-licensee",
"options": {}
}
},
"notice-file-exists": {
"level": "error",
"where": ["license=Apache-2.0"],
"rule": {
"type": "file-existence",
"options": {
"globsAny": ["NOTICE*"],
"fail-message": "The NOTICE file is described in section 4.4 of the Apache License version 2.0. Its presence is not mandated by the license itself, but by ASF policy."
}
}
},
"best-practices-badge-present": {
"level": "off",
"rule": {
"type": "best-practices-badge-present"
}
}
}
}

0 comments on commit 4218578

Please sign in to comment.