-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consolidate linters with github/super-linter
.
#103
Conversation
f228b06
to
8a80276
Compare
This gets rid of a lot of ugly glue that we'd otherwise have to continue maintaining ourselves. Enable the linters we we running before, plus actionlint.
Rather than faff about getting problem-matchers to work, decided to look around and found we can replace all our home-grown linter actions glue with PTAL |
github/super-linter
+ enable actionlint.
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I verified that it really does require this, even though we're not currently using any of the linters which use the commit history 🤷
github/super-linter
+ enable actionlint.github/super-linter
.
changed scope and probably won't merge this soon, thanks for the review tho
This results in much less config and way better capability. It's slightly slower because of the image pull (not sure why it's not cached better) but it still takes under a minute so I think it's worth it since it's way easier to enable other linters in future and eliminates a lot of maintenance.
Alternatives considered:
Neither super-linter nor Reviewdog seems to integrate with GitHub problem matchers yet, so holding off on this for now since we currently have problems matchers working (i.e. findings shown inline with code in the GitHub review UI) and they're pretty valuable.