Open
Conversation
Super-linter is an alternative to yetus for linting code on PRs. Signed-off-by: Paul Gaiduk <paulg@zededa.com>
Contributor
|
FWIW, these are all the linters our Yetus run during the checks: BUILDTOOLS:
nobuild ant autoconf cmake gradle make maven
TESTTYPES:
ansiblelint asflicense author blanks buf buflint bufcompat cc checkmake checkstyle codespell detsecrets dupname golangcilint golang hadolint javac javadoc jshint jsonlint markdownlint mvnsite pathlen perlcritic pylint revive rubocop scalac scaladoc shellcheck shelldocs spotbugs test4tests unitveto xmllint yamllint
BUGSYSTEMS:
briefreport bugzilla csvout github gitlab htmlout jira junit slack
TESTFORMATS:
ctest junit tap PS: I've got this list by running: |
Contributor
Author
Yeah, I think the important ones missing from Super-Linter are spellchecks and makefile linters. Revive can probably be replaced by golangci-lint. So for now we won't replace yetus with super-linter. Maybe in the future somebody will add those to super-linter or we can run them as standalone. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This journey started when I tried to fix yetus for the n'th time and couldn't because
My proposal - let's try running another linter Super-Linter alongside Yetus for a while and see how we like it. I found this project when I had the please to be fixing Yetus last time, but only assembled a fully working version now. Here are the pros and cons of using Super-Linter vs Yetus:
Pros
Cons
The integration of Super-Linter is not finished with this PR. My proposal - let's just try running it alongside Yetus and see if we find it better. I provided here a working GH action can be used out of the box, but we'll still need to tweak it to be more useful for us. If we don't like it or find it useless we can just scrape it at any time.
PR dependencies
None
How to test and validate this PR
If you want to get a picture of how it works check out europaul#3. I put some example code there for the Super-Linter to work on and made it so that the linter finds errors.
It also runs on the current PR, but there is not much to check.
Changelog notes
Add Super-Linter to the CI
PR Backports
No need.
Checklist