Skip to content
Merged
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
7 changes: 7 additions & 0 deletions .github/instructions/codacy.instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
# Codacy Rules
Configuration for AI behavior when interacting with Codacy's MCP Server

## using any tool that accepts the arguments: `provider`, `organization`, or `repository`
- ALWAYS use:
- provider: gh
- organization: codacy
- repository: codacy-biomejs
- Avoid calling `git remote -v` unless really necessary

## CRITICAL: After ANY successful `edit_file` or `reapply` operation
- YOU MUST IMMEDIATELY run the `codacy_cli_analyze` tool from Codacy's MCP Server for each file that was edited, with:
- `rootPath`: set to the workspace path
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ tsconfig.tsbuildinfo

#Ignore vscode AI rules
.github/copilot-instructions.md
.github/instructions/codacy.instructions.md

**/dist

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Biome-specific tests:
|------|-----------------|
| `biome-no-double-equals` | `lint_suspicious_noDoubleEquals` |
| `biome-no-debugger` | `lint_suspicious_noDebugger` |
| `biome-no-var` | `lint_style_noVar` |
| `biome-no-var` | `lint_suspicious_noVar` |
| `biome-use-const` | `lint_style_useConst` |

## How it works
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<checkstyle version="4.3">
<file name="no-double-equals.js">
<error source="lint_suspicious_noDoubleEquals" line="5" message="Use === instead of ==. == is only allowed when comparing against `null`" severity="warning" />
<error source="lint_suspicious_noDoubleEquals" line="13" message="Use === instead of ==. == is only allowed when comparing against `null`" severity="warning" />
<error source="lint_suspicious_noDoubleEquals" line="5" message="Using == may be unsafe if you are relying on type coercion." severity="warning" />
<error source="lint_suspicious_noDoubleEquals" line="13" message="Using == may be unsafe if you are relying on type coercion." severity="warning" />
</file>
</checkstyle>
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<module name="root">
<module name="lint_style_noVar" />
<module name="lint_suspicious_noVar" />
</module>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<checkstyle version="4.3">
<file name="no-var.js">
<error source="lint_style_noVar" line="4" message="Use let or const instead of var." severity="info" />
<error source="lint_style_noVar" line="6" message="Use let or const instead of var." severity="info" />
<error source="lint_suspicious_noVar" line="4" message="Use let or const instead of var." severity="warning" />
<error source="lint_suspicious_noVar" line="6" message="Use let or const instead of var." severity="warning" />
</file>
</checkstyle>
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"name": "biome",
"patterns": [
{ "patternId": "lint_style_noVar" }
{ "patternId": "lint_suspicious_noVar" }
]
}
],
Expand Down