diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4c1f36a5..011d93ed 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,10 +10,12 @@ jobs: - uses: actions-rs/toolchain@v1 with: toolchain: stable - components: rustfmt + components: rustfmt, clippy override: true - name: rustfmt run: cargo fmt -- --check + - name: clippy + run: cargo clippy --all-features --all-targets -- -D warnings unit_tests: needs: linter @@ -54,6 +56,8 @@ jobs: override: true - name: rustfmt run: cd gui && cargo fmt -- --check + - name: clippy + run: cargo clippy --all-features --all-targets -- -D warnings unit_tests_gui: needs: linter_gui diff --git a/clippy.toml b/clippy.toml new file mode 100644 index 00000000..f691ea3d --- /dev/null +++ b/clippy.toml @@ -0,0 +1 @@ +msrv = "1.48"