Skip to content

Commit

Permalink
Merge branch 'todogroup:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Brend-Smits authored Feb 4, 2022
2 parents 24c9e37 + 0933d26 commit d709742
Show file tree
Hide file tree
Showing 11 changed files with 392 additions and 299 deletions.
2 changes: 2 additions & 0 deletions .github/repolinter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
extends: https://raw.githubusercontent.com/todogroup/.github/master/repolinter-rules/default.yaml
# Add custom repolinter rules here. Learn more at https://github.com/todogroup/repolinter
4 changes: 3 additions & 1 deletion .github/workflows/repolinter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: newrelic/repolinter-action@0e463abe6d591be494272ebb50a536dcb270bcfe #v1.6.5
- uses: todogroup/repolinter-action@v1
with:
config_file: .github/repolinter.yaml
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ GEM
rugged (>= 0.24, < 2.0)
thor (>= 0.19, < 2.0)
mini_mime (1.0.2)
mini_portile2 (2.5.1)
mini_portile2 (2.6.1)
multipart-post (2.1.1)
nokogiri (1.11.5)
mini_portile2 (~> 2.5.0)
nokogiri (1.12.5)
mini_portile2 (~> 2.6.1)
racc (~> 1.4)
octokit (4.20.0)
faraday (>= 0.9)
Expand Down
9 changes: 9 additions & 0 deletions docs/rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Below is a complete list of rules that Repolinter can run, along with their conf
- [`git-working-tree`](#git-working-tree)
- [`json-schema-passes`](#json-schema-passes)
- [`license-detectable-by-licensee`](#license-detectable-by-licensee)
- [`best-practices-badge-present`](#best-practices-badge-present)

## Reference

Expand Down Expand Up @@ -195,3 +196,11 @@ Checks if a given file matches a provided [JSON schema](https://json-schema.org/
### `license-detectable-by-licensee`

Fails if Licensee doesn't detect the repository's license. This rule takes no inputs, but requires `licensee` in the path, see [command line dependencies](#command-line-dependencies) for details.

### `best-practices-badge-present`

Check Best Practices Badge is present in README. Optionally check a certain badge level is accomplished.

| Input | Required | Type | Default | Description |
| ------------ | -------- | ---------- | ------- | ------------------------------------------------------------------ |
| `minPercentage` | No | `integer` | `null` | Minimum [Tiered Percentage](https://github.com/coreinfrastructure/best-practices-badge/blob/main/doc/api.md#tiered-percentage-in-openssf-best-practices-badge) accomplished by project. `passing=100`, `silver=200`, `gold=300`, set to `0` or `null` to disable check. |
Loading

0 comments on commit d709742

Please sign in to comment.