-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: replace super-linter with custom linter list #97
Conversation
Co-authored-by: JonZeolla <[email protected]>
Co-authored-by: JonZeolla <[email protected]>
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.
Quick review; will need one more full run through of the actual business logic but wanted to get you this feedback sooner
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.
Sorry, I need to un-approve just because it introduces breaking changes when I tested it against some projects.
It scans easy_infra in 7 seconds 👍👍, but fails the build due to the shfmt tabs and cfn-lint issues; we need a way to turn these off or loosen the shfmt rules for now.
We may be able to add an .editorconfig
file to the goat/etc/
folder and configure it in line with https://github.com/mvdan/sh/blob/master/cmd/shfmt/shfmt.1.scd but I can't get it to work.
I suggest scanning some other projects manually and see what happens
Also, when we skip a linter we need to add a WARNING: to the end that it was skipped (I did this in 5f92079)
I don't know how to get it to find the .editorconfig because they don't seem to have a way to pass an arbitrary location to load it from. It loads from current directory up to the root - see https://editorconfig.org/#file-location That will also cause an issue for the Perhaps the easiest approach is just remove BTW it looks like there was a config for this in |
We don't need to change |
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.
LGTM! 🚀
Contributor Comments
This PR removes the super-linter and replaces it with a list of linters in etc/linters.json. Configuration files for each linter were created in etc/ and match the configs contained in the super-linter. Logic was included to allow custom arguments to be passed in for each linter in an environment variable, as well as a regex-based file exclusion list.
Pull Request Checklist
Thank you for submitting a contribution to the goat!
In order to streamline the review of your contribution we ask that you review and comply with the below requirements: