profiidev/Rust Lint Action

GitHub Action for detecting and fixing linting errors

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
github_tokenThe GitHub token used to authenticated with GitHub.no${{ github.token }}
git_user_nameGit user name to use for auto-fix commitsnoGitHub Action
git_user_emailGit user email to use for auto-fix commitsnoaction@github.com
git_sign_commitsWhether to sign auto-fix commits using Github API.nofalse
continue_on_errorWhether the workflow run should also fail when linter failures are detectednotrue
auto_fixWhether linters should try to fix code style issues automaticallynofalse
commitWhether to commit and push the changes made by auto_fixnotrue
git_no_verifyBypass the pre-commit and pre-push git hooksnofalse
commit_messageTemplate for auto-fix commit messages. The "${linter}" variable can be used to insert the name of the linter which has created the auto-fixnochore: fix code style issues with ${linter}
check_nameTemplate for the name of the check run. The "${linter}" and "${dir}" variables can be used to insert the name and directory of the linter.no${linter}
neutral_check_on_warningWhether the check run should conclude with a neutral status instead of success when the linter finds only warningsnofalse
forgejoEnable or disable Forgejo support. If your repository is hosted on Forgejo, you need to set this to `true` to make the action work correctly.nofalse
api_urlThe API URL to use for GitHub or Forgejo API requests. If not set, it will default to `https://api.github.com` for GitHub and `https://forgejo.com/api/v1` for Forgejo.no
clippyEnable or disable clippynofalse
clippy_argsAdditional arguments to pass to the linterno""
clippy_dirDirectory where the RuboCop command should be runno
clippy_extensionsExtensions of files to check with RuboCopnors
clippy_command_prefixShell command to prepend to the linter commandno""
clippy_auto_fixWhether this linter should try to fix code style issues automatically. If set to `true`, it will only work if "auto_fix" is set to `true` as wellnotrue
rustfmtEnable or disable rustfmtnofalse
rustfmt_argsAdditional arguments to pass to the linterno-- --color=never
rustfmt_extensionsExtensions of files to check with rustfmtnors
rustfmt_dirDirectory where the rustfmt command should be runno
rustfmt_auto_fixWhether this linter should try to fix code style issues automatically. If set to `true`, it will only work if "auto_fix" is set to `true` as wellnotrue
prettierEnable or disable Prettier checksnofalse
prettier_argsAdditional arguments to pass to the linterno""
prettier_dirDirectory where the Prettier command should be runno
prettier_extensionsExtensions of files to check with Prettiernocss,html,js,json,jsx,md,sass,scss,ts,tsx,vue,yaml,yml
prettier_command_prefixShell command to prepend to the linter command. Will default to `npx --no-install` for NPM and `yarn run --silent` for Yarn.no""
prettier_auto_fixWhether this linter should try to fix code style issues automatically. If set to `true`, it will only work if "auto_fix" is set to `true` as wellnotrue
tscEnable or disable TypeScript checksnofalse
tsc_argsAdditional arguments to pass to the linterno""
tsc_dirDirectory where the TSC command should be runno
tsc_extensionsExtensions of files to check with TSCnots
tsc_command_prefixShell command to prepend to the linter command. Will default to `npx --no-install` for NPM and `yarn run --silent` for Yarn.no""
tsc_auto_fixWhether this linter should try to fix code style issues automatically. If set to `true`, it will only work if "auto_fix" is set to `true` as wellnofalse
svelteEnable or disable Svelte checksnofalse
svelte_argsAdditional arguments to pass to the linterno""
svelte_dirDirectory where the Svelte command should be runno
svelte_extensionsExtensions of files to check with Sveltenosvelte
svelte_command_prefixShell command to prepend to the linter command. Will default to `npx --no-install` for NPM and `yarn run --silent` for Yarn.no""
svelte_auto_fixWhether this linter should try to fix code style issues automatically. If set to `true`, it will only work if "auto_fix" is set to `true` as wellnofalse
oxfmtEnable or disable oxfmt checksnofalse
oxfmt_argsAdditional arguments to pass to the linterno""
oxfmt_dirDirectory where the oxfmt command should be runno
oxfmt_extensionsExtensions of files to check with oxmftnocss,html,js,json,jsx,md,sass,scss,ts,tsx,vue,yaml,yml
oxfmt_command_prefixShell command to prepend to the linter command. Will default to `npx --no-install` for NPM and `yarn run --silent` for Yarn.no""
oxfmt_auto_fixWhether this linter should try to fix code style issues automatically. If set to `true`, it will only work if "auto_fix" is set to `true` as wellnotrue
oxlintEnable or disable oxlint checksnofalse
oxlint_argsAdditional arguments to pass to the linterno""
oxlint_dirDirectory where the oxlint command should be runno
oxlint_extensionsExtensions of files to check with oxlintnonone
oxlint_command_prefixShell command to prepend to the linter command. Will default to `npx --no-install` for NPM and `yarn run --silent` for Yarn.no""
oxlint_auto_fixWhether this linter should try to fix code style issues automatically. If set to `true`, it will only work if "auto_fix" is set to `true` as wellnotrue

no outputs