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

Issue #11637: Used Shellcheck to resolve SC2236 in Shell Script #11664

Merged
merged 2 commits into from May 25, 2022
Merged

Issue #11637: Used Shellcheck to resolve SC2236 in Shell Script #11664

merged 2 commits into from May 25, 2022

Conversation

Rahulkhinchi03
Copy link
Member

Resolves: SC2236 #11637
SC2236: Use -n instead of ! -z (https://github.com/koalaman/shellcheck/wiki/SC2236)

Copy link
Member

@nrmancuso nrmancuso left a comment

Choose a reason for hiding this comment

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

@Rahulkhinchi03 please add separate minor commit to fix same violation in .github/workflows/no_old_refs.yml:

➜  checkstyle git:(master) ✗ grep -R "! -z"              
.ci/no_old_refs.sh:if [ ! -z "$PR_HEAD_REPO_NAME" ]; then
.ci/no_old_refs.sh:  if [ ! -z "$LINKED_ISSUES" ]; then
.ci/checkchmod.sh:if [[ ! -z $CHMOD ]]; then
.ci/checkchmod.sh:if [[ ! -z $CHMOD ]]; then
.github/workflows/no_old_refs.yml:          if [ ! -z "$LINKED_ISSUES" ]; then

@nrmancuso nrmancuso self-assigned this May 22, 2022
Copy link
Member

@nrmancuso nrmancuso left a comment

Choose a reason for hiding this comment

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

@Rahulkhinchi03 please make commit descriptive for anyone to be able understand, such as minor: Use -n instead of ! -z

@nrmancuso nrmancuso requested a review from strkkk May 23, 2022 03:57
@nrmancuso nrmancuso assigned strkkk and unassigned nrmancuso May 23, 2022
@strkkk strkkk merged commit 962865b into checkstyle:master May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants