As the "Checks" tab on PRs always pop into my eyes, I had a look into this code checker marketplace. For open source projects, everything I had a look at is for free.
E.g. Codacy supports shell and does code quality checks: https://github.com/marketplace/codacy
Of course as we are legend, we don't need it ๐, but could be still interesting what they find?
โฌ: Travis CI has integrated ShellCheck (?): https://github.com/koalaman/shellcheck#travis-ci
@MichaIng
I tried codacy for a while, but didn't like it if i'am honest. No errors found, but its mostly "minor recommends" which do not suit our project coding style. eg:
if (( $var )); then
= $ not required. Yes I know, but I prefer it to match [[ $var ]] style code.
Couldn't find a way to change the detection options either, so removed it.
@Fourdee
Looks like now this is possible:
Played a bid around:
.sh/.bash ending as shell scripts, so does not scan DietPi core scripts. I already opened an GitHub issue about that.Finally, so far only PREP and bashrc.d/ scripts are scanned which makes the CI solutions more-less useless for DietPi currently ๐.
I mark this as closed for now. Will recheck probably sometime in the future.
Most helpful comment
Played a bid around:
.sh/.bashending as shell scripts, so does not scan DietPi core scripts. I already opened an GitHub issue about that.EDIT: No joy so far: https://github.com/codefactor-io/codefactor/issues/2
EDIT2: Request has been added to their roadmap (see above), would be exceptional ๐!
Finally, so far only PREP and bashrc.d/ scripts are scanned which makes the CI solutions more-less useless for DietPi currently ๐.