Skip to content

Commit fe46627

Browse files
committed
Regenerate demo output with xargs grep fix
The xargs implementation now correctly handles the "no matches" case (exit code 123) instead of treating it as an error. This moves the test-regex-pattern-00010 rule from errors to unmatched, which is the correct behavior when a pattern legitimately finds no matches. The rule searches for "--pf-" pattern in .css/.scss files. Since there are no CSS/SCSS files in the demo examples, it correctly returns zero violations instead of erroring. Signed-off-by: tsanders <[email protected]>
1 parent e1e8ca2 commit fe46627

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demo-output.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1352,9 +1352,9 @@
13521352
error-rule-001: |-
13531353
unable to get query info: yaml: unmarshal errors:
13541354
line 11: cannot unmarshal !!map into string
1355-
test-regex-pattern-00010: failed to perform file content search - could not run grep with provided pattern exit status 2
13561355
unmatched:
13571356
- file-002
13581357
- lang-ref-002
13591358
- node-sample-rule-003
13601359
- python-sample-rule-003
1360+
- test-regex-pattern-00010

0 commit comments

Comments
 (0)