Skip to content

Commit 83db830

Browse files
add complexity instruction
1 parent 001402d commit 83db830

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/commands/createRules.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ export const newRulesTemplate = (
174174
'"Propose fixes" means to both suggest and, if possible, automatically apply the fixes.',
175175
'You MUST NOT wait for the user to ask for analysis or remind you to run the tool.',
176176
'Do not run `codacy_cli_analyze` looking for changes in duplicated code or code complexity metrics.',
177+
'Complexity metrics is 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.',
177178
'Do not run `codacy_cli_analyze` looking for changes in code coverage.',
178179
'Do not try to manually install Codacy CLI using either brew, npm, npx, or any other package manager.',
179180
"If the Codacy CLI is not installed, just run the `codacy_cli_analyze` tool from Codacy's MCP Server.",

0 commit comments

Comments
 (0)