Skip to content

Commit 972ae38

Browse files
authored
Update pmd.yml
1 parent 0806ba9 commit 972ae38

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/pmd.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,12 @@ jobs:
106106
s/[[:space:]]*>[[:space:]]*/>/g
107107
s/[[:space:]]*==[[:space:]]*/==/g
108108

109-
# Remove full-line comments
110-
/^[[:space:]]*[!cC*dD]/d
109+
# Remove full-line comments
110+
/^\s*!/d
111+
/^[cC*dD]/d
112+
/^[ \t]*[cC*dD]/d
113+
/^[[:space:]]*$/d
114+
111115
# Remove end-of-line comments, preserving quoted strings
112116
s/([^"'\''\\]*("[^"]*")?('\''[^'\'']*'\''?)?[^"'\''\\]*)[!].*$/\1/
113117
' "$file" > "$TMP_FILE"

0 commit comments

Comments
 (0)