Update semgrep.yml #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: [push, pull_request] | |
jobs: | |
rustfmt: | |
name: Formatter | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Rust | |
run: | | |
rustup update stable | |
rustup default stable | |
rustup component add rustfmt | |
rustup component add clippy | |
- name: Check Formatting | |
run: cargo fmt --all -- --check | |
- name: Check for idiomatic code | |
run: cargo clippy --all --all-features -- -D warnings |