Skip to content

Commit

Permalink
chore: add clippy (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
caixiangyue authored Nov 13, 2023
1 parent 4db3ba2 commit 7812a31
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Clippy
run: cargo clippy
- name: Build
run: cargo build --verbose
- name: Run tests
Expand Down
4 changes: 4 additions & 0 deletions clippy.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
avoid-breaking-exported-api = false
disallowed-names = ["toto", "tata", "titi"]
cognitive-complexity-threshold = 30
upper-case-acronyms-aggressive = true

0 comments on commit 7812a31

Please sign in to comment.