@@ -59,7 +59,6 @@ ENABLE_DEBUG=
5959ISSUE_LABEL=techdebt
6060
6161# We intentionally use single quotes as the real values will be substituted during `eval` call later
62- # shellcheck disable=SC2016
6362ISSUE_BODY_TEMPLATE=' echo "The puzzle \`${PUZZLE_ID}\` from #$ORIG_ISSUE has to be resolved:
6463
6564https://github.com/${GITHUB_REPOSITORY}/blob/${GITHUB_SHA}/${PUZZLE_FILE}#L${PUZZLE_LINE_START}-L${PUZZLE_LINE_END}
@@ -86,7 +85,6 @@ PUZZLES_COUNT=0
8685NEW_ISSUES_COUNT=0
8786
8887# UNUSED_REST is really unused but without it, read appends the rest of a line to the last variable
89- # shellcheck disable=SC2034
9088while IFS=$' \t ' read -r PUZZLE_ID UNUSED_TICKET TITLE UNUSED_REST; do
9189 PUZZLES_COUNT=$(( PUZZLES_COUNT + 1 ))
9290
@@ -151,7 +149,6 @@ while IFS=$'\t' read -r PUZZLE_ID UNUSED_TICKET TITLE UNUSED_REST; do
151149 error " 1) modify a body of one of the tickets to not contain puzzle id (or to have a different title)"
152150 error " 2) manually create a mapping between this puzzle and one of the issues:"
153151 # UNUSED_REST is really unused but without it, read appends the rest of a line to the last variable
154- # shellcheck disable=SC2034
155152 echo " $CANDIDATES " | while read -r ISSUE_ID ISSUE_STATE UNUSED_REST; do
156153 error " echo '$PUZZLE_ID \t$ISSUE_ID \t$ISSUE_STATE \tmanually' >>$ISSUES_MAPPING_FILE "
157154 done
@@ -162,12 +159,10 @@ while IFS=$'\t' read -r PUZZLE_ID UNUSED_TICKET TITLE UNUSED_REST; do
162159 info " $PUZZLE_ID : no related issues found. Need to create a new issue: $TITLE "
163160
164161 # These variables are needed for eval-ing ISSUE_BODY_TEMPLATE
165- # shellcheck disable=SC2034
166162 IFS=$' \t ' read -r UNUSED_PUZZLE_ID ORIG_ISSUE UNUSED_TITLE PUZZLE_FILE PUZZLE_LINES < <( grep --max-count=1 " ^$PUZZLE_ID " " $CODE_MAPPING_FILE " )
167163
168164 # "50-51" => {50, 51}
169165 # These variables are needed for eval-ing ISSUE_BODY_TEMPLATE
170- # shellcheck disable=SC2034
171166 IFS=' -' read -r PUZZLE_LINE_START PUZZLE_LINE_END < <( echo " $PUZZLE_LINES " )
172167
173168 ISSUE_BODY=" $( eval " $ISSUE_BODY_TEMPLATE " ) "
0 commit comments