Skip to content

Commit 037c2e6

Browse files
authored
Update pmd.yml
1 parent 52aeefc commit 037c2e6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/pmd.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ jobs:
5555
# - Lines starting with 'c', 'C', '*', 'd', 'D' in column 1 (fixed form comments)
5656
# 2. Remove end-of-line comments (anything after '!' that isn't in a string)
5757
# 3. Preserve strings containing '!' characters
58+
sed -E ' :a /[[:space:]]*&[[:space:]]*$/ { N; s/[[:space:]]*&[[:space:]]*\n[[:space:]]*/ /; ba } s/^[[:space:]]*!\$acc[[:space:]]*/!$acc / :b s/[[:space:]]+!\$acc[[:space:]]*/ /g tb ' "$file" > "$file"
59+
5860
sed -E \
5961
-e '/^\s*!/s/.*//' \
6062
-e '/^[cC*dD]/s/.*//' \

0 commit comments

Comments
 (0)