-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (23 loc) · 938 Bytes
/
clippy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# https://doc.rust-lang.org/stable/clippy/continuous_integration/github_actions.html
on: push
name: Clippy check
# Make sure CI fails on all warnings, including Clippy lints
env:
RUSTFLAGS: "-Dwarnings"
jobs:
clippy_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy
- name: Install required libraries
run: sudo apt install libxkbcommon-x11-dev
- name: Download required files
run: python3 setup.py
- name: Run Clippy
run: cargo clippy --all-targets --all-features -- -Dclippy::correctness -Dclippy::perf -Aclippy::needless_range_loop -Aclippy::redundant_field_names -Aclippy::neg_multiply -Aclippy::upper_case_acronyms -Aclippy::iter_nth_zero -Aclippy::enum-variant-names