Skip to content

Commit 22100f4

Browse files
authored
Merge pull request #2 from codacy/fix-tests
Fix tests
2 parents 721e2d7 + 917ac9c commit 22100f4

File tree

7 files changed

+15
-7
lines changed

7 files changed

+15
-7
lines changed

.github/instructions/codacy.instructions.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
# Codacy Rules
77
Configuration for AI behavior when interacting with Codacy's MCP Server
88

9+
## using any tool that accepts the arguments: `provider`, `organization`, or `repository`
10+
- ALWAYS use:
11+
- provider: gh
12+
- organization: codacy
13+
- repository: codacy-biomejs
14+
- Avoid calling `git remote -v` unless really necessary
15+
916
## CRITICAL: After ANY successful `edit_file` or `reapply` operation
1017
- YOU MUST IMMEDIATELY run the `codacy_cli_analyze` tool from Codacy's MCP Server for each file that was edited, with:
1118
- `rootPath`: set to the workspace path

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ tsconfig.tsbuildinfo
2424

2525
#Ignore vscode AI rules
2626
.github/copilot-instructions.md
27+
.github/instructions/codacy.instructions.md
2728

2829
**/dist
2930

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Biome-specific tests:
6565
|------|-----------------|
6666
| `biome-no-double-equals` | `lint_suspicious_noDoubleEquals` |
6767
| `biome-no-debugger` | `lint_suspicious_noDebugger` |
68-
| `biome-no-var` | `lint_style_noVar` |
68+
| `biome-no-var` | `lint_suspicious_noVar` |
6969
| `biome-use-const` | `lint_style_useConst` |
7070

7171
## How it works
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<checkstyle version="4.3">
33
<file name="no-double-equals.js">
4-
<error source="lint_suspicious_noDoubleEquals" line="5" message="Use === instead of ==. == is only allowed when comparing against `null`" severity="warning" />
5-
<error source="lint_suspicious_noDoubleEquals" line="13" message="Use === instead of ==. == is only allowed when comparing against `null`" severity="warning" />
4+
<error source="lint_suspicious_noDoubleEquals" line="5" message="Using == may be unsafe if you are relying on type coercion." severity="warning" />
5+
<error source="lint_suspicious_noDoubleEquals" line="13" message="Using == may be unsafe if you are relying on type coercion." severity="warning" />
66
</file>
77
</checkstyle>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<module name="root">
2-
<module name="lint_style_noVar" />
2+
<module name="lint_suspicious_noVar" />
33
</module>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<checkstyle version="4.3">
33
<file name="no-var.js">
4-
<error source="lint_style_noVar" line="4" message="Use let or const instead of var." severity="info" />
5-
<error source="lint_style_noVar" line="6" message="Use let or const instead of var." severity="info" />
4+
<error source="lint_suspicious_noVar" line="4" message="Use let or const instead of var." severity="warning" />
5+
<error source="lint_suspicious_noVar" line="6" message="Use let or const instead of var." severity="warning" />
66
</file>
77
</checkstyle>

workspaces/docs-generator/docs/multiple-tests/biome-no-var/src/_codacyrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"name": "biome",
55
"patterns": [
6-
{ "patternId": "lint_style_noVar" }
6+
{ "patternId": "lint_suspicious_noVar" }
77
]
88
}
99
],

0 commit comments

Comments
 (0)