Below is a complete list of axioms that Repolinter can check.
This axiom uses gitlog to count the number of contributors to the current Git repository. Contributors are counted based on unique occurrences of an author name in the Git log. This axiom is a numerical axiom, meaning numerical comparisons can be used.
An example of using this axiom:
{
"axioms": {
"contributor-count": "contributors"
},
"rules": {
"my-rule": {
"where": ["contributors>6", "contributors<200"],
// ...
}
}
}
This axiom detects the license used in the current repository by matching the project's LICENSE file against the canonical SPDX license templates using a Sørensen–Dice bigram similarity score (default threshold 0.9; tune with REPOLINTER_LICENSE_THRESHOLD). No external runtime is required; the detector ships as a pure-JS dependency.
This axiom will return a list of license identifiers associated with the current repository.
An example of using this axiom:
{
"axioms": {
"licensee": "license"
},
"rules": {
"my-rule": {
"where": ["license=Apache-2.0"],
// ...
}
}
}
This axiom detects programming languages in the current repository using linguist-js, a pure-JS port of GitHub's linguist that consumes the same upstream languages.yml data. No external runtime is required. This axiom will return a lowercase list of programming languages from this list of supported languages.
An example of using this axiom:
{
"axioms": {
"linguist":" language"
},
"rules": {
"my-rule": {
"where": ["language=javascript"],
// ...
}
}
}
This axiom detects the projects packaging system by looking for project metadata files such as the package.json. The list of detectable packaging systems can be found in the axiom source.