@codacy/tools-markdownlint-0 0.2.1 → 0.3.0
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.
- package/dist/index.js +6 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -869,7 +869,7 @@ var adapter = {
|
|
|
869
869
|
* file via `readConfig()` and pass it as the inline config object.
|
|
870
870
|
* 2. If Codacy patterns are configured, build an inline config enabling only
|
|
871
871
|
* those rules (all others disabled via `default: false`).
|
|
872
|
-
* 3. Otherwise
|
|
872
|
+
* 3. Otherwise (no local config and no patterns), skip execution.
|
|
873
873
|
*
|
|
874
874
|
* Category and severity for each issue are sourced from patterns.json (which
|
|
875
875
|
* is generated by `pnpm prefetch` and committed to the repository).
|
|
@@ -920,6 +920,11 @@ var adapter = {
|
|
|
920
920
|
}
|
|
921
921
|
} else if (codacyConfig.patterns.length > 0) {
|
|
922
922
|
inlineConfig = buildMarkdownlintConfig(codacyConfig.patterns);
|
|
923
|
+
} else {
|
|
924
|
+
ctx.logger.info("Skipping analysis: no local config and no patterns enabled", {
|
|
925
|
+
toolId: TOOL_ID
|
|
926
|
+
});
|
|
927
|
+
return buildResult(startedAt, /* @__PURE__ */ new Date(), issues, errors, ctx.targetFiles.length);
|
|
923
928
|
}
|
|
924
929
|
const lintOptions = { files: absoluteFiles };
|
|
925
930
|
if (inlineConfig !== void 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codacy/tools-markdownlint-0",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "markdownlint adapter — Library-mode Markdown linter",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
],
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"markdownlint": "^0.37.4",
|
|
12
|
-
"@codacy/tooling": "0.
|
|
12
|
+
"@codacy/tooling": "0.3.0"
|
|
13
13
|
},
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"author": "Codacy <support@codacy.com> (https://www.codacy.com)",
|