@codacy/codacy-mcp 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -30,8 +30,9 @@ const ensureCodacyCLI = async () => {
|
|
|
30
30
|
};
|
|
31
31
|
// Check if .codacy/codacy.yaml exists and initialize if needed
|
|
32
32
|
const ensureCodacyConfig = async (rootPath, provider, organization, repository) => {
|
|
33
|
-
const
|
|
34
|
-
|
|
33
|
+
const extensions = ['yaml', 'yml'];
|
|
34
|
+
const configExists = extensions.some(ext => fs.existsSync(path.join(rootPath, '.codacy', `codacy.${ext}`)));
|
|
35
|
+
if (configExists) {
|
|
35
36
|
return true;
|
|
36
37
|
}
|
|
37
38
|
try {
|