wearerequired / lint-action

✨ GitHub Action for detecting and auto-fixing lint errors
MIT License
555 stars 130 forks source link

Feature request allow specifying ignore patterns #615

Closed Toefinder closed 1 year ago

Toefinder commented 1 year ago

From the official documentation, on how to stop the linter autofix from modifying Github workflow files:

If auto_fix is enabled and the default GITHUB_TOKEN is used, none of the linters should be allowed to change files in .github/workflows as the token doesn't have the necessary workflow permission. This can be achieved by adding the directory to the ignore config of the used linter. Source For details and comments, please refer to https://github.com/wearerequired/lint-action/issues/65 and https://github.com/wearerequired/lint-action/issues/74.

The solution above works, but is not perfect. Adding the directory to ignore config creates an annoying issue: the linters will cease to run locally as well.

I propose adding a regex option to filter linted files, similar to super-linter

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.