Skip to content

Commit

Permalink
Issue #11637: Resolve shellcheck SC2061
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatSneakyCoder authored and romani committed Mar 20, 2023
1 parent fb9131d commit d59b83b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion .ci/bump-license-year.sh
Expand Up @@ -9,7 +9,7 @@ DIR=$3
OLD_VALUE="// Copyright (C) 2001-$PREV_YEAR the original author or authors."
NEW_VALUE="// Copyright (C) 2001-$CURR_YEAR the original author or authors."

find "$DIR" -type f \( -name *.java -o -name *.header -o -name *.g4 \) \
find "$DIR" -type f \( -name '*.java' -o -name '*.header' -o -name '*.g4' \) \
-exec sed -i "s|$OLD_VALUE|$NEW_VALUE|g" {} +

BASEDIR=$(pwd)
Expand Down
1 change: 0 additions & 1 deletion .shellcheckrc
Expand Up @@ -3,7 +3,6 @@
disable=SC2207 # (warning): Prefer mapfile or read -a to split command output.
# SC2002 permanently disabled, rightward flow of logic (via pipe) is simple to understand
disable=SC2002 # (style): Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead.
disable=SC2061 # (warning): Quote the parameter to -name so the shell won't interpret it.
disable=SC2035 # (info): Use ./glob or -- glob so names with dashes won't become options.
disable=SC2185 # (info): Some finds don't have a default path. Specify '.' explicitly.
disable=SC2155 # (warning): Declare and assign separately to avoid masking return values.
Expand Down

0 comments on commit d59b83b

Please sign in to comment.