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

Add --enable=all to ShellCheck by default #13020

Merged
merged 1 commit into from
Feb 7, 2022
Merged

Add --enable=all to ShellCheck by default #13020

merged 1 commit into from
Feb 7, 2022

Conversation

szubersk
Copy link
Contributor

@szubersk szubersk commented Jan 26, 2022

Motivation and Context

Simplify static code analysis for shell scripts.

Description

Change enforced shell type from dash to sh and excluded
SC2039 and SC3043 by default. local keyword is accepted by all
POSIX shells from practical point of view. There is no need anymore
to enforce dash so local is accepted.

How Has This Been Tested?

$ make shellcheck

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Library ABI change (libzfs, libzfs_core, libnvpair, libuutil and libzfsbootenv)
  • Documentation (a change to man pages or other documentation)

Checklist:

Copy link
Member

@gmelikov gmelikov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@behlendorf behlendorf added the Status: Code Review Needed Ready for review and testing label Jan 26, 2022
@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Code Review Needed Ready for review and testing labels Feb 4, 2022
Change enforced shell type from `dash` to `sh` and excluded
`SC2039` and `SC3043` by default. `local` keyword is accepted by all
POSIX shells from practical point of view. There is no need anymore
to enforce dash so `local` is accepted.

Signed-off-by: szubersk <szuberskidamian@gmail.com>
@szubersk
Copy link
Contributor Author

szubersk commented Feb 6, 2022

rebased

@behlendorf behlendorf merged commit 8df0bde into openzfs:master Feb 7, 2022
@szubersk szubersk deleted the szubersk-shellcheck branch February 10, 2022 08:57
nicman23 pushed a commit to nicman23/zfs that referenced this pull request Aug 22, 2022
Change enforced shell type from `dash` to `sh` and excluded
`SC2039` and `SC3043` by default. `local` keyword is accepted by all
POSIX shells from practical point of view. There is no need anymore
to enforce dash so `local` is accepted.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: szubersk <szuberskidamian@gmail.com>
Closes openzfs#13020
nicman23 pushed a commit to nicman23/zfs that referenced this pull request Aug 22, 2022
Change enforced shell type from `dash` to `sh` and excluded
`SC2039` and `SC3043` by default. `local` keyword is accepted by all
POSIX shells from practical point of view. There is no need anymore
to enforce dash so `local` is accepted.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: szubersk <szuberskidamian@gmail.com>
Closes openzfs#13020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Ready to integrate (reviewed, tested)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants