Skip to content
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

Enable remaining optional Shellcheck rules #1654

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

edmorley
Copy link
Member

@edmorley edmorley commented Oct 3, 2024

In #1596 a number of optional Shellcheck rules were enabled. However, there were some which were deferred due to the number of fixes required, and so were left disabled via the .shellcheckrc file.

In order that we can get the benefit of these rules for new code, I've removed the global disabling in favour of per file or per line disable directives (and in some cases, fixing outright). These can then be fixed piecemeal as refactorings occur later.

Of note, one of these optional Shellcheck rules (SC2311) would have saved me a fair amount of debugging time earlier today in the new Python version handling implementation.

GUS-W-16898648.

In #1596 a number of optional Shellcheck rules were enabled.
However, there were some which were deferred due to the
number of fixes required, and so were left disabled via the
`.shellcheckrc` file.

In order that we can get the benefit of these rules for new code,
I've removed the global disabling in favour of per file or per line
`disable` directives (and in some cases, fixing outright). These
can then be fixed piecemeal as refactorings occur later.

Of note, one of these optional Shellcheck rules would have saved
me a fair amount of debugging time earlier today in the new
Python version handling implementation.
@edmorley edmorley self-assigned this Oct 3, 2024
@edmorley edmorley marked this pull request as ready for review October 3, 2024 14:37
@edmorley edmorley requested a review from a team as a code owner October 3, 2024 14:37
@edmorley edmorley enabled auto-merge (squash) October 3, 2024 14:37
@edmorley edmorley merged commit 02f8ec0 into main Oct 3, 2024
8 checks passed
@edmorley edmorley deleted the enable-remaining-shellcheck branch October 3, 2024 14:44
@heroku-linguist heroku-linguist bot mentioned this pull request Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants