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
Use Shellcheck to resolve violations code in Shell Script #11637
Comments
@Rahulkhinchi03, please send single PR to resolve all violations of single rule to show example how to fix violations and remove suppression. |
Yes, but Better to slice a work by rules to let us activate rule and make sure nobody will introduce problems again. |
Sure, I can see that |
I am on |
@stoyanK7 That's really great! |
I'm on |
I'm on |
ShellCheck is an open-source static analysis tool that automatically finds bugs in your shell scripts. (https://github.com/koalaman/shellcheck)
For more information on Code: https://gist.github.com/nicerobot/53cee11ee0abbdc997661e65b348f375#file-_shellcheck-md
./.ci/*sh
has all the shell scripts files and we have all the disabled violations at the.shellcheckrc
file.We are currently invoking spellcheck through Terminal (You can download (https://github.com/koalaman/shellcheck#installing) it through apt or similar package managers on local). We have integrated Shellcheck with GitHub action https://github.com/checkstyle/checkstyle/actions/workflows/shellcheck.yml
TO-DO:
checkstyle/.shellcheckrc
Lines 1 to 3 in 1ef8fdd
.shellcheckrc
file.LIST OF SUPPRESSIONS:
Example of expected update with removal of suppression: 5ea26d6
The text was updated successfully, but these errors were encountered: