Skip to content

Commit bbfecaf

Browse files
authored
CI: Rename validate_string_concatenation.py to validate_unwanted_patterns.py (#32926)
1 parent 145d413 commit bbfecaf

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

ci/code_checks.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -102,17 +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 --validation-type="strings_to_concatenate" --format="##[error]{source_path}:{line_number}:{msg}" .
105+
$BASE_DIR/scripts/validate_unwanted_patterns.py --validation-type="strings_to_concatenate" --format="##[error]{source_path}:{line_number}:{msg}" .
106106
else
107-
$BASE_DIR/scripts/validate_string_concatenation.py --validation-type="strings_to_concatenate" .
107+
$BASE_DIR/scripts/validate_unwanted_patterns.py --validation-type="strings_to_concatenate" .
108108
fi
109109
RET=$(($RET + $?)) ; echo $MSG "DONE"
110110

111111
MSG='Check for strings with wrong placed spaces' ; echo $MSG
112112
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}" .
113+
$BASE_DIR/scripts/validate_unwanted_patterns.py --validation-type="strings_with_wrong_placed_whitespace" --format="##[error]{source_path}:{line_number}:{msg}" .
114114
else
115-
$BASE_DIR/scripts/validate_string_concatenation.py --validation-type="strings_with_wrong_placed_whitespace" .
115+
$BASE_DIR/scripts/validate_unwanted_patterns.py --validation-type="strings_with_wrong_placed_whitespace" .
116116
fi
117117
RET=$(($RET + $?)) ; echo $MSG "DONE"
118118

scripts/tests/test_validate_unwanted_patterns.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22

33
import pytest
44

5-
# TODO: change this import to "import validate_unwanted_patterns"
6-
# when renaming "scripts/validate_string_concatenation.py" to
7-
# "scripts/validate_unwanted_patterns.py"
8-
import validate_string_concatenation as validate_unwanted_patterns
5+
import validate_unwanted_patterns
96

107

118
class TestBarePytestRaises:
File renamed without changes.

0 commit comments

Comments
 (0)