Skip to content
Merged
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
4 changes: 3 additions & 1 deletion src/configCreator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ function generateFilesToAnalyze(codacyrc: Codacyrc): string[] {
"**/*.tsx",
"**/*.js",
"**/*.jsx",
"**/*.json"
"**/*.mjs",
"**/*.jsm",
"**/*.vue",
Comment on lines +35 to +37
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 HIGH RISK

Suggestion: The removal of '/*.json' from the default file list contradicts the 'add' intent specified in the title and appears to be a regression. Additionally, to fully support modern module resolution in JavaScript and TypeScript projects, consider including '/.cjs', '**/.mts', and '**/*.cts'.

Try running the following prompt in your coding agent:

In src/configCreator.ts, update the defaultFilesToAnalyze array to include **/*.json, **/*.cjs, **/*.mts, and **/*.cts while preserving the other newly added extensions (.mjs, .jsm, .vue).

];

const files = codacyrc?.files && codacyrc.files.length
Expand Down