Skip to content

Commit c455606

Browse files
authored
CI: Unify code_checks whitespace checking (#30755)
1 parent 9ba93ba commit c455606

File tree

3 files changed

+746
-68
lines changed

3 files changed

+746
-68
lines changed

ci/code_checks.sh

+10-2
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,17 @@ if [[ -z "$CHECK" || "$CHECK" == "lint" ]]; then
102102

103103
MSG='Check for use of not concatenated strings' ; echo $MSG
104104
if [[ "$GITHUB_ACTIONS" == "true" ]]; then
105-
$BASE_DIR/scripts/validate_string_concatenation.py --format="[error]{source_path}:{line_number}:{msg}" .
105+
$BASE_DIR/scripts/validate_string_concatenation.py --validation-type="strings_to_concatenate" --format="##[error]{source_path}:{line_number}:{msg}" .
106106
else
107-
$BASE_DIR/scripts/validate_string_concatenation.py .
107+
$BASE_DIR/scripts/validate_string_concatenation.py --validation-type="strings_to_concatenate" .
108+
fi
109+
RET=$(($RET + $?)) ; echo $MSG "DONE"
110+
111+
MSG='Check for strings with wrong placed spaces' ; echo $MSG
112+
if [[ "$GITHUB_ACTIONS" == "true" ]]; then
113+
$BASE_DIR/scripts/validate_string_concatenation.py --validation-type="strings_with_wrong_placed_whitespace" --format="##[error]{source_path}:{line_number}:{msg}" .
114+
else
115+
$BASE_DIR/scripts/validate_string_concatenation.py --validation-type="strings_with_wrong_placed_whitespace" .
108116
fi
109117
RET=$(($RET + $?)) ; echo $MSG "DONE"
110118

0 commit comments

Comments
 (0)