Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/codacy-rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ rules:
- json
severity: WARNING
message: It's possible to embed malicious secret instructions to AI rules files using unicode characters that are invisible to human reviewers.This can lead to future AI-generated code that has security vulnerabilities or other weaknesses baked in which may not be noticed.
pattern-regex: "[\u200B\u200C\u200D\u2060\uFEFF]"
pattern-regex: "[\u200B\u200C\u200D\u2060]|(?<!\\A)\uFEFF"
paths:
include:
- "*.json"
Expand Down
6 changes: 6 additions & 0 deletions docs/multiple-tests/codacy-rules/results.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@
<file name="codacy.generic.security.detect-invisible-unicode.yaml">
<error source="codacy.generic.security.detect-invisible-unicode" line="2" message="It's possible to embed malicious secret instructions to AI rules files using unicode characters that are invisible to human reviewers.This can lead to future AI-generated code that has security vulnerabilities or other weaknesses baked in which may not be noticed." severity="warning" />
</file>
<file name="codacy.generic.security.detect-invisible-unicode-bom-mid.yaml">
<error source="codacy.generic.security.detect-invisible-unicode" line="2" message="It's possible to embed malicious secret instructions to AI rules files using unicode characters that are invisible to human reviewers.This can lead to future AI-generated code that has security vulnerabilities or other weaknesses baked in which may not be noticed." severity="warning" />
</file>
<file name="codacy.generic.security.detect-invisible-unicode-zwsp-start.yaml">
<error source="codacy.generic.security.detect-invisible-unicode" line="1" message="It's possible to embed malicious secret instructions to AI rules files using unicode characters that are invisible to human reviewers.This can lead to future AI-generated code that has security vulnerabilities or other weaknesses baked in which may not be noticed." severity="warning" />
</file>
<file name="codacy.csharp-lowercase.cs">
<error source="codacy.generic.csharp-lowercase-variables" line="5" message="Variable names should be lowercase" severity="info" />
</file>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
example:
text: "HelloWorld"
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"example": "Hello World"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
example:
text: "Hello World"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
​example:
text: "Hello World"