Skip to content

Commit

Permalink
Dogfooding: add ruleset to run omnilinter with on its own repository
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Feb 10, 2024
1 parent 217ca0c commit fc1a56a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
run: cargo test
- name: Format check
run: cargo fmt --check
- name: Run omnilinter on its own repository
run: cargo run -- --config .omnilinter.conf .

coverage:
runs-on: ubuntu-latest
Expand Down
7 changes: 7 additions & 0 deletions .omnilinter.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
rules:
- title: avoid hardcoding path separator
files: "*.rs"
match: '"/"'
- title: avoid hardcoding path separator
files: "*.rs"
match: "'/'"

0 comments on commit fc1a56a

Please sign in to comment.