lintmax 0.1.84 → 0.1.86
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/cli.mjs +4 -3
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -1038,7 +1038,8 @@ const SHFMT_FLAGS = [
|
|
|
1038
1038
|
const SHELLCHECK_FLAGS = [
|
|
1039
1039
|
"--enable=all",
|
|
1040
1040
|
"--severity=style",
|
|
1041
|
-
"--external-sources"
|
|
1041
|
+
"--external-sources",
|
|
1042
|
+
"--exclude=SC2312"
|
|
1042
1043
|
];
|
|
1043
1044
|
const runShfmtStep = async ({ bin, command, env, files }) => {
|
|
1044
1045
|
if (command === "fix") await runCapture({
|
|
@@ -1218,8 +1219,8 @@ const formatGrouped = ({ files }) => {
|
|
|
1218
1219
|
for (const l of f.linters) {
|
|
1219
1220
|
parts.push(` ${l.linter}`);
|
|
1220
1221
|
for (const r of l.rules) {
|
|
1221
|
-
const lineStr = r.lines.length > 0 ? r.lines.join(",") : "";
|
|
1222
|
-
parts.push(` ${lineStr}${
|
|
1222
|
+
const lineStr = r.lines.length > 0 ? `L${r.lines.join(",")} ` : "";
|
|
1223
|
+
parts.push(` ${lineStr}${r.rule}`);
|
|
1223
1224
|
}
|
|
1224
1225
|
}
|
|
1225
1226
|
}
|