Skip to content

Commit 88a0110

Browse files
committed
Testing: skip cert files in GitHub workflow line length check
1 parent c9a0820 commit 88a0110

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

.github/workflows/line-length-check.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,13 @@ jobs:
4141
# Skip WolfSSLProvider.java...
4242
# that legitimately exceed 80 characters
4343
if [[ "$file" == "src/java/com/wolfssl/provider/jsse/WolfSSLProvider.java" ]]; then
44-
echo "⚠️ Skipping $file (contains security service mappings)"
44+
echo " Skipping $file (contains security service mappings)"
45+
continue
46+
fi
47+
48+
# Skip certificate and key files
49+
if [[ "$file" =~ \.(pem|crt|cer|der|key)$ ]]; then
50+
echo " Skipping $file (certificate/key file)"
4551
continue
4652
fi
4753
@@ -72,10 +78,10 @@ jobs:
7278
[[ "$added_line" =~ ^[[:space:]]*return[[:space:]]+Java_com_wolfssl_.* ]] || \
7379
[[ "$added_line" =~ ^[[:space:]]*\(JNIEnv\*[[:space:]]+env.*\) ]] || \
7480
[[ "$added_line" =~ ^[[:space:]]*JNIEnv\*[[:space:]]+env.* ]]; then
75-
echo "⚠️ $file:$new_line_num - Skipping JNI method signature/call/parameters ($char_count characters)"
81+
echo " $file:$new_line_num - Skipping JNI method signature/call/parameters ($char_count characters)"
7682
echo " Line: $added_line"
7783
else
78-
echo " $file:$new_line_num - Line too long ($char_count characters)"
84+
echo " $file:$new_line_num - Line too long ($char_count characters)"
7985
echo " Line: $added_line"
8086
echo "violation" >> "$violations_file"
8187
fi
@@ -99,7 +105,7 @@ jobs:
99105
echo "================================================================"
100106
101107
if [[ $violation_count -gt 0 ]]; then
102-
echo " Found $violation_count line(s) exceeding 80 " \
108+
echo " Found $violation_count line(s) exceeding 80 " \
103109
"characters in PR changes"
104110
echo ""
105111
echo "Please ensure all lines are 80 characters or less " \
@@ -109,7 +115,7 @@ jobs:
109115
rm -f "$violations_file" "$changed_files"
110116
exit 1
111117
else
112-
echo "All changed lines are within the 80 character limit"
118+
echo "All changed lines are within the 80 character limit"
113119
rm -f "$violations_file" "$changed_files"
114120
exit 0
115121
fi

0 commit comments

Comments
 (0)