We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52aeefc commit 037c2e6Copy full SHA for 037c2e6
.github/workflows/pmd.yml
@@ -55,6 +55,8 @@ jobs:
55
# - Lines starting with 'c', 'C', '*', 'd', 'D' in column 1 (fixed form comments)
56
# 2. Remove end-of-line comments (anything after '!' that isn't in a string)
57
# 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
+
60
sed -E \
61
-e '/^\s*!/s/.*//' \
62
-e '/^[cC*dD]/s/.*//' \
0 commit comments