spectre-meltdown-checker icon indicating copy to clipboard operation
spectre-meltdown-checker copied to clipboard

Improve code quality by using standard tools to format and analyse for PRs

Open thomasmerz opened this issue 4 years ago • 4 comments

Your spectre-meltdown-checker.sh is already shellcheck'ed, but you don't have a GitHub Action to enforce this before a Pull Requests can be merged.

And I have seen, that you are doing some "low-level" / very simple format-checking. I suggest to use shfmt which formats shell programs. This can also be enforced by a GitHub Action before a Pull Request can be merged.

If you @speed47 agree I will make a PR with my suggestion regarding a nice GitHub Action for every push on this script and on every PR.

thomasmerz avatar Mar 28 '22 12:03 thomasmerz

Yes, that would be a good idea! You'll probably have to find out which shfmt parameters work best to avoid rewriting the entire script (I don't want to lose all the git blame usefulness), and mainly ensure that future PR just respect the current coding style.

That's also why I always left tabs (I usually use spaces!), because I noticed that too late and didn't want to rewrite the entire git history :)

speed47 avatar Mar 29 '22 14:03 speed47

Challenge accepted 👍🏻 This might take some time, because it's not in a hurry and I'll be looking for some "creative time"…

thomasmerz avatar Mar 29 '22 14:03 thomasmerz

@speed47 , can you please review my PR #435 and merge if you are satisfied? Thanks a lot 👍

thomasmerz avatar May 27 '22 11:05 thomasmerz

Ping @speed47

thomasmerz avatar Nov 26 '22 11:11 thomasmerz