Skip to content

fixed eslint and added gh actions for eslint and clippy #1

fixed eslint and added gh actions for eslint and clippy

fixed eslint and added gh actions for eslint and clippy #1

Workflow file for this run

name: Clippy
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
clippy:
name: Run clippy analysis
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
actions: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: clippy
override: true
- name: Install required tools
run: cargo install clippy-sarif sarif-fmt
- name: Run Clippy
run: cargo clippy
--all-features
--message-format=json | clippy-sarif | tee clippy-results.sarif | sarif-fmt
continue-on-error: true
- name: Upload analysis results to GitHub
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: clippy-results.sarif
wait-for-processing: true