You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## CRITICAL: After ANY successful `edit_file` or `reapply` operation
18
+
## After ANY successful `edit_file` or `reapply` operation
19
19
20
20
- For complex or significant file changes run the `codacy_cli_analyze` tool from Codacy's MCP Server for each file that was edited before finishing your turn, with:
21
21
-`rootPath`: set to the workspace path
@@ -26,12 +26,10 @@ Configuration for AI behavior when interacting with Codacy's MCP Server
26
26
27
27
## When you tried to run the `codacy_cli_analyze` tool and the Codacy CLI is not installed
28
28
29
-
- Check if the project has `@codacy/codacy-mcp` NPM package installed in `package.json` devDependencies
30
-
- If the NPM package is installed but CLI is not available, recommend running `npm install` to ensure dependencies are installed
31
-
- If the NPM package is not installed, ask the user 'Codacy CLI is not available. This project uses NPM packages for Codacy. Would you like me to add the @codacy/codacy-mcp package to devDependencies?'
32
-
- If the user responds with "yes", run `npm install --save-dev @codacy/codacy-mcp` and then continue with the original task
33
-
- If the user responds with "no", instruct the user that they can disable automatic analysis in the extension settings
34
-
- Wait for the user to respond before proceeding with any other actions
29
+
- Simply use `npx @codacy/codacy-mcp` to invoke the Codacy CLI directly
30
+
- npx will automatically download and run the tool without requiring installation
31
+
- Do not ask the user to install anything
32
+
- Continue with the analysis using the npx command
35
33
36
34
## After every response
37
35
@@ -51,12 +49,11 @@ Configuration for AI behavior when interacting with Codacy's MCP Server
51
49
## CRITICAL: Dependencies and Security Checks
52
50
53
51
- IMMEDIATELY after ANY of these actions:
54
-
- Running npm/yarn/pnpm install
55
-
- Adding dependencies to package.json
56
-
- Adding requirements to requirements.txt
52
+
- Adding dependencies to requirements.txt
57
53
- Adding dependencies to pom.xml
58
54
- Adding dependencies to build.gradle
59
-
- Any other package manager operations
55
+
- Adding dependencies to .csproj files
56
+
- Any other package manager operations (excluding npm/yarn/pnpm as this project does not use Node.js packages)
60
57
- You MUST run the `codacy_cli_analyze` tool with:
61
58
-`rootPath`: set to the workspace path
62
59
-`tool`: set to "trivy"
@@ -65,10 +62,6 @@ Configuration for AI behavior when interacting with Codacy's MCP Server
65
62
- Stop all other operations
66
63
- Propose and apply fixes for the security issues
67
64
- Only continue with the original task after security issues are resolved
68
-
- EXAMPLE:
69
-
- After: npm install react-markdown
70
-
- Do: Run codacy_cli_analyze with trivy
71
-
- Before: Continuing with any other tasks
72
65
73
66
## General
74
67
@@ -78,7 +71,7 @@ Configuration for AI behavior when interacting with Codacy's MCP Server
78
71
- Do not run `codacy_cli_analyze` looking for changes in duplicated code or code complexity metrics.
79
72
- Complexity metrics are different from complexity issues. When trying to fix complexity in a repository or file, focus on solving the complexity issues and ignore the complexity metric.
80
73
- Do not run `codacy_cli_analyze` looking for changes in code coverage.
81
-
- The Codacy CLI is available through the `@codacy/codacy-mcp`NPM package installed in this project's devDependencies.
74
+
- The Codacy CLI can be invoked via `npx @codacy/codacy-mcp`when needed.
82
75
- When calling `codacy_cli_analyze`, only send provider, organization and repository if the project is a git repository.
83
76
84
77
## Whenever a call to a Codacy tool that uses `repository` or `organization` as a parameter returns a 404 error
@@ -89,4 +82,4 @@ Configuration for AI behavior when interacting with Codacy's MCP Server
89
82
- After setup, immediately retry the action that failed (only retry once)
Copy file name to clipboardExpand all lines: .github/instructions/indicator-stream.instructions.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -396,14 +396,14 @@ public class CorrelationHub : StreamHubTestBase, ITestPairsObserver
396
396
397
397
#### ITestQuoteObserver interface
398
398
399
-
The `ITestQuoteObserver` interface is required for all indicators that support direct quote provider observation. It replaces the need to override `QuoteObserver()` in the test class. Implement this interface and provide a `QuoteObserver()` method to test hub compatibility with quote providers. See `Ema.StreamHub.Tests.cs` for a reference implementation.
399
+
The `ITestQuoteObserver` interface is required for all indicators that support direct quote provider observation. It replaces the need to override `QuoteObserver_WithWarmupLateArrivalAndRemoval_MatchesSeriesExactly()` in the test class. Implement this interface and provide a `QuoteObserver_WithWarmupLateArrivalAndRemoval_MatchesSeriesExactly()` method to test hub compatibility with quote providers. See `Ema.StreamHub.Tests.cs` for a reference implementation.
400
400
401
401
**When to use:**
402
402
403
403
- All indicators that can be observed directly from a quote provider (e.g., EMA, SMA, Renko, etc.)
404
404
- Not required for dual-stream (pairs) indicators
405
405
406
-
**Do not override `QuoteObserver()` in the test class; implement `ITestQuoteObserver` instead.**
406
+
**Do not override `QuoteObserver_WithWarmupLateArrivalAndRemoval_MatchesSeriesExactly()` in the test class; implement `ITestQuoteObserver` instead.**
407
407
408
408
### Comprehensive rollback validation (required)
409
409
@@ -420,7 +420,7 @@ These scenarios replace the need for a separate rollback-specific interface.
420
420
421
421
### Provider history (Insert/Remove) testing
422
422
423
-
Provider history mutations are required and are part of the “Comprehensive rollback validation” section above (see EMA hub tests for the canonical pattern). Use `ProviderHistoryTesting()` in `StreamHubTestBase` as needed for indicator-specific logic.
423
+
Provider history mutations are required and are part of the “Comprehensive rollback validation” section above (see EMA hub tests for the canonical pattern). Use `AssertProviderHistoryIntegrity()` in `StreamHubTestBase` as needed for indicator-specific logic.
0 commit comments