Skip to content

Commit

Permalink
fix: parameter sent to review.bats (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
EricRibeiro authored Oct 6, 2022
1 parent 88b2ba8 commit 02a882d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/jobs/review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ steps:
name: Review Best Practices
environment:
PARAM_RC_EXCLUDE: <<parameters.exclude>>
PARAM_MAX_COMMAND_LENGTH: <<parameters.exclude>>
PARAM_MAX_COMMAND_LENGTH: <<parameters.max_command_length>>
ORB_REVIEW_BATS_FILE: <<include(scripts/review.bats)>>
ORB_PARAM_SOURCE_DIR: << parameters.source-dir >>
command: <<include(scripts/review.sh)>>
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/review.bats
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ setup() {
if [[ ! "$ORB_COMPONENT_STEP_COMMAND" =~ \<\<include\(* ]]; then
echo "File: \"${i}\""
echo "Line number: ${ORB_COMPONENT_LINE_NUMBER}"
echo "This command appears longer than 64 characters. Consider using the 'include' syntax."
echo "This command appears longer than ${PARAM_MAX_COMMAND_LENGTH} characters. Consider using the 'include' syntax."
echo ---
echo "$ORB_COMPONENT_STEP_COMMAND"
echo ---
Expand Down

0 comments on commit 02a882d

Please sign in to comment.