All Projects → actions-rs → Clippy Check

actions-rs / Clippy Check

Licence: mit
📎 GitHub Action for PR annotations with clippy warnings

Programming Languages

typescript
32286 projects
rust
11053 projects

Projects that are alternatives of or similar to Clippy Check

Misspell Fixer
Simple tool for fixing common misspellings, typos in source code
Stars: ✭ 154 (-3.14%)
Mutual labels:  linter, lint
Atom Linter Alex
Linter plugin using alex to catch insensitive, inconsiderate writing
Stars: ✭ 87 (-45.28%)
Mutual labels:  linter, lint
Redbot
REDbot is lint for HTTP.
Stars: ✭ 475 (+198.74%)
Mutual labels:  linter, lint
Protolint
A pluggable linter and fixer to enforce Protocol Buffer style and conventions.
Stars: ✭ 142 (-10.69%)
Mutual labels:  linter, lint
Editorconfig Checker
A tool to verify that your files are in harmony with your .editorconfig
Stars: ✭ 119 (-25.16%)
Mutual labels:  linter, lint
Ktlint
An anti-bikeshedding Kotlin linter with built-in formatter
Stars: ✭ 4,629 (+2811.32%)
Mutual labels:  linter, lint
Stylelint
A mighty, modern linter that helps you avoid errors and enforce conventions in your styles.
Stars: ✭ 9,350 (+5780.5%)
Mutual labels:  linter, lint
Awesome Lint
Linter for Awesome lists
Stars: ✭ 385 (+142.14%)
Mutual labels:  linter, lint
Yamllint
A linter for YAML files.
Stars: ✭ 1,750 (+1000.63%)
Mutual labels:  linter, lint
Scopelint
scopelint checks for unpinned variables in go programs
Stars: ✭ 110 (-30.82%)
Mutual labels:  linter, lint
Checkmake
experimental linter/analyzer for Makefiles
Stars: ✭ 420 (+164.15%)
Mutual labels:  linter, lint
Njsscan
njsscan is a semantic aware SAST tool that can find insecure code patterns in your Node.js applications.
Stars: ✭ 128 (-19.5%)
Mutual labels:  linter, lint
Lockfile Lint
Lint an npm or yarn lockfile to analyze and detect security issues
Stars: ✭ 411 (+158.49%)
Mutual labels:  linter, lint
Gradle Lint Plugin
A pluggable and configurable linter tool for identifying and reporting on patterns of misuse or deprecations in Gradle scripts.
Stars: ✭ 473 (+197.48%)
Mutual labels:  linter, lint
Gitlint
Linting for your git commit messages
Stars: ✭ 404 (+154.09%)
Mutual labels:  linter, lint
Phplint
🐛 A tool that can speed up linting of php files by running several lint processes at once.
Stars: ✭ 646 (+306.29%)
Mutual labels:  linter, lint
Detekt
Static code analysis for Kotlin
Stars: ✭ 4,169 (+2522.01%)
Mutual labels:  linter, lint
Linter
Linter for Dart.
Stars: ✭ 372 (+133.96%)
Mutual labels:  linter, lint
Svlint
SystemVerilog linter
Stars: ✭ 103 (-35.22%)
Mutual labels:  linter, lint
Ansible Lint Action
GitHub Action for running ansible-lint as part of your workflows! [ https://github.com/marketplace/actions/ansible-lint ]
Stars: ✭ 124 (-22.01%)
Mutual labels:  linter, lint

Rust clippy-check Action

MIT licensed Gitter

Clippy lints in your Pull Requests

This GitHub Action executes clippy and posts all lints as annotations for the pushed commit, as in the live example here.

Screenshot

Example workflow

This example is utilizing toolchain Actions to install the most recent nightly clippy version.

on: push
name: Clippy check
jobs:
  clippy_check:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/[email protected]
      - uses: actions-rs/[email protected]
        with:
            toolchain: nightly
            components: clippy
            override: true
      - uses: actions-rs/[email protected]
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          args: --all-features

With stable clippy

on: push
name: Clippy check
jobs:
  clippy_check:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/[email protected]
      - run: rustup component add clippy
      - uses: actions-rs/[email protected]
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          args: --all-features

Inputs

Name Required Description Type Default
token GitHub secret token, usually a ${{ secrets.GITHUB_TOKEN }} string
toolchain Rust toolchain to use; override or system default toolchain will be used if omitted string
args Arguments for the cargo clippy command string
use-cross Use cross instead of cargo bool false
name Name of the created GitHub check. If running this action multiple times, each run must have a unique name. string clippy

For extra details about the toolchain, args and use-cross inputs, see cargo Action documentation.

NOTE: if your workflow contains multiple instances of the clippy-check action you will need to give each invocation a unique name, using the name property described above. Check runs must have a unique name, and this prevents a later check run overriding a previous one within the same workflow.

Limitations

Due to token permissions, this Action WILL NOT be able to post clippy annotations for Pull Requests from the forked repositories.

This is a pretty big problem, which can be solved only by Github themselves, see #2 for details.
As a fallback this Action will output all clippy messages into the stdout and fail the result correspondingly.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].