diff --git a/.gitattributes b/.gitattributes index e86c06b0..9c172f19 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1 @@ -markdownlint-cli2.js eol=lf +markdownlint-cli2.mjs eol=lf diff --git a/.github/workflows/sarif.yml b/.github/workflows/sarif.yml index 2f23e04a..e0ba2c15 100644 --- a/.github/workflows/sarif.yml +++ b/.github/workflows/sarif.yml @@ -18,7 +18,7 @@ jobs: steps: - uses: actions/checkout@v4 - run: npm install --no-package-lock - - run: node markdownlint-cli2.js --config .github/sarif.markdownlint-cli2.jsonc '**/README.md' '#node_modules' + - run: node markdownlint-cli2.mjs --config .github/sarif.markdownlint-cli2.jsonc '**/README.md' '#node_modules' continue-on-error: true - uses: github/codeql-action/upload-sarif@v3 with: diff --git a/append-to-array.js b/append-to-array.mjs similarity index 100% rename from append-to-array.js rename to append-to-array.mjs diff --git a/eslint.config.mjs b/eslint.config.mjs index 1389b9e5..1bc83008 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -66,6 +66,7 @@ export default [ { "files": [ "**/*-formatter-*.js", + "webworker/*.cjs", "webworker/*.js" ], "ignores": [ diff --git a/export-markdownlint-helpers.js b/export-markdownlint-helpers.mjs similarity index 100% rename from export-markdownlint-helpers.js rename to export-markdownlint-helpers.mjs diff --git a/export-markdownlint.js b/export-markdownlint.mjs similarity index 100% rename from export-markdownlint.js rename to export-markdownlint.mjs diff --git a/markdownlint-cli2.js b/markdownlint-cli2.mjs similarity index 99% rename from markdownlint-cli2.js rename to markdownlint-cli2.mjs index a4b7ba77..0804adf2 100755 --- a/markdownlint-cli2.js +++ b/markdownlint-cli2.mjs @@ -25,9 +25,9 @@ const { "readConfig": markdownlintReadConfig } = markdownlintPromises; import { expandTildePath } from "markdownlint/helpers"; -import appendToArray from "./append-to-array.js"; -import mergeOptions from "./merge-options.js"; -import resolveAndRequire from "./resolve-and-require.js"; +import appendToArray from "./append-to-array.mjs"; +import mergeOptions from "./merge-options.mjs"; +import resolveAndRequire from "./resolve-and-require.mjs"; // Variables const packageName = "markdownlint-cli2"; @@ -42,15 +42,15 @@ const utf8 = "utf8"; const noop = () => null; // Gets a JSONC parser -import jsoncParse from "./parsers/jsonc-parse.js"; +import jsoncParse from "./parsers/jsonc-parse.mjs"; const getJsoncParse = () => jsoncParse; // Gets a YAML parser -import yamlParse from "./parsers/yaml-parse.js"; +import yamlParse from "./parsers/yaml-parse.mjs"; const getYamlParse = () => yamlParse; // Gets an ordered array of parsers -import parsers from "./parsers/parsers.js"; +import parsers from "./parsers/parsers.mjs"; const getParsers = () => parsers; // Negates a glob diff --git a/merge-options.js b/merge-options.mjs similarity index 100% rename from merge-options.js rename to merge-options.mjs diff --git a/package.json b/package.json index a3347ba4..7bd73a92 100644 --- a/package.json +++ b/package.json @@ -8,17 +8,17 @@ }, "license": "MIT", "type": "module", - "main": "./markdownlint-cli2.js", + "main": "./markdownlint-cli2.mjs", "exports": { - ".": "./markdownlint-cli2.js", - "./markdownlint": "./export-markdownlint.js", - "./markdownlint/helpers": "./export-markdownlint-helpers.js", - "./parsers": "./parsers/parsers.js", - "./parsers/jsonc": "./parsers/jsonc-parse.js", - "./parsers/yaml": "./parsers/yaml-parse.js" + ".": "./markdownlint-cli2.mjs", + "./markdownlint": "./export-markdownlint.mjs", + "./markdownlint/helpers": "./export-markdownlint-helpers.mjs", + "./parsers": "./parsers/parsers.mjs", + "./parsers/jsonc": "./parsers/jsonc-parse.mjs", + "./parsers/yaml": "./parsers/yaml-parse.mjs" }, "bin": { - "markdownlint-cli2": "markdownlint-cli2.js" + "markdownlint-cli2": "markdownlint-cli2.mjs" }, "homepage": "https://github.com/DavidAnson/markdownlint-cli2", "repository": { @@ -39,7 +39,7 @@ "playwright-test": "playwright test --config ./webworker/playwright.config.mjs", "playwright-test-docker": "docker run --rm --volume $PWD:/home/workdir --workdir /home/workdir --ipc=host mcr.microsoft.com/playwright:v1.48.2 npm run playwright-test", "schema": "cpy ./node_modules/markdownlint/schema/markdownlint-config-schema.json ./schema --flat", - "test": "ava --timeout=1m test/append-to-array-test.js test/fs-mock-test.js test/fs-virtual-test.js test/markdownlint-cli2-test.js test/markdownlint-cli2-test-exec.js test/markdownlint-cli2-test-exports.js test/markdownlint-cli2-test-fs.js test/markdownlint-cli2-test-main.js test/merge-options-test.js test/resolve-and-require-test.js", + "test": "ava --timeout=1m test/append-to-array-test.mjs test/fs-mock-test.mjs test/fs-virtual-test.mjs test/markdownlint-cli2-test.mjs test/markdownlint-cli2-test-exec.mjs test/markdownlint-cli2-test-exports.mjs test/markdownlint-cli2-test-fs.mjs test/markdownlint-cli2-test-main.mjs test/merge-options-test.mjs test/resolve-and-require-test.mjs", "test-cover": "c8 --100 npm test", "test-docker-hub-image": "VERSION=$(node -e \"process.stdout.write(require('./package.json').version)\") && docker image rm davidanson/markdownlint-cli2:v$VERSION davidanson/markdownlint-cli2:latest || true && docker run --rm -v $PWD:/workdir davidanson/markdownlint-cli2:v$VERSION \"*.md\" && docker run --rm -v $PWD:/workdir davidanson/markdownlint-cli2:latest \"*.md\"", "test-docker-hub-image-rules": "VERSION=$(node -e \"process.stdout.write(require('./package.json').version)\") && docker image rm davidanson/markdownlint-cli2-rules:v$VERSION davidanson/markdownlint-cli2-rules:latest || true && docker run --rm -v $PWD:/workdir davidanson/markdownlint-cli2-rules:v$VERSION \"*.md\" && docker run --rm -v $PWD:/workdir davidanson/markdownlint-cli2-rules:latest \"*.md\"", @@ -47,26 +47,26 @@ "test-docker-image-rules": "VERSION=$(node -e \"process.stdout.write(require('./package.json').version)\") && docker run --rm -v $PWD:/workdir davidanson/markdownlint-cli2-rules:v$VERSION \"*.md\"", "test-invoke-as-cli": "markdownlint-cli2 CHANGELOG.md", "test-watch": "git ls-files | entr npm run test", - "update-snapshots": "ava --timeout=1m --update-snapshots test/markdownlint-cli2-test-exec.js test/markdownlint-cli2-test-fs.js test/markdownlint-cli2-test-main.js", + "update-snapshots": "ava --timeout=1m --update-snapshots test/markdownlint-cli2-test-exec.mjs test/markdownlint-cli2-test-fs.mjs test/markdownlint-cli2-test-main.mjs", "webworker": "cd webworker && webpack --mode none", - "webworker-install": "npm install --no-package-lock --no-save path-browserify setimmediate stream-browserify util webpack-cli && cpy ./node_modules/setimmediate/setImmediate.js ./webworker --flat" + "webworker-install": "npm install --no-package-lock --no-save path-browserify setimmediate stream-browserify util webpack-cli && cpy ./node_modules/setimmediate/setImmediate.cjs ./webworker --flat" }, "engines": { "node": ">=18" }, "files": [ - "append-to-array.js", + "append-to-array.mjs", "CHANGELOG.md", - "export-markdownlint.js", - "export-markdownlint-helpers.js", + "export-markdownlint.mjs", + "export-markdownlint-helpers.mjs", "LICENSE", - "markdownlint-cli2.js", - "merge-options.js", - "parsers/parsers.js", - "parsers/jsonc-parse.js", - "parsers/yaml-parse.js", + "markdownlint-cli2.mjs", + "merge-options.mjs", + "parsers/parsers.mjs", + "parsers/jsonc-parse.mjs", + "parsers/yaml-parse.mjs", "README.md", - "resolve-and-require.js", + "resolve-and-require.mjs", "schema/markdownlint-cli2-config-schema.json", "schema/markdownlint-config-schema.json", "schema/ValidatingConfiguration.md" diff --git a/parsers/jsonc-parse.js b/parsers/jsonc-parse.mjs similarity index 100% rename from parsers/jsonc-parse.js rename to parsers/jsonc-parse.mjs diff --git a/parsers/parsers.js b/parsers/parsers.mjs similarity index 62% rename from parsers/parsers.js rename to parsers/parsers.mjs index 2fb66a32..8b89bb0c 100644 --- a/parsers/parsers.js +++ b/parsers/parsers.mjs @@ -1,7 +1,7 @@ // @ts-check -import jsoncParse from "./jsonc-parse.js"; -import yamlParse from "./yaml-parse.js"; +import jsoncParse from "./jsonc-parse.mjs"; +import yamlParse from "./yaml-parse.mjs"; /** * Array of parser objects ordered by priority. diff --git a/parsers/yaml-parse.js b/parsers/yaml-parse.mjs similarity index 100% rename from parsers/yaml-parse.js rename to parsers/yaml-parse.mjs diff --git a/resolve-and-require.js b/resolve-and-require.mjs similarity index 100% rename from resolve-and-require.js rename to resolve-and-require.mjs diff --git a/test/append-to-array-test.js b/test/append-to-array-test.mjs similarity index 97% rename from test/append-to-array-test.js rename to test/append-to-array-test.mjs index f2d5c1da..9540dbce 100644 --- a/test/append-to-array-test.js +++ b/test/append-to-array-test.mjs @@ -1,7 +1,7 @@ // @ts-check import test from "ava"; -import appendToArray, { sliceSize } from "../append-to-array.js"; +import appendToArray, { sliceSize } from "../append-to-array.mjs"; const makeArray = (minimum, maximum) => { const length = maximum - minimum + 1; diff --git a/test/fs-mock-test.js b/test/fs-mock-test.mjs similarity index 98% rename from test/fs-mock-test.js rename to test/fs-mock-test.mjs index 10d70a05..f8f5cde7 100644 --- a/test/fs-mock-test.js +++ b/test/fs-mock-test.mjs @@ -4,7 +4,7 @@ import fsNodePromises from "node:fs/promises"; import path from "node:path"; import { promisify } from "node:util"; import test from "ava"; -import FsMock from "./fs-mock.js"; +import FsMock from "./fs-mock.mjs"; const mockPath = "/mock"; const thisFile = path.basename(import.meta.filename); diff --git a/test/fs-mock.js b/test/fs-mock.mjs similarity index 100% rename from test/fs-mock.js rename to test/fs-mock.mjs diff --git a/test/fs-virtual-test.js b/test/fs-virtual-test.mjs similarity index 96% rename from test/fs-virtual-test.js rename to test/fs-virtual-test.mjs index 8eec5376..cf50407a 100644 --- a/test/fs-virtual-test.js +++ b/test/fs-virtual-test.mjs @@ -3,7 +3,7 @@ import path from "node:path"; import { promisify } from "node:util"; import test from "ava"; -import FsVirtual from "../webworker/fs-virtual.js"; +import FsVirtual from "../webworker/fs-virtual.mjs"; const mockPath = "/mock"; const thisFile = path.basename(import.meta.filename); @@ -11,7 +11,7 @@ const testFile = path.join(mockPath, thisFile); const missingFile = `${mockPath}/missing`; const virtualFiles = [ - [ "/mock/fs-virtual-test.js", "// content" ] + [ "/mock/fs-virtual-test.mjs", "// content" ] ]; test("fsVirtual.stat", async (t) => { diff --git a/test/markdownlint-cli2-test-cases.js b/test/markdownlint-cli2-test-cases.mjs similarity index 100% rename from test/markdownlint-cli2-test-cases.js rename to test/markdownlint-cli2-test-cases.mjs diff --git a/test/markdownlint-cli2-test-exec.js b/test/markdownlint-cli2-test-exec.mjs similarity index 96% rename from test/markdownlint-cli2-test-exec.js rename to test/markdownlint-cli2-test-exec.mjs index c1671ba3..78f54202 100644 --- a/test/markdownlint-cli2-test-exec.js +++ b/test/markdownlint-cli2-test-exec.mjs @@ -3,7 +3,7 @@ import fs from "node:fs/promises"; import path from "node:path"; import test from "ava"; -import testCases from "./markdownlint-cli2-test-cases.js"; +import testCases from "./markdownlint-cli2-test-cases.mjs"; const absolute = (rootDir, file) => path.join(rootDir, file); const repositoryPath = (name) => path.join(import.meta.dirname, "..", name); @@ -14,7 +14,7 @@ const invoke = (directory, args, noRequire, env, script) => async () => { return spawn( "node", [ - repositoryPath(script || "markdownlint-cli2.js"), + repositoryPath(script || "markdownlint-cli2.mjs"), ...args ], { @@ -45,7 +45,7 @@ const invokeStdin = async (args, stdin, cwd) => { return spawn( "node", [ - repositoryPath("markdownlint-cli2.js"), + repositoryPath("markdownlint-cli2.mjs"), ...args ], { diff --git a/test/markdownlint-cli2-test-exports.js b/test/markdownlint-cli2-test-exports.mjs similarity index 82% rename from test/markdownlint-cli2-test-exports.js rename to test/markdownlint-cli2-test-exports.mjs index 74b7bbda..4934515c 100644 --- a/test/markdownlint-cli2-test-exports.js +++ b/test/markdownlint-cli2-test-exports.mjs @@ -5,12 +5,12 @@ import importWithTypeJson from "./import-with-type-json.mjs"; const packageJson = await importWithTypeJson("../package.json"); const exportMappings = new Map([ - [ ".", "../markdownlint-cli2.js" ], + [ ".", "../markdownlint-cli2.mjs" ], [ "./markdownlint", "markdownlint" ], [ "./markdownlint/helpers", "markdownlint/helpers" ], - [ "./parsers", "../parsers/parsers.js" ], - [ "./parsers/jsonc", "../parsers/jsonc-parse.js" ], - [ "./parsers/yaml", "../parsers/yaml-parse.js" ] + [ "./parsers", "../parsers/parsers.mjs" ], + [ "./parsers/jsonc", "../parsers/jsonc-parse.mjs" ], + [ "./parsers/yaml", "../parsers/yaml-parse.mjs" ] ]); test("exportMappings", (t) => { diff --git a/test/markdownlint-cli2-test-fs.js b/test/markdownlint-cli2-test-fs.mjs similarity index 91% rename from test/markdownlint-cli2-test-fs.js rename to test/markdownlint-cli2-test-fs.mjs index 35bc42eb..8306a1c2 100644 --- a/test/markdownlint-cli2-test-fs.js +++ b/test/markdownlint-cli2-test-fs.mjs @@ -1,9 +1,9 @@ // @ts-check import path from "node:path"; -import { "main" as markdownlintCli2 } from "../markdownlint-cli2.js"; -import testCases from "./markdownlint-cli2-test-cases.js"; -import FsMock from "./fs-mock.js"; +import { "main" as markdownlintCli2 } from "../markdownlint-cli2.mjs"; +import testCases from "./markdownlint-cli2-test-cases.mjs"; +import FsMock from "./fs-mock.mjs"; const mockDirectory = "/mock"; const linesEndingWithNewLine = diff --git a/test/markdownlint-cli2-test-main.js b/test/markdownlint-cli2-test-main.mjs similarity index 93% rename from test/markdownlint-cli2-test-main.js rename to test/markdownlint-cli2-test-main.mjs index cbe93e84..067e3bec 100644 --- a/test/markdownlint-cli2-test-main.js +++ b/test/markdownlint-cli2-test-main.mjs @@ -1,8 +1,8 @@ // @ts-check import path from "node:path"; -import { "main" as markdownlintCli2 } from "../markdownlint-cli2.js"; -import testCases from "./markdownlint-cli2-test-cases.js"; +import { "main" as markdownlintCli2 } from "../markdownlint-cli2.mjs"; +import testCases from "./markdownlint-cli2-test-cases.mjs"; const linesEndingWithNewLine = (lines) => lines.map((line) => `${line}\n`).join(""); diff --git a/test/markdownlint-cli2-test.js b/test/markdownlint-cli2-test.mjs similarity index 98% rename from test/markdownlint-cli2-test.js rename to test/markdownlint-cli2-test.mjs index bb068e5c..b4f25548 100644 --- a/test/markdownlint-cli2-test.js +++ b/test/markdownlint-cli2-test.mjs @@ -8,11 +8,11 @@ import test from "ava"; import { globby } from "globby"; import importWithTypeJson from "./import-with-type-json.mjs"; const packageJson = await importWithTypeJson("../package.json"); -import { "main" as markdownlintCli2 } from "../markdownlint-cli2.js"; -import jsoncParse from "../parsers/jsonc-parse.js"; -import yamlParse from "../parsers/yaml-parse.js"; -import FsMock from "./fs-mock.js"; -import FsVirtual from "../webworker/fs-virtual.js"; +import { "main" as markdownlintCli2 } from "../markdownlint-cli2.mjs"; +import jsoncParse from "../parsers/jsonc-parse.mjs"; +import yamlParse from "../parsers/yaml-parse.mjs"; +import FsMock from "./fs-mock.mjs"; +import FsVirtual from "../webworker/fs-virtual.mjs"; import firstLine from "./customRules/rules/first-line.cjs"; const schemaIdVersionRe = /^.*v(?\d+\.\d+\.\d+).*$/u; diff --git a/test/merge-options-test.js b/test/merge-options-test.mjs similarity index 98% rename from test/merge-options-test.js rename to test/merge-options-test.mjs index 7ceabf17..ada5c695 100644 --- a/test/merge-options-test.js +++ b/test/merge-options-test.mjs @@ -1,7 +1,7 @@ // @ts-check import test from "ava"; -import mergeOptions from "../merge-options.js"; +import mergeOptions from "../merge-options.mjs"; test("null/null", (t) => { t.plan(1); diff --git a/test/resolve-and-require-test.js b/test/resolve-and-require-test.mjs similarity index 97% rename from test/resolve-and-require-test.js rename to test/resolve-and-require-test.mjs index 93f50190..cfeb23ef 100644 --- a/test/resolve-and-require-test.js +++ b/test/resolve-and-require-test.mjs @@ -2,7 +2,7 @@ import test from "ava"; import path from "node:path"; -import resolveAndRequire from "../resolve-and-require.js"; +import resolveAndRequire from "../resolve-and-require.mjs"; import { createRequire } from "node:module"; const require = createRequire(import.meta.url); diff --git a/test/snapshots/markdownlint-cli2-test-exec.mjs.md b/test/snapshots/markdownlint-cli2-test-exec.mjs.md new file mode 100644 index 00000000..a0eb78ec --- /dev/null +++ b/test/snapshots/markdownlint-cli2-test-exec.mjs.md @@ -0,0 +1,6414 @@ +# Snapshot report for `test/markdownlint-cli2-test-exec.mjs` + +The actual snapshot is saved in `markdownlint-cli2-test-exec.mjs.snap`. + +Generated by [AVA](https://avajs.dev). + +## no-arguments (exec) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + https://github.com/DavidAnson/markdownlint-cli2␊ + ␊ + Syntax: markdownlint-cli2 glob0 [glob1] [...] [globN] [--config file] [--fix] [--help]␊ + ␊ + Glob expressions (from the globby library):␊ + - * matches any number of characters, but not /␊ + - ? matches a single character, but not /␊ + - ** matches any number of characters, including /␊ + - {} allows for a comma-separated list of "or" expressions␊ + - ! or # at the beginning of a pattern negate the match␊ + - : at the beginning identifies a literal file path␊ + - - as a glob represents standard input (stdin)␊ + ␊ + Dot-only glob:␊ + - The command "markdownlint-cli2 ." would lint every file in the current directory tree which is probably not intended␊ + - Instead, it is mapped to "markdownlint-cli2 *.{md,markdown}" which lints all Markdown files in the current directory␊ + - To lint every file in the current directory tree, the command "markdownlint-cli2 **" can be used instead␊ + ␊ + Optional parameters:␊ + - --config specifies the path to a configuration file to define the base configuration␊ + - --fix updates files to resolve fixable issues (can be overridden in configuration)␊ + - --help writes this message to the console and exits without doing anything else␊ + - --no-globs ignores the "globs" property if present in the top-level options object␊ + ␊ + Configuration via:␊ + - .markdownlint-cli2.jsonc␊ + - .markdownlint-cli2.yaml␊ + - .markdownlint-cli2.cjs or .markdownlint-cli2.mjs␊ + - .markdownlint.jsonc or .markdownlint.json␊ + - .markdownlint.yaml or .markdownlint.yml␊ + - .markdownlint.cjs or .markdownlint.mjs␊ + - package.json␊ + ␊ + Cross-platform compatibility:␊ + - UNIX and Windows shells expand globs according to different rules; quoting arguments is recommended␊ + - Some Windows shells don't handle single-quoted (') arguments well; double-quote (") is recommended␊ + - Shells that expand globs do not support negated patterns (!node_modules); quoting is required here␊ + - Some UNIX shells parse exclamation (!) in double-quotes; hashtag (#) is recommended in these cases␊ + - The path separator is forward slash (/) on all platforms; backslash (\\) is automatically converted␊ + - On any platform, passing the parameter "--" causes all remaining parameters to be treated literally␊ + ␊ + The most compatible syntax for cross-platform support:␊ + $ markdownlint-cli2 "**/*.md" "#node_modules"`, + } + +## no-arguments-config-arg (exec) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + https://github.com/DavidAnson/markdownlint-cli2␊ + ␊ + Syntax: markdownlint-cli2 glob0 [glob1] [...] [globN] [--config file] [--fix] [--help]␊ + ␊ + Glob expressions (from the globby library):␊ + - * matches any number of characters, but not /␊ + - ? matches a single character, but not /␊ + - ** matches any number of characters, including /␊ + - {} allows for a comma-separated list of "or" expressions␊ + - ! or # at the beginning of a pattern negate the match␊ + - : at the beginning identifies a literal file path␊ + - - as a glob represents standard input (stdin)␊ + ␊ + Dot-only glob:␊ + - The command "markdownlint-cli2 ." would lint every file in the current directory tree which is probably not intended␊ + - Instead, it is mapped to "markdownlint-cli2 *.{md,markdown}" which lints all Markdown files in the current directory␊ + - To lint every file in the current directory tree, the command "markdownlint-cli2 **" can be used instead␊ + ␊ + Optional parameters:␊ + - --config specifies the path to a configuration file to define the base configuration␊ + - --fix updates files to resolve fixable issues (can be overridden in configuration)␊ + - --help writes this message to the console and exits without doing anything else␊ + - --no-globs ignores the "globs" property if present in the top-level options object␊ + ␊ + Configuration via:␊ + - .markdownlint-cli2.jsonc␊ + - .markdownlint-cli2.yaml␊ + - .markdownlint-cli2.cjs or .markdownlint-cli2.mjs␊ + - .markdownlint.jsonc or .markdownlint.json␊ + - .markdownlint.yaml or .markdownlint.yml␊ + - .markdownlint.cjs or .markdownlint.mjs␊ + - package.json␊ + ␊ + Cross-platform compatibility:␊ + - UNIX and Windows shells expand globs according to different rules; quoting arguments is recommended␊ + - Some Windows shells don't handle single-quoted (') arguments well; double-quote (") is recommended␊ + - Shells that expand globs do not support negated patterns (!node_modules); quoting is required here␊ + - Some UNIX shells parse exclamation (!) in double-quotes; hashtag (#) is recommended in these cases␊ + - The path separator is forward slash (/) on all platforms; backslash (\\) is automatically converted␊ + - On any platform, passing the parameter "--" causes all remaining parameters to be treated literally␊ + ␊ + The most compatible syntax for cross-platform support:␊ + $ markdownlint-cli2 "**/*.md" "#node_modules"`, + } + +## missing-argument-config-arg (exec) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + https://github.com/DavidAnson/markdownlint-cli2␊ + ␊ + Syntax: markdownlint-cli2 glob0 [glob1] [...] [globN] [--config file] [--fix] [--help]␊ + ␊ + Glob expressions (from the globby library):␊ + - * matches any number of characters, but not /␊ + - ? matches a single character, but not /␊ + - ** matches any number of characters, including /␊ + - {} allows for a comma-separated list of "or" expressions␊ + - ! or # at the beginning of a pattern negate the match␊ + - : at the beginning identifies a literal file path␊ + - - as a glob represents standard input (stdin)␊ + ␊ + Dot-only glob:␊ + - The command "markdownlint-cli2 ." would lint every file in the current directory tree which is probably not intended␊ + - Instead, it is mapped to "markdownlint-cli2 *.{md,markdown}" which lints all Markdown files in the current directory␊ + - To lint every file in the current directory tree, the command "markdownlint-cli2 **" can be used instead␊ + ␊ + Optional parameters:␊ + - --config specifies the path to a configuration file to define the base configuration␊ + - --fix updates files to resolve fixable issues (can be overridden in configuration)␊ + - --help writes this message to the console and exits without doing anything else␊ + - --no-globs ignores the "globs" property if present in the top-level options object␊ + ␊ + Configuration via:␊ + - .markdownlint-cli2.jsonc␊ + - .markdownlint-cli2.yaml␊ + - .markdownlint-cli2.cjs or .markdownlint-cli2.mjs␊ + - .markdownlint.jsonc or .markdownlint.json␊ + - .markdownlint.yaml or .markdownlint.yml␊ + - .markdownlint.cjs or .markdownlint.mjs␊ + - package.json␊ + ␊ + Cross-platform compatibility:␊ + - UNIX and Windows shells expand globs according to different rules; quoting arguments is recommended␊ + - Some Windows shells don't handle single-quoted (') arguments well; double-quote (") is recommended␊ + - Shells that expand globs do not support negated patterns (!node_modules); quoting is required here␊ + - Some UNIX shells parse exclamation (!) in double-quotes; hashtag (#) is recommended in these cases␊ + - The path separator is forward slash (/) on all platforms; backslash (\\) is automatically converted␊ + - On any platform, passing the parameter "--" causes all remaining parameters to be treated literally␊ + ␊ + The most compatible syntax for cross-platform support:␊ + $ markdownlint-cli2 "**/*.md" "#node_modules"`, + } + +## one-argument-config-arg (exec) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + https://github.com/DavidAnson/markdownlint-cli2␊ + ␊ + Syntax: markdownlint-cli2 glob0 [glob1] [...] [globN] [--config file] [--fix] [--help]␊ + ␊ + Glob expressions (from the globby library):␊ + - * matches any number of characters, but not /␊ + - ? matches a single character, but not /␊ + - ** matches any number of characters, including /␊ + - {} allows for a comma-separated list of "or" expressions␊ + - ! or # at the beginning of a pattern negate the match␊ + - : at the beginning identifies a literal file path␊ + - - as a glob represents standard input (stdin)␊ + ␊ + Dot-only glob:␊ + - The command "markdownlint-cli2 ." would lint every file in the current directory tree which is probably not intended␊ + - Instead, it is mapped to "markdownlint-cli2 *.{md,markdown}" which lints all Markdown files in the current directory␊ + - To lint every file in the current directory tree, the command "markdownlint-cli2 **" can be used instead␊ + ␊ + Optional parameters:␊ + - --config specifies the path to a configuration file to define the base configuration␊ + - --fix updates files to resolve fixable issues (can be overridden in configuration)␊ + - --help writes this message to the console and exits without doing anything else␊ + - --no-globs ignores the "globs" property if present in the top-level options object␊ + ␊ + Configuration via:␊ + - .markdownlint-cli2.jsonc␊ + - .markdownlint-cli2.yaml␊ + - .markdownlint-cli2.cjs or .markdownlint-cli2.mjs␊ + - .markdownlint.jsonc or .markdownlint.json␊ + - .markdownlint.yaml or .markdownlint.yml␊ + - .markdownlint.cjs or .markdownlint.mjs␊ + - package.json␊ + ␊ + Cross-platform compatibility:␊ + - UNIX and Windows shells expand globs according to different rules; quoting arguments is recommended␊ + - Some Windows shells don't handle single-quoted (') arguments well; double-quote (") is recommended␊ + - Shells that expand globs do not support negated patterns (!node_modules); quoting is required here␊ + - Some UNIX shells parse exclamation (!) in double-quotes; hashtag (#) is recommended in these cases␊ + - The path separator is forward slash (/) on all platforms; backslash (\\) is automatically converted␊ + - On any platform, passing the parameter "--" causes all remaining parameters to be treated literally␊ + ␊ + The most compatible syntax for cross-platform support:␊ + $ markdownlint-cli2 "**/*.md" "#node_modules"`, + } + +## no-files (exec) + +> Snapshot 1 + + { + exitCode: 0, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: nothing-matches␊ + Linting: 0 file(s)␊ + Summary: 0 error(s)`, + } + +## no-files-exclamation (exec) + +> Snapshot 1 + + { + exitCode: 0, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: !␊ + Linting: 0 file(s)␊ + Summary: 0 error(s)`, + } + +## no-files-octothorpe (exec) + +> Snapshot 1 + + { + exitCode: 0, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: !␊ + Linting: 0 file(s)␊ + Summary: 0 error(s)`, + } + +## all-ok (exec) + +> Snapshot 1 + + { + exitCode: 0, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md **/*.markdown␊ + Linting: 5 file(s)␊ + Summary: 0 error(s)`, + } + +## no-config (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/UPPER.MD:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + dir/UPPER.MD:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/UPPER.MD:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir/UPPER.MD:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + dir/UPPER.MD:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **␊ + Linting: 4 file(s)␊ + Summary: 19 error(s)`, + } + +## no-config-ignore (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: ** !dir␊ + Linting: 1 file(s)␊ + Summary: 5 error(s)`, + } + +## no-config-unignore (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: ** !dir dir/subdir␊ + Linting: 2 file(s)␊ + Summary: 10 error(s)`, + } + +## no-config-ignore-hash (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: ** !dir␊ + Linting: 1 file(s)␊ + Summary: 5 error(s)`, + } + +## file-paths-as-args (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: viewme.md ./dir/subdir/info.md␊ + Linting: 2 file(s)␊ + Summary: 10 error(s)`, + } + +## dot (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `info.markdown:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + info.markdown:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + info.markdown:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + info.markdown:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + info.markdown:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: *.{md,markdown}␊ + Linting: 2 file(s)␊ + Summary: 10 error(s)`, + } + +## dotfiles (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `.dir/.about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + .dir/.about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + .dir/.about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + .dir/.about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + .dir/.subdir/.info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + .dir/.subdir/.info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + .dir/.subdir/.info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + .dir/.subdir/.info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + .dir/.subdir/.info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + .dir/.subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + .dir/.subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + .dir/.subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + .dir/.subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + .dir/.subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + .dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + .dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + .dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + .dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + .dir/subdir/.info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + .dir/subdir/.info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + .dir/subdir/.info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + .dir/subdir/.info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + .dir/subdir/.info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + .dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + .dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + .dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + .dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + .dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + .viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + .viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + .viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + .viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + .viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + dir/.about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/.about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/.about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/.about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/.subdir/.info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/.subdir/.info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/.subdir/.info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/.subdir/.info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/.subdir/.info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/.subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/.subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/.subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/.subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/.subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/.info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/.info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/.info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/.info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/.info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **␊ + Linting: 14 file(s)␊ + Summary: 66 error(s)`, + } + +## dotfiles-exclude (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `.viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + .viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + .viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + .viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + .viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + dir/.about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/.about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/.about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/.about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/.subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/.subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/.subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/.subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/.subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: ** !.dir !**/.info.md␊ + Linting: 6 file(s)␊ + Summary: 28 error(s)`, + } + +## globs (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/subdir/info.markdown:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.markdown:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.markdown:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.markdown:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.markdown:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md !dir/about.md **/*.markdown␊ + Linting: 2 file(s)␊ + Summary: 10 error(s)`, + } + +## globs-and-args (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.markdown:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.markdown:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.markdown:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.markdown:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.markdown:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.markdown **/*.md␊ + Linting: 3 file(s)␊ + Summary: 14 error(s)`, + } + +## no-globs-and-args (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.markdown:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.markdown:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.markdown:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.markdown:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.markdown:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: dir/about.md dir/**/*.markdown␊ + Linting: 2 file(s)␊ + Summary: 9 error(s)`, + } + +## no-globs-and-empty-args (exec) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + https://github.com/DavidAnson/markdownlint-cli2␊ + ␊ + Syntax: markdownlint-cli2 glob0 [glob1] [...] [globN] [--config file] [--fix] [--help]␊ + ␊ + Glob expressions (from the globby library):␊ + - * matches any number of characters, but not /␊ + - ? matches a single character, but not /␊ + - ** matches any number of characters, including /␊ + - {} allows for a comma-separated list of "or" expressions␊ + - ! or # at the beginning of a pattern negate the match␊ + - : at the beginning identifies a literal file path␊ + - - as a glob represents standard input (stdin)␊ + ␊ + Dot-only glob:␊ + - The command "markdownlint-cli2 ." would lint every file in the current directory tree which is probably not intended␊ + - Instead, it is mapped to "markdownlint-cli2 *.{md,markdown}" which lints all Markdown files in the current directory␊ + - To lint every file in the current directory tree, the command "markdownlint-cli2 **" can be used instead␊ + ␊ + Optional parameters:␊ + - --config specifies the path to a configuration file to define the base configuration␊ + - --fix updates files to resolve fixable issues (can be overridden in configuration)␊ + - --help writes this message to the console and exits without doing anything else␊ + - --no-globs ignores the "globs" property if present in the top-level options object␊ + ␊ + Configuration via:␊ + - .markdownlint-cli2.jsonc␊ + - .markdownlint-cli2.yaml␊ + - .markdownlint-cli2.cjs or .markdownlint-cli2.mjs␊ + - .markdownlint.jsonc or .markdownlint.json␊ + - .markdownlint.yaml or .markdownlint.yml␊ + - .markdownlint.cjs or .markdownlint.mjs␊ + - package.json␊ + ␊ + Cross-platform compatibility:␊ + - UNIX and Windows shells expand globs according to different rules; quoting arguments is recommended␊ + - Some Windows shells don't handle single-quoted (') arguments well; double-quote (") is recommended␊ + - Shells that expand globs do not support negated patterns (!node_modules); quoting is required here␊ + - Some UNIX shells parse exclamation (!) in double-quotes; hashtag (#) is recommended in these cases␊ + - The path separator is forward slash (/) on all platforms; backslash (\\) is automatically converted␊ + - On any platform, passing the parameter "--" causes all remaining parameters to be treated literally␊ + ␊ + The most compatible syntax for cross-platform support:␊ + $ markdownlint-cli2 "**/*.md" "#node_modules"`, + } + +## globs-and-ignores (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/subdir/info.markdown:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.markdown:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.markdown:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.markdown:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.markdown:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md **/*.markdown !dir/about.md␊ + Linting: 2 file(s)␊ + Summary: 10 error(s)`, + } + +## markdownlint-json (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 11 error(s)`, + } + +## markdownlint-json-extends (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 11 error(s)`, + } + +## markdownlint-jsonc (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 1 file(s)␊ + Summary: 4 error(s)`, + } + +## markdownlint-yaml (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 11 error(s)`, + } + +## markdownlint-yml (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 1 file(s)␊ + Summary: 4 error(s)`, + } + +## markdownlint-cjs (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 11 error(s)`, + } + +## markdownlint-mjs (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 11 error(s)`, + } + +## markdownlint-json-yaml (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 1 file(s)␊ + Summary: 4 error(s)`, + } + +## markdownlint-json-invalid (exec) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: 'markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)', + } + +## markdownlint-yaml-invalid (exec) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: 'markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)', + } + +## markdownlint-cjs-invalid (exec) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: 'markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)', + } + +## markdownlint-mjs-invalid (exec) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: 'markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)', + } + +## markdownlint-json-mismatch (exec) + +> Snapshot 1 + + { + exitCode: 0, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: viewme.md␊ + Linting: 1 file(s)␊ + Summary: 0 error(s)`, + } + +## markdownlint-yaml-mismatch (exec) + +> Snapshot 1 + + { + exitCode: 0, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: viewme.md␊ + Linting: 1 file(s)␊ + Summary: 0 error(s)`, + } + +## markdownlint-cli2-jsonc-mismatch (exec) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: 'markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)', + } + +## markdownlint-cli2-yaml-mismatch (exec) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: 'markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)', + } + +## markdownlint-json-mismatch-config (exec) + +> Snapshot 1 + + { + exitCode: 0, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: viewme.md␊ + Linting: 1 file(s)␊ + Summary: 0 error(s)`, + } + +## markdownlint-yaml-mismatch-config (exec) + +> Snapshot 1 + + { + exitCode: 0, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: viewme.md␊ + Linting: 1 file(s)␊ + Summary: 0 error(s)`, + } + +## markdownlint-cli2-jsonc-mismatch-config (exec) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: 'markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)', + } + +## markdownlint-cli2-yaml-mismatch-config (exec) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: 'markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)', + } + +## markdownlint-cli2-jsonc (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 10 error(s)`, + } + +## markdownlint-cli2-jsonc-example (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `extended-ascii.md:1:9 extended-ascii Only extended ASCII characters are allowed [Blocked character: '✅']␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: '', + } + +## markdownlint-cli2-jsonc-invalid (exec) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: 'markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)', + } + +## markdownlint-cli2-yaml (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 10 error(s)`, + } + +## markdownlint-cli2-yaml-example (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `extended-ascii.md:1:9 extended-ascii Only extended ASCII characters are allowed [Blocked character: '✅']␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: '', + } + +## markdownlint-cli2-yaml-invalid (exec) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: 'markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)', + } + +## markdownlint-cli2-cjs (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 10 error(s)`, + } + +## markdownlint-cli2-mjs (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 10 error(s)`, + } + +## markdownlint-cli2-cjs-invalid (exec) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: 'markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)', + } + +## markdownlint-cli2-mjs-invalid (exec) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: 'markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)', + } + +## markdownlint-cli2-extends (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `cjs/viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + cjs/viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + jsonc/viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + jsonc/viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + package/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + package/viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + yaml/viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + yaml/viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 4 file(s)␊ + Summary: 8 error(s)`, + } + +## config-option-extends (exec) + +> Snapshot 1 + + { + exitCode: 0, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: viewme.md␊ + Linting: 1 file(s)␊ + Summary: 0 error(s)`, + } + +## config-overrides-options (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: viewme.md␊ + Linting: 1 file(s)␊ + Summary: 3 error(s)`, + } + +## ignores (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `alt1/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + alt1/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + alt1/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + alt1/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + alt1/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + alt1/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + alt1/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + alt1/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + alt1/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + alt2/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + alt2/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + alt2/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + alt2/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + alt2/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir4/subdir/info.markdown:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir4/subdir/info.markdown:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir4/subdir/info.markdown:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir4/subdir/info.markdown:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir4/subdir/info.markdown:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md **/*.markdown !*.md !dir*/*/*.md !dir7 !dir8/subdir␊ + Linting: 13 file(s)␊ + Summary: 23 error(s)`, + } + +## sibling-directory (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `../markdownlint-json/dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + ../markdownlint-json/dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + ../markdownlint-json/dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + ../markdownlint-json/dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + ../markdownlint-json/dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + ../markdownlint-json/dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + ../markdownlint-json/dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + ../markdownlint-json/viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + ../markdownlint-json/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + ../markdownlint-json/viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + ../markdownlint-json/viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: ../markdownlint-json/**/*.md␊ + Linting: 3 file(s)␊ + Summary: 11 error(s)`, + } + +## sibling-directory-options (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `../no-config/dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + ../no-config/dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + ../no-config/dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + ../no-config/dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + ../no-config/dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + ../no-config/dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + ../no-config/viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + ../no-config/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + ../no-config/viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + ../no-config/viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: ../no-config/**/*.md␊ + Linting: 3 file(s)␊ + Summary: 10 error(s)`, + } + +## noInlineConfig (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:7:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir2/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:16:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 4 file(s)␊ + Summary: 11 error(s)`, + } + +## showFound (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir2/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Found:␊ + dir/about.md␊ + dir/subdir/info.md␊ + dir/subdir2/info.md␊ + viewme.md␊ + Linting: 4 file(s)␊ + Summary: 7 error(s)`, + } + +## frontMatter (exec) + +> Snapshot 1 + + { + exitCode: 0, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 0 error(s)`, + } + +## gitignore (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/UPPER.MD:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + dir/UPPER.MD:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/UPPER.MD:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir/UPPER.MD:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + dir/UPPER.MD:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.{md,MD}␊ + Linting: 2 file(s)␊ + Summary: 9 error(s)`, + } + +## gitignore-root-only (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/UPPER.MD:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + dir/UPPER.MD:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/UPPER.MD:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir/UPPER.MD:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + dir/UPPER.MD:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.{md,MD}␊ + Linting: 3 file(s)␊ + Summary: 14 error(s)`, + } + +## literal-files (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir(1)/(view)me.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + dir(1)/(view)me.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir(1)/(view)me.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir(1)/(view)me.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + dir(1)/(view)me.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + dir(1)/viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + dir(1)/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir(1)/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir(1)/viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + dir(1)/viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + dir/view(me).md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + dir/view(me).md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/view(me).md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir/view(me).md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + dir/view(me).md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + view(me).md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + view(me).md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + view(me).md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + view(me).md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + view(me).md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: :view(me).md :dir/view(me).md :dir(1)/viewme.md :dir(1)/(view)me.md␊ + Linting: 4 file(s)␊ + Summary: 20 error(s)`, + } + +## literal-files-absolute (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `sentinel/dir(1)/(view)me.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + sentinel/dir(1)/(view)me.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + sentinel/dir(1)/(view)me.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + sentinel/dir(1)/(view)me.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + sentinel/dir(1)/(view)me.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + sentinel/dir/view(me).md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + sentinel/dir/view(me).md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + sentinel/dir/view(me).md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + sentinel/dir/view(me).md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + sentinel/dir/view(me).md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: :[PATH]/dir(1)/(view)me.md sentinel/dir␊ + Linting: 2 file(s)␊ + Summary: 10 error(s)`, + } + +## fix (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:6:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir2/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir2/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir2/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir2/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir2/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:5 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 4 file(s)␊ + Summary: 8 error(s)`, + } + +## fix-scenarios (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `no-fixable-issues.md:3:13 MD033/no-inline-html Inline HTML [Element: br]␊ + no-fixable-issues.md:5 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "\`\`\`"]␊ + no-fixable-issues.md:9 MD036/no-emphasis-as-heading Emphasis used instead of a heading [Context: "Emphasis as heading"]␊ + some-fixable-issues.md:3:13 MD033/no-inline-html Inline HTML [Element: br]␊ + some-fixable-issues.md:7 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "\`\`\`"]␊ + some-fixable-issues.md:13 MD036/no-emphasis-as-heading Emphasis used instead of a heading [Context: "Emphasis as heading"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 4 file(s)␊ + Summary: 6 error(s)`, + } + +## fix-default-true-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir2/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir2/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir2/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir2/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir2/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir2/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir2/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir2/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir2/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir2/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir3/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir3/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir3/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir3/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir3/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir3/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + viewme.md:5 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 7 file(s)␊ + Summary: 19 error(s)`, + } + +## fix-default-true-override-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 1 file(s)␊ + Summary: 5 error(s)`, + } + +## config-files-.markdownlint-cli2.jsonc-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)`, + } + +## config-files-.markdownlint-cli2.jsonc-alternate-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)`, + } + +## config-files-.markdownlint-cli2.jsonc-absolute-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)`, + } + +## config-files-.markdownlint-cli2.yaml-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)`, + } + +## config-files-.markdownlint-cli2.yaml-alternate-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)`, + } + +## config-files-.markdownlint-cli2.yaml-absolute-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)`, + } + +## config-files-.markdownlint-cli2.cjs-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)`, + } + +## config-files-.markdownlint-cli2.cjs-alternate-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)`, + } + +## config-files-.markdownlint-cli2.cjs-absolute-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)`, + } + +## config-files-.markdownlint-cli2.mjs-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)`, + } + +## config-files-.markdownlint-cli2.mjs-alternate-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)`, + } + +## config-files-.markdownlint-cli2.mjs-absolute-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)`, + } + +## config-files-.markdownlint.jsonc-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)`, + } + +## config-files-.markdownlint.jsonc-alternate-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)`, + } + +## config-files-.markdownlint.jsonc-absolute-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)`, + } + +## config-files-.markdownlint.json-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)`, + } + +## config-files-.markdownlint.json-alternate-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)`, + } + +## config-files-.markdownlint.json-absolute-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)`, + } + +## config-files-.markdownlint.yaml-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)`, + } + +## config-files-.markdownlint.yaml-alternate-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)`, + } + +## config-files-.markdownlint.yaml-absolute-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)`, + } + +## config-files-.markdownlint.yml-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)`, + } + +## config-files-.markdownlint.yml-alternate-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)`, + } + +## config-files-.markdownlint.yml-absolute-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)`, + } + +## config-files-.markdownlint.cjs-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)`, + } + +## config-files-.markdownlint.cjs-alternate-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)`, + } + +## config-files-.markdownlint.cjs-absolute-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)`, + } + +## config-files-.markdownlint.mjs-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)`, + } + +## config-files-.markdownlint.mjs-alternate-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)`, + } + +## config-files-.markdownlint.mjs-absolute-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)`, + } + +## config-files-invalid.markdownlint-cli2.jsonc-invalid-arg (exec) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: 'markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)', + } + +## config-files-invalid.markdownlint-cli2.cjs-invalid-arg (exec) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: 'markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)', + } + +## config-files-invalid.markdownlint-cli2.mjs-invalid-arg (exec) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: 'markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)', + } + +## config-files-invalid.markdownlint.json-invalid-arg (exec) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: 'markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)', + } + +## config-files-invalid.markdownlint.yaml-invalid-arg (exec) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: 'markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)', + } + +## config-files-invalid.markdownlint.cjs-invalid-arg (exec) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: 'markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)', + } + +## config-files-invalid.markdownlint.mjs-invalid-arg (exec) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: 'markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)', + } + +## config-files-.markdownlint-cli2.jsonc-redundant-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: *.md␊ + Linting: 1 file(s)␊ + Summary: 4 error(s)`, + } + +## config-files-.markdownlint.json-redundant-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: *.md␊ + Linting: 1 file(s)␊ + Summary: 4 error(s)`, + } + +## config-files-.markdownlint.cjs-redundant-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: *.md␊ + Linting: 1 file(s)␊ + Summary: 4 error(s)`, + } + +## config-file-unrecognized-arg (exec) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: 'markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)', + } + +## config-relative-commonjs-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `link.md 3 MD039/no-space-in-links␊ + link.md 3 MD039/no-space-in-links␊ + viewme.md 3 any-blockquote␊ + viewme.md 3 MD009/no-trailing-spaces␊ + viewme.md 5 MD012/no-multiple-blanks␊ + viewme.md 12 MD019/no-multiple-space-atx␊ + viewme.md 14 MD047/single-trailing-newline`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: viewme.md link.md␊ + Linting: 2 file(s)␊ + Summary: 7 error(s)`, + } + +## config-relative-module-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `link.md 3 MD039/no-space-in-links␊ + link.md 3 MD039/no-space-in-links␊ + viewme.md 3 any-blockquote␊ + viewme.md 3 MD009/no-trailing-spaces␊ + viewme.md 5 MD012/no-multiple-blanks␊ + viewme.md 12 MD019/no-multiple-space-atx␊ + viewme.md 14 MD047/single-trailing-newline`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: viewme.md link.md␊ + Linting: 2 file(s)␊ + Summary: 7 error(s)`, + } + +## config-with-fix-arg (exec) + +> Snapshot 1 + + { + exitCode: 0, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: viewme.md info.md␊ + Linting: 2 file(s)␊ + Summary: 0 error(s)`, + } + +## package-json (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 10 error(s)`, + } + +## package-json-fix (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 2 error(s)`, + } + +## package-json-invalid (exec) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: 'markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)', + } + +## package-json-nested (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 10 error(s)`, + } + +## customRules (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1 every-n-lines Rule that reports an error every N lines [This rule threw an exception: getLineMetadata is not a function]␊ + dir/about.md:1 first-line Rule that reports an error for the first line␊ + dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/hr.md:1:6 extended-ascii Only extended ASCII characters are allowed [Blocked character: '✅']␊ + dir/subdir/hr.md:1 first-line Rule that reports an error for the first line␊ + dir/subdir/hr.md:3 sample-rule-commonjs Sample rule (commonjs) [Sample error for hr]␊ + dir/subdir/hr.md:3 sample-rule-module Sample rule (module) [Sample error for hr]␊ + dir/subdir/info.md:1 first-line Rule that reports an error for the first line␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/subdir2/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir2/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir2/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir2/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir2/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/subdir3/info.md:1 every-n-lines Rule that reports an error every N lines [This rule threw an exception: getLineMetadata is not a function]␊ + dir/subdir3/info.md:1 first-line Rule that reports an error for the first line␊ + dir/subdir3/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir3/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir3/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir3/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir3/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir2/hr.md:3 sample-rule-commonjs Sample rule (commonjs) [Sample error for hr]␊ + dir2/hr.md:3 sample-rule-module Sample rule (module) [Sample error for hr]␊ + dir3/hr.md:1 every-n-lines Rule that reports an error every N lines [This rule threw an exception: getLineMetadata is not a function]␊ + dir3/hr.md:1 first-line Rule that reports an error for the first line␊ + dir3/hr.md:2 second-line Rule that reports an error for the second line␊ + dir3/hr.md:3 sample-rule-commonjs Sample rule (commonjs) [Sample error for hr]␊ + dir3/hr.md:3 sample-rule-module Sample rule (module) [Sample error for hr]␊ + dir4/hr.md:3 sample-rule-module Sample rule (module) [Sample error for hr]␊ + viewme.md:1 every-n-lines Rule that reports an error every N lines [This rule threw an exception: getLineMetadata is not a function]␊ + viewme.md:1 first-line Rule that reports an error for the first line␊ + viewme.md:3 any-blockquote Rule that reports an error for any blockquote [Blockquote spans 1 line(s).] [Context: "> Tagli"]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 9 file(s)␊ + Summary: 44 error(s)`, + } + +## customRules-pre-imported (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `viewme.md:3 any-blockquote Rule that reports an error for any blockquote [Blockquote spans 1 line(s).] [Context: "> Tagli"]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 1 file(s)␊ + Summary: 6 error(s)`, + } + +## customRules-missing (exec) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: .*`, + } + +## customRules-invalid (exec) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: .*␊ + Linting: 1 file(s)`, + } + +## customRules-throws (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `viewme.md:1 throws Rule that throws during execution [This rule threw an exception: Simulated bug]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 1 file(s)␊ + Summary: 6 error(s)`, + } + +## markdownItPlugins (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `file/link.md:3:7 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + file/link.md:3:12 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + function/link.md:3:7 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + function/link.md:3:12 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + module/link.md:3:7 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + module/link.md:3:12 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + multiple/emoji.md:3:15 MD044/proper-names Proper names should have the correct capitalization [Expected: SMILE; Actual: smile]␊ + multiple/emoji.md:5:13 MD044/proper-names Proper names should have the correct capitalization [Expected: FROWNING; Actual: frowning]␊ + multiple/emoji.md:15 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + pre-imported/link.md:3:7 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + pre-imported/link.md:3:12 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + single/emoji.md:15 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 6 file(s)␊ + Summary: 12 error(s)`, + } + +## markdownItPlugins-missing (exec) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: .*`, + } + +## outputFormatters (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: `[␊ + {␊ + "type": "issue",␊ + "check_name": "MD021/no-multiple-space-closed-atx",␊ + "description": "MD021/no-multiple-space-closed-atx: Multiple spaces inside hashes on closed atx style heading",␊ + "severity": "minor",␊ + "fingerprint": "8a07df476b805f34574121021e7b9bafb39f201c8aff448fb2f0dcd44a71b16c",␊ + "location": {␊ + "path": "dir/about.md",␊ + "lines": {␊ + "begin": 1␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD021/no-multiple-space-closed-atx",␊ + "description": "MD021/no-multiple-space-closed-atx: Multiple spaces inside hashes on closed atx style heading",␊ + "severity": "minor",␊ + "fingerprint": "8db764109451f15469798953956669835f36446059a4b6c686918f6eb10c6f49",␊ + "location": {␊ + "path": "dir/about.md",␊ + "lines": {␊ + "begin": 1␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD032/blanks-around-lists",␊ + "description": "MD032/blanks-around-lists: Lists should be surrounded by blank lines",␊ + "severity": "minor",␊ + "fingerprint": "6ddd22f64c0a48e6b536677a9283be74fb75ad61a988efc543c1cbe6b0b3a3bb",␊ + "location": {␊ + "path": "dir/about.md",␊ + "lines": {␊ + "begin": 4␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD029/ol-prefix",␊ + "description": "MD029/ol-prefix: Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]",␊ + "severity": "minor",␊ + "fingerprint": "e072e957ba3f9e58988e049ed727269c61b5da8f768edd0608e5d54f48564531",␊ + "location": {␊ + "path": "dir/about.md",␊ + "lines": {␊ + "begin": 5␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD022/blanks-around-headings",␊ + "description": "MD022/blanks-around-headings: Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below]",␊ + "severity": "minor",␊ + "fingerprint": "5161c78dcdb7c171057c40cdeb5d6c26f317475e1e8c549dd25c8d1ecd805b18",␊ + "location": {␊ + "path": "dir/subdir/info.md",␊ + "lines": {␊ + "begin": 1␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD041/first-line-heading/first-line-h1",␊ + "description": "MD041/first-line-heading/first-line-h1: First line in a file should be a top-level heading",␊ + "severity": "minor",␊ + "fingerprint": "f6b546238b859746049d2548037a56ec760d1bb1631b15528ef74777976f0029",␊ + "location": {␊ + "path": "dir/subdir/info.md",␊ + "lines": {␊ + "begin": 1␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD038/no-space-in-code",␊ + "description": "MD038/no-space-in-code: Spaces inside code span elements",␊ + "severity": "minor",␊ + "fingerprint": "801b456e1aebf4ccfff95bf885b0716ca6167de5634950351d43b84e74e6593a",␊ + "location": {␊ + "path": "dir/subdir/info.md",␊ + "lines": {␊ + "begin": 2␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD038/no-space-in-code",␊ + "description": "MD038/no-space-in-code: Spaces inside code span elements",␊ + "severity": "minor",␊ + "fingerprint": "74fd34146155d3a0377743f7db5967724770c076198dc10d19657518a624b064",␊ + "location": {␊ + "path": "dir/subdir/info.md",␊ + "lines": {␊ + "begin": 2␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD012/no-multiple-blanks",␊ + "description": "MD012/no-multiple-blanks: Multiple consecutive blank lines [Expected: 1; Actual: 2]",␊ + "severity": "minor",␊ + "fingerprint": "df47d6f9b7697c6afabe8ca956d32b96f083d63b5f98003e7ee07ac1139b3fa3",␊ + "location": {␊ + "path": "dir/subdir/info.md",␊ + "lines": {␊ + "begin": 4␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD009/no-trailing-spaces",␊ + "description": "MD009/no-trailing-spaces: Trailing spaces [Expected: 0 or 2; Actual: 1]",␊ + "severity": "minor",␊ + "fingerprint": "f34a01e4a119d7df262993933665d4c97cc601702eeca2814ccad9606a3ccb48",␊ + "location": {␊ + "path": "viewme.md",␊ + "lines": {␊ + "begin": 3␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD012/no-multiple-blanks",␊ + "description": "MD012/no-multiple-blanks: Multiple consecutive blank lines [Expected: 1; Actual: 2]",␊ + "severity": "minor",␊ + "fingerprint": "a3d9b647ce8d929904e64fbbb0a47223617e8985d0a4d31e674b22f919f736fb",␊ + "location": {␊ + "path": "viewme.md",␊ + "lines": {␊ + "begin": 5␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD025/single-title/single-h1",␊ + "description": "MD025/single-title/single-h1: Multiple top-level headings in the same document",␊ + "severity": "minor",␊ + "fingerprint": "47cd7b74ada622add8ce464681102cb50f7fe2a685f3436327ae39c0f13ef1e6",␊ + "location": {␊ + "path": "viewme.md",␊ + "lines": {␊ + "begin": 6␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD019/no-multiple-space-atx",␊ + "description": "MD019/no-multiple-space-atx: Multiple spaces after hash on atx style heading",␊ + "severity": "minor",␊ + "fingerprint": "399bbfaf6a26399d5927b93a23b6d18705bb380e90b3e3e85956de34a22c9c5b",␊ + "location": {␊ + "path": "viewme.md",␊ + "lines": {␊ + "begin": 12␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD047/single-trailing-newline",␊ + "description": "MD047/single-trailing-newline: Files should end with a single newline character",␊ + "severity": "minor",␊ + "fingerprint": "bf74eade0ee3301ccaa826907651e0d6925b60d517e1110c29b081c7b6ce1acf",␊ + "location": {␊ + "path": "viewme.md",␊ + "lines": {␊ + "begin": 14␊ + }␊ + }␊ + }␊ + ]`, + formatterJson: `[␊ + {␊ + "fileName": "dir/about.md",␊ + "lineNumber": 1,␊ + "ruleNames": [␊ + "MD021",␊ + "no-multiple-space-closed-atx"␊ + ],␊ + "ruleDescription": "Multiple spaces inside hashes on closed atx style heading",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md021.md",␊ + "errorDetail": null,␊ + "errorContext": "# About #",␊ + "errorRange": [␊ + 3,␊ + 1␊ + ],␊ + "fixInfo": {␊ + "editColumn": 3,␊ + "deleteCount": 1␊ + }␊ + },␊ + {␊ + "fileName": "dir/about.md",␊ + "lineNumber": 1,␊ + "ruleNames": [␊ + "MD021",␊ + "no-multiple-space-closed-atx"␊ + ],␊ + "ruleDescription": "Multiple spaces inside hashes on closed atx style heading",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md021.md",␊ + "errorDetail": null,␊ + "errorContext": "# About #",␊ + "errorRange": [␊ + 10,␊ + 1␊ + ],␊ + "fixInfo": {␊ + "editColumn": 10,␊ + "deleteCount": 1␊ + }␊ + },␊ + {␊ + "fileName": "dir/about.md",␊ + "lineNumber": 4,␊ + "ruleNames": [␊ + "MD032",␊ + "blanks-around-lists"␊ + ],␊ + "ruleDescription": "Lists should be surrounded by blank lines",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md032.md",␊ + "errorDetail": null,␊ + "errorContext": "1. List",␊ + "errorRange": null,␊ + "fixInfo": {␊ + "insertText": "\\n"␊ + }␊ + },␊ + {␊ + "fileName": "dir/about.md",␊ + "lineNumber": 5,␊ + "ruleNames": [␊ + "MD029",␊ + "ol-prefix"␊ + ],␊ + "ruleDescription": "Ordered list item prefix",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md029.md",␊ + "errorDetail": "Expected: 2; Actual: 3; Style: 1/2/3",␊ + "errorContext": null,␊ + "errorRange": [␊ + 1,␊ + 3␊ + ],␊ + "fixInfo": null␊ + },␊ + {␊ + "fileName": "dir/subdir/info.md",␊ + "lineNumber": 1,␊ + "ruleNames": [␊ + "MD022",␊ + "blanks-around-headings"␊ + ],␊ + "ruleDescription": "Headings should be surrounded by blank lines",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md022.md",␊ + "errorDetail": "Expected: 1; Actual: 0; Below",␊ + "errorContext": "## Information",␊ + "errorRange": null,␊ + "fixInfo": {␊ + "lineNumber": 2,␊ + "insertText": "\\n"␊ + }␊ + },␊ + {␊ + "fileName": "dir/subdir/info.md",␊ + "lineNumber": 1,␊ + "ruleNames": [␊ + "MD041",␊ + "first-line-heading",␊ + "first-line-h1"␊ + ],␊ + "ruleDescription": "First line in a file should be a top-level heading",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md041.md",␊ + "errorDetail": null,␊ + "errorContext": "## Information",␊ + "errorRange": null,␊ + "fixInfo": null␊ + },␊ + {␊ + "fileName": "dir/subdir/info.md",␊ + "lineNumber": 2,␊ + "ruleNames": [␊ + "MD038",␊ + "no-space-in-code"␊ + ],␊ + "ruleDescription": "Spaces inside code span elements",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md038.md",␊ + "errorDetail": null,␊ + "errorContext": "\` code1\`",␊ + "errorRange": [␊ + 6,␊ + 8␊ + ],␊ + "fixInfo": {␊ + "editColumn": 7,␊ + "deleteCount": 6,␊ + "insertText": "code1"␊ + }␊ + },␊ + {␊ + "fileName": "dir/subdir/info.md",␊ + "lineNumber": 2,␊ + "ruleNames": [␊ + "MD038",␊ + "no-space-in-code"␊ + ],␊ + "ruleDescription": "Spaces inside code span elements",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md038.md",␊ + "errorDetail": null,␊ + "errorContext": "\`code2 \`",␊ + "errorRange": [␊ + 20,␊ + 8␊ + ],␊ + "fixInfo": {␊ + "editColumn": 21,␊ + "deleteCount": 6,␊ + "insertText": "code2"␊ + }␊ + },␊ + {␊ + "fileName": "dir/subdir/info.md",␊ + "lineNumber": 4,␊ + "ruleNames": [␊ + "MD012",␊ + "no-multiple-blanks"␊ + ],␊ + "ruleDescription": "Multiple consecutive blank lines",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md012.md",␊ + "errorDetail": "Expected: 1; Actual: 2",␊ + "errorContext": null,␊ + "errorRange": null,␊ + "fixInfo": {␊ + "deleteCount": -1␊ + }␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 3,␊ + "ruleNames": [␊ + "MD009",␊ + "no-trailing-spaces"␊ + ],␊ + "ruleDescription": "Trailing spaces",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md009.md",␊ + "errorDetail": "Expected: 0 or 2; Actual: 1",␊ + "errorContext": null,␊ + "errorRange": [␊ + 10,␊ + 1␊ + ],␊ + "fixInfo": {␊ + "editColumn": 10,␊ + "deleteCount": 1␊ + }␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 5,␊ + "ruleNames": [␊ + "MD012",␊ + "no-multiple-blanks"␊ + ],␊ + "ruleDescription": "Multiple consecutive blank lines",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md012.md",␊ + "errorDetail": "Expected: 1; Actual: 2",␊ + "errorContext": null,␊ + "errorRange": null,␊ + "fixInfo": {␊ + "deleteCount": -1␊ + }␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 6,␊ + "ruleNames": [␊ + "MD025",␊ + "single-title",␊ + "single-h1"␊ + ],␊ + "ruleDescription": "Multiple top-level headings in the same document",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md025.md",␊ + "errorDetail": null,␊ + "errorContext": "Description",␊ + "errorRange": null,␊ + "fixInfo": null␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 12,␊ + "ruleNames": [␊ + "MD019",␊ + "no-multiple-space-atx"␊ + ],␊ + "ruleDescription": "Multiple spaces after hash on atx style heading",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md019.md",␊ + "errorDetail": null,␊ + "errorContext": "## Summary",␊ + "errorRange": [␊ + 4,␊ + 1␊ + ],␊ + "fixInfo": {␊ + "editColumn": 4,␊ + "deleteCount": 1␊ + }␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 14,␊ + "ruleNames": [␊ + "MD047",␊ + "single-trailing-newline"␊ + ],␊ + "ruleDescription": "Files should end with a single newline character",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md047.md",␊ + "errorDetail": null,␊ + "errorContext": null,␊ + "errorRange": [␊ + 14,␊ + 1␊ + ],␊ + "fixInfo": {␊ + "editColumn": 15,␊ + "insertText": "\\n"␊ + }␊ + }␊ + ]`, + formatterJunit: `␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + `, + formatterSarif: `{␊ + "$schema": "https://json.schemastore.org/sarif-2.1.0.json",␊ + "version": "2.1.0",␊ + "runs": [␊ + {␊ + "tool": {␊ + "driver": {␊ + "name": "markdownlint-cli2-formatter-sarif",␊ + "version": "0.0.2",␊ + "informationUri": "https://github.com/DavidAnson/markdownlint-cli2",␊ + "rules": [␊ + {␊ + "id": "MD021",␊ + "name": "Md021NoMultipleSpaceClosedAtx",␊ + "shortDescription": {␊ + "text": "Multiple spaces inside hashes on closed atx style heading"␊ + },␊ + "fullDescription": {␊ + "text": "Multiple spaces inside hashes on closed atx style heading"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md021.md"␊ + },␊ + {␊ + "id": "MD032",␊ + "name": "Md032BlanksAroundLists",␊ + "shortDescription": {␊ + "text": "Lists should be surrounded by blank lines"␊ + },␊ + "fullDescription": {␊ + "text": "Lists should be surrounded by blank lines"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md032.md"␊ + },␊ + {␊ + "id": "MD029",␊ + "name": "Md029OlPrefix",␊ + "shortDescription": {␊ + "text": "Ordered list item prefix"␊ + },␊ + "fullDescription": {␊ + "text": "Ordered list item prefix"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md029.md"␊ + },␊ + {␊ + "id": "MD022",␊ + "name": "Md022BlanksAroundHeadings",␊ + "shortDescription": {␊ + "text": "Headings should be surrounded by blank lines"␊ + },␊ + "fullDescription": {␊ + "text": "Headings should be surrounded by blank lines"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md022.md"␊ + },␊ + {␊ + "id": "MD041",␊ + "name": "Md041FirstLineHeadingFirstLineH1",␊ + "shortDescription": {␊ + "text": "First line in a file should be a top-level heading"␊ + },␊ + "fullDescription": {␊ + "text": "First line in a file should be a top-level heading"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md041.md"␊ + },␊ + {␊ + "id": "MD038",␊ + "name": "Md038NoSpaceInCode",␊ + "shortDescription": {␊ + "text": "Spaces inside code span elements"␊ + },␊ + "fullDescription": {␊ + "text": "Spaces inside code span elements"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md038.md"␊ + },␊ + {␊ + "id": "MD012",␊ + "name": "Md012NoMultipleBlanks",␊ + "shortDescription": {␊ + "text": "Multiple consecutive blank lines"␊ + },␊ + "fullDescription": {␊ + "text": "Multiple consecutive blank lines"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md012.md"␊ + },␊ + {␊ + "id": "MD009",␊ + "name": "Md009NoTrailingSpaces",␊ + "shortDescription": {␊ + "text": "Trailing spaces"␊ + },␊ + "fullDescription": {␊ + "text": "Trailing spaces"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md009.md"␊ + },␊ + {␊ + "id": "MD025",␊ + "name": "Md025SingleTitleSingleH1",␊ + "shortDescription": {␊ + "text": "Multiple top-level headings in the same document"␊ + },␊ + "fullDescription": {␊ + "text": "Multiple top-level headings in the same document"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md025.md"␊ + },␊ + {␊ + "id": "MD019",␊ + "name": "Md019NoMultipleSpaceAtx",␊ + "shortDescription": {␊ + "text": "Multiple spaces after hash on atx style heading"␊ + },␊ + "fullDescription": {␊ + "text": "Multiple spaces after hash on atx style heading"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md019.md"␊ + },␊ + {␊ + "id": "MD047",␊ + "name": "Md047SingleTrailingNewline",␊ + "shortDescription": {␊ + "text": "Files should end with a single newline character"␊ + },␊ + "fullDescription": {␊ + "text": "Files should end with a single newline character"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md047.md"␊ + }␊ + ]␊ + }␊ + },␊ + "results": [␊ + {␊ + "ruleId": "MD021",␊ + "message": {␊ + "text": "Multiple spaces inside hashes on closed atx style heading, Context: \\"# About #\\""␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "dir/about.md"␊ + },␊ + "region": {␊ + "startLine": 1,␊ + "endLine": 1,␊ + "startColumn": 3,␊ + "endColumn": 4␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD021",␊ + "message": {␊ + "text": "Multiple spaces inside hashes on closed atx style heading, Context: \\"# About #\\""␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "dir/about.md"␊ + },␊ + "region": {␊ + "startLine": 1,␊ + "endLine": 1,␊ + "startColumn": 10,␊ + "endColumn": 11␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD032",␊ + "message": {␊ + "text": "Lists should be surrounded by blank lines, Context: \\"1. List\\""␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "dir/about.md"␊ + },␊ + "region": {␊ + "startLine": 4,␊ + "endLine": 4␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD029",␊ + "message": {␊ + "text": "Ordered list item prefix, Expected: 2; Actual: 3; Style: 1/2/3"␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "dir/about.md"␊ + },␊ + "region": {␊ + "startLine": 5,␊ + "endLine": 5,␊ + "startColumn": 1,␊ + "endColumn": 4␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD022",␊ + "message": {␊ + "text": "Headings should be surrounded by blank lines, Expected: 1; Actual: 0; Below, Context: \\"## Information\\""␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "dir/subdir/info.md"␊ + },␊ + "region": {␊ + "startLine": 1,␊ + "endLine": 1␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD041",␊ + "message": {␊ + "text": "First line in a file should be a top-level heading, Context: \\"## Information\\""␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "dir/subdir/info.md"␊ + },␊ + "region": {␊ + "startLine": 1,␊ + "endLine": 1␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD038",␊ + "message": {␊ + "text": "Spaces inside code span elements, Context: \\"\` code1\`\\""␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "dir/subdir/info.md"␊ + },␊ + "region": {␊ + "startLine": 2,␊ + "endLine": 2,␊ + "startColumn": 6,␊ + "endColumn": 14␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD038",␊ + "message": {␊ + "text": "Spaces inside code span elements, Context: \\"\`code2 \`\\""␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "dir/subdir/info.md"␊ + },␊ + "region": {␊ + "startLine": 2,␊ + "endLine": 2,␊ + "startColumn": 20,␊ + "endColumn": 28␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD012",␊ + "message": {␊ + "text": "Multiple consecutive blank lines, Expected: 1; Actual: 2"␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "dir/subdir/info.md"␊ + },␊ + "region": {␊ + "startLine": 4,␊ + "endLine": 4␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD009",␊ + "message": {␊ + "text": "Trailing spaces, Expected: 0 or 2; Actual: 1"␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "viewme.md"␊ + },␊ + "region": {␊ + "startLine": 3,␊ + "endLine": 3,␊ + "startColumn": 10,␊ + "endColumn": 11␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD012",␊ + "message": {␊ + "text": "Multiple consecutive blank lines, Expected: 1; Actual: 2"␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "viewme.md"␊ + },␊ + "region": {␊ + "startLine": 5,␊ + "endLine": 5␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD025",␊ + "message": {␊ + "text": "Multiple top-level headings in the same document, Context: \\"Description\\""␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "viewme.md"␊ + },␊ + "region": {␊ + "startLine": 6,␊ + "endLine": 6␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD019",␊ + "message": {␊ + "text": "Multiple spaces after hash on atx style heading, Context: \\"## Summary\\""␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "viewme.md"␊ + },␊ + "region": {␊ + "startLine": 12,␊ + "endLine": 12,␊ + "startColumn": 4,␊ + "endColumn": 5␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD047",␊ + "message": {␊ + "text": "Files should end with a single newline character"␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "viewme.md"␊ + },␊ + "region": {␊ + "startLine": 14,␊ + "endLine": 14,␊ + "startColumn": 14,␊ + "endColumn": 15␊ + }␊ + }␊ + }␊ + ]␊ + }␊ + ]␊ + }␊ + ]␊ + }`, + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + fileName="dir/about.md" lineNumber=1 columnNumber=3 ruleName=MD021/no-multiple-space-closed-atx ruleDescription="Multiple spaces inside hashes on closed atx style heading" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md021.md errorContext="# About #" errorDetail=""␊ + fileName="dir/about.md" lineNumber=1 columnNumber=10 ruleName=MD021/no-multiple-space-closed-atx ruleDescription="Multiple spaces inside hashes on closed atx style heading" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md021.md errorContext="# About #" errorDetail=""␊ + fileName="dir/about.md" lineNumber=4 ruleName=MD032/blanks-around-lists ruleDescription="Lists should be surrounded by blank lines" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md032.md errorContext="1. List" errorDetail=""␊ + fileName="dir/about.md" lineNumber=5 columnNumber=1 ruleName=MD029/ol-prefix ruleDescription="Ordered list item prefix" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md029.md errorContext="" errorDetail="Expected: 2; Actual: 3; Style: 1/2/3"␊ + fileName="dir/subdir/info.md" lineNumber=1 ruleName=MD022/blanks-around-headings ruleDescription="Headings should be surrounded by blank lines" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md022.md errorContext="## Information" errorDetail="Expected: 1; Actual: 0; Below"␊ + fileName="dir/subdir/info.md" lineNumber=1 ruleName=MD041/first-line-heading/first-line-h1 ruleDescription="First line in a file should be a top-level heading" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md041.md errorContext="## Information" errorDetail=""␊ + fileName="dir/subdir/info.md" lineNumber=2 columnNumber=6 ruleName=MD038/no-space-in-code ruleDescription="Spaces inside code span elements" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md038.md errorContext="\` code1\`" errorDetail=""␊ + fileName="dir/subdir/info.md" lineNumber=2 columnNumber=20 ruleName=MD038/no-space-in-code ruleDescription="Spaces inside code span elements" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md038.md errorContext="\`code2 \`" errorDetail=""␊ + fileName="dir/subdir/info.md" lineNumber=4 ruleName=MD012/no-multiple-blanks ruleDescription="Multiple consecutive blank lines" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md012.md errorContext="" errorDetail="Expected: 1; Actual: 2"␊ + fileName="viewme.md" lineNumber=3 columnNumber=10 ruleName=MD009/no-trailing-spaces ruleDescription="Trailing spaces" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md009.md errorContext="" errorDetail="Expected: 0 or 2; Actual: 1"␊ + fileName="viewme.md" lineNumber=5 ruleName=MD012/no-multiple-blanks ruleDescription="Multiple consecutive blank lines" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md012.md errorContext="" errorDetail="Expected: 1; Actual: 2"␊ + fileName="viewme.md" lineNumber=6 ruleName=MD025/single-title/single-h1 ruleDescription="Multiple top-level headings in the same document" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md025.md errorContext="Description" errorDetail=""␊ + fileName="viewme.md" lineNumber=12 columnNumber=4 ruleName=MD019/no-multiple-space-atx ruleDescription="Multiple spaces after hash on atx style heading" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md019.md errorContext="## Summary" errorDetail=""␊ + fileName="viewme.md" lineNumber=14 columnNumber=14 ruleName=MD047/single-trailing-newline ruleDescription="Files should end with a single newline character" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md047.md errorContext="" errorDetail=""`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 14 error(s)`, + } + +## outputFormatters-npm (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: `[␊ + {␊ + "type": "issue",␊ + "check_name": "MD021/no-multiple-space-closed-atx",␊ + "description": "MD021/no-multiple-space-closed-atx: Multiple spaces inside hashes on closed atx style heading",␊ + "severity": "minor",␊ + "fingerprint": "8a07df476b805f34574121021e7b9bafb39f201c8aff448fb2f0dcd44a71b16c",␊ + "location": {␊ + "path": "dir/about.md",␊ + "lines": {␊ + "begin": 1␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD021/no-multiple-space-closed-atx",␊ + "description": "MD021/no-multiple-space-closed-atx: Multiple spaces inside hashes on closed atx style heading",␊ + "severity": "minor",␊ + "fingerprint": "8db764109451f15469798953956669835f36446059a4b6c686918f6eb10c6f49",␊ + "location": {␊ + "path": "dir/about.md",␊ + "lines": {␊ + "begin": 1␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD032/blanks-around-lists",␊ + "description": "MD032/blanks-around-lists: Lists should be surrounded by blank lines",␊ + "severity": "minor",␊ + "fingerprint": "6ddd22f64c0a48e6b536677a9283be74fb75ad61a988efc543c1cbe6b0b3a3bb",␊ + "location": {␊ + "path": "dir/about.md",␊ + "lines": {␊ + "begin": 4␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD029/ol-prefix",␊ + "description": "MD029/ol-prefix: Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]",␊ + "severity": "minor",␊ + "fingerprint": "e072e957ba3f9e58988e049ed727269c61b5da8f768edd0608e5d54f48564531",␊ + "location": {␊ + "path": "dir/about.md",␊ + "lines": {␊ + "begin": 5␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD022/blanks-around-headings",␊ + "description": "MD022/blanks-around-headings: Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below]",␊ + "severity": "minor",␊ + "fingerprint": "5161c78dcdb7c171057c40cdeb5d6c26f317475e1e8c549dd25c8d1ecd805b18",␊ + "location": {␊ + "path": "dir/subdir/info.md",␊ + "lines": {␊ + "begin": 1␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD041/first-line-heading/first-line-h1",␊ + "description": "MD041/first-line-heading/first-line-h1: First line in a file should be a top-level heading",␊ + "severity": "minor",␊ + "fingerprint": "f6b546238b859746049d2548037a56ec760d1bb1631b15528ef74777976f0029",␊ + "location": {␊ + "path": "dir/subdir/info.md",␊ + "lines": {␊ + "begin": 1␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD038/no-space-in-code",␊ + "description": "MD038/no-space-in-code: Spaces inside code span elements",␊ + "severity": "minor",␊ + "fingerprint": "801b456e1aebf4ccfff95bf885b0716ca6167de5634950351d43b84e74e6593a",␊ + "location": {␊ + "path": "dir/subdir/info.md",␊ + "lines": {␊ + "begin": 2␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD038/no-space-in-code",␊ + "description": "MD038/no-space-in-code: Spaces inside code span elements",␊ + "severity": "minor",␊ + "fingerprint": "74fd34146155d3a0377743f7db5967724770c076198dc10d19657518a624b064",␊ + "location": {␊ + "path": "dir/subdir/info.md",␊ + "lines": {␊ + "begin": 2␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD012/no-multiple-blanks",␊ + "description": "MD012/no-multiple-blanks: Multiple consecutive blank lines [Expected: 1; Actual: 2]",␊ + "severity": "minor",␊ + "fingerprint": "df47d6f9b7697c6afabe8ca956d32b96f083d63b5f98003e7ee07ac1139b3fa3",␊ + "location": {␊ + "path": "dir/subdir/info.md",␊ + "lines": {␊ + "begin": 4␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD009/no-trailing-spaces",␊ + "description": "MD009/no-trailing-spaces: Trailing spaces [Expected: 0 or 2; Actual: 1]",␊ + "severity": "minor",␊ + "fingerprint": "f34a01e4a119d7df262993933665d4c97cc601702eeca2814ccad9606a3ccb48",␊ + "location": {␊ + "path": "viewme.md",␊ + "lines": {␊ + "begin": 3␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD012/no-multiple-blanks",␊ + "description": "MD012/no-multiple-blanks: Multiple consecutive blank lines [Expected: 1; Actual: 2]",␊ + "severity": "minor",␊ + "fingerprint": "a3d9b647ce8d929904e64fbbb0a47223617e8985d0a4d31e674b22f919f736fb",␊ + "location": {␊ + "path": "viewme.md",␊ + "lines": {␊ + "begin": 5␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD025/single-title/single-h1",␊ + "description": "MD025/single-title/single-h1: Multiple top-level headings in the same document",␊ + "severity": "minor",␊ + "fingerprint": "47cd7b74ada622add8ce464681102cb50f7fe2a685f3436327ae39c0f13ef1e6",␊ + "location": {␊ + "path": "viewme.md",␊ + "lines": {␊ + "begin": 6␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD019/no-multiple-space-atx",␊ + "description": "MD019/no-multiple-space-atx: Multiple spaces after hash on atx style heading",␊ + "severity": "minor",␊ + "fingerprint": "399bbfaf6a26399d5927b93a23b6d18705bb380e90b3e3e85956de34a22c9c5b",␊ + "location": {␊ + "path": "viewme.md",␊ + "lines": {␊ + "begin": 12␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD047/single-trailing-newline",␊ + "description": "MD047/single-trailing-newline: Files should end with a single newline character",␊ + "severity": "minor",␊ + "fingerprint": "bf74eade0ee3301ccaa826907651e0d6925b60d517e1110c29b081c7b6ce1acf",␊ + "location": {␊ + "path": "viewme.md",␊ + "lines": {␊ + "begin": 14␊ + }␊ + }␊ + }␊ + ]`, + formatterJson: `[␊ + {␊ + "fileName": "dir/about.md",␊ + "lineNumber": 1,␊ + "ruleNames": [␊ + "MD021",␊ + "no-multiple-space-closed-atx"␊ + ],␊ + "ruleDescription": "Multiple spaces inside hashes on closed atx style heading",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md021.md",␊ + "errorDetail": null,␊ + "errorContext": "# About #",␊ + "errorRange": [␊ + 3,␊ + 1␊ + ],␊ + "fixInfo": {␊ + "editColumn": 3,␊ + "deleteCount": 1␊ + }␊ + },␊ + {␊ + "fileName": "dir/about.md",␊ + "lineNumber": 1,␊ + "ruleNames": [␊ + "MD021",␊ + "no-multiple-space-closed-atx"␊ + ],␊ + "ruleDescription": "Multiple spaces inside hashes on closed atx style heading",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md021.md",␊ + "errorDetail": null,␊ + "errorContext": "# About #",␊ + "errorRange": [␊ + 10,␊ + 1␊ + ],␊ + "fixInfo": {␊ + "editColumn": 10,␊ + "deleteCount": 1␊ + }␊ + },␊ + {␊ + "fileName": "dir/about.md",␊ + "lineNumber": 4,␊ + "ruleNames": [␊ + "MD032",␊ + "blanks-around-lists"␊ + ],␊ + "ruleDescription": "Lists should be surrounded by blank lines",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md032.md",␊ + "errorDetail": null,␊ + "errorContext": "1. List",␊ + "errorRange": null,␊ + "fixInfo": {␊ + "insertText": "\\n"␊ + }␊ + },␊ + {␊ + "fileName": "dir/about.md",␊ + "lineNumber": 5,␊ + "ruleNames": [␊ + "MD029",␊ + "ol-prefix"␊ + ],␊ + "ruleDescription": "Ordered list item prefix",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md029.md",␊ + "errorDetail": "Expected: 2; Actual: 3; Style: 1/2/3",␊ + "errorContext": null,␊ + "errorRange": [␊ + 1,␊ + 3␊ + ],␊ + "fixInfo": null␊ + },␊ + {␊ + "fileName": "dir/subdir/info.md",␊ + "lineNumber": 1,␊ + "ruleNames": [␊ + "MD022",␊ + "blanks-around-headings"␊ + ],␊ + "ruleDescription": "Headings should be surrounded by blank lines",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md022.md",␊ + "errorDetail": "Expected: 1; Actual: 0; Below",␊ + "errorContext": "## Information",␊ + "errorRange": null,␊ + "fixInfo": {␊ + "lineNumber": 2,␊ + "insertText": "\\n"␊ + }␊ + },␊ + {␊ + "fileName": "dir/subdir/info.md",␊ + "lineNumber": 1,␊ + "ruleNames": [␊ + "MD041",␊ + "first-line-heading",␊ + "first-line-h1"␊ + ],␊ + "ruleDescription": "First line in a file should be a top-level heading",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md041.md",␊ + "errorDetail": null,␊ + "errorContext": "## Information",␊ + "errorRange": null,␊ + "fixInfo": null␊ + },␊ + {␊ + "fileName": "dir/subdir/info.md",␊ + "lineNumber": 2,␊ + "ruleNames": [␊ + "MD038",␊ + "no-space-in-code"␊ + ],␊ + "ruleDescription": "Spaces inside code span elements",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md038.md",␊ + "errorDetail": null,␊ + "errorContext": "\` code1\`",␊ + "errorRange": [␊ + 6,␊ + 8␊ + ],␊ + "fixInfo": {␊ + "editColumn": 7,␊ + "deleteCount": 6,␊ + "insertText": "code1"␊ + }␊ + },␊ + {␊ + "fileName": "dir/subdir/info.md",␊ + "lineNumber": 2,␊ + "ruleNames": [␊ + "MD038",␊ + "no-space-in-code"␊ + ],␊ + "ruleDescription": "Spaces inside code span elements",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md038.md",␊ + "errorDetail": null,␊ + "errorContext": "\`code2 \`",␊ + "errorRange": [␊ + 20,␊ + 8␊ + ],␊ + "fixInfo": {␊ + "editColumn": 21,␊ + "deleteCount": 6,␊ + "insertText": "code2"␊ + }␊ + },␊ + {␊ + "fileName": "dir/subdir/info.md",␊ + "lineNumber": 4,␊ + "ruleNames": [␊ + "MD012",␊ + "no-multiple-blanks"␊ + ],␊ + "ruleDescription": "Multiple consecutive blank lines",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md012.md",␊ + "errorDetail": "Expected: 1; Actual: 2",␊ + "errorContext": null,␊ + "errorRange": null,␊ + "fixInfo": {␊ + "deleteCount": -1␊ + }␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 3,␊ + "ruleNames": [␊ + "MD009",␊ + "no-trailing-spaces"␊ + ],␊ + "ruleDescription": "Trailing spaces",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md009.md",␊ + "errorDetail": "Expected: 0 or 2; Actual: 1",␊ + "errorContext": null,␊ + "errorRange": [␊ + 10,␊ + 1␊ + ],␊ + "fixInfo": {␊ + "editColumn": 10,␊ + "deleteCount": 1␊ + }␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 5,␊ + "ruleNames": [␊ + "MD012",␊ + "no-multiple-blanks"␊ + ],␊ + "ruleDescription": "Multiple consecutive blank lines",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md012.md",␊ + "errorDetail": "Expected: 1; Actual: 2",␊ + "errorContext": null,␊ + "errorRange": null,␊ + "fixInfo": {␊ + "deleteCount": -1␊ + }␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 6,␊ + "ruleNames": [␊ + "MD025",␊ + "single-title",␊ + "single-h1"␊ + ],␊ + "ruleDescription": "Multiple top-level headings in the same document",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md025.md",␊ + "errorDetail": null,␊ + "errorContext": "Description",␊ + "errorRange": null,␊ + "fixInfo": null␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 12,␊ + "ruleNames": [␊ + "MD019",␊ + "no-multiple-space-atx"␊ + ],␊ + "ruleDescription": "Multiple spaces after hash on atx style heading",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md019.md",␊ + "errorDetail": null,␊ + "errorContext": "## Summary",␊ + "errorRange": [␊ + 4,␊ + 1␊ + ],␊ + "fixInfo": {␊ + "editColumn": 4,␊ + "deleteCount": 1␊ + }␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 14,␊ + "ruleNames": [␊ + "MD047",␊ + "single-trailing-newline"␊ + ],␊ + "ruleDescription": "Files should end with a single newline character",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md047.md",␊ + "errorDetail": null,␊ + "errorContext": null,␊ + "errorRange": [␊ + 14,␊ + 1␊ + ],␊ + "fixInfo": {␊ + "editColumn": 15,␊ + "insertText": "\\n"␊ + }␊ + }␊ + ]`, + formatterJunit: `␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + `, + formatterSarif: `{␊ + "$schema": "https://json.schemastore.org/sarif-2.1.0.json",␊ + "version": "2.1.0",␊ + "runs": [␊ + {␊ + "tool": {␊ + "driver": {␊ + "name": "markdownlint-cli2-formatter-sarif",␊ + "version": "0.0.2",␊ + "informationUri": "https://github.com/DavidAnson/markdownlint-cli2",␊ + "rules": [␊ + {␊ + "id": "MD021",␊ + "name": "Md021NoMultipleSpaceClosedAtx",␊ + "shortDescription": {␊ + "text": "Multiple spaces inside hashes on closed atx style heading"␊ + },␊ + "fullDescription": {␊ + "text": "Multiple spaces inside hashes on closed atx style heading"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md021.md"␊ + },␊ + {␊ + "id": "MD032",␊ + "name": "Md032BlanksAroundLists",␊ + "shortDescription": {␊ + "text": "Lists should be surrounded by blank lines"␊ + },␊ + "fullDescription": {␊ + "text": "Lists should be surrounded by blank lines"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md032.md"␊ + },␊ + {␊ + "id": "MD029",␊ + "name": "Md029OlPrefix",␊ + "shortDescription": {␊ + "text": "Ordered list item prefix"␊ + },␊ + "fullDescription": {␊ + "text": "Ordered list item prefix"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md029.md"␊ + },␊ + {␊ + "id": "MD022",␊ + "name": "Md022BlanksAroundHeadings",␊ + "shortDescription": {␊ + "text": "Headings should be surrounded by blank lines"␊ + },␊ + "fullDescription": {␊ + "text": "Headings should be surrounded by blank lines"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md022.md"␊ + },␊ + {␊ + "id": "MD041",␊ + "name": "Md041FirstLineHeadingFirstLineH1",␊ + "shortDescription": {␊ + "text": "First line in a file should be a top-level heading"␊ + },␊ + "fullDescription": {␊ + "text": "First line in a file should be a top-level heading"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md041.md"␊ + },␊ + {␊ + "id": "MD038",␊ + "name": "Md038NoSpaceInCode",␊ + "shortDescription": {␊ + "text": "Spaces inside code span elements"␊ + },␊ + "fullDescription": {␊ + "text": "Spaces inside code span elements"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md038.md"␊ + },␊ + {␊ + "id": "MD012",␊ + "name": "Md012NoMultipleBlanks",␊ + "shortDescription": {␊ + "text": "Multiple consecutive blank lines"␊ + },␊ + "fullDescription": {␊ + "text": "Multiple consecutive blank lines"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md012.md"␊ + },␊ + {␊ + "id": "MD009",␊ + "name": "Md009NoTrailingSpaces",␊ + "shortDescription": {␊ + "text": "Trailing spaces"␊ + },␊ + "fullDescription": {␊ + "text": "Trailing spaces"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md009.md"␊ + },␊ + {␊ + "id": "MD025",␊ + "name": "Md025SingleTitleSingleH1",␊ + "shortDescription": {␊ + "text": "Multiple top-level headings in the same document"␊ + },␊ + "fullDescription": {␊ + "text": "Multiple top-level headings in the same document"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md025.md"␊ + },␊ + {␊ + "id": "MD019",␊ + "name": "Md019NoMultipleSpaceAtx",␊ + "shortDescription": {␊ + "text": "Multiple spaces after hash on atx style heading"␊ + },␊ + "fullDescription": {␊ + "text": "Multiple spaces after hash on atx style heading"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md019.md"␊ + },␊ + {␊ + "id": "MD047",␊ + "name": "Md047SingleTrailingNewline",␊ + "shortDescription": {␊ + "text": "Files should end with a single newline character"␊ + },␊ + "fullDescription": {␊ + "text": "Files should end with a single newline character"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md047.md"␊ + }␊ + ]␊ + }␊ + },␊ + "results": [␊ + {␊ + "ruleId": "MD021",␊ + "message": {␊ + "text": "Multiple spaces inside hashes on closed atx style heading, Context: \\"# About #\\""␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "dir/about.md"␊ + },␊ + "region": {␊ + "startLine": 1,␊ + "endLine": 1,␊ + "startColumn": 3,␊ + "endColumn": 4␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD021",␊ + "message": {␊ + "text": "Multiple spaces inside hashes on closed atx style heading, Context: \\"# About #\\""␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "dir/about.md"␊ + },␊ + "region": {␊ + "startLine": 1,␊ + "endLine": 1,␊ + "startColumn": 10,␊ + "endColumn": 11␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD032",␊ + "message": {␊ + "text": "Lists should be surrounded by blank lines, Context: \\"1. List\\""␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "dir/about.md"␊ + },␊ + "region": {␊ + "startLine": 4,␊ + "endLine": 4␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD029",␊ + "message": {␊ + "text": "Ordered list item prefix, Expected: 2; Actual: 3; Style: 1/2/3"␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "dir/about.md"␊ + },␊ + "region": {␊ + "startLine": 5,␊ + "endLine": 5,␊ + "startColumn": 1,␊ + "endColumn": 4␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD022",␊ + "message": {␊ + "text": "Headings should be surrounded by blank lines, Expected: 1; Actual: 0; Below, Context: \\"## Information\\""␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "dir/subdir/info.md"␊ + },␊ + "region": {␊ + "startLine": 1,␊ + "endLine": 1␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD041",␊ + "message": {␊ + "text": "First line in a file should be a top-level heading, Context: \\"## Information\\""␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "dir/subdir/info.md"␊ + },␊ + "region": {␊ + "startLine": 1,␊ + "endLine": 1␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD038",␊ + "message": {␊ + "text": "Spaces inside code span elements, Context: \\"\` code1\`\\""␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "dir/subdir/info.md"␊ + },␊ + "region": {␊ + "startLine": 2,␊ + "endLine": 2,␊ + "startColumn": 6,␊ + "endColumn": 14␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD038",␊ + "message": {␊ + "text": "Spaces inside code span elements, Context: \\"\`code2 \`\\""␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "dir/subdir/info.md"␊ + },␊ + "region": {␊ + "startLine": 2,␊ + "endLine": 2,␊ + "startColumn": 20,␊ + "endColumn": 28␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD012",␊ + "message": {␊ + "text": "Multiple consecutive blank lines, Expected: 1; Actual: 2"␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "dir/subdir/info.md"␊ + },␊ + "region": {␊ + "startLine": 4,␊ + "endLine": 4␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD009",␊ + "message": {␊ + "text": "Trailing spaces, Expected: 0 or 2; Actual: 1"␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "viewme.md"␊ + },␊ + "region": {␊ + "startLine": 3,␊ + "endLine": 3,␊ + "startColumn": 10,␊ + "endColumn": 11␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD012",␊ + "message": {␊ + "text": "Multiple consecutive blank lines, Expected: 1; Actual: 2"␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "viewme.md"␊ + },␊ + "region": {␊ + "startLine": 5,␊ + "endLine": 5␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD025",␊ + "message": {␊ + "text": "Multiple top-level headings in the same document, Context: \\"Description\\""␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "viewme.md"␊ + },␊ + "region": {␊ + "startLine": 6,␊ + "endLine": 6␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD019",␊ + "message": {␊ + "text": "Multiple spaces after hash on atx style heading, Context: \\"## Summary\\""␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "viewme.md"␊ + },␊ + "region": {␊ + "startLine": 12,␊ + "endLine": 12,␊ + "startColumn": 4,␊ + "endColumn": 5␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD047",␊ + "message": {␊ + "text": "Files should end with a single newline character"␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "viewme.md"␊ + },␊ + "region": {␊ + "startLine": 14,␊ + "endLine": 14,␊ + "startColumn": 14,␊ + "endColumn": 15␊ + }␊ + }␊ + }␊ + ]␊ + }␊ + ]␊ + }␊ + ]␊ + }`, + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + fileName="dir/about.md" lineNumber=1 columnNumber=3 ruleName=MD021/no-multiple-space-closed-atx ruleDescription="Multiple spaces inside hashes on closed atx style heading" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md021.md errorContext="# About #" errorDetail=""␊ + fileName="dir/about.md" lineNumber=1 columnNumber=10 ruleName=MD021/no-multiple-space-closed-atx ruleDescription="Multiple spaces inside hashes on closed atx style heading" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md021.md errorContext="# About #" errorDetail=""␊ + fileName="dir/about.md" lineNumber=4 ruleName=MD032/blanks-around-lists ruleDescription="Lists should be surrounded by blank lines" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md032.md errorContext="1. List" errorDetail=""␊ + fileName="dir/about.md" lineNumber=5 columnNumber=1 ruleName=MD029/ol-prefix ruleDescription="Ordered list item prefix" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md029.md errorContext="" errorDetail="Expected: 2; Actual: 3; Style: 1/2/3"␊ + fileName="dir/subdir/info.md" lineNumber=1 ruleName=MD022/blanks-around-headings ruleDescription="Headings should be surrounded by blank lines" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md022.md errorContext="## Information" errorDetail="Expected: 1; Actual: 0; Below"␊ + fileName="dir/subdir/info.md" lineNumber=1 ruleName=MD041/first-line-heading/first-line-h1 ruleDescription="First line in a file should be a top-level heading" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md041.md errorContext="## Information" errorDetail=""␊ + fileName="dir/subdir/info.md" lineNumber=2 columnNumber=6 ruleName=MD038/no-space-in-code ruleDescription="Spaces inside code span elements" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md038.md errorContext="\` code1\`" errorDetail=""␊ + fileName="dir/subdir/info.md" lineNumber=2 columnNumber=20 ruleName=MD038/no-space-in-code ruleDescription="Spaces inside code span elements" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md038.md errorContext="\`code2 \`" errorDetail=""␊ + fileName="dir/subdir/info.md" lineNumber=4 ruleName=MD012/no-multiple-blanks ruleDescription="Multiple consecutive blank lines" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md012.md errorContext="" errorDetail="Expected: 1; Actual: 2"␊ + fileName="viewme.md" lineNumber=3 columnNumber=10 ruleName=MD009/no-trailing-spaces ruleDescription="Trailing spaces" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md009.md errorContext="" errorDetail="Expected: 0 or 2; Actual: 1"␊ + fileName="viewme.md" lineNumber=5 ruleName=MD012/no-multiple-blanks ruleDescription="Multiple consecutive blank lines" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md012.md errorContext="" errorDetail="Expected: 1; Actual: 2"␊ + fileName="viewme.md" lineNumber=6 ruleName=MD025/single-title/single-h1 ruleDescription="Multiple top-level headings in the same document" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md025.md errorContext="Description" errorDetail=""␊ + fileName="viewme.md" lineNumber=12 columnNumber=4 ruleName=MD019/no-multiple-space-atx ruleDescription="Multiple spaces after hash on atx style heading" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md019.md errorContext="## Summary" errorDetail=""␊ + fileName="viewme.md" lineNumber=14 columnNumber=14 ruleName=MD047/single-trailing-newline ruleDescription="Files should end with a single newline character" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md047.md errorContext="" errorDetail=""␊ + dir/about.md:1:3 ]8;;https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md021.mdMD021/no-multiple-space-closed-atx]8;; Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 ]8;;https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md021.mdMD021/no-multiple-space-closed-atx]8;; Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 ]8;;https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md032.mdMD032/blanks-around-lists]8;; Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 ]8;;https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md029.mdMD029/ol-prefix]8;; Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 ]8;;https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md022.mdMD022/blanks-around-headings]8;; Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 ]8;;https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md041.mdMD041/first-line-heading/first-line-h1]8;; First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 ]8;;https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md038.mdMD038/no-space-in-code]8;; Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 ]8;;https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md038.mdMD038/no-space-in-code]8;; Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 ]8;;https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md012.mdMD012/no-multiple-blanks]8;; Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 ]8;;https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md009.mdMD009/no-trailing-spaces]8;; Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 ]8;;https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md012.mdMD012/no-multiple-blanks]8;; Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 ]8;;https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md025.mdMD025/single-title/single-h1]8;; Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 ]8;;https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md019.mdMD019/no-multiple-space-atx]8;; Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 ]8;;https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md047.mdMD047/single-trailing-newline]8;; Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 14 error(s)␊ + Count File␊ + 4 dir/about.md␊ + 5 dir/subdir/info.md␊ + 5 viewme.md␊ + 14 [Total]`, + } + +## outputFormatters-params (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: `[␊ + {␊ + "type": "issue",␊ + "check_name": "MD009/no-trailing-spaces",␊ + "description": "MD009/no-trailing-spaces: Trailing spaces [Expected: 0 or 2; Actual: 1]",␊ + "severity": "minor",␊ + "fingerprint": "f34a01e4a119d7df262993933665d4c97cc601702eeca2814ccad9606a3ccb48",␊ + "location": {␊ + "path": "viewme.md",␊ + "lines": {␊ + "begin": 3␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD012/no-multiple-blanks",␊ + "description": "MD012/no-multiple-blanks: Multiple consecutive blank lines [Expected: 1; Actual: 2]",␊ + "severity": "minor",␊ + "fingerprint": "a3d9b647ce8d929904e64fbbb0a47223617e8985d0a4d31e674b22f919f736fb",␊ + "location": {␊ + "path": "viewme.md",␊ + "lines": {␊ + "begin": 5␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD025/single-title/single-h1",␊ + "description": "MD025/single-title/single-h1: Multiple top-level headings in the same document",␊ + "severity": "minor",␊ + "fingerprint": "47cd7b74ada622add8ce464681102cb50f7fe2a685f3436327ae39c0f13ef1e6",␊ + "location": {␊ + "path": "viewme.md",␊ + "lines": {␊ + "begin": 6␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD019/no-multiple-space-atx",␊ + "description": "MD019/no-multiple-space-atx: Multiple spaces after hash on atx style heading",␊ + "severity": "minor",␊ + "fingerprint": "399bbfaf6a26399d5927b93a23b6d18705bb380e90b3e3e85956de34a22c9c5b",␊ + "location": {␊ + "path": "viewme.md",␊ + "lines": {␊ + "begin": 12␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD047/single-trailing-newline",␊ + "description": "MD047/single-trailing-newline: Files should end with a single newline character",␊ + "severity": "minor",␊ + "fingerprint": "bf74eade0ee3301ccaa826907651e0d6925b60d517e1110c29b081c7b6ce1acf",␊ + "location": {␊ + "path": "viewme.md",␊ + "lines": {␊ + "begin": 14␊ + }␊ + }␊ + }␊ + ]`, + formatterJson: `[␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 3,␊ + "ruleNames": [␊ + "MD009",␊ + "no-trailing-spaces"␊ + ],␊ + "ruleDescription": "Trailing spaces",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md009.md",␊ + "errorDetail": "Expected: 0 or 2; Actual: 1",␊ + "errorContext": null,␊ + "errorRange": [␊ + 10,␊ + 1␊ + ],␊ + "fixInfo": {␊ + "editColumn": 10,␊ + "deleteCount": 1␊ + }␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 5,␊ + "ruleNames": [␊ + "MD012",␊ + "no-multiple-blanks"␊ + ],␊ + "ruleDescription": "Multiple consecutive blank lines",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md012.md",␊ + "errorDetail": "Expected: 1; Actual: 2",␊ + "errorContext": null,␊ + "errorRange": null,␊ + "fixInfo": {␊ + "deleteCount": -1␊ + }␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 6,␊ + "ruleNames": [␊ + "MD025",␊ + "single-title",␊ + "single-h1"␊ + ],␊ + "ruleDescription": "Multiple top-level headings in the same document",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md025.md",␊ + "errorDetail": null,␊ + "errorContext": "Description",␊ + "errorRange": null,␊ + "fixInfo": null␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 12,␊ + "ruleNames": [␊ + "MD019",␊ + "no-multiple-space-atx"␊ + ],␊ + "ruleDescription": "Multiple spaces after hash on atx style heading",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md019.md",␊ + "errorDetail": null,␊ + "errorContext": "## Summary",␊ + "errorRange": [␊ + 4,␊ + 1␊ + ],␊ + "fixInfo": {␊ + "editColumn": 4,␊ + "deleteCount": 1␊ + }␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 14,␊ + "ruleNames": [␊ + "MD047",␊ + "single-trailing-newline"␊ + ],␊ + "ruleDescription": "Files should end with a single newline character",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md047.md",␊ + "errorDetail": null,␊ + "errorContext": null,␊ + "errorRange": [␊ + 14,␊ + 1␊ + ],␊ + "fixInfo": {␊ + "editColumn": 15,␊ + "insertText": "\\n"␊ + }␊ + }␊ + ]`, + formatterJunit: `␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + `, + formatterSarif: `{␊ + "$schema": "https://json.schemastore.org/sarif-2.1.0.json",␊ + "version": "2.1.0",␊ + "runs": [␊ + {␊ + "tool": {␊ + "driver": {␊ + "name": "markdownlint-cli2-formatter-sarif",␊ + "version": "0.0.2",␊ + "informationUri": "https://github.com/DavidAnson/markdownlint-cli2",␊ + "rules": [␊ + {␊ + "id": "MD009",␊ + "name": "Md009NoTrailingSpaces",␊ + "shortDescription": {␊ + "text": "Trailing spaces"␊ + },␊ + "fullDescription": {␊ + "text": "Trailing spaces"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md009.md"␊ + },␊ + {␊ + "id": "MD012",␊ + "name": "Md012NoMultipleBlanks",␊ + "shortDescription": {␊ + "text": "Multiple consecutive blank lines"␊ + },␊ + "fullDescription": {␊ + "text": "Multiple consecutive blank lines"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md012.md"␊ + },␊ + {␊ + "id": "MD025",␊ + "name": "Md025SingleTitleSingleH1",␊ + "shortDescription": {␊ + "text": "Multiple top-level headings in the same document"␊ + },␊ + "fullDescription": {␊ + "text": "Multiple top-level headings in the same document"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md025.md"␊ + },␊ + {␊ + "id": "MD019",␊ + "name": "Md019NoMultipleSpaceAtx",␊ + "shortDescription": {␊ + "text": "Multiple spaces after hash on atx style heading"␊ + },␊ + "fullDescription": {␊ + "text": "Multiple spaces after hash on atx style heading"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md019.md"␊ + },␊ + {␊ + "id": "MD047",␊ + "name": "Md047SingleTrailingNewline",␊ + "shortDescription": {␊ + "text": "Files should end with a single newline character"␊ + },␊ + "fullDescription": {␊ + "text": "Files should end with a single newline character"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md047.md"␊ + }␊ + ]␊ + }␊ + },␊ + "results": [␊ + {␊ + "ruleId": "MD009",␊ + "message": {␊ + "text": "Trailing spaces, Expected: 0 or 2; Actual: 1"␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "viewme.md"␊ + },␊ + "region": {␊ + "startLine": 3,␊ + "endLine": 3,␊ + "startColumn": 10,␊ + "endColumn": 11␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD012",␊ + "message": {␊ + "text": "Multiple consecutive blank lines, Expected: 1; Actual: 2"␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "viewme.md"␊ + },␊ + "region": {␊ + "startLine": 5,␊ + "endLine": 5␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD025",␊ + "message": {␊ + "text": "Multiple top-level headings in the same document, Context: \\"Description\\""␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "viewme.md"␊ + },␊ + "region": {␊ + "startLine": 6,␊ + "endLine": 6␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD019",␊ + "message": {␊ + "text": "Multiple spaces after hash on atx style heading, Context: \\"## Summary\\""␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "viewme.md"␊ + },␊ + "region": {␊ + "startLine": 12,␊ + "endLine": 12,␊ + "startColumn": 4,␊ + "endColumn": 5␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD047",␊ + "message": {␊ + "text": "Files should end with a single newline character"␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "viewme.md"␊ + },␊ + "region": {␊ + "startLine": 14,␊ + "endLine": 14,␊ + "startColumn": 14,␊ + "endColumn": 15␊ + }␊ + }␊ + }␊ + ]␊ + }␊ + ]␊ + }␊ + ]␊ + }`, + stderr: `##vso[task.logissue type=error;sourcepath=viewme.md;linenumber=3;columnumber=10;code=MD009/no-trailing-spaces]Trailing spaces␊ + ##vso[task.logissue type=error;sourcepath=viewme.md;linenumber=5;code=MD012/no-multiple-blanks]Multiple consecutive blank lines␊ + ##vso[task.logissue type=error;sourcepath=viewme.md;linenumber=6;code=MD025/single-title/single-h1]Multiple top-level headings in the same document␊ + ##vso[task.logissue type=error;sourcepath=viewme.md;linenumber=12;columnumber=4;code=MD019/no-multiple-space-atx]Multiple spaces after hash on atx style heading␊ + ##vso[task.logissue type=error;sourcepath=viewme.md;linenumber=14;columnumber=14;code=MD047/single-trailing-newline]Files should end with a single newline character␊ + #Undefined=${undefined}#Column=10#Column=10##Column=10#␊ + #Undefined=${undefined}#Column=##No column number#No column number#␊ + #Undefined=${undefined}#Column=##No column number#No column number#␊ + #Undefined=${undefined}#Column=4#Column=4##Column=4#␊ + #Undefined=${undefined}#Column=14#Column=14##Column=14#`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 1 file(s)␊ + Summary: 5 error(s)`, + } + +## outputFormatters-params-absolute (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: `[␊ + {␊ + "type": "issue",␊ + "check_name": "MD009/no-trailing-spaces",␊ + "description": "MD009/no-trailing-spaces: Trailing spaces [Expected: 0 or 2; Actual: 1]",␊ + "severity": "minor",␊ + "fingerprint": "f34a01e4a119d7df262993933665d4c97cc601702eeca2814ccad9606a3ccb48",␊ + "location": {␊ + "path": "viewme.md",␊ + "lines": {␊ + "begin": 3␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD012/no-multiple-blanks",␊ + "description": "MD012/no-multiple-blanks: Multiple consecutive blank lines [Expected: 1; Actual: 2]",␊ + "severity": "minor",␊ + "fingerprint": "a3d9b647ce8d929904e64fbbb0a47223617e8985d0a4d31e674b22f919f736fb",␊ + "location": {␊ + "path": "viewme.md",␊ + "lines": {␊ + "begin": 5␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD025/single-title/single-h1",␊ + "description": "MD025/single-title/single-h1: Multiple top-level headings in the same document",␊ + "severity": "minor",␊ + "fingerprint": "47cd7b74ada622add8ce464681102cb50f7fe2a685f3436327ae39c0f13ef1e6",␊ + "location": {␊ + "path": "viewme.md",␊ + "lines": {␊ + "begin": 6␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD019/no-multiple-space-atx",␊ + "description": "MD019/no-multiple-space-atx: Multiple spaces after hash on atx style heading",␊ + "severity": "minor",␊ + "fingerprint": "399bbfaf6a26399d5927b93a23b6d18705bb380e90b3e3e85956de34a22c9c5b",␊ + "location": {␊ + "path": "viewme.md",␊ + "lines": {␊ + "begin": 12␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD047/single-trailing-newline",␊ + "description": "MD047/single-trailing-newline: Files should end with a single newline character",␊ + "severity": "minor",␊ + "fingerprint": "bf74eade0ee3301ccaa826907651e0d6925b60d517e1110c29b081c7b6ce1acf",␊ + "location": {␊ + "path": "viewme.md",␊ + "lines": {␊ + "begin": 14␊ + }␊ + }␊ + }␊ + ]`, + formatterJson: `[␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 3,␊ + "ruleNames": [␊ + "MD009",␊ + "no-trailing-spaces"␊ + ],␊ + "ruleDescription": "Trailing spaces",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md009.md",␊ + "errorDetail": "Expected: 0 or 2; Actual: 1",␊ + "errorContext": null,␊ + "errorRange": [␊ + 10,␊ + 1␊ + ],␊ + "fixInfo": {␊ + "editColumn": 10,␊ + "deleteCount": 1␊ + }␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 5,␊ + "ruleNames": [␊ + "MD012",␊ + "no-multiple-blanks"␊ + ],␊ + "ruleDescription": "Multiple consecutive blank lines",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md012.md",␊ + "errorDetail": "Expected: 1; Actual: 2",␊ + "errorContext": null,␊ + "errorRange": null,␊ + "fixInfo": {␊ + "deleteCount": -1␊ + }␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 6,␊ + "ruleNames": [␊ + "MD025",␊ + "single-title",␊ + "single-h1"␊ + ],␊ + "ruleDescription": "Multiple top-level headings in the same document",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md025.md",␊ + "errorDetail": null,␊ + "errorContext": "Description",␊ + "errorRange": null,␊ + "fixInfo": null␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 12,␊ + "ruleNames": [␊ + "MD019",␊ + "no-multiple-space-atx"␊ + ],␊ + "ruleDescription": "Multiple spaces after hash on atx style heading",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md019.md",␊ + "errorDetail": null,␊ + "errorContext": "## Summary",␊ + "errorRange": [␊ + 4,␊ + 1␊ + ],␊ + "fixInfo": {␊ + "editColumn": 4,␊ + "deleteCount": 1␊ + }␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 14,␊ + "ruleNames": [␊ + "MD047",␊ + "single-trailing-newline"␊ + ],␊ + "ruleDescription": "Files should end with a single newline character",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md047.md",␊ + "errorDetail": null,␊ + "errorContext": null,␊ + "errorRange": [␊ + 14,␊ + 1␊ + ],␊ + "fixInfo": {␊ + "editColumn": 15,␊ + "insertText": "\\n"␊ + }␊ + }␊ + ]`, + formatterJunit: `␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + `, + formatterSarif: `{␊ + "$schema": "https://json.schemastore.org/sarif-2.1.0.json",␊ + "version": "2.1.0",␊ + "runs": [␊ + {␊ + "tool": {␊ + "driver": {␊ + "name": "markdownlint-cli2-formatter-sarif",␊ + "version": "0.0.2",␊ + "informationUri": "https://github.com/DavidAnson/markdownlint-cli2",␊ + "rules": [␊ + {␊ + "id": "MD009",␊ + "name": "Md009NoTrailingSpaces",␊ + "shortDescription": {␊ + "text": "Trailing spaces"␊ + },␊ + "fullDescription": {␊ + "text": "Trailing spaces"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md009.md"␊ + },␊ + {␊ + "id": "MD012",␊ + "name": "Md012NoMultipleBlanks",␊ + "shortDescription": {␊ + "text": "Multiple consecutive blank lines"␊ + },␊ + "fullDescription": {␊ + "text": "Multiple consecutive blank lines"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md012.md"␊ + },␊ + {␊ + "id": "MD025",␊ + "name": "Md025SingleTitleSingleH1",␊ + "shortDescription": {␊ + "text": "Multiple top-level headings in the same document"␊ + },␊ + "fullDescription": {␊ + "text": "Multiple top-level headings in the same document"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md025.md"␊ + },␊ + {␊ + "id": "MD019",␊ + "name": "Md019NoMultipleSpaceAtx",␊ + "shortDescription": {␊ + "text": "Multiple spaces after hash on atx style heading"␊ + },␊ + "fullDescription": {␊ + "text": "Multiple spaces after hash on atx style heading"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md019.md"␊ + },␊ + {␊ + "id": "MD047",␊ + "name": "Md047SingleTrailingNewline",␊ + "shortDescription": {␊ + "text": "Files should end with a single newline character"␊ + },␊ + "fullDescription": {␊ + "text": "Files should end with a single newline character"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md047.md"␊ + }␊ + ]␊ + }␊ + },␊ + "results": [␊ + {␊ + "ruleId": "MD009",␊ + "message": {␊ + "text": "Trailing spaces, Expected: 0 or 2; Actual: 1"␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "viewme.md"␊ + },␊ + "region": {␊ + "startLine": 3,␊ + "endLine": 3,␊ + "startColumn": 10,␊ + "endColumn": 11␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD012",␊ + "message": {␊ + "text": "Multiple consecutive blank lines, Expected: 1; Actual: 2"␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "viewme.md"␊ + },␊ + "region": {␊ + "startLine": 5,␊ + "endLine": 5␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD025",␊ + "message": {␊ + "text": "Multiple top-level headings in the same document, Context: \\"Description\\""␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "viewme.md"␊ + },␊ + "region": {␊ + "startLine": 6,␊ + "endLine": 6␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD019",␊ + "message": {␊ + "text": "Multiple spaces after hash on atx style heading, Context: \\"## Summary\\""␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "viewme.md"␊ + },␊ + "region": {␊ + "startLine": 12,␊ + "endLine": 12,␊ + "startColumn": 4,␊ + "endColumn": 5␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD047",␊ + "message": {␊ + "text": "Files should end with a single newline character"␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "viewme.md"␊ + },␊ + "region": {␊ + "startLine": 14,␊ + "endLine": 14,␊ + "startColumn": 14,␊ + "endColumn": 15␊ + }␊ + }␊ + }␊ + ]␊ + }␊ + ]␊ + }␊ + ]␊ + }`, + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 1 file(s)␊ + Summary: 5 error(s)`, + } + +## outputFormatters-pre-imported (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: `[␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 3,␊ + "ruleNames": [␊ + "MD009",␊ + "no-trailing-spaces"␊ + ],␊ + "ruleDescription": "Trailing spaces",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md009.md",␊ + "errorDetail": "Expected: 0 or 2; Actual: 1",␊ + "errorContext": null,␊ + "errorRange": [␊ + 10,␊ + 1␊ + ],␊ + "fixInfo": {␊ + "editColumn": 10,␊ + "deleteCount": 1␊ + }␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 5,␊ + "ruleNames": [␊ + "MD012",␊ + "no-multiple-blanks"␊ + ],␊ + "ruleDescription": "Multiple consecutive blank lines",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md012.md",␊ + "errorDetail": "Expected: 1; Actual: 2",␊ + "errorContext": null,␊ + "errorRange": null,␊ + "fixInfo": {␊ + "deleteCount": -1␊ + }␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 6,␊ + "ruleNames": [␊ + "MD025",␊ + "single-title",␊ + "single-h1"␊ + ],␊ + "ruleDescription": "Multiple top-level headings in the same document",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md025.md",␊ + "errorDetail": null,␊ + "errorContext": "Description",␊ + "errorRange": null,␊ + "fixInfo": null␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 12,␊ + "ruleNames": [␊ + "MD019",␊ + "no-multiple-space-atx"␊ + ],␊ + "ruleDescription": "Multiple spaces after hash on atx style heading",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md019.md",␊ + "errorDetail": null,␊ + "errorContext": "## Summary",␊ + "errorRange": [␊ + 4,␊ + 1␊ + ],␊ + "fixInfo": {␊ + "editColumn": 4,␊ + "deleteCount": 1␊ + }␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 14,␊ + "ruleNames": [␊ + "MD047",␊ + "single-trailing-newline"␊ + ],␊ + "ruleDescription": "Files should end with a single newline character",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md047.md",␊ + "errorDetail": null,␊ + "errorContext": null,␊ + "errorRange": [␊ + 14,␊ + 1␊ + ],␊ + "fixInfo": {␊ + "editColumn": 15,␊ + "insertText": "\\n"␊ + }␊ + }␊ + ]`, + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 1 file(s)␊ + Summary: 5 error(s)`, + } + +## outputFormatters-clean (exec) + +> Snapshot 1 + + { + exitCode: 0, + formatterCodeQuality: '[]', + formatterJson: '[]', + formatterJunit: `␊ + ␊ + ␊ + ␊ + ␊ + `, + formatterSarif: `{␊ + "$schema": "https://json.schemastore.org/sarif-2.1.0.json",␊ + "version": "2.1.0",␊ + "runs": [␊ + {␊ + "tool": {␊ + "driver": {␊ + "name": "markdownlint-cli2-formatter-sarif",␊ + "version": "0.0.2",␊ + "informationUri": "https://github.com/DavidAnson/markdownlint-cli2",␊ + "rules": []␊ + }␊ + },␊ + "results": []␊ + }␊ + ]␊ + }`, + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 0 file(s)␊ + Summary: 0 error(s)`, + } + +## outputFormatters-file (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `viewme.md 3 MD009/no-trailing-spaces␊ + viewme.md 5 MD012/no-multiple-blanks␊ + viewme.md 6 MD025/single-title/single-h1␊ + viewme.md 12 MD019/no-multiple-space-atx␊ + viewme.md 14 MD047/single-trailing-newline`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 1 file(s)␊ + Summary: 5 error(s)`, + } + +## outputFormatters-module (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `cjs: viewme.md 3 MD009/no-trailing-spaces␊ + cjs: viewme.md 5 MD012/no-multiple-blanks␊ + cjs: viewme.md 6 MD025/single-title/single-h1␊ + cjs: viewme.md 12 MD019/no-multiple-space-atx␊ + cjs: viewme.md 14 MD047/single-trailing-newline␊ + mjs: viewme.md 3 MD009/no-trailing-spaces␊ + mjs: viewme.md 5 MD012/no-multiple-blanks␊ + mjs: viewme.md 6 MD025/single-title/single-h1␊ + mjs: viewme.md 12 MD019/no-multiple-space-atx␊ + mjs: viewme.md 14 MD047/single-trailing-newline`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 1 file(s)␊ + Summary: 5 error(s)`, + } + +## outputFormatters-missing (exec) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: .*␊ + Linting: 1 file(s)␊ + Summary: 0 error(s)`, + } + +## formatter-summarize (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 14 error(s)␊ + Count File␊ + 4 dir/about.md␊ + 5 dir/subdir/info.md␊ + 5 viewme.md␊ + 14 [Total]␊ + Count Rule␊ + 1 MD009/no-trailing-spaces␊ + 2 MD012/no-multiple-blanks␊ + 1 MD019/no-multiple-space-atx␊ + 2 MD021/no-multiple-space-closed-atx␊ + 1 MD022/blanks-around-headings␊ + 1 MD025/single-title/single-h1␊ + 1 MD029/ol-prefix␊ + 1 MD032/blanks-around-lists␊ + 2 MD038/no-space-in-code␊ + 1 MD041/first-line-heading/first-line-h1␊ + 1 MD047/single-trailing-newline␊ + 14 [Total]␊ + dir/about.md␊ + Count Rule␊ + 2 MD021/no-multiple-space-closed-atx␊ + 1 MD029/ol-prefix␊ + 1 MD032/blanks-around-lists␊ + 4 [Total]␊ + dir/subdir/info.md␊ + Count Rule␊ + 1 MD012/no-multiple-blanks␊ + 1 MD022/blanks-around-headings␊ + 2 MD038/no-space-in-code␊ + 1 MD041/first-line-heading/first-line-h1␊ + 5 [Total]␊ + viewme.md␊ + Count Rule␊ + 1 MD009/no-trailing-spaces␊ + 1 MD012/no-multiple-blanks␊ + 1 MD019/no-multiple-space-atx␊ + 1 MD025/single-title/single-h1␊ + 1 MD047/single-trailing-newline␊ + 5 [Total]␊ + MD009/no-trailing-spaces␊ + Count File␊ + 1 viewme.md␊ + 1 [Total]␊ + MD012/no-multiple-blanks␊ + Count File␊ + 1 dir/subdir/info.md␊ + 1 viewme.md␊ + 2 [Total]␊ + MD019/no-multiple-space-atx␊ + Count File␊ + 1 viewme.md␊ + 1 [Total]␊ + MD021/no-multiple-space-closed-atx␊ + Count File␊ + 2 dir/about.md␊ + 2 [Total]␊ + MD022/blanks-around-headings␊ + Count File␊ + 1 dir/subdir/info.md␊ + 1 [Total]␊ + MD025/single-title/single-h1␊ + Count File␊ + 1 viewme.md␊ + 1 [Total]␊ + MD029/ol-prefix␊ + Count File␊ + 1 dir/about.md␊ + 1 [Total]␊ + MD032/blanks-around-lists␊ + Count File␊ + 1 dir/about.md␊ + 1 [Total]␊ + MD038/no-space-in-code␊ + Count File␊ + 2 dir/subdir/info.md␊ + 2 [Total]␊ + MD041/first-line-heading/first-line-h1␊ + Count File␊ + 1 dir/subdir/info.md␊ + 1 [Total]␊ + MD047/single-trailing-newline␊ + Count File␊ + 1 viewme.md␊ + 1 [Total]`, + } + +## formatter-pretty (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 ]8;;https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md021.mdMD021/no-multiple-space-closed-atx]8;; Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 ]8;;https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md021.mdMD021/no-multiple-space-closed-atx]8;; Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 ]8;;https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md032.mdMD032/blanks-around-lists]8;; Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 ]8;;https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md029.mdMD029/ol-prefix]8;; Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 ]8;;https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md022.mdMD022/blanks-around-headings]8;; Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 ]8;;https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md041.mdMD041/first-line-heading/first-line-h1]8;; First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 ]8;;https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md038.mdMD038/no-space-in-code]8;; Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 ]8;;https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md038.mdMD038/no-space-in-code]8;; Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 ]8;;https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md012.mdMD012/no-multiple-blanks]8;; Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 ]8;;https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md009.mdMD009/no-trailing-spaces]8;; Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 ]8;;https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md012.mdMD012/no-multiple-blanks]8;; Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 ]8;;https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md025.mdMD025/single-title/single-h1]8;; Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 ]8;;https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md019.mdMD019/no-multiple-space-atx]8;; Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 ]8;;https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md047.mdMD047/single-trailing-newline]8;; Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 14 error(s)`, + } + +## formatter-pretty-appendLink (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"] https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md021.md␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"] https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md021.md␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"] https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md032.md␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3] https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md029.md␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"] https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md022.md␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"] https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md041.md␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"] https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md038.md␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"] https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md038.md␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2] https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md012.md␊ + viewme.md:1:9 extended-ascii Only extended ASCII characters are allowed [Blocked character: '✅']␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1] https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md009.md␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2] https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md012.md␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"] https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md025.md␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"] https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md019.md␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md047.md`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 15 error(s)`, + } + +## formatter-template (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `${invalid}␊ + simple.md␊ + simple.mdsimple.mdsimple.md␊ + text{text}text␊ + text{text␊ + texttext}␊ + text${invalid}text␊ + textsimple.mdtext␊ + simple.md␊ + ${fileName}`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: *.md␊ + Linting: 1 file(s)␊ + Summary: 1 error(s)`, + } + +## nested-files (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `markdownlint-cli2-jsonc/dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + markdownlint-cli2-jsonc/dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + markdownlint-cli2-jsonc/dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + markdownlint-cli2-jsonc/dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + markdownlint-json/dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + markdownlint-json/dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + markdownlint-json/dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + markdownlint-json/dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 2 file(s)␊ + Summary: 8 error(s)`, + } + +## nested-directories (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `a/b/c/d/viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + a/b/c/d/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + a/b/c/d/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + a/b/c/d/viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + a/b/c/d/viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + a/b/viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + a/b/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + a/b/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + a/b/viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + a/b/viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: ** !a a/b !a/b/c a/b/c/d␊ + Linting: 3 file(s)␊ + Summary: 15 error(s)`, + } + +## nested-options-config (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `config-options-disjoint-empty/dir/dir/dir/info.md:1 first-line Rule that reports an error for the first line␊ + config-options-disjoint-empty/dir/dir/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + config-options-disjoint-empty/dir/dir/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + config-options-disjoint-empty/dir/dir/info.md:1 first-line Rule that reports an error for the first line␊ + config-options-disjoint-empty/dir/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + config-options-disjoint-empty/dir/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + config-options-disjoint/dir/dir/dir/info.md:1 first-line Rule that reports an error for the first line␊ + config-options-disjoint/dir/dir/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + config-options-disjoint/dir/dir/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + config-options-disjoint/dir/dir/info.md:1 first-line Rule that reports an error for the first line␊ + config-options-disjoint/dir/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + config-options-disjoint/dir/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + config-options-disjoint/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + config-options-disjoint/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + config-options-disjoint/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + config-options-disjoint/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + config-options-overlap-empty/dir/dir/dir/info.md:1 first-line Rule that reports an error for the first line␊ + config-options-overlap-empty/dir/dir/dir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + config-options-overlap-empty/dir/dir/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + config-options-overlap-empty/dir/dir/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + config-options-overlap-empty/dir/dir/info.md:1 first-line Rule that reports an error for the first line␊ + config-options-overlap-empty/dir/dir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + config-options-overlap-empty/dir/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + config-options-overlap-empty/dir/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + config-options-overlap/dir/dir/dir/info.md:1 first-line Rule that reports an error for the first line␊ + config-options-overlap/dir/dir/dir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + config-options-overlap/dir/dir/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + config-options-overlap/dir/dir/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + config-options-overlap/dir/dir/info.md:1 first-line Rule that reports an error for the first line␊ + config-options-overlap/dir/dir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + config-options-overlap/dir/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + config-options-overlap/dir/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + config-options-overlap/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + config-options-overlap/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + config-options-overlap/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + config-options-overlap/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + options-config-disjoint-empty/dir/dir/dir/info.md:1 first-line Rule that reports an error for the first line␊ + options-config-disjoint-empty/dir/dir/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + options-config-disjoint-empty/dir/dir/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + options-config-disjoint-empty/dir/dir/info.md:1 first-line Rule that reports an error for the first line␊ + options-config-disjoint-empty/dir/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + options-config-disjoint-empty/dir/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + options-config-disjoint/dir/dir/dir/info.md:1 first-line Rule that reports an error for the first line␊ + options-config-disjoint/dir/dir/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + options-config-disjoint/dir/dir/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + options-config-disjoint/dir/dir/info.md:1 first-line Rule that reports an error for the first line␊ + options-config-disjoint/dir/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + options-config-disjoint/dir/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + options-config-disjoint/dir/info.md:1 first-line Rule that reports an error for the first line␊ + options-config-disjoint/dir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + options-config-disjoint/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + options-config-disjoint/dir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + options-config-disjoint/dir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + options-config-disjoint/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + options-config-disjoint/info.md:1 first-line Rule that reports an error for the first line␊ + options-config-disjoint/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + options-config-disjoint/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + options-config-disjoint/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + options-config-disjoint/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + options-config-disjoint/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + options-config-overlap-empty/dir/dir/dir/info.md:1 first-line Rule that reports an error for the first line␊ + options-config-overlap-empty/dir/dir/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + options-config-overlap-empty/dir/dir/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + options-config-overlap-empty/dir/dir/info.md:1 first-line Rule that reports an error for the first line␊ + options-config-overlap-empty/dir/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + options-config-overlap-empty/dir/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + options-config-overlap/dir/dir/dir/info.md:1 first-line Rule that reports an error for the first line␊ + options-config-overlap/dir/dir/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + options-config-overlap/dir/dir/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + options-config-overlap/dir/dir/info.md:1 first-line Rule that reports an error for the first line␊ + options-config-overlap/dir/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + options-config-overlap/dir/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + options-config-overlap/dir/info.md:1 first-line Rule that reports an error for the first line␊ + options-config-overlap/dir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + options-config-overlap/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + options-config-overlap/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + options-config-overlap/info.md:1 first-line Rule that reports an error for the first line␊ + options-config-overlap/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + options-config-overlap/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + options-config-overlap/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 24 file(s)␊ + Summary: 80 error(s)`, + } + +## tilde-paths-commonjs (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `hr.md 3 sample-rule-commonjs␊ + link.md 3 MD039/no-space-in-links␊ + link.md 3 MD039/no-space-in-links␊ + viewme.md 3 any-blockquote␊ + viewme.md 3 MD009/no-trailing-spaces␊ + viewme.md 5 MD012/no-multiple-blanks␊ + viewme.md 6 MD025/single-title/single-h1␊ + viewme.md 12 MD019/no-multiple-space-atx␊ + viewme.md 14 MD047/single-trailing-newline␊ + cjs: hr.md 3 sample-rule-commonjs␊ + cjs: link.md 3 MD039/no-space-in-links␊ + cjs: link.md 3 MD039/no-space-in-links␊ + cjs: viewme.md 3 any-blockquote␊ + cjs: viewme.md 3 MD009/no-trailing-spaces␊ + cjs: viewme.md 5 MD012/no-multiple-blanks␊ + cjs: viewme.md 6 MD025/single-title/single-h1␊ + cjs: viewme.md 12 MD019/no-multiple-space-atx␊ + cjs: viewme.md 14 MD047/single-trailing-newline`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: *.md␊ + Linting: 3 file(s)␊ + Summary: 9 error(s)`, + } + +## tilde-paths-module (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `hr.md 3 sample-rule-commonjs␊ + link.md 3 MD039/no-space-in-links␊ + link.md 3 MD039/no-space-in-links␊ + viewme.md 3 any-blockquote␊ + viewme.md 3 MD009/no-trailing-spaces␊ + viewme.md 5 MD012/no-multiple-blanks␊ + viewme.md 6 MD025/single-title/single-h1␊ + viewme.md 12 MD019/no-multiple-space-atx␊ + viewme.md 14 MD047/single-trailing-newline␊ + cjs: hr.md 3 sample-rule-commonjs␊ + cjs: link.md 3 MD039/no-space-in-links␊ + cjs: link.md 3 MD039/no-space-in-links␊ + cjs: viewme.md 3 any-blockquote␊ + cjs: viewme.md 3 MD009/no-trailing-spaces␊ + cjs: viewme.md 5 MD012/no-multiple-blanks␊ + cjs: viewme.md 6 MD025/single-title/single-h1␊ + cjs: viewme.md 12 MD019/no-multiple-space-atx␊ + cjs: viewme.md 14 MD047/single-trailing-newline`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: *.md␊ + Linting: 3 file(s)␊ + Summary: 9 error(s)`, + } + +## no-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 14 error(s)`, + } + +## config-first-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 11 error(s)`, + } + +## config-last-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 11 error(s)`, + } + +## config-last-used-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 11 error(s)`, + } + +## fix-first-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:6:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + viewme.md:5 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 3 error(s)`, + } + +## fix-last-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:6:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + viewme.md:5 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 3 error(s)`, + } + +## fix-multiple-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:6:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + viewme.md:5 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 3 error(s)`, + } + +## fix-and-config-arg (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:6:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 2 error(s)`, + } + +## modulePaths (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `cjs: dir/about.md 1 MD021/no-multiple-space-closed-atx␊ + cjs: dir/about.md 1 MD021/no-multiple-space-closed-atx␊ + cjs: dir/about.md 4 MD032/blanks-around-lists␊ + cjs: dir/about.md 5 MD029/ol-prefix␊ + cjs: dir/hr.md 3 sample-rule-commonjs␊ + cjs: dir/link.md 3 MD039/no-space-in-links␊ + cjs: dir/link.md 3 MD039/no-space-in-links␊ + cjs: dir/subdir/info.md 1 MD022/blanks-around-headings␊ + cjs: dir/subdir/info.md 1 MD041/first-line-heading/first-line-h1␊ + cjs: dir/subdir/info.md 2 MD038/no-space-in-code␊ + cjs: dir/subdir/info.md 2 MD038/no-space-in-code␊ + cjs: dir/subdir/info.md 4 MD012/no-multiple-blanks␊ + cjs: viewme.md 3 MD009/no-trailing-spaces␊ + cjs: viewme.md 5 MD012/no-multiple-blanks␊ + cjs: viewme.md 6 MD025/single-title/single-h1␊ + cjs: viewme.md 12 MD019/no-multiple-space-atx␊ + cjs: viewme.md 14 MD047/single-trailing-newline`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 5 file(s)␊ + Summary: 17 error(s)`, + } + +## modulePaths-non-root (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/hr.md:3 sample-rule-commonjs Sample rule (commonjs) [Sample error for hr]␊ + dir/link.md:3:7 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + dir/link.md:3:12 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir2/link.md:3:7 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + dir2/link.md:3:12 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 6 file(s)␊ + Summary: 19 error(s)`, + } + +## jsonc-trailing-comma (exec) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character`, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 2 file(s)␊ + Summary: 8 error(s)`, + } diff --git a/test/snapshots/markdownlint-cli2-test-exec.mjs.snap b/test/snapshots/markdownlint-cli2-test-exec.mjs.snap new file mode 100644 index 00000000..3c13475f Binary files /dev/null and b/test/snapshots/markdownlint-cli2-test-exec.mjs.snap differ diff --git a/test/snapshots/markdownlint-cli2-test-fs.mjs.md b/test/snapshots/markdownlint-cli2-test-fs.mjs.md new file mode 100644 index 00000000..d76a9c20 --- /dev/null +++ b/test/snapshots/markdownlint-cli2-test-fs.mjs.md @@ -0,0 +1,2607 @@ +# Snapshot report for `test/markdownlint-cli2-test-fs.mjs` + +The actual snapshot is saved in `markdownlint-cli2-test-fs.mjs.snap`. + +Generated by [AVA](https://avajs.dev). + +## no-arguments (fs) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + https://github.com/DavidAnson/markdownlint-cli2␊ + ␊ + Syntax: markdownlint-cli2 glob0 [glob1] [...] [globN] [--config file] [--fix] [--help]␊ + ␊ + Glob expressions (from the globby library):␊ + - * matches any number of characters, but not /␊ + - ? matches a single character, but not /␊ + - ** matches any number of characters, including /␊ + - {} allows for a comma-separated list of "or" expressions␊ + - ! or # at the beginning of a pattern negate the match␊ + - : at the beginning identifies a literal file path␊ + - - as a glob represents standard input (stdin)␊ + ␊ + Dot-only glob:␊ + - The command "markdownlint-cli2 ." would lint every file in the current directory tree which is probably not intended␊ + - Instead, it is mapped to "markdownlint-cli2 *.{md,markdown}" which lints all Markdown files in the current directory␊ + - To lint every file in the current directory tree, the command "markdownlint-cli2 **" can be used instead␊ + ␊ + Optional parameters:␊ + - --config specifies the path to a configuration file to define the base configuration␊ + - --fix updates files to resolve fixable issues (can be overridden in configuration)␊ + - --help writes this message to the console and exits without doing anything else␊ + - --no-globs ignores the "globs" property if present in the top-level options object␊ + ␊ + Configuration via:␊ + - .markdownlint-cli2.jsonc␊ + - .markdownlint-cli2.yaml␊ + - .markdownlint-cli2.cjs or .markdownlint-cli2.mjs␊ + - .markdownlint.jsonc or .markdownlint.json␊ + - .markdownlint.yaml or .markdownlint.yml␊ + - .markdownlint.cjs or .markdownlint.mjs␊ + - package.json␊ + ␊ + Cross-platform compatibility:␊ + - UNIX and Windows shells expand globs according to different rules; quoting arguments is recommended␊ + - Some Windows shells don't handle single-quoted (') arguments well; double-quote (") is recommended␊ + - Shells that expand globs do not support negated patterns (!node_modules); quoting is required here␊ + - Some UNIX shells parse exclamation (!) in double-quotes; hashtag (#) is recommended in these cases␊ + - The path separator is forward slash (/) on all platforms; backslash (\\) is automatically converted␊ + - On any platform, passing the parameter "--" causes all remaining parameters to be treated literally␊ + ␊ + The most compatible syntax for cross-platform support:␊ + $ markdownlint-cli2 "**/*.md" "#node_modules"␊ + `, + } + +## no-arguments-config-arg (fs) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + https://github.com/DavidAnson/markdownlint-cli2␊ + ␊ + Syntax: markdownlint-cli2 glob0 [glob1] [...] [globN] [--config file] [--fix] [--help]␊ + ␊ + Glob expressions (from the globby library):␊ + - * matches any number of characters, but not /␊ + - ? matches a single character, but not /␊ + - ** matches any number of characters, including /␊ + - {} allows for a comma-separated list of "or" expressions␊ + - ! or # at the beginning of a pattern negate the match␊ + - : at the beginning identifies a literal file path␊ + - - as a glob represents standard input (stdin)␊ + ␊ + Dot-only glob:␊ + - The command "markdownlint-cli2 ." would lint every file in the current directory tree which is probably not intended␊ + - Instead, it is mapped to "markdownlint-cli2 *.{md,markdown}" which lints all Markdown files in the current directory␊ + - To lint every file in the current directory tree, the command "markdownlint-cli2 **" can be used instead␊ + ␊ + Optional parameters:␊ + - --config specifies the path to a configuration file to define the base configuration␊ + - --fix updates files to resolve fixable issues (can be overridden in configuration)␊ + - --help writes this message to the console and exits without doing anything else␊ + - --no-globs ignores the "globs" property if present in the top-level options object␊ + ␊ + Configuration via:␊ + - .markdownlint-cli2.jsonc␊ + - .markdownlint-cli2.yaml␊ + - .markdownlint-cli2.cjs or .markdownlint-cli2.mjs␊ + - .markdownlint.jsonc or .markdownlint.json␊ + - .markdownlint.yaml or .markdownlint.yml␊ + - .markdownlint.cjs or .markdownlint.mjs␊ + - package.json␊ + ␊ + Cross-platform compatibility:␊ + - UNIX and Windows shells expand globs according to different rules; quoting arguments is recommended␊ + - Some Windows shells don't handle single-quoted (') arguments well; double-quote (") is recommended␊ + - Shells that expand globs do not support negated patterns (!node_modules); quoting is required here␊ + - Some UNIX shells parse exclamation (!) in double-quotes; hashtag (#) is recommended in these cases␊ + - The path separator is forward slash (/) on all platforms; backslash (\\) is automatically converted␊ + - On any platform, passing the parameter "--" causes all remaining parameters to be treated literally␊ + ␊ + The most compatible syntax for cross-platform support:␊ + $ markdownlint-cli2 "**/*.md" "#node_modules"␊ + `, + } + +## missing-argument-config-arg (fs) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + https://github.com/DavidAnson/markdownlint-cli2␊ + ␊ + Syntax: markdownlint-cli2 glob0 [glob1] [...] [globN] [--config file] [--fix] [--help]␊ + ␊ + Glob expressions (from the globby library):␊ + - * matches any number of characters, but not /␊ + - ? matches a single character, but not /␊ + - ** matches any number of characters, including /␊ + - {} allows for a comma-separated list of "or" expressions␊ + - ! or # at the beginning of a pattern negate the match␊ + - : at the beginning identifies a literal file path␊ + - - as a glob represents standard input (stdin)␊ + ␊ + Dot-only glob:␊ + - The command "markdownlint-cli2 ." would lint every file in the current directory tree which is probably not intended␊ + - Instead, it is mapped to "markdownlint-cli2 *.{md,markdown}" which lints all Markdown files in the current directory␊ + - To lint every file in the current directory tree, the command "markdownlint-cli2 **" can be used instead␊ + ␊ + Optional parameters:␊ + - --config specifies the path to a configuration file to define the base configuration␊ + - --fix updates files to resolve fixable issues (can be overridden in configuration)␊ + - --help writes this message to the console and exits without doing anything else␊ + - --no-globs ignores the "globs" property if present in the top-level options object␊ + ␊ + Configuration via:␊ + - .markdownlint-cli2.jsonc␊ + - .markdownlint-cli2.yaml␊ + - .markdownlint-cli2.cjs or .markdownlint-cli2.mjs␊ + - .markdownlint.jsonc or .markdownlint.json␊ + - .markdownlint.yaml or .markdownlint.yml␊ + - .markdownlint.cjs or .markdownlint.mjs␊ + - package.json␊ + ␊ + Cross-platform compatibility:␊ + - UNIX and Windows shells expand globs according to different rules; quoting arguments is recommended␊ + - Some Windows shells don't handle single-quoted (') arguments well; double-quote (") is recommended␊ + - Shells that expand globs do not support negated patterns (!node_modules); quoting is required here␊ + - Some UNIX shells parse exclamation (!) in double-quotes; hashtag (#) is recommended in these cases␊ + - The path separator is forward slash (/) on all platforms; backslash (\\) is automatically converted␊ + - On any platform, passing the parameter "--" causes all remaining parameters to be treated literally␊ + ␊ + The most compatible syntax for cross-platform support:␊ + $ markdownlint-cli2 "**/*.md" "#node_modules"␊ + `, + } + +## one-argument-config-arg (fs) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + https://github.com/DavidAnson/markdownlint-cli2␊ + ␊ + Syntax: markdownlint-cli2 glob0 [glob1] [...] [globN] [--config file] [--fix] [--help]␊ + ␊ + Glob expressions (from the globby library):␊ + - * matches any number of characters, but not /␊ + - ? matches a single character, but not /␊ + - ** matches any number of characters, including /␊ + - {} allows for a comma-separated list of "or" expressions␊ + - ! or # at the beginning of a pattern negate the match␊ + - : at the beginning identifies a literal file path␊ + - - as a glob represents standard input (stdin)␊ + ␊ + Dot-only glob:␊ + - The command "markdownlint-cli2 ." would lint every file in the current directory tree which is probably not intended␊ + - Instead, it is mapped to "markdownlint-cli2 *.{md,markdown}" which lints all Markdown files in the current directory␊ + - To lint every file in the current directory tree, the command "markdownlint-cli2 **" can be used instead␊ + ␊ + Optional parameters:␊ + - --config specifies the path to a configuration file to define the base configuration␊ + - --fix updates files to resolve fixable issues (can be overridden in configuration)␊ + - --help writes this message to the console and exits without doing anything else␊ + - --no-globs ignores the "globs" property if present in the top-level options object␊ + ␊ + Configuration via:␊ + - .markdownlint-cli2.jsonc␊ + - .markdownlint-cli2.yaml␊ + - .markdownlint-cli2.cjs or .markdownlint-cli2.mjs␊ + - .markdownlint.jsonc or .markdownlint.json␊ + - .markdownlint.yaml or .markdownlint.yml␊ + - .markdownlint.cjs or .markdownlint.mjs␊ + - package.json␊ + ␊ + Cross-platform compatibility:␊ + - UNIX and Windows shells expand globs according to different rules; quoting arguments is recommended␊ + - Some Windows shells don't handle single-quoted (') arguments well; double-quote (") is recommended␊ + - Shells that expand globs do not support negated patterns (!node_modules); quoting is required here␊ + - Some UNIX shells parse exclamation (!) in double-quotes; hashtag (#) is recommended in these cases␊ + - The path separator is forward slash (/) on all platforms; backslash (\\) is automatically converted␊ + - On any platform, passing the parameter "--" causes all remaining parameters to be treated literally␊ + ␊ + The most compatible syntax for cross-platform support:␊ + $ markdownlint-cli2 "**/*.md" "#node_modules"␊ + `, + } + +## no-files (fs) + +> Snapshot 1 + + { + exitCode: 0, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: nothing-matches␊ + Linting: 0 file(s)␊ + Summary: 0 error(s)␊ + `, + } + +## no-files-exclamation (fs) + +> Snapshot 1 + + { + exitCode: 0, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: !␊ + Linting: 0 file(s)␊ + Summary: 0 error(s)␊ + `, + } + +## no-files-octothorpe (fs) + +> Snapshot 1 + + { + exitCode: 0, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: !␊ + Linting: 0 file(s)␊ + Summary: 0 error(s)␊ + `, + } + +## all-ok (fs) + +> Snapshot 1 + + { + exitCode: 0, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md **/*.markdown␊ + Linting: 5 file(s)␊ + Summary: 0 error(s)␊ + `, + } + +## no-config (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/UPPER.MD:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + dir/UPPER.MD:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/UPPER.MD:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir/UPPER.MD:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + dir/UPPER.MD:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **␊ + Linting: 4 file(s)␊ + Summary: 19 error(s)␊ + `, + } + +## no-config-ignore (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: ** !dir␊ + Linting: 1 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## no-config-unignore (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: ** !dir dir/subdir␊ + Linting: 2 file(s)␊ + Summary: 10 error(s)␊ + `, + } + +## no-config-ignore-hash (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: ** !dir␊ + Linting: 1 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## file-paths-as-args (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: viewme.md ./dir/subdir/info.md␊ + Linting: 2 file(s)␊ + Summary: 10 error(s)␊ + `, + } + +## dot (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `info.markdown:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + info.markdown:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + info.markdown:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + info.markdown:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + info.markdown:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: *.{md,markdown}␊ + Linting: 2 file(s)␊ + Summary: 10 error(s)␊ + `, + } + +## dotfiles (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `.dir/.about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + .dir/.about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + .dir/.about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + .dir/.about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + .dir/.subdir/.info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + .dir/.subdir/.info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + .dir/.subdir/.info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + .dir/.subdir/.info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + .dir/.subdir/.info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + .dir/.subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + .dir/.subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + .dir/.subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + .dir/.subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + .dir/.subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + .dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + .dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + .dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + .dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + .dir/subdir/.info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + .dir/subdir/.info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + .dir/subdir/.info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + .dir/subdir/.info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + .dir/subdir/.info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + .dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + .dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + .dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + .dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + .dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + .viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + .viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + .viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + .viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + .viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + dir/.about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/.about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/.about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/.about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/.subdir/.info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/.subdir/.info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/.subdir/.info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/.subdir/.info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/.subdir/.info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/.subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/.subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/.subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/.subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/.subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/.info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/.info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/.info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/.info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/.info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **␊ + Linting: 14 file(s)␊ + Summary: 66 error(s)␊ + `, + } + +## dotfiles-exclude (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `.viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + .viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + .viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + .viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + .viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + dir/.about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/.about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/.about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/.about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/.subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/.subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/.subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/.subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/.subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: ** !.dir !**/.info.md␊ + Linting: 6 file(s)␊ + Summary: 28 error(s)␊ + `, + } + +## globs (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/subdir/info.markdown:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.markdown:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.markdown:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.markdown:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.markdown:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md !dir/about.md **/*.markdown␊ + Linting: 2 file(s)␊ + Summary: 10 error(s)␊ + `, + } + +## globs-and-args (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.markdown:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.markdown:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.markdown:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.markdown:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.markdown:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.markdown **/*.md␊ + Linting: 3 file(s)␊ + Summary: 14 error(s)␊ + `, + } + +## no-globs-and-args (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.markdown:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.markdown:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.markdown:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.markdown:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.markdown:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: dir/about.md dir/**/*.markdown␊ + Linting: 2 file(s)␊ + Summary: 9 error(s)␊ + `, + } + +## no-globs-and-empty-args (fs) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + https://github.com/DavidAnson/markdownlint-cli2␊ + ␊ + Syntax: markdownlint-cli2 glob0 [glob1] [...] [globN] [--config file] [--fix] [--help]␊ + ␊ + Glob expressions (from the globby library):␊ + - * matches any number of characters, but not /␊ + - ? matches a single character, but not /␊ + - ** matches any number of characters, including /␊ + - {} allows for a comma-separated list of "or" expressions␊ + - ! or # at the beginning of a pattern negate the match␊ + - : at the beginning identifies a literal file path␊ + - - as a glob represents standard input (stdin)␊ + ␊ + Dot-only glob:␊ + - The command "markdownlint-cli2 ." would lint every file in the current directory tree which is probably not intended␊ + - Instead, it is mapped to "markdownlint-cli2 *.{md,markdown}" which lints all Markdown files in the current directory␊ + - To lint every file in the current directory tree, the command "markdownlint-cli2 **" can be used instead␊ + ␊ + Optional parameters:␊ + - --config specifies the path to a configuration file to define the base configuration␊ + - --fix updates files to resolve fixable issues (can be overridden in configuration)␊ + - --help writes this message to the console and exits without doing anything else␊ + - --no-globs ignores the "globs" property if present in the top-level options object␊ + ␊ + Configuration via:␊ + - .markdownlint-cli2.jsonc␊ + - .markdownlint-cli2.yaml␊ + - .markdownlint-cli2.cjs or .markdownlint-cli2.mjs␊ + - .markdownlint.jsonc or .markdownlint.json␊ + - .markdownlint.yaml or .markdownlint.yml␊ + - .markdownlint.cjs or .markdownlint.mjs␊ + - package.json␊ + ␊ + Cross-platform compatibility:␊ + - UNIX and Windows shells expand globs according to different rules; quoting arguments is recommended␊ + - Some Windows shells don't handle single-quoted (') arguments well; double-quote (") is recommended␊ + - Shells that expand globs do not support negated patterns (!node_modules); quoting is required here␊ + - Some UNIX shells parse exclamation (!) in double-quotes; hashtag (#) is recommended in these cases␊ + - The path separator is forward slash (/) on all platforms; backslash (\\) is automatically converted␊ + - On any platform, passing the parameter "--" causes all remaining parameters to be treated literally␊ + ␊ + The most compatible syntax for cross-platform support:␊ + $ markdownlint-cli2 "**/*.md" "#node_modules"␊ + `, + } + +## globs-and-ignores (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/subdir/info.markdown:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.markdown:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.markdown:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.markdown:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.markdown:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md **/*.markdown !dir/about.md␊ + Linting: 2 file(s)␊ + Summary: 10 error(s)␊ + `, + } + +## markdownlint-json (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 11 error(s)␊ + `, + } + +## markdownlint-json-extends (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 11 error(s)␊ + `, + } + +## markdownlint-jsonc (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 1 file(s)␊ + Summary: 4 error(s)␊ + `, + } + +## markdownlint-yaml (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 11 error(s)␊ + `, + } + +## markdownlint-yml (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 1 file(s)␊ + Summary: 4 error(s)␊ + `, + } + +## markdownlint-json-yaml (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 1 file(s)␊ + Summary: 4 error(s)␊ + `, + } + +## markdownlint-json-invalid (fs) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + `, + } + +## markdownlint-yaml-invalid (fs) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + `, + } + +## markdownlint-json-mismatch (fs) + +> Snapshot 1 + + { + exitCode: 0, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: viewme.md␊ + Linting: 1 file(s)␊ + Summary: 0 error(s)␊ + `, + } + +## markdownlint-yaml-mismatch (fs) + +> Snapshot 1 + + { + exitCode: 0, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: viewme.md␊ + Linting: 1 file(s)␊ + Summary: 0 error(s)␊ + `, + } + +## markdownlint-cli2-jsonc-mismatch (fs) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + `, + } + +## markdownlint-cli2-yaml-mismatch (fs) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + `, + } + +## markdownlint-json-mismatch-config (fs) + +> Snapshot 1 + + { + exitCode: 0, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: viewme.md␊ + Linting: 1 file(s)␊ + Summary: 0 error(s)␊ + `, + } + +## markdownlint-yaml-mismatch-config (fs) + +> Snapshot 1 + + { + exitCode: 0, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: viewme.md␊ + Linting: 1 file(s)␊ + Summary: 0 error(s)␊ + `, + } + +## markdownlint-cli2-jsonc-mismatch-config (fs) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + `, + } + +## markdownlint-cli2-yaml-mismatch-config (fs) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + `, + } + +## markdownlint-cli2-jsonc (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 10 error(s)␊ + `, + } + +## markdownlint-cli2-jsonc-invalid (fs) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + `, + } + +## markdownlint-cli2-yaml (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 10 error(s)␊ + `, + } + +## markdownlint-cli2-yaml-invalid (fs) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + `, + } + +## config-option-extends (fs) + +> Snapshot 1 + + { + exitCode: 0, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: viewme.md␊ + Linting: 1 file(s)␊ + Summary: 0 error(s)␊ + `, + } + +## config-overrides-options (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: viewme.md␊ + Linting: 1 file(s)␊ + Summary: 3 error(s)␊ + `, + } + +## ignores (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `alt1/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + alt1/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + alt1/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + alt1/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + alt1/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + alt1/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + alt1/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + alt1/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + alt1/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + alt2/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + alt2/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + alt2/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + alt2/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + alt2/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir4/subdir/info.markdown:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir4/subdir/info.markdown:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir4/subdir/info.markdown:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir4/subdir/info.markdown:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir4/subdir/info.markdown:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md **/*.markdown !*.md !dir*/*/*.md !dir7 !dir8/subdir␊ + Linting: 13 file(s)␊ + Summary: 23 error(s)␊ + `, + } + +## sibling-directory (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `../markdownlint-json/dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + ../markdownlint-json/dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + ../markdownlint-json/dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + ../markdownlint-json/dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + ../markdownlint-json/dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + ../markdownlint-json/dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + ../markdownlint-json/dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + ../markdownlint-json/viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + ../markdownlint-json/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + ../markdownlint-json/viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + ../markdownlint-json/viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: ../markdownlint-json/**/*.md␊ + Linting: 3 file(s)␊ + Summary: 11 error(s)␊ + `, + } + +## sibling-directory-options (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `../no-config/dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + ../no-config/dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + ../no-config/dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + ../no-config/dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + ../no-config/dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + ../no-config/dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + ../no-config/viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + ../no-config/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + ../no-config/viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + ../no-config/viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: ../no-config/**/*.md␊ + Linting: 3 file(s)␊ + Summary: 10 error(s)␊ + `, + } + +## noInlineConfig (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:7:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir2/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:16:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 4 file(s)␊ + Summary: 11 error(s)␊ + `, + } + +## showFound (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir2/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Found:␊ + dir/about.md␊ + dir/subdir/info.md␊ + dir/subdir2/info.md␊ + viewme.md␊ + Linting: 4 file(s)␊ + Summary: 7 error(s)␊ + `, + } + +## frontMatter (fs) + +> Snapshot 1 + + { + exitCode: 0, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 0 error(s)␊ + `, + } + +## gitignore (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/UPPER.MD:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + dir/UPPER.MD:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/UPPER.MD:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir/UPPER.MD:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + dir/UPPER.MD:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.{md,MD}␊ + Linting: 4 file(s)␊ + Summary: 19 error(s)␊ + `, + } + +## gitignore-root-only (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/UPPER.MD:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + dir/UPPER.MD:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/UPPER.MD:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir/UPPER.MD:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + dir/UPPER.MD:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.{md,MD}␊ + Linting: 4 file(s)␊ + Summary: 19 error(s)␊ + `, + } + +## literal-files (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir(1)/(view)me.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + dir(1)/(view)me.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir(1)/(view)me.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir(1)/(view)me.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + dir(1)/(view)me.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + dir(1)/viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + dir(1)/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir(1)/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir(1)/viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + dir(1)/viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + dir/view(me).md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + dir/view(me).md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/view(me).md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir/view(me).md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + dir/view(me).md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + view(me).md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + view(me).md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + view(me).md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + view(me).md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + view(me).md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: :view(me).md :dir/view(me).md :dir(1)/viewme.md :dir(1)/(view)me.md␊ + Linting: 4 file(s)␊ + Summary: 20 error(s)␊ + `, + } + +## literal-files-absolute (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `sentinel/dir(1)/(view)me.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + sentinel/dir(1)/(view)me.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + sentinel/dir(1)/(view)me.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + sentinel/dir(1)/(view)me.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + sentinel/dir(1)/(view)me.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + sentinel/dir/view(me).md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + sentinel/dir/view(me).md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + sentinel/dir/view(me).md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + sentinel/dir/view(me).md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + sentinel/dir/view(me).md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: :[PATH]/dir(1)/(view)me.md sentinel/dir␊ + Linting: 2 file(s)␊ + Summary: 10 error(s)␊ + `, + } + +## fix (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:6:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir2/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir2/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir2/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir2/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir2/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:5 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 4 file(s)␊ + Summary: 8 error(s)␊ + `, + } + +## fix-scenarios (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `no-fixable-issues.md:3:13 MD033/no-inline-html Inline HTML [Element: br]␊ + no-fixable-issues.md:5 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "\`\`\`"]␊ + no-fixable-issues.md:9 MD036/no-emphasis-as-heading Emphasis used instead of a heading [Context: "Emphasis as heading"]␊ + some-fixable-issues.md:3:13 MD033/no-inline-html Inline HTML [Element: br]␊ + some-fixable-issues.md:7 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "\`\`\`"]␊ + some-fixable-issues.md:13 MD036/no-emphasis-as-heading Emphasis used instead of a heading [Context: "Emphasis as heading"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 4 file(s)␊ + Summary: 6 error(s)␊ + `, + } + +## fix-default-true-arg (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir2/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir2/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir2/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir2/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir2/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir2/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir2/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir2/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir2/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir2/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir3/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir3/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir3/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir3/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir3/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir3/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + viewme.md:5 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 7 file(s)␊ + Summary: 19 error(s)␊ + `, + } + +## fix-default-true-override-arg (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 1 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint-cli2.jsonc-arg (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint-cli2.jsonc-alternate-arg (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint-cli2.yaml-arg (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint-cli2.yaml-alternate-arg (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint.jsonc-arg (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint.jsonc-alternate-arg (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint.json-arg (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint.json-alternate-arg (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint.yaml-arg (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint.yaml-alternate-arg (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint.yml-arg (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint.yml-alternate-arg (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-invalid.markdownlint-cli2.jsonc-invalid-arg (fs) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + `, + } + +## config-files-invalid.markdownlint.json-invalid-arg (fs) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + `, + } + +## config-files-invalid.markdownlint.yaml-invalid-arg (fs) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + `, + } + +## config-files-.markdownlint-cli2.jsonc-redundant-arg (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: *.md␊ + Linting: 1 file(s)␊ + Summary: 4 error(s)␊ + `, + } + +## config-files-.markdownlint.json-redundant-arg (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: *.md␊ + Linting: 1 file(s)␊ + Summary: 4 error(s)␊ + `, + } + +## config-file-unrecognized-arg (fs) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + `, + } + +## config-with-fix-arg (fs) + +> Snapshot 1 + + { + exitCode: 0, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: viewme.md info.md␊ + Linting: 2 file(s)␊ + Summary: 0 error(s)␊ + `, + } + +## package-json (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 10 error(s)␊ + `, + } + +## package-json-fix (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 2 error(s)␊ + `, + } + +## package-json-invalid (fs) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + `, + } + +## package-json-nested (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 10 error(s)␊ + `, + } + +## nested-files (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `markdownlint-cli2-jsonc/dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + markdownlint-cli2-jsonc/dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + markdownlint-cli2-jsonc/dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + markdownlint-cli2-jsonc/dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + markdownlint-json/dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + markdownlint-json/dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + markdownlint-json/dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + markdownlint-json/dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 2 file(s)␊ + Summary: 8 error(s)␊ + `, + } + +## nested-directories (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `a/b/c/d/viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + a/b/c/d/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + a/b/c/d/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + a/b/c/d/viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + a/b/c/d/viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + a/b/viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + a/b/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + a/b/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + a/b/viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + a/b/viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: ** !a a/b !a/b/c a/b/c/d␊ + Linting: 3 file(s)␊ + Summary: 15 error(s)␊ + `, + } + +## markdownlint-cjs-no-require (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 14 error(s)␊ + `, + } + +## markdownlint-mjs-no-require (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 14 error(s)␊ + `, + } + +## markdownlint-cli2-cjs-no-require (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 14 error(s)␊ + `, + } + +## markdownlint-cli2-mjs-no-require (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 14 error(s)␊ + `, + } + +## customRules-no-require (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/subdir2/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir2/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir2/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir2/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir2/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/subdir3/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir3/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir3/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir3/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir3/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 9 file(s)␊ + Summary: 24 error(s)␊ + `, + } + +## markdownItPlugins-no-require (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `file/link.md:3:7 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + file/link.md:3:12 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + function/link.md:3:7 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + function/link.md:3:12 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + module/link.md:3:7 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + module/link.md:3:12 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + multiple/emoji.md:3:15 MD044/proper-names Proper names should have the correct capitalization [Expected: SMILE; Actual: smile]␊ + multiple/emoji.md:5:13 MD044/proper-names Proper names should have the correct capitalization [Expected: FROWNING; Actual: frowning]␊ + multiple/emoji.md:15 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + pre-imported/link.md:3:7 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + pre-imported/link.md:3:12 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + single/emoji.md:15 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 6 file(s)␊ + Summary: 12 error(s)␊ + `, + } + +## no-arg (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 14 error(s)␊ + `, + } + +## config-first-arg (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 11 error(s)␊ + `, + } + +## config-last-arg (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 11 error(s)␊ + `, + } + +## config-last-used-arg (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 11 error(s)␊ + `, + } + +## fix-first-arg (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:6:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + viewme.md:5 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 3 error(s)␊ + `, + } + +## fix-last-arg (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:6:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + viewme.md:5 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 3 error(s)␊ + `, + } + +## fix-multiple-arg (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:6:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + viewme.md:5 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 3 error(s)␊ + `, + } + +## fix-and-config-arg (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:6:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 2 error(s)␊ + `, + } + +## jsonc-trailing-comma (fs) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 2 file(s)␊ + Summary: 8 error(s)␊ + `, + } diff --git a/test/snapshots/markdownlint-cli2-test-fs.mjs.snap b/test/snapshots/markdownlint-cli2-test-fs.mjs.snap new file mode 100644 index 00000000..ad8442e0 Binary files /dev/null and b/test/snapshots/markdownlint-cli2-test-fs.mjs.snap differ diff --git a/test/snapshots/markdownlint-cli2-test-main.mjs.md b/test/snapshots/markdownlint-cli2-test-main.mjs.md new file mode 100644 index 00000000..d5683840 --- /dev/null +++ b/test/snapshots/markdownlint-cli2-test-main.mjs.md @@ -0,0 +1,5836 @@ +# Snapshot report for `test/markdownlint-cli2-test-main.mjs` + +The actual snapshot is saved in `markdownlint-cli2-test-main.mjs.snap`. + +Generated by [AVA](https://avajs.dev). + +## no-arguments (main) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + https://github.com/DavidAnson/markdownlint-cli2␊ + ␊ + Syntax: markdownlint-cli2 glob0 [glob1] [...] [globN] [--config file] [--fix] [--help]␊ + ␊ + Glob expressions (from the globby library):␊ + - * matches any number of characters, but not /␊ + - ? matches a single character, but not /␊ + - ** matches any number of characters, including /␊ + - {} allows for a comma-separated list of "or" expressions␊ + - ! or # at the beginning of a pattern negate the match␊ + - : at the beginning identifies a literal file path␊ + - - as a glob represents standard input (stdin)␊ + ␊ + Dot-only glob:␊ + - The command "markdownlint-cli2 ." would lint every file in the current directory tree which is probably not intended␊ + - Instead, it is mapped to "markdownlint-cli2 *.{md,markdown}" which lints all Markdown files in the current directory␊ + - To lint every file in the current directory tree, the command "markdownlint-cli2 **" can be used instead␊ + ␊ + Optional parameters:␊ + - --config specifies the path to a configuration file to define the base configuration␊ + - --fix updates files to resolve fixable issues (can be overridden in configuration)␊ + - --help writes this message to the console and exits without doing anything else␊ + - --no-globs ignores the "globs" property if present in the top-level options object␊ + ␊ + Configuration via:␊ + - .markdownlint-cli2.jsonc␊ + - .markdownlint-cli2.yaml␊ + - .markdownlint-cli2.cjs or .markdownlint-cli2.mjs␊ + - .markdownlint.jsonc or .markdownlint.json␊ + - .markdownlint.yaml or .markdownlint.yml␊ + - .markdownlint.cjs or .markdownlint.mjs␊ + - package.json␊ + ␊ + Cross-platform compatibility:␊ + - UNIX and Windows shells expand globs according to different rules; quoting arguments is recommended␊ + - Some Windows shells don't handle single-quoted (') arguments well; double-quote (") is recommended␊ + - Shells that expand globs do not support negated patterns (!node_modules); quoting is required here␊ + - Some UNIX shells parse exclamation (!) in double-quotes; hashtag (#) is recommended in these cases␊ + - The path separator is forward slash (/) on all platforms; backslash (\\) is automatically converted␊ + - On any platform, passing the parameter "--" causes all remaining parameters to be treated literally␊ + ␊ + The most compatible syntax for cross-platform support:␊ + $ markdownlint-cli2 "**/*.md" "#node_modules"␊ + `, + } + +## no-arguments-config-arg (main) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + https://github.com/DavidAnson/markdownlint-cli2␊ + ␊ + Syntax: markdownlint-cli2 glob0 [glob1] [...] [globN] [--config file] [--fix] [--help]␊ + ␊ + Glob expressions (from the globby library):␊ + - * matches any number of characters, but not /␊ + - ? matches a single character, but not /␊ + - ** matches any number of characters, including /␊ + - {} allows for a comma-separated list of "or" expressions␊ + - ! or # at the beginning of a pattern negate the match␊ + - : at the beginning identifies a literal file path␊ + - - as a glob represents standard input (stdin)␊ + ␊ + Dot-only glob:␊ + - The command "markdownlint-cli2 ." would lint every file in the current directory tree which is probably not intended␊ + - Instead, it is mapped to "markdownlint-cli2 *.{md,markdown}" which lints all Markdown files in the current directory␊ + - To lint every file in the current directory tree, the command "markdownlint-cli2 **" can be used instead␊ + ␊ + Optional parameters:␊ + - --config specifies the path to a configuration file to define the base configuration␊ + - --fix updates files to resolve fixable issues (can be overridden in configuration)␊ + - --help writes this message to the console and exits without doing anything else␊ + - --no-globs ignores the "globs" property if present in the top-level options object␊ + ␊ + Configuration via:␊ + - .markdownlint-cli2.jsonc␊ + - .markdownlint-cli2.yaml␊ + - .markdownlint-cli2.cjs or .markdownlint-cli2.mjs␊ + - .markdownlint.jsonc or .markdownlint.json␊ + - .markdownlint.yaml or .markdownlint.yml␊ + - .markdownlint.cjs or .markdownlint.mjs␊ + - package.json␊ + ␊ + Cross-platform compatibility:␊ + - UNIX and Windows shells expand globs according to different rules; quoting arguments is recommended␊ + - Some Windows shells don't handle single-quoted (') arguments well; double-quote (") is recommended␊ + - Shells that expand globs do not support negated patterns (!node_modules); quoting is required here␊ + - Some UNIX shells parse exclamation (!) in double-quotes; hashtag (#) is recommended in these cases␊ + - The path separator is forward slash (/) on all platforms; backslash (\\) is automatically converted␊ + - On any platform, passing the parameter "--" causes all remaining parameters to be treated literally␊ + ␊ + The most compatible syntax for cross-platform support:␊ + $ markdownlint-cli2 "**/*.md" "#node_modules"␊ + `, + } + +## missing-argument-config-arg (main) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + https://github.com/DavidAnson/markdownlint-cli2␊ + ␊ + Syntax: markdownlint-cli2 glob0 [glob1] [...] [globN] [--config file] [--fix] [--help]␊ + ␊ + Glob expressions (from the globby library):␊ + - * matches any number of characters, but not /␊ + - ? matches a single character, but not /␊ + - ** matches any number of characters, including /␊ + - {} allows for a comma-separated list of "or" expressions␊ + - ! or # at the beginning of a pattern negate the match␊ + - : at the beginning identifies a literal file path␊ + - - as a glob represents standard input (stdin)␊ + ␊ + Dot-only glob:␊ + - The command "markdownlint-cli2 ." would lint every file in the current directory tree which is probably not intended␊ + - Instead, it is mapped to "markdownlint-cli2 *.{md,markdown}" which lints all Markdown files in the current directory␊ + - To lint every file in the current directory tree, the command "markdownlint-cli2 **" can be used instead␊ + ␊ + Optional parameters:␊ + - --config specifies the path to a configuration file to define the base configuration␊ + - --fix updates files to resolve fixable issues (can be overridden in configuration)␊ + - --help writes this message to the console and exits without doing anything else␊ + - --no-globs ignores the "globs" property if present in the top-level options object␊ + ␊ + Configuration via:␊ + - .markdownlint-cli2.jsonc␊ + - .markdownlint-cli2.yaml␊ + - .markdownlint-cli2.cjs or .markdownlint-cli2.mjs␊ + - .markdownlint.jsonc or .markdownlint.json␊ + - .markdownlint.yaml or .markdownlint.yml␊ + - .markdownlint.cjs or .markdownlint.mjs␊ + - package.json␊ + ␊ + Cross-platform compatibility:␊ + - UNIX and Windows shells expand globs according to different rules; quoting arguments is recommended␊ + - Some Windows shells don't handle single-quoted (') arguments well; double-quote (") is recommended␊ + - Shells that expand globs do not support negated patterns (!node_modules); quoting is required here␊ + - Some UNIX shells parse exclamation (!) in double-quotes; hashtag (#) is recommended in these cases␊ + - The path separator is forward slash (/) on all platforms; backslash (\\) is automatically converted␊ + - On any platform, passing the parameter "--" causes all remaining parameters to be treated literally␊ + ␊ + The most compatible syntax for cross-platform support:␊ + $ markdownlint-cli2 "**/*.md" "#node_modules"␊ + `, + } + +## one-argument-config-arg (main) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + https://github.com/DavidAnson/markdownlint-cli2␊ + ␊ + Syntax: markdownlint-cli2 glob0 [glob1] [...] [globN] [--config file] [--fix] [--help]␊ + ␊ + Glob expressions (from the globby library):␊ + - * matches any number of characters, but not /␊ + - ? matches a single character, but not /␊ + - ** matches any number of characters, including /␊ + - {} allows for a comma-separated list of "or" expressions␊ + - ! or # at the beginning of a pattern negate the match␊ + - : at the beginning identifies a literal file path␊ + - - as a glob represents standard input (stdin)␊ + ␊ + Dot-only glob:␊ + - The command "markdownlint-cli2 ." would lint every file in the current directory tree which is probably not intended␊ + - Instead, it is mapped to "markdownlint-cli2 *.{md,markdown}" which lints all Markdown files in the current directory␊ + - To lint every file in the current directory tree, the command "markdownlint-cli2 **" can be used instead␊ + ␊ + Optional parameters:␊ + - --config specifies the path to a configuration file to define the base configuration␊ + - --fix updates files to resolve fixable issues (can be overridden in configuration)␊ + - --help writes this message to the console and exits without doing anything else␊ + - --no-globs ignores the "globs" property if present in the top-level options object␊ + ␊ + Configuration via:␊ + - .markdownlint-cli2.jsonc␊ + - .markdownlint-cli2.yaml␊ + - .markdownlint-cli2.cjs or .markdownlint-cli2.mjs␊ + - .markdownlint.jsonc or .markdownlint.json␊ + - .markdownlint.yaml or .markdownlint.yml␊ + - .markdownlint.cjs or .markdownlint.mjs␊ + - package.json␊ + ␊ + Cross-platform compatibility:␊ + - UNIX and Windows shells expand globs according to different rules; quoting arguments is recommended␊ + - Some Windows shells don't handle single-quoted (') arguments well; double-quote (") is recommended␊ + - Shells that expand globs do not support negated patterns (!node_modules); quoting is required here␊ + - Some UNIX shells parse exclamation (!) in double-quotes; hashtag (#) is recommended in these cases␊ + - The path separator is forward slash (/) on all platforms; backslash (\\) is automatically converted␊ + - On any platform, passing the parameter "--" causes all remaining parameters to be treated literally␊ + ␊ + The most compatible syntax for cross-platform support:␊ + $ markdownlint-cli2 "**/*.md" "#node_modules"␊ + `, + } + +## no-files (main) + +> Snapshot 1 + + { + exitCode: 0, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: nothing-matches␊ + Linting: 0 file(s)␊ + Summary: 0 error(s)␊ + `, + } + +## no-files-exclamation (main) + +> Snapshot 1 + + { + exitCode: 0, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: !␊ + Linting: 0 file(s)␊ + Summary: 0 error(s)␊ + `, + } + +## no-files-octothorpe (main) + +> Snapshot 1 + + { + exitCode: 0, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: !␊ + Linting: 0 file(s)␊ + Summary: 0 error(s)␊ + `, + } + +## all-ok (main) + +> Snapshot 1 + + { + exitCode: 0, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md **/*.markdown␊ + Linting: 5 file(s)␊ + Summary: 0 error(s)␊ + `, + } + +## no-config (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/UPPER.MD:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + dir/UPPER.MD:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/UPPER.MD:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir/UPPER.MD:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + dir/UPPER.MD:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **␊ + Linting: 4 file(s)␊ + Summary: 19 error(s)␊ + `, + } + +## no-config-ignore (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: ** !dir␊ + Linting: 1 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## no-config-unignore (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: ** !dir dir/subdir␊ + Linting: 2 file(s)␊ + Summary: 10 error(s)␊ + `, + } + +## no-config-ignore-hash (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: ** !dir␊ + Linting: 1 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## file-paths-as-args (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: viewme.md ./dir/subdir/info.md␊ + Linting: 2 file(s)␊ + Summary: 10 error(s)␊ + `, + } + +## dot (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `info.markdown:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + info.markdown:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + info.markdown:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + info.markdown:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + info.markdown:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: *.{md,markdown}␊ + Linting: 2 file(s)␊ + Summary: 10 error(s)␊ + `, + } + +## dotfiles (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `.dir/.about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + .dir/.about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + .dir/.about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + .dir/.about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + .dir/.subdir/.info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + .dir/.subdir/.info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + .dir/.subdir/.info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + .dir/.subdir/.info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + .dir/.subdir/.info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + .dir/.subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + .dir/.subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + .dir/.subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + .dir/.subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + .dir/.subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + .dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + .dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + .dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + .dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + .dir/subdir/.info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + .dir/subdir/.info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + .dir/subdir/.info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + .dir/subdir/.info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + .dir/subdir/.info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + .dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + .dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + .dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + .dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + .dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + .viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + .viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + .viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + .viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + .viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + dir/.about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/.about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/.about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/.about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/.subdir/.info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/.subdir/.info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/.subdir/.info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/.subdir/.info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/.subdir/.info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/.subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/.subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/.subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/.subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/.subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/.info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/.info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/.info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/.info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/.info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **␊ + Linting: 14 file(s)␊ + Summary: 66 error(s)␊ + `, + } + +## dotfiles-exclude (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `.viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + .viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + .viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + .viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + .viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + dir/.about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/.about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/.about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/.about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/.subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/.subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/.subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/.subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/.subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: ** !.dir !**/.info.md␊ + Linting: 6 file(s)␊ + Summary: 28 error(s)␊ + `, + } + +## globs (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/subdir/info.markdown:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.markdown:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.markdown:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.markdown:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.markdown:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md !dir/about.md **/*.markdown␊ + Linting: 2 file(s)␊ + Summary: 10 error(s)␊ + `, + } + +## globs-and-args (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.markdown:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.markdown:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.markdown:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.markdown:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.markdown:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.markdown **/*.md␊ + Linting: 3 file(s)␊ + Summary: 14 error(s)␊ + `, + } + +## no-globs-and-args (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.markdown:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.markdown:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.markdown:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.markdown:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.markdown:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: dir/about.md dir/**/*.markdown␊ + Linting: 2 file(s)␊ + Summary: 9 error(s)␊ + `, + } + +## no-globs-and-empty-args (main) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + https://github.com/DavidAnson/markdownlint-cli2␊ + ␊ + Syntax: markdownlint-cli2 glob0 [glob1] [...] [globN] [--config file] [--fix] [--help]␊ + ␊ + Glob expressions (from the globby library):␊ + - * matches any number of characters, but not /␊ + - ? matches a single character, but not /␊ + - ** matches any number of characters, including /␊ + - {} allows for a comma-separated list of "or" expressions␊ + - ! or # at the beginning of a pattern negate the match␊ + - : at the beginning identifies a literal file path␊ + - - as a glob represents standard input (stdin)␊ + ␊ + Dot-only glob:␊ + - The command "markdownlint-cli2 ." would lint every file in the current directory tree which is probably not intended␊ + - Instead, it is mapped to "markdownlint-cli2 *.{md,markdown}" which lints all Markdown files in the current directory␊ + - To lint every file in the current directory tree, the command "markdownlint-cli2 **" can be used instead␊ + ␊ + Optional parameters:␊ + - --config specifies the path to a configuration file to define the base configuration␊ + - --fix updates files to resolve fixable issues (can be overridden in configuration)␊ + - --help writes this message to the console and exits without doing anything else␊ + - --no-globs ignores the "globs" property if present in the top-level options object␊ + ␊ + Configuration via:␊ + - .markdownlint-cli2.jsonc␊ + - .markdownlint-cli2.yaml␊ + - .markdownlint-cli2.cjs or .markdownlint-cli2.mjs␊ + - .markdownlint.jsonc or .markdownlint.json␊ + - .markdownlint.yaml or .markdownlint.yml␊ + - .markdownlint.cjs or .markdownlint.mjs␊ + - package.json␊ + ␊ + Cross-platform compatibility:␊ + - UNIX and Windows shells expand globs according to different rules; quoting arguments is recommended␊ + - Some Windows shells don't handle single-quoted (') arguments well; double-quote (") is recommended␊ + - Shells that expand globs do not support negated patterns (!node_modules); quoting is required here␊ + - Some UNIX shells parse exclamation (!) in double-quotes; hashtag (#) is recommended in these cases␊ + - The path separator is forward slash (/) on all platforms; backslash (\\) is automatically converted␊ + - On any platform, passing the parameter "--" causes all remaining parameters to be treated literally␊ + ␊ + The most compatible syntax for cross-platform support:␊ + $ markdownlint-cli2 "**/*.md" "#node_modules"␊ + `, + } + +## globs-and-ignores (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/subdir/info.markdown:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.markdown:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.markdown:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.markdown:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.markdown:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md **/*.markdown !dir/about.md␊ + Linting: 2 file(s)␊ + Summary: 10 error(s)␊ + `, + } + +## markdownlint-json (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 11 error(s)␊ + `, + } + +## markdownlint-json-extends (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 11 error(s)␊ + `, + } + +## markdownlint-jsonc (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 1 file(s)␊ + Summary: 4 error(s)␊ + `, + } + +## markdownlint-yaml (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 11 error(s)␊ + `, + } + +## markdownlint-yml (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 1 file(s)␊ + Summary: 4 error(s)␊ + `, + } + +## markdownlint-cjs (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 11 error(s)␊ + `, + } + +## markdownlint-mjs (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 11 error(s)␊ + `, + } + +## markdownlint-json-yaml (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 1 file(s)␊ + Summary: 4 error(s)␊ + `, + } + +## markdownlint-json-invalid (main) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + `, + } + +## markdownlint-yaml-invalid (main) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + `, + } + +## markdownlint-cjs-invalid (main) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + `, + } + +## markdownlint-mjs-invalid (main) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + `, + } + +## markdownlint-json-mismatch (main) + +> Snapshot 1 + + { + exitCode: 0, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: viewme.md␊ + Linting: 1 file(s)␊ + Summary: 0 error(s)␊ + `, + } + +## markdownlint-yaml-mismatch (main) + +> Snapshot 1 + + { + exitCode: 0, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: viewme.md␊ + Linting: 1 file(s)␊ + Summary: 0 error(s)␊ + `, + } + +## markdownlint-cli2-jsonc-mismatch (main) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + `, + } + +## markdownlint-cli2-yaml-mismatch (main) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + `, + } + +## markdownlint-json-mismatch-config (main) + +> Snapshot 1 + + { + exitCode: 0, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: viewme.md␊ + Linting: 1 file(s)␊ + Summary: 0 error(s)␊ + `, + } + +## markdownlint-yaml-mismatch-config (main) + +> Snapshot 1 + + { + exitCode: 0, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: viewme.md␊ + Linting: 1 file(s)␊ + Summary: 0 error(s)␊ + `, + } + +## markdownlint-cli2-jsonc-mismatch-config (main) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + `, + } + +## markdownlint-cli2-yaml-mismatch-config (main) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + `, + } + +## markdownlint-cli2-jsonc (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 10 error(s)␊ + `, + } + +## markdownlint-cli2-jsonc-example (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `extended-ascii.md:1:9 extended-ascii Only extended ASCII characters are allowed [Blocked character: '✅']␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: '', + } + +## markdownlint-cli2-jsonc-invalid (main) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + `, + } + +## markdownlint-cli2-yaml (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 10 error(s)␊ + `, + } + +## markdownlint-cli2-yaml-example (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `extended-ascii.md:1:9 extended-ascii Only extended ASCII characters are allowed [Blocked character: '✅']␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: '', + } + +## markdownlint-cli2-yaml-invalid (main) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + `, + } + +## markdownlint-cli2-cjs (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 10 error(s)␊ + `, + } + +## markdownlint-cli2-mjs (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 10 error(s)␊ + `, + } + +## markdownlint-cli2-cjs-invalid (main) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + `, + } + +## markdownlint-cli2-mjs-invalid (main) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + `, + } + +## markdownlint-cli2-extends (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `cjs/viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + cjs/viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + jsonc/viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + jsonc/viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + package/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + package/viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + yaml/viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + yaml/viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 4 file(s)␊ + Summary: 8 error(s)␊ + `, + } + +## config-option-extends (main) + +> Snapshot 1 + + { + exitCode: 0, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: viewme.md␊ + Linting: 1 file(s)␊ + Summary: 0 error(s)␊ + `, + } + +## config-overrides-options (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: viewme.md␊ + Linting: 1 file(s)␊ + Summary: 3 error(s)␊ + `, + } + +## ignores (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `alt1/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + alt1/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + alt1/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + alt1/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + alt1/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + alt1/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + alt1/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + alt1/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + alt1/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + alt2/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + alt2/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + alt2/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + alt2/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + alt2/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir4/subdir/info.markdown:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir4/subdir/info.markdown:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir4/subdir/info.markdown:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir4/subdir/info.markdown:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir4/subdir/info.markdown:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md **/*.markdown !*.md !dir*/*/*.md !dir7 !dir8/subdir␊ + Linting: 13 file(s)␊ + Summary: 23 error(s)␊ + `, + } + +## sibling-directory (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `../markdownlint-json/dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + ../markdownlint-json/dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + ../markdownlint-json/dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + ../markdownlint-json/dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + ../markdownlint-json/dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + ../markdownlint-json/dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + ../markdownlint-json/dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + ../markdownlint-json/viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + ../markdownlint-json/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + ../markdownlint-json/viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + ../markdownlint-json/viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: ../markdownlint-json/**/*.md␊ + Linting: 3 file(s)␊ + Summary: 11 error(s)␊ + `, + } + +## sibling-directory-options (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `../no-config/dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + ../no-config/dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + ../no-config/dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + ../no-config/dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + ../no-config/dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + ../no-config/dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + ../no-config/viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + ../no-config/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + ../no-config/viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + ../no-config/viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: ../no-config/**/*.md␊ + Linting: 3 file(s)␊ + Summary: 10 error(s)␊ + `, + } + +## noInlineConfig (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:7:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir2/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:16:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 4 file(s)␊ + Summary: 11 error(s)␊ + `, + } + +## showFound (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir2/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Found:␊ + dir/about.md␊ + dir/subdir/info.md␊ + dir/subdir2/info.md␊ + viewme.md␊ + Linting: 4 file(s)␊ + Summary: 7 error(s)␊ + `, + } + +## frontMatter (main) + +> Snapshot 1 + + { + exitCode: 0, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 0 error(s)␊ + `, + } + +## gitignore (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/UPPER.MD:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + dir/UPPER.MD:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/UPPER.MD:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir/UPPER.MD:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + dir/UPPER.MD:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.{md,MD}␊ + Linting: 2 file(s)␊ + Summary: 9 error(s)␊ + `, + } + +## gitignore-root-only (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/UPPER.MD:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + dir/UPPER.MD:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/UPPER.MD:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir/UPPER.MD:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + dir/UPPER.MD:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.{md,MD}␊ + Linting: 3 file(s)␊ + Summary: 14 error(s)␊ + `, + } + +## literal-files (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir(1)/(view)me.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + dir(1)/(view)me.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir(1)/(view)me.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir(1)/(view)me.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + dir(1)/(view)me.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + dir(1)/viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + dir(1)/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir(1)/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir(1)/viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + dir(1)/viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + dir/view(me).md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + dir/view(me).md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/view(me).md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir/view(me).md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + dir/view(me).md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + view(me).md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + view(me).md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + view(me).md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + view(me).md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + view(me).md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: :view(me).md :dir/view(me).md :dir(1)/viewme.md :dir(1)/(view)me.md␊ + Linting: 4 file(s)␊ + Summary: 20 error(s)␊ + `, + } + +## literal-files-absolute (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `sentinel/dir(1)/(view)me.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + sentinel/dir(1)/(view)me.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + sentinel/dir(1)/(view)me.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + sentinel/dir(1)/(view)me.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + sentinel/dir(1)/(view)me.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + sentinel/dir/view(me).md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + sentinel/dir/view(me).md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + sentinel/dir/view(me).md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + sentinel/dir/view(me).md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + sentinel/dir/view(me).md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: :[PATH]/dir(1)/(view)me.md sentinel/dir␊ + Linting: 2 file(s)␊ + Summary: 10 error(s)␊ + `, + } + +## fix (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:6:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir2/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir2/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir2/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir2/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir2/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:5 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 4 file(s)␊ + Summary: 8 error(s)␊ + `, + } + +## fix-scenarios (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `no-fixable-issues.md:3:13 MD033/no-inline-html Inline HTML [Element: br]␊ + no-fixable-issues.md:5 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "\`\`\`"]␊ + no-fixable-issues.md:9 MD036/no-emphasis-as-heading Emphasis used instead of a heading [Context: "Emphasis as heading"]␊ + some-fixable-issues.md:3:13 MD033/no-inline-html Inline HTML [Element: br]␊ + some-fixable-issues.md:7 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "\`\`\`"]␊ + some-fixable-issues.md:13 MD036/no-emphasis-as-heading Emphasis used instead of a heading [Context: "Emphasis as heading"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 4 file(s)␊ + Summary: 6 error(s)␊ + `, + } + +## fix-default-true-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir2/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir2/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir2/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir2/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir2/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir2/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir2/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir2/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir2/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir2/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir3/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir3/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir3/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir3/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir3/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir3/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + viewme.md:5 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 7 file(s)␊ + Summary: 19 error(s)␊ + `, + } + +## fix-default-true-override-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 1 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint-cli2.jsonc-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint-cli2.jsonc-alternate-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint-cli2.jsonc-absolute-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint-cli2.yaml-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint-cli2.yaml-alternate-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint-cli2.yaml-absolute-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint-cli2.cjs-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint-cli2.cjs-alternate-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint-cli2.cjs-absolute-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint-cli2.mjs-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint-cli2.mjs-alternate-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint-cli2.mjs-absolute-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint.jsonc-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint.jsonc-alternate-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint.jsonc-absolute-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint.json-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint.json-alternate-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint.json-absolute-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint.yaml-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint.yaml-alternate-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint.yaml-absolute-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint.yml-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint.yml-alternate-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint.yml-absolute-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint.cjs-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint.cjs-alternate-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint.cjs-absolute-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint.mjs-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint.mjs-alternate-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-.markdownlint.mjs-absolute-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir1/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir1/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + dir2/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## config-files-invalid.markdownlint-cli2.jsonc-invalid-arg (main) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + `, + } + +## config-files-invalid.markdownlint-cli2.cjs-invalid-arg (main) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + `, + } + +## config-files-invalid.markdownlint-cli2.mjs-invalid-arg (main) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + `, + } + +## config-files-invalid.markdownlint.json-invalid-arg (main) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + `, + } + +## config-files-invalid.markdownlint.yaml-invalid-arg (main) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + `, + } + +## config-files-invalid.markdownlint.cjs-invalid-arg (main) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + `, + } + +## config-files-invalid.markdownlint.mjs-invalid-arg (main) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + `, + } + +## config-files-.markdownlint-cli2.jsonc-redundant-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: *.md␊ + Linting: 1 file(s)␊ + Summary: 4 error(s)␊ + `, + } + +## config-files-.markdownlint.json-redundant-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: *.md␊ + Linting: 1 file(s)␊ + Summary: 4 error(s)␊ + `, + } + +## config-files-.markdownlint.cjs-redundant-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: *.md␊ + Linting: 1 file(s)␊ + Summary: 4 error(s)␊ + `, + } + +## config-file-unrecognized-arg (main) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + `, + } + +## config-relative-commonjs-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `link.md 3 MD039/no-space-in-links␊ + link.md 3 MD039/no-space-in-links␊ + viewme.md 3 any-blockquote␊ + viewme.md 3 MD009/no-trailing-spaces␊ + viewme.md 5 MD012/no-multiple-blanks␊ + viewme.md 12 MD019/no-multiple-space-atx␊ + viewme.md 14 MD047/single-trailing-newline␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: viewme.md link.md␊ + Linting: 2 file(s)␊ + Summary: 7 error(s)␊ + `, + } + +## config-relative-module-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `link.md 3 MD039/no-space-in-links␊ + link.md 3 MD039/no-space-in-links␊ + viewme.md 3 any-blockquote␊ + viewme.md 3 MD009/no-trailing-spaces␊ + viewme.md 5 MD012/no-multiple-blanks␊ + viewme.md 12 MD019/no-multiple-space-atx␊ + viewme.md 14 MD047/single-trailing-newline␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: viewme.md link.md␊ + Linting: 2 file(s)␊ + Summary: 7 error(s)␊ + `, + } + +## config-with-fix-arg (main) + +> Snapshot 1 + + { + exitCode: 0, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: viewme.md info.md␊ + Linting: 2 file(s)␊ + Summary: 0 error(s)␊ + `, + } + +## package-json (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 10 error(s)␊ + `, + } + +## package-json-fix (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 2 error(s)␊ + `, + } + +## package-json-invalid (main) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + `, + } + +## package-json-nested (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 10 error(s)␊ + `, + } + +## customRules (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1 every-n-lines Rule that reports an error every N lines [This rule threw an exception: getLineMetadata is not a function]␊ + dir/about.md:1 first-line Rule that reports an error for the first line␊ + dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/hr.md:1:6 extended-ascii Only extended ASCII characters are allowed [Blocked character: '✅']␊ + dir/subdir/hr.md:1 first-line Rule that reports an error for the first line␊ + dir/subdir/hr.md:3 sample-rule-commonjs Sample rule (commonjs) [Sample error for hr]␊ + dir/subdir/hr.md:3 sample-rule-module Sample rule (module) [Sample error for hr]␊ + dir/subdir/info.md:1 first-line Rule that reports an error for the first line␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/subdir2/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir2/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir2/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir2/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir2/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/subdir3/info.md:1 every-n-lines Rule that reports an error every N lines [This rule threw an exception: getLineMetadata is not a function]␊ + dir/subdir3/info.md:1 first-line Rule that reports an error for the first line␊ + dir/subdir3/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir3/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir3/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir3/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir3/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir2/hr.md:3 sample-rule-commonjs Sample rule (commonjs) [Sample error for hr]␊ + dir2/hr.md:3 sample-rule-module Sample rule (module) [Sample error for hr]␊ + dir3/hr.md:1 every-n-lines Rule that reports an error every N lines [This rule threw an exception: getLineMetadata is not a function]␊ + dir3/hr.md:1 first-line Rule that reports an error for the first line␊ + dir3/hr.md:2 second-line Rule that reports an error for the second line␊ + dir3/hr.md:3 sample-rule-commonjs Sample rule (commonjs) [Sample error for hr]␊ + dir3/hr.md:3 sample-rule-module Sample rule (module) [Sample error for hr]␊ + dir4/hr.md:3 sample-rule-module Sample rule (module) [Sample error for hr]␊ + viewme.md:1 every-n-lines Rule that reports an error every N lines [This rule threw an exception: getLineMetadata is not a function]␊ + viewme.md:1 first-line Rule that reports an error for the first line␊ + viewme.md:3 any-blockquote Rule that reports an error for any blockquote [Blockquote spans 1 line(s).] [Context: "> Tagli"]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 9 file(s)␊ + Summary: 44 error(s)␊ + `, + } + +## customRules-pre-imported (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `viewme.md:3 any-blockquote Rule that reports an error for any blockquote [Blockquote spans 1 line(s).] [Context: "> Tagli"]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 1 file(s)␊ + Summary: 6 error(s)␊ + `, + } + +## customRules-missing (main) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: .*␊ + `, + } + +## customRules-invalid (main) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: .*␊ + Linting: 1 file(s)␊ + `, + } + +## customRules-throws (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `viewme.md:1 throws Rule that throws during execution [This rule threw an exception: Simulated bug]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 1 file(s)␊ + Summary: 6 error(s)␊ + `, + } + +## markdownItPlugins (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `file/link.md:3:7 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + file/link.md:3:12 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + function/link.md:3:7 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + function/link.md:3:12 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + module/link.md:3:7 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + module/link.md:3:12 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + multiple/emoji.md:3:15 MD044/proper-names Proper names should have the correct capitalization [Expected: SMILE; Actual: smile]␊ + multiple/emoji.md:5:13 MD044/proper-names Proper names should have the correct capitalization [Expected: FROWNING; Actual: frowning]␊ + multiple/emoji.md:15 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + pre-imported/link.md:3:7 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + pre-imported/link.md:3:12 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + single/emoji.md:15 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 6 file(s)␊ + Summary: 12 error(s)␊ + `, + } + +## markdownItPlugins-missing (main) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: .*␊ + `, + } + +## outputFormatters (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: `[␊ + {␊ + "type": "issue",␊ + "check_name": "MD021/no-multiple-space-closed-atx",␊ + "description": "MD021/no-multiple-space-closed-atx: Multiple spaces inside hashes on closed atx style heading",␊ + "severity": "minor",␊ + "fingerprint": "8a07df476b805f34574121021e7b9bafb39f201c8aff448fb2f0dcd44a71b16c",␊ + "location": {␊ + "path": "dir/about.md",␊ + "lines": {␊ + "begin": 1␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD021/no-multiple-space-closed-atx",␊ + "description": "MD021/no-multiple-space-closed-atx: Multiple spaces inside hashes on closed atx style heading",␊ + "severity": "minor",␊ + "fingerprint": "8db764109451f15469798953956669835f36446059a4b6c686918f6eb10c6f49",␊ + "location": {␊ + "path": "dir/about.md",␊ + "lines": {␊ + "begin": 1␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD032/blanks-around-lists",␊ + "description": "MD032/blanks-around-lists: Lists should be surrounded by blank lines",␊ + "severity": "minor",␊ + "fingerprint": "6ddd22f64c0a48e6b536677a9283be74fb75ad61a988efc543c1cbe6b0b3a3bb",␊ + "location": {␊ + "path": "dir/about.md",␊ + "lines": {␊ + "begin": 4␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD029/ol-prefix",␊ + "description": "MD029/ol-prefix: Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]",␊ + "severity": "minor",␊ + "fingerprint": "e072e957ba3f9e58988e049ed727269c61b5da8f768edd0608e5d54f48564531",␊ + "location": {␊ + "path": "dir/about.md",␊ + "lines": {␊ + "begin": 5␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD022/blanks-around-headings",␊ + "description": "MD022/blanks-around-headings: Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below]",␊ + "severity": "minor",␊ + "fingerprint": "5161c78dcdb7c171057c40cdeb5d6c26f317475e1e8c549dd25c8d1ecd805b18",␊ + "location": {␊ + "path": "dir/subdir/info.md",␊ + "lines": {␊ + "begin": 1␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD041/first-line-heading/first-line-h1",␊ + "description": "MD041/first-line-heading/first-line-h1: First line in a file should be a top-level heading",␊ + "severity": "minor",␊ + "fingerprint": "f6b546238b859746049d2548037a56ec760d1bb1631b15528ef74777976f0029",␊ + "location": {␊ + "path": "dir/subdir/info.md",␊ + "lines": {␊ + "begin": 1␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD038/no-space-in-code",␊ + "description": "MD038/no-space-in-code: Spaces inside code span elements",␊ + "severity": "minor",␊ + "fingerprint": "801b456e1aebf4ccfff95bf885b0716ca6167de5634950351d43b84e74e6593a",␊ + "location": {␊ + "path": "dir/subdir/info.md",␊ + "lines": {␊ + "begin": 2␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD038/no-space-in-code",␊ + "description": "MD038/no-space-in-code: Spaces inside code span elements",␊ + "severity": "minor",␊ + "fingerprint": "74fd34146155d3a0377743f7db5967724770c076198dc10d19657518a624b064",␊ + "location": {␊ + "path": "dir/subdir/info.md",␊ + "lines": {␊ + "begin": 2␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD012/no-multiple-blanks",␊ + "description": "MD012/no-multiple-blanks: Multiple consecutive blank lines [Expected: 1; Actual: 2]",␊ + "severity": "minor",␊ + "fingerprint": "df47d6f9b7697c6afabe8ca956d32b96f083d63b5f98003e7ee07ac1139b3fa3",␊ + "location": {␊ + "path": "dir/subdir/info.md",␊ + "lines": {␊ + "begin": 4␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD009/no-trailing-spaces",␊ + "description": "MD009/no-trailing-spaces: Trailing spaces [Expected: 0 or 2; Actual: 1]",␊ + "severity": "minor",␊ + "fingerprint": "f34a01e4a119d7df262993933665d4c97cc601702eeca2814ccad9606a3ccb48",␊ + "location": {␊ + "path": "viewme.md",␊ + "lines": {␊ + "begin": 3␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD012/no-multiple-blanks",␊ + "description": "MD012/no-multiple-blanks: Multiple consecutive blank lines [Expected: 1; Actual: 2]",␊ + "severity": "minor",␊ + "fingerprint": "a3d9b647ce8d929904e64fbbb0a47223617e8985d0a4d31e674b22f919f736fb",␊ + "location": {␊ + "path": "viewme.md",␊ + "lines": {␊ + "begin": 5␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD025/single-title/single-h1",␊ + "description": "MD025/single-title/single-h1: Multiple top-level headings in the same document",␊ + "severity": "minor",␊ + "fingerprint": "47cd7b74ada622add8ce464681102cb50f7fe2a685f3436327ae39c0f13ef1e6",␊ + "location": {␊ + "path": "viewme.md",␊ + "lines": {␊ + "begin": 6␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD019/no-multiple-space-atx",␊ + "description": "MD019/no-multiple-space-atx: Multiple spaces after hash on atx style heading",␊ + "severity": "minor",␊ + "fingerprint": "399bbfaf6a26399d5927b93a23b6d18705bb380e90b3e3e85956de34a22c9c5b",␊ + "location": {␊ + "path": "viewme.md",␊ + "lines": {␊ + "begin": 12␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD047/single-trailing-newline",␊ + "description": "MD047/single-trailing-newline: Files should end with a single newline character",␊ + "severity": "minor",␊ + "fingerprint": "bf74eade0ee3301ccaa826907651e0d6925b60d517e1110c29b081c7b6ce1acf",␊ + "location": {␊ + "path": "viewme.md",␊ + "lines": {␊ + "begin": 14␊ + }␊ + }␊ + }␊ + ]`, + formatterJson: `[␊ + {␊ + "fileName": "dir/about.md",␊ + "lineNumber": 1,␊ + "ruleNames": [␊ + "MD021",␊ + "no-multiple-space-closed-atx"␊ + ],␊ + "ruleDescription": "Multiple spaces inside hashes on closed atx style heading",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md021.md",␊ + "errorDetail": null,␊ + "errorContext": "# About #",␊ + "errorRange": [␊ + 3,␊ + 1␊ + ],␊ + "fixInfo": {␊ + "editColumn": 3,␊ + "deleteCount": 1␊ + }␊ + },␊ + {␊ + "fileName": "dir/about.md",␊ + "lineNumber": 1,␊ + "ruleNames": [␊ + "MD021",␊ + "no-multiple-space-closed-atx"␊ + ],␊ + "ruleDescription": "Multiple spaces inside hashes on closed atx style heading",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md021.md",␊ + "errorDetail": null,␊ + "errorContext": "# About #",␊ + "errorRange": [␊ + 10,␊ + 1␊ + ],␊ + "fixInfo": {␊ + "editColumn": 10,␊ + "deleteCount": 1␊ + }␊ + },␊ + {␊ + "fileName": "dir/about.md",␊ + "lineNumber": 4,␊ + "ruleNames": [␊ + "MD032",␊ + "blanks-around-lists"␊ + ],␊ + "ruleDescription": "Lists should be surrounded by blank lines",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md032.md",␊ + "errorDetail": null,␊ + "errorContext": "1. List",␊ + "errorRange": null,␊ + "fixInfo": {␊ + "insertText": "\\n"␊ + }␊ + },␊ + {␊ + "fileName": "dir/about.md",␊ + "lineNumber": 5,␊ + "ruleNames": [␊ + "MD029",␊ + "ol-prefix"␊ + ],␊ + "ruleDescription": "Ordered list item prefix",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md029.md",␊ + "errorDetail": "Expected: 2; Actual: 3; Style: 1/2/3",␊ + "errorContext": null,␊ + "errorRange": [␊ + 1,␊ + 3␊ + ],␊ + "fixInfo": null␊ + },␊ + {␊ + "fileName": "dir/subdir/info.md",␊ + "lineNumber": 1,␊ + "ruleNames": [␊ + "MD022",␊ + "blanks-around-headings"␊ + ],␊ + "ruleDescription": "Headings should be surrounded by blank lines",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md022.md",␊ + "errorDetail": "Expected: 1; Actual: 0; Below",␊ + "errorContext": "## Information",␊ + "errorRange": null,␊ + "fixInfo": {␊ + "lineNumber": 2,␊ + "insertText": "\\n"␊ + }␊ + },␊ + {␊ + "fileName": "dir/subdir/info.md",␊ + "lineNumber": 1,␊ + "ruleNames": [␊ + "MD041",␊ + "first-line-heading",␊ + "first-line-h1"␊ + ],␊ + "ruleDescription": "First line in a file should be a top-level heading",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md041.md",␊ + "errorDetail": null,␊ + "errorContext": "## Information",␊ + "errorRange": null,␊ + "fixInfo": null␊ + },␊ + {␊ + "fileName": "dir/subdir/info.md",␊ + "lineNumber": 2,␊ + "ruleNames": [␊ + "MD038",␊ + "no-space-in-code"␊ + ],␊ + "ruleDescription": "Spaces inside code span elements",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md038.md",␊ + "errorDetail": null,␊ + "errorContext": "\` code1\`",␊ + "errorRange": [␊ + 6,␊ + 8␊ + ],␊ + "fixInfo": {␊ + "editColumn": 7,␊ + "deleteCount": 6,␊ + "insertText": "code1"␊ + }␊ + },␊ + {␊ + "fileName": "dir/subdir/info.md",␊ + "lineNumber": 2,␊ + "ruleNames": [␊ + "MD038",␊ + "no-space-in-code"␊ + ],␊ + "ruleDescription": "Spaces inside code span elements",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md038.md",␊ + "errorDetail": null,␊ + "errorContext": "\`code2 \`",␊ + "errorRange": [␊ + 20,␊ + 8␊ + ],␊ + "fixInfo": {␊ + "editColumn": 21,␊ + "deleteCount": 6,␊ + "insertText": "code2"␊ + }␊ + },␊ + {␊ + "fileName": "dir/subdir/info.md",␊ + "lineNumber": 4,␊ + "ruleNames": [␊ + "MD012",␊ + "no-multiple-blanks"␊ + ],␊ + "ruleDescription": "Multiple consecutive blank lines",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md012.md",␊ + "errorDetail": "Expected: 1; Actual: 2",␊ + "errorContext": null,␊ + "errorRange": null,␊ + "fixInfo": {␊ + "deleteCount": -1␊ + }␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 3,␊ + "ruleNames": [␊ + "MD009",␊ + "no-trailing-spaces"␊ + ],␊ + "ruleDescription": "Trailing spaces",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md009.md",␊ + "errorDetail": "Expected: 0 or 2; Actual: 1",␊ + "errorContext": null,␊ + "errorRange": [␊ + 10,␊ + 1␊ + ],␊ + "fixInfo": {␊ + "editColumn": 10,␊ + "deleteCount": 1␊ + }␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 5,␊ + "ruleNames": [␊ + "MD012",␊ + "no-multiple-blanks"␊ + ],␊ + "ruleDescription": "Multiple consecutive blank lines",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md012.md",␊ + "errorDetail": "Expected: 1; Actual: 2",␊ + "errorContext": null,␊ + "errorRange": null,␊ + "fixInfo": {␊ + "deleteCount": -1␊ + }␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 6,␊ + "ruleNames": [␊ + "MD025",␊ + "single-title",␊ + "single-h1"␊ + ],␊ + "ruleDescription": "Multiple top-level headings in the same document",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md025.md",␊ + "errorDetail": null,␊ + "errorContext": "Description",␊ + "errorRange": null,␊ + "fixInfo": null␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 12,␊ + "ruleNames": [␊ + "MD019",␊ + "no-multiple-space-atx"␊ + ],␊ + "ruleDescription": "Multiple spaces after hash on atx style heading",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md019.md",␊ + "errorDetail": null,␊ + "errorContext": "## Summary",␊ + "errorRange": [␊ + 4,␊ + 1␊ + ],␊ + "fixInfo": {␊ + "editColumn": 4,␊ + "deleteCount": 1␊ + }␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 14,␊ + "ruleNames": [␊ + "MD047",␊ + "single-trailing-newline"␊ + ],␊ + "ruleDescription": "Files should end with a single newline character",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md047.md",␊ + "errorDetail": null,␊ + "errorContext": null,␊ + "errorRange": [␊ + 14,␊ + 1␊ + ],␊ + "fixInfo": {␊ + "editColumn": 15,␊ + "insertText": "\\n"␊ + }␊ + }␊ + ]`, + formatterJunit: `␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + `, + formatterSarif: `{␊ + "$schema": "https://json.schemastore.org/sarif-2.1.0.json",␊ + "version": "2.1.0",␊ + "runs": [␊ + {␊ + "tool": {␊ + "driver": {␊ + "name": "markdownlint-cli2-formatter-sarif",␊ + "version": "0.0.2",␊ + "informationUri": "https://github.com/DavidAnson/markdownlint-cli2",␊ + "rules": [␊ + {␊ + "id": "MD021",␊ + "name": "Md021NoMultipleSpaceClosedAtx",␊ + "shortDescription": {␊ + "text": "Multiple spaces inside hashes on closed atx style heading"␊ + },␊ + "fullDescription": {␊ + "text": "Multiple spaces inside hashes on closed atx style heading"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md021.md"␊ + },␊ + {␊ + "id": "MD032",␊ + "name": "Md032BlanksAroundLists",␊ + "shortDescription": {␊ + "text": "Lists should be surrounded by blank lines"␊ + },␊ + "fullDescription": {␊ + "text": "Lists should be surrounded by blank lines"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md032.md"␊ + },␊ + {␊ + "id": "MD029",␊ + "name": "Md029OlPrefix",␊ + "shortDescription": {␊ + "text": "Ordered list item prefix"␊ + },␊ + "fullDescription": {␊ + "text": "Ordered list item prefix"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md029.md"␊ + },␊ + {␊ + "id": "MD022",␊ + "name": "Md022BlanksAroundHeadings",␊ + "shortDescription": {␊ + "text": "Headings should be surrounded by blank lines"␊ + },␊ + "fullDescription": {␊ + "text": "Headings should be surrounded by blank lines"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md022.md"␊ + },␊ + {␊ + "id": "MD041",␊ + "name": "Md041FirstLineHeadingFirstLineH1",␊ + "shortDescription": {␊ + "text": "First line in a file should be a top-level heading"␊ + },␊ + "fullDescription": {␊ + "text": "First line in a file should be a top-level heading"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md041.md"␊ + },␊ + {␊ + "id": "MD038",␊ + "name": "Md038NoSpaceInCode",␊ + "shortDescription": {␊ + "text": "Spaces inside code span elements"␊ + },␊ + "fullDescription": {␊ + "text": "Spaces inside code span elements"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md038.md"␊ + },␊ + {␊ + "id": "MD012",␊ + "name": "Md012NoMultipleBlanks",␊ + "shortDescription": {␊ + "text": "Multiple consecutive blank lines"␊ + },␊ + "fullDescription": {␊ + "text": "Multiple consecutive blank lines"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md012.md"␊ + },␊ + {␊ + "id": "MD009",␊ + "name": "Md009NoTrailingSpaces",␊ + "shortDescription": {␊ + "text": "Trailing spaces"␊ + },␊ + "fullDescription": {␊ + "text": "Trailing spaces"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md009.md"␊ + },␊ + {␊ + "id": "MD025",␊ + "name": "Md025SingleTitleSingleH1",␊ + "shortDescription": {␊ + "text": "Multiple top-level headings in the same document"␊ + },␊ + "fullDescription": {␊ + "text": "Multiple top-level headings in the same document"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md025.md"␊ + },␊ + {␊ + "id": "MD019",␊ + "name": "Md019NoMultipleSpaceAtx",␊ + "shortDescription": {␊ + "text": "Multiple spaces after hash on atx style heading"␊ + },␊ + "fullDescription": {␊ + "text": "Multiple spaces after hash on atx style heading"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md019.md"␊ + },␊ + {␊ + "id": "MD047",␊ + "name": "Md047SingleTrailingNewline",␊ + "shortDescription": {␊ + "text": "Files should end with a single newline character"␊ + },␊ + "fullDescription": {␊ + "text": "Files should end with a single newline character"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md047.md"␊ + }␊ + ]␊ + }␊ + },␊ + "results": [␊ + {␊ + "ruleId": "MD021",␊ + "message": {␊ + "text": "Multiple spaces inside hashes on closed atx style heading, Context: \\"# About #\\""␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "dir/about.md"␊ + },␊ + "region": {␊ + "startLine": 1,␊ + "endLine": 1,␊ + "startColumn": 3,␊ + "endColumn": 4␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD021",␊ + "message": {␊ + "text": "Multiple spaces inside hashes on closed atx style heading, Context: \\"# About #\\""␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "dir/about.md"␊ + },␊ + "region": {␊ + "startLine": 1,␊ + "endLine": 1,␊ + "startColumn": 10,␊ + "endColumn": 11␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD032",␊ + "message": {␊ + "text": "Lists should be surrounded by blank lines, Context: \\"1. List\\""␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "dir/about.md"␊ + },␊ + "region": {␊ + "startLine": 4,␊ + "endLine": 4␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD029",␊ + "message": {␊ + "text": "Ordered list item prefix, Expected: 2; Actual: 3; Style: 1/2/3"␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "dir/about.md"␊ + },␊ + "region": {␊ + "startLine": 5,␊ + "endLine": 5,␊ + "startColumn": 1,␊ + "endColumn": 4␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD022",␊ + "message": {␊ + "text": "Headings should be surrounded by blank lines, Expected: 1; Actual: 0; Below, Context: \\"## Information\\""␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "dir/subdir/info.md"␊ + },␊ + "region": {␊ + "startLine": 1,␊ + "endLine": 1␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD041",␊ + "message": {␊ + "text": "First line in a file should be a top-level heading, Context: \\"## Information\\""␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "dir/subdir/info.md"␊ + },␊ + "region": {␊ + "startLine": 1,␊ + "endLine": 1␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD038",␊ + "message": {␊ + "text": "Spaces inside code span elements, Context: \\"\` code1\`\\""␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "dir/subdir/info.md"␊ + },␊ + "region": {␊ + "startLine": 2,␊ + "endLine": 2,␊ + "startColumn": 6,␊ + "endColumn": 14␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD038",␊ + "message": {␊ + "text": "Spaces inside code span elements, Context: \\"\`code2 \`\\""␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "dir/subdir/info.md"␊ + },␊ + "region": {␊ + "startLine": 2,␊ + "endLine": 2,␊ + "startColumn": 20,␊ + "endColumn": 28␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD012",␊ + "message": {␊ + "text": "Multiple consecutive blank lines, Expected: 1; Actual: 2"␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "dir/subdir/info.md"␊ + },␊ + "region": {␊ + "startLine": 4,␊ + "endLine": 4␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD009",␊ + "message": {␊ + "text": "Trailing spaces, Expected: 0 or 2; Actual: 1"␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "viewme.md"␊ + },␊ + "region": {␊ + "startLine": 3,␊ + "endLine": 3,␊ + "startColumn": 10,␊ + "endColumn": 11␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD012",␊ + "message": {␊ + "text": "Multiple consecutive blank lines, Expected: 1; Actual: 2"␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "viewme.md"␊ + },␊ + "region": {␊ + "startLine": 5,␊ + "endLine": 5␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD025",␊ + "message": {␊ + "text": "Multiple top-level headings in the same document, Context: \\"Description\\""␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "viewme.md"␊ + },␊ + "region": {␊ + "startLine": 6,␊ + "endLine": 6␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD019",␊ + "message": {␊ + "text": "Multiple spaces after hash on atx style heading, Context: \\"## Summary\\""␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "viewme.md"␊ + },␊ + "region": {␊ + "startLine": 12,␊ + "endLine": 12,␊ + "startColumn": 4,␊ + "endColumn": 5␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD047",␊ + "message": {␊ + "text": "Files should end with a single newline character"␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "viewme.md"␊ + },␊ + "region": {␊ + "startLine": 14,␊ + "endLine": 14,␊ + "startColumn": 14,␊ + "endColumn": 15␊ + }␊ + }␊ + }␊ + ]␊ + }␊ + ]␊ + }␊ + ]␊ + }`, + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + fileName="dir/about.md" lineNumber=1 columnNumber=3 ruleName=MD021/no-multiple-space-closed-atx ruleDescription="Multiple spaces inside hashes on closed atx style heading" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md021.md errorContext="# About #" errorDetail=""␊ + fileName="dir/about.md" lineNumber=1 columnNumber=10 ruleName=MD021/no-multiple-space-closed-atx ruleDescription="Multiple spaces inside hashes on closed atx style heading" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md021.md errorContext="# About #" errorDetail=""␊ + fileName="dir/about.md" lineNumber=4 ruleName=MD032/blanks-around-lists ruleDescription="Lists should be surrounded by blank lines" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md032.md errorContext="1. List" errorDetail=""␊ + fileName="dir/about.md" lineNumber=5 columnNumber=1 ruleName=MD029/ol-prefix ruleDescription="Ordered list item prefix" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md029.md errorContext="" errorDetail="Expected: 2; Actual: 3; Style: 1/2/3"␊ + fileName="dir/subdir/info.md" lineNumber=1 ruleName=MD022/blanks-around-headings ruleDescription="Headings should be surrounded by blank lines" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md022.md errorContext="## Information" errorDetail="Expected: 1; Actual: 0; Below"␊ + fileName="dir/subdir/info.md" lineNumber=1 ruleName=MD041/first-line-heading/first-line-h1 ruleDescription="First line in a file should be a top-level heading" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md041.md errorContext="## Information" errorDetail=""␊ + fileName="dir/subdir/info.md" lineNumber=2 columnNumber=6 ruleName=MD038/no-space-in-code ruleDescription="Spaces inside code span elements" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md038.md errorContext="\` code1\`" errorDetail=""␊ + fileName="dir/subdir/info.md" lineNumber=2 columnNumber=20 ruleName=MD038/no-space-in-code ruleDescription="Spaces inside code span elements" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md038.md errorContext="\`code2 \`" errorDetail=""␊ + fileName="dir/subdir/info.md" lineNumber=4 ruleName=MD012/no-multiple-blanks ruleDescription="Multiple consecutive blank lines" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md012.md errorContext="" errorDetail="Expected: 1; Actual: 2"␊ + fileName="viewme.md" lineNumber=3 columnNumber=10 ruleName=MD009/no-trailing-spaces ruleDescription="Trailing spaces" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md009.md errorContext="" errorDetail="Expected: 0 or 2; Actual: 1"␊ + fileName="viewme.md" lineNumber=5 ruleName=MD012/no-multiple-blanks ruleDescription="Multiple consecutive blank lines" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md012.md errorContext="" errorDetail="Expected: 1; Actual: 2"␊ + fileName="viewme.md" lineNumber=6 ruleName=MD025/single-title/single-h1 ruleDescription="Multiple top-level headings in the same document" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md025.md errorContext="Description" errorDetail=""␊ + fileName="viewme.md" lineNumber=12 columnNumber=4 ruleName=MD019/no-multiple-space-atx ruleDescription="Multiple spaces after hash on atx style heading" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md019.md errorContext="## Summary" errorDetail=""␊ + fileName="viewme.md" lineNumber=14 columnNumber=14 ruleName=MD047/single-trailing-newline ruleDescription="Files should end with a single newline character" ruleInformation=https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md047.md errorContext="" errorDetail=""␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 14 error(s)␊ + `, + } + +## outputFormatters-params (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: `[␊ + {␊ + "type": "issue",␊ + "check_name": "MD009/no-trailing-spaces",␊ + "description": "MD009/no-trailing-spaces: Trailing spaces [Expected: 0 or 2; Actual: 1]",␊ + "severity": "minor",␊ + "fingerprint": "f34a01e4a119d7df262993933665d4c97cc601702eeca2814ccad9606a3ccb48",␊ + "location": {␊ + "path": "viewme.md",␊ + "lines": {␊ + "begin": 3␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD012/no-multiple-blanks",␊ + "description": "MD012/no-multiple-blanks: Multiple consecutive blank lines [Expected: 1; Actual: 2]",␊ + "severity": "minor",␊ + "fingerprint": "a3d9b647ce8d929904e64fbbb0a47223617e8985d0a4d31e674b22f919f736fb",␊ + "location": {␊ + "path": "viewme.md",␊ + "lines": {␊ + "begin": 5␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD025/single-title/single-h1",␊ + "description": "MD025/single-title/single-h1: Multiple top-level headings in the same document",␊ + "severity": "minor",␊ + "fingerprint": "47cd7b74ada622add8ce464681102cb50f7fe2a685f3436327ae39c0f13ef1e6",␊ + "location": {␊ + "path": "viewme.md",␊ + "lines": {␊ + "begin": 6␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD019/no-multiple-space-atx",␊ + "description": "MD019/no-multiple-space-atx: Multiple spaces after hash on atx style heading",␊ + "severity": "minor",␊ + "fingerprint": "399bbfaf6a26399d5927b93a23b6d18705bb380e90b3e3e85956de34a22c9c5b",␊ + "location": {␊ + "path": "viewme.md",␊ + "lines": {␊ + "begin": 12␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD047/single-trailing-newline",␊ + "description": "MD047/single-trailing-newline: Files should end with a single newline character",␊ + "severity": "minor",␊ + "fingerprint": "bf74eade0ee3301ccaa826907651e0d6925b60d517e1110c29b081c7b6ce1acf",␊ + "location": {␊ + "path": "viewme.md",␊ + "lines": {␊ + "begin": 14␊ + }␊ + }␊ + }␊ + ]`, + formatterJson: `[␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 3,␊ + "ruleNames": [␊ + "MD009",␊ + "no-trailing-spaces"␊ + ],␊ + "ruleDescription": "Trailing spaces",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md009.md",␊ + "errorDetail": "Expected: 0 or 2; Actual: 1",␊ + "errorContext": null,␊ + "errorRange": [␊ + 10,␊ + 1␊ + ],␊ + "fixInfo": {␊ + "editColumn": 10,␊ + "deleteCount": 1␊ + }␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 5,␊ + "ruleNames": [␊ + "MD012",␊ + "no-multiple-blanks"␊ + ],␊ + "ruleDescription": "Multiple consecutive blank lines",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md012.md",␊ + "errorDetail": "Expected: 1; Actual: 2",␊ + "errorContext": null,␊ + "errorRange": null,␊ + "fixInfo": {␊ + "deleteCount": -1␊ + }␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 6,␊ + "ruleNames": [␊ + "MD025",␊ + "single-title",␊ + "single-h1"␊ + ],␊ + "ruleDescription": "Multiple top-level headings in the same document",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md025.md",␊ + "errorDetail": null,␊ + "errorContext": "Description",␊ + "errorRange": null,␊ + "fixInfo": null␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 12,␊ + "ruleNames": [␊ + "MD019",␊ + "no-multiple-space-atx"␊ + ],␊ + "ruleDescription": "Multiple spaces after hash on atx style heading",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md019.md",␊ + "errorDetail": null,␊ + "errorContext": "## Summary",␊ + "errorRange": [␊ + 4,␊ + 1␊ + ],␊ + "fixInfo": {␊ + "editColumn": 4,␊ + "deleteCount": 1␊ + }␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 14,␊ + "ruleNames": [␊ + "MD047",␊ + "single-trailing-newline"␊ + ],␊ + "ruleDescription": "Files should end with a single newline character",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md047.md",␊ + "errorDetail": null,␊ + "errorContext": null,␊ + "errorRange": [␊ + 14,␊ + 1␊ + ],␊ + "fixInfo": {␊ + "editColumn": 15,␊ + "insertText": "\\n"␊ + }␊ + }␊ + ]`, + formatterJunit: `␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + `, + formatterSarif: `{␊ + "$schema": "https://json.schemastore.org/sarif-2.1.0.json",␊ + "version": "2.1.0",␊ + "runs": [␊ + {␊ + "tool": {␊ + "driver": {␊ + "name": "markdownlint-cli2-formatter-sarif",␊ + "version": "0.0.2",␊ + "informationUri": "https://github.com/DavidAnson/markdownlint-cli2",␊ + "rules": [␊ + {␊ + "id": "MD009",␊ + "name": "Md009NoTrailingSpaces",␊ + "shortDescription": {␊ + "text": "Trailing spaces"␊ + },␊ + "fullDescription": {␊ + "text": "Trailing spaces"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md009.md"␊ + },␊ + {␊ + "id": "MD012",␊ + "name": "Md012NoMultipleBlanks",␊ + "shortDescription": {␊ + "text": "Multiple consecutive blank lines"␊ + },␊ + "fullDescription": {␊ + "text": "Multiple consecutive blank lines"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md012.md"␊ + },␊ + {␊ + "id": "MD025",␊ + "name": "Md025SingleTitleSingleH1",␊ + "shortDescription": {␊ + "text": "Multiple top-level headings in the same document"␊ + },␊ + "fullDescription": {␊ + "text": "Multiple top-level headings in the same document"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md025.md"␊ + },␊ + {␊ + "id": "MD019",␊ + "name": "Md019NoMultipleSpaceAtx",␊ + "shortDescription": {␊ + "text": "Multiple spaces after hash on atx style heading"␊ + },␊ + "fullDescription": {␊ + "text": "Multiple spaces after hash on atx style heading"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md019.md"␊ + },␊ + {␊ + "id": "MD047",␊ + "name": "Md047SingleTrailingNewline",␊ + "shortDescription": {␊ + "text": "Files should end with a single newline character"␊ + },␊ + "fullDescription": {␊ + "text": "Files should end with a single newline character"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md047.md"␊ + }␊ + ]␊ + }␊ + },␊ + "results": [␊ + {␊ + "ruleId": "MD009",␊ + "message": {␊ + "text": "Trailing spaces, Expected: 0 or 2; Actual: 1"␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "viewme.md"␊ + },␊ + "region": {␊ + "startLine": 3,␊ + "endLine": 3,␊ + "startColumn": 10,␊ + "endColumn": 11␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD012",␊ + "message": {␊ + "text": "Multiple consecutive blank lines, Expected: 1; Actual: 2"␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "viewme.md"␊ + },␊ + "region": {␊ + "startLine": 5,␊ + "endLine": 5␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD025",␊ + "message": {␊ + "text": "Multiple top-level headings in the same document, Context: \\"Description\\""␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "viewme.md"␊ + },␊ + "region": {␊ + "startLine": 6,␊ + "endLine": 6␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD019",␊ + "message": {␊ + "text": "Multiple spaces after hash on atx style heading, Context: \\"## Summary\\""␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "viewme.md"␊ + },␊ + "region": {␊ + "startLine": 12,␊ + "endLine": 12,␊ + "startColumn": 4,␊ + "endColumn": 5␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD047",␊ + "message": {␊ + "text": "Files should end with a single newline character"␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "viewme.md"␊ + },␊ + "region": {␊ + "startLine": 14,␊ + "endLine": 14,␊ + "startColumn": 14,␊ + "endColumn": 15␊ + }␊ + }␊ + }␊ + ]␊ + }␊ + ]␊ + }␊ + ]␊ + }`, + stderr: `##vso[task.logissue type=error;sourcepath=viewme.md;linenumber=3;columnumber=10;code=MD009/no-trailing-spaces]Trailing spaces␊ + ##vso[task.logissue type=error;sourcepath=viewme.md;linenumber=5;code=MD012/no-multiple-blanks]Multiple consecutive blank lines␊ + ##vso[task.logissue type=error;sourcepath=viewme.md;linenumber=6;code=MD025/single-title/single-h1]Multiple top-level headings in the same document␊ + ##vso[task.logissue type=error;sourcepath=viewme.md;linenumber=12;columnumber=4;code=MD019/no-multiple-space-atx]Multiple spaces after hash on atx style heading␊ + ##vso[task.logissue type=error;sourcepath=viewme.md;linenumber=14;columnumber=14;code=MD047/single-trailing-newline]Files should end with a single newline character␊ + #Undefined=${undefined}#Column=10#Column=10##Column=10#␊ + #Undefined=${undefined}#Column=##No column number#No column number#␊ + #Undefined=${undefined}#Column=##No column number#No column number#␊ + #Undefined=${undefined}#Column=4#Column=4##Column=4#␊ + #Undefined=${undefined}#Column=14#Column=14##Column=14#␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 1 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## outputFormatters-params-absolute (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: `[␊ + {␊ + "type": "issue",␊ + "check_name": "MD009/no-trailing-spaces",␊ + "description": "MD009/no-trailing-spaces: Trailing spaces [Expected: 0 or 2; Actual: 1]",␊ + "severity": "minor",␊ + "fingerprint": "f34a01e4a119d7df262993933665d4c97cc601702eeca2814ccad9606a3ccb48",␊ + "location": {␊ + "path": "viewme.md",␊ + "lines": {␊ + "begin": 3␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD012/no-multiple-blanks",␊ + "description": "MD012/no-multiple-blanks: Multiple consecutive blank lines [Expected: 1; Actual: 2]",␊ + "severity": "minor",␊ + "fingerprint": "a3d9b647ce8d929904e64fbbb0a47223617e8985d0a4d31e674b22f919f736fb",␊ + "location": {␊ + "path": "viewme.md",␊ + "lines": {␊ + "begin": 5␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD025/single-title/single-h1",␊ + "description": "MD025/single-title/single-h1: Multiple top-level headings in the same document",␊ + "severity": "minor",␊ + "fingerprint": "47cd7b74ada622add8ce464681102cb50f7fe2a685f3436327ae39c0f13ef1e6",␊ + "location": {␊ + "path": "viewme.md",␊ + "lines": {␊ + "begin": 6␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD019/no-multiple-space-atx",␊ + "description": "MD019/no-multiple-space-atx: Multiple spaces after hash on atx style heading",␊ + "severity": "minor",␊ + "fingerprint": "399bbfaf6a26399d5927b93a23b6d18705bb380e90b3e3e85956de34a22c9c5b",␊ + "location": {␊ + "path": "viewme.md",␊ + "lines": {␊ + "begin": 12␊ + }␊ + }␊ + },␊ + {␊ + "type": "issue",␊ + "check_name": "MD047/single-trailing-newline",␊ + "description": "MD047/single-trailing-newline: Files should end with a single newline character",␊ + "severity": "minor",␊ + "fingerprint": "bf74eade0ee3301ccaa826907651e0d6925b60d517e1110c29b081c7b6ce1acf",␊ + "location": {␊ + "path": "viewme.md",␊ + "lines": {␊ + "begin": 14␊ + }␊ + }␊ + }␊ + ]`, + formatterJson: `[␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 3,␊ + "ruleNames": [␊ + "MD009",␊ + "no-trailing-spaces"␊ + ],␊ + "ruleDescription": "Trailing spaces",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md009.md",␊ + "errorDetail": "Expected: 0 or 2; Actual: 1",␊ + "errorContext": null,␊ + "errorRange": [␊ + 10,␊ + 1␊ + ],␊ + "fixInfo": {␊ + "editColumn": 10,␊ + "deleteCount": 1␊ + }␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 5,␊ + "ruleNames": [␊ + "MD012",␊ + "no-multiple-blanks"␊ + ],␊ + "ruleDescription": "Multiple consecutive blank lines",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md012.md",␊ + "errorDetail": "Expected: 1; Actual: 2",␊ + "errorContext": null,␊ + "errorRange": null,␊ + "fixInfo": {␊ + "deleteCount": -1␊ + }␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 6,␊ + "ruleNames": [␊ + "MD025",␊ + "single-title",␊ + "single-h1"␊ + ],␊ + "ruleDescription": "Multiple top-level headings in the same document",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md025.md",␊ + "errorDetail": null,␊ + "errorContext": "Description",␊ + "errorRange": null,␊ + "fixInfo": null␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 12,␊ + "ruleNames": [␊ + "MD019",␊ + "no-multiple-space-atx"␊ + ],␊ + "ruleDescription": "Multiple spaces after hash on atx style heading",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md019.md",␊ + "errorDetail": null,␊ + "errorContext": "## Summary",␊ + "errorRange": [␊ + 4,␊ + 1␊ + ],␊ + "fixInfo": {␊ + "editColumn": 4,␊ + "deleteCount": 1␊ + }␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 14,␊ + "ruleNames": [␊ + "MD047",␊ + "single-trailing-newline"␊ + ],␊ + "ruleDescription": "Files should end with a single newline character",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md047.md",␊ + "errorDetail": null,␊ + "errorContext": null,␊ + "errorRange": [␊ + 14,␊ + 1␊ + ],␊ + "fixInfo": {␊ + "editColumn": 15,␊ + "insertText": "\\n"␊ + }␊ + }␊ + ]`, + formatterJunit: `␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + ␊ + `, + formatterSarif: `{␊ + "$schema": "https://json.schemastore.org/sarif-2.1.0.json",␊ + "version": "2.1.0",␊ + "runs": [␊ + {␊ + "tool": {␊ + "driver": {␊ + "name": "markdownlint-cli2-formatter-sarif",␊ + "version": "0.0.2",␊ + "informationUri": "https://github.com/DavidAnson/markdownlint-cli2",␊ + "rules": [␊ + {␊ + "id": "MD009",␊ + "name": "Md009NoTrailingSpaces",␊ + "shortDescription": {␊ + "text": "Trailing spaces"␊ + },␊ + "fullDescription": {␊ + "text": "Trailing spaces"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md009.md"␊ + },␊ + {␊ + "id": "MD012",␊ + "name": "Md012NoMultipleBlanks",␊ + "shortDescription": {␊ + "text": "Multiple consecutive blank lines"␊ + },␊ + "fullDescription": {␊ + "text": "Multiple consecutive blank lines"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md012.md"␊ + },␊ + {␊ + "id": "MD025",␊ + "name": "Md025SingleTitleSingleH1",␊ + "shortDescription": {␊ + "text": "Multiple top-level headings in the same document"␊ + },␊ + "fullDescription": {␊ + "text": "Multiple top-level headings in the same document"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md025.md"␊ + },␊ + {␊ + "id": "MD019",␊ + "name": "Md019NoMultipleSpaceAtx",␊ + "shortDescription": {␊ + "text": "Multiple spaces after hash on atx style heading"␊ + },␊ + "fullDescription": {␊ + "text": "Multiple spaces after hash on atx style heading"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md019.md"␊ + },␊ + {␊ + "id": "MD047",␊ + "name": "Md047SingleTrailingNewline",␊ + "shortDescription": {␊ + "text": "Files should end with a single newline character"␊ + },␊ + "fullDescription": {␊ + "text": "Files should end with a single newline character"␊ + },␊ + "helpUri": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md047.md"␊ + }␊ + ]␊ + }␊ + },␊ + "results": [␊ + {␊ + "ruleId": "MD009",␊ + "message": {␊ + "text": "Trailing spaces, Expected: 0 or 2; Actual: 1"␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "viewme.md"␊ + },␊ + "region": {␊ + "startLine": 3,␊ + "endLine": 3,␊ + "startColumn": 10,␊ + "endColumn": 11␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD012",␊ + "message": {␊ + "text": "Multiple consecutive blank lines, Expected: 1; Actual: 2"␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "viewme.md"␊ + },␊ + "region": {␊ + "startLine": 5,␊ + "endLine": 5␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD025",␊ + "message": {␊ + "text": "Multiple top-level headings in the same document, Context: \\"Description\\""␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "viewme.md"␊ + },␊ + "region": {␊ + "startLine": 6,␊ + "endLine": 6␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD019",␊ + "message": {␊ + "text": "Multiple spaces after hash on atx style heading, Context: \\"## Summary\\""␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "viewme.md"␊ + },␊ + "region": {␊ + "startLine": 12,␊ + "endLine": 12,␊ + "startColumn": 4,␊ + "endColumn": 5␊ + }␊ + }␊ + }␊ + ]␊ + },␊ + {␊ + "ruleId": "MD047",␊ + "message": {␊ + "text": "Files should end with a single newline character"␊ + },␊ + "locations": [␊ + {␊ + "physicalLocation": {␊ + "artifactLocation": {␊ + "uri": "viewme.md"␊ + },␊ + "region": {␊ + "startLine": 14,␊ + "endLine": 14,␊ + "startColumn": 14,␊ + "endColumn": 15␊ + }␊ + }␊ + }␊ + ]␊ + }␊ + ]␊ + }␊ + ]␊ + }`, + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 1 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## outputFormatters-pre-imported (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: `[␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 3,␊ + "ruleNames": [␊ + "MD009",␊ + "no-trailing-spaces"␊ + ],␊ + "ruleDescription": "Trailing spaces",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md009.md",␊ + "errorDetail": "Expected: 0 or 2; Actual: 1",␊ + "errorContext": null,␊ + "errorRange": [␊ + 10,␊ + 1␊ + ],␊ + "fixInfo": {␊ + "editColumn": 10,␊ + "deleteCount": 1␊ + }␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 5,␊ + "ruleNames": [␊ + "MD012",␊ + "no-multiple-blanks"␊ + ],␊ + "ruleDescription": "Multiple consecutive blank lines",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md012.md",␊ + "errorDetail": "Expected: 1; Actual: 2",␊ + "errorContext": null,␊ + "errorRange": null,␊ + "fixInfo": {␊ + "deleteCount": -1␊ + }␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 6,␊ + "ruleNames": [␊ + "MD025",␊ + "single-title",␊ + "single-h1"␊ + ],␊ + "ruleDescription": "Multiple top-level headings in the same document",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md025.md",␊ + "errorDetail": null,␊ + "errorContext": "Description",␊ + "errorRange": null,␊ + "fixInfo": null␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 12,␊ + "ruleNames": [␊ + "MD019",␊ + "no-multiple-space-atx"␊ + ],␊ + "ruleDescription": "Multiple spaces after hash on atx style heading",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md019.md",␊ + "errorDetail": null,␊ + "errorContext": "## Summary",␊ + "errorRange": [␊ + 4,␊ + 1␊ + ],␊ + "fixInfo": {␊ + "editColumn": 4,␊ + "deleteCount": 1␊ + }␊ + },␊ + {␊ + "fileName": "viewme.md",␊ + "lineNumber": 14,␊ + "ruleNames": [␊ + "MD047",␊ + "single-trailing-newline"␊ + ],␊ + "ruleDescription": "Files should end with a single newline character",␊ + "ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/vX.Y.Z/doc/md047.md",␊ + "errorDetail": null,␊ + "errorContext": null,␊ + "errorRange": [␊ + 14,␊ + 1␊ + ],␊ + "fixInfo": {␊ + "editColumn": 15,␊ + "insertText": "\\n"␊ + }␊ + }␊ + ]`, + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 1 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## outputFormatters-clean (main) + +> Snapshot 1 + + { + exitCode: 0, + formatterCodeQuality: '[]', + formatterJson: '[]', + formatterJunit: `␊ + ␊ + ␊ + ␊ + ␊ + `, + formatterSarif: `{␊ + "$schema": "https://json.schemastore.org/sarif-2.1.0.json",␊ + "version": "2.1.0",␊ + "runs": [␊ + {␊ + "tool": {␊ + "driver": {␊ + "name": "markdownlint-cli2-formatter-sarif",␊ + "version": "0.0.2",␊ + "informationUri": "https://github.com/DavidAnson/markdownlint-cli2",␊ + "rules": []␊ + }␊ + },␊ + "results": []␊ + }␊ + ]␊ + }`, + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 0 file(s)␊ + Summary: 0 error(s)␊ + `, + } + +## outputFormatters-file (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `viewme.md 3 MD009/no-trailing-spaces␊ + viewme.md 5 MD012/no-multiple-blanks␊ + viewme.md 6 MD025/single-title/single-h1␊ + viewme.md 12 MD019/no-multiple-space-atx␊ + viewme.md 14 MD047/single-trailing-newline␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 1 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## outputFormatters-module (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `cjs: viewme.md 3 MD009/no-trailing-spaces␊ + cjs: viewme.md 5 MD012/no-multiple-blanks␊ + cjs: viewme.md 6 MD025/single-title/single-h1␊ + cjs: viewme.md 12 MD019/no-multiple-space-atx␊ + cjs: viewme.md 14 MD047/single-trailing-newline␊ + mjs: viewme.md 3 MD009/no-trailing-spaces␊ + mjs: viewme.md 5 MD012/no-multiple-blanks␊ + mjs: viewme.md 6 MD025/single-title/single-h1␊ + mjs: viewme.md 12 MD019/no-multiple-space-atx␊ + mjs: viewme.md 14 MD047/single-trailing-newline␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 1 file(s)␊ + Summary: 5 error(s)␊ + `, + } + +## outputFormatters-missing (main) + +> Snapshot 1 + + { + exitCode: 2, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: .*␊ + Linting: 1 file(s)␊ + Summary: 0 error(s)␊ + `, + } + +## formatter-summarize (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: '', + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 14 error(s)␊ + Count File␊ + 4 dir/about.md␊ + 5 dir/subdir/info.md␊ + 5 viewme.md␊ + 14 [Total]␊ + Count Rule␊ + 1 MD009/no-trailing-spaces␊ + 2 MD012/no-multiple-blanks␊ + 1 MD019/no-multiple-space-atx␊ + 2 MD021/no-multiple-space-closed-atx␊ + 1 MD022/blanks-around-headings␊ + 1 MD025/single-title/single-h1␊ + 1 MD029/ol-prefix␊ + 1 MD032/blanks-around-lists␊ + 2 MD038/no-space-in-code␊ + 1 MD041/first-line-heading/first-line-h1␊ + 1 MD047/single-trailing-newline␊ + 14 [Total]␊ + dir/about.md␊ + Count Rule␊ + 2 MD021/no-multiple-space-closed-atx␊ + 1 MD029/ol-prefix␊ + 1 MD032/blanks-around-lists␊ + 4 [Total]␊ + dir/subdir/info.md␊ + Count Rule␊ + 1 MD012/no-multiple-blanks␊ + 1 MD022/blanks-around-headings␊ + 2 MD038/no-space-in-code␊ + 1 MD041/first-line-heading/first-line-h1␊ + 5 [Total]␊ + viewme.md␊ + Count Rule␊ + 1 MD009/no-trailing-spaces␊ + 1 MD012/no-multiple-blanks␊ + 1 MD019/no-multiple-space-atx␊ + 1 MD025/single-title/single-h1␊ + 1 MD047/single-trailing-newline␊ + 5 [Total]␊ + MD009/no-trailing-spaces␊ + Count File␊ + 1 viewme.md␊ + 1 [Total]␊ + MD012/no-multiple-blanks␊ + Count File␊ + 1 dir/subdir/info.md␊ + 1 viewme.md␊ + 2 [Total]␊ + MD019/no-multiple-space-atx␊ + Count File␊ + 1 viewme.md␊ + 1 [Total]␊ + MD021/no-multiple-space-closed-atx␊ + Count File␊ + 2 dir/about.md␊ + 2 [Total]␊ + MD022/blanks-around-headings␊ + Count File␊ + 1 dir/subdir/info.md␊ + 1 [Total]␊ + MD025/single-title/single-h1␊ + Count File␊ + 1 viewme.md␊ + 1 [Total]␊ + MD029/ol-prefix␊ + Count File␊ + 1 dir/about.md␊ + 1 [Total]␊ + MD032/blanks-around-lists␊ + Count File␊ + 1 dir/about.md␊ + 1 [Total]␊ + MD038/no-space-in-code␊ + Count File␊ + 2 dir/subdir/info.md␊ + 2 [Total]␊ + MD041/first-line-heading/first-line-h1␊ + Count File␊ + 1 dir/subdir/info.md␊ + 1 [Total]␊ + MD047/single-trailing-newline␊ + Count File␊ + 1 viewme.md␊ + 1 [Total]␊ + `, + } + +## formatter-template (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `${invalid}␊ + simple.md␊ + simple.mdsimple.mdsimple.md␊ + text{text}text␊ + text{text␊ + texttext}␊ + text${invalid}text␊ + textsimple.mdtext␊ + simple.md␊ + ${fileName}␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: *.md␊ + Linting: 1 file(s)␊ + Summary: 1 error(s)␊ + `, + } + +## nested-files (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `markdownlint-cli2-jsonc/dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + markdownlint-cli2-jsonc/dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + markdownlint-cli2-jsonc/dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + markdownlint-cli2-jsonc/dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + markdownlint-json/dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + markdownlint-json/dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + markdownlint-json/dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + markdownlint-json/dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 2 file(s)␊ + Summary: 8 error(s)␊ + `, + } + +## nested-directories (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `a/b/c/d/viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + a/b/c/d/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + a/b/c/d/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + a/b/c/d/viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + a/b/c/d/viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + a/b/viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + a/b/viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + a/b/viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + a/b/viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + a/b/viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: ** !a a/b !a/b/c a/b/c/d␊ + Linting: 3 file(s)␊ + Summary: 15 error(s)␊ + `, + } + +## nested-options-config (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `config-options-disjoint-empty/dir/dir/dir/info.md:1 first-line Rule that reports an error for the first line␊ + config-options-disjoint-empty/dir/dir/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + config-options-disjoint-empty/dir/dir/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + config-options-disjoint-empty/dir/dir/info.md:1 first-line Rule that reports an error for the first line␊ + config-options-disjoint-empty/dir/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + config-options-disjoint-empty/dir/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + config-options-disjoint/dir/dir/dir/info.md:1 first-line Rule that reports an error for the first line␊ + config-options-disjoint/dir/dir/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + config-options-disjoint/dir/dir/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + config-options-disjoint/dir/dir/info.md:1 first-line Rule that reports an error for the first line␊ + config-options-disjoint/dir/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + config-options-disjoint/dir/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + config-options-disjoint/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + config-options-disjoint/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + config-options-disjoint/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + config-options-disjoint/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + config-options-overlap-empty/dir/dir/dir/info.md:1 first-line Rule that reports an error for the first line␊ + config-options-overlap-empty/dir/dir/dir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + config-options-overlap-empty/dir/dir/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + config-options-overlap-empty/dir/dir/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + config-options-overlap-empty/dir/dir/info.md:1 first-line Rule that reports an error for the first line␊ + config-options-overlap-empty/dir/dir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + config-options-overlap-empty/dir/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + config-options-overlap-empty/dir/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + config-options-overlap/dir/dir/dir/info.md:1 first-line Rule that reports an error for the first line␊ + config-options-overlap/dir/dir/dir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + config-options-overlap/dir/dir/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + config-options-overlap/dir/dir/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + config-options-overlap/dir/dir/info.md:1 first-line Rule that reports an error for the first line␊ + config-options-overlap/dir/dir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + config-options-overlap/dir/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + config-options-overlap/dir/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + config-options-overlap/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + config-options-overlap/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + config-options-overlap/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + config-options-overlap/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + options-config-disjoint-empty/dir/dir/dir/info.md:1 first-line Rule that reports an error for the first line␊ + options-config-disjoint-empty/dir/dir/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + options-config-disjoint-empty/dir/dir/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + options-config-disjoint-empty/dir/dir/info.md:1 first-line Rule that reports an error for the first line␊ + options-config-disjoint-empty/dir/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + options-config-disjoint-empty/dir/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + options-config-disjoint/dir/dir/dir/info.md:1 first-line Rule that reports an error for the first line␊ + options-config-disjoint/dir/dir/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + options-config-disjoint/dir/dir/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + options-config-disjoint/dir/dir/info.md:1 first-line Rule that reports an error for the first line␊ + options-config-disjoint/dir/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + options-config-disjoint/dir/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + options-config-disjoint/dir/info.md:1 first-line Rule that reports an error for the first line␊ + options-config-disjoint/dir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + options-config-disjoint/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + options-config-disjoint/dir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + options-config-disjoint/dir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + options-config-disjoint/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + options-config-disjoint/info.md:1 first-line Rule that reports an error for the first line␊ + options-config-disjoint/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + options-config-disjoint/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + options-config-disjoint/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + options-config-disjoint/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + options-config-disjoint/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + options-config-overlap-empty/dir/dir/dir/info.md:1 first-line Rule that reports an error for the first line␊ + options-config-overlap-empty/dir/dir/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + options-config-overlap-empty/dir/dir/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + options-config-overlap-empty/dir/dir/info.md:1 first-line Rule that reports an error for the first line␊ + options-config-overlap-empty/dir/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + options-config-overlap-empty/dir/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + options-config-overlap/dir/dir/dir/info.md:1 first-line Rule that reports an error for the first line␊ + options-config-overlap/dir/dir/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + options-config-overlap/dir/dir/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + options-config-overlap/dir/dir/info.md:1 first-line Rule that reports an error for the first line␊ + options-config-overlap/dir/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + options-config-overlap/dir/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + options-config-overlap/dir/info.md:1 first-line Rule that reports an error for the first line␊ + options-config-overlap/dir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + options-config-overlap/dir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + options-config-overlap/dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + options-config-overlap/info.md:1 first-line Rule that reports an error for the first line␊ + options-config-overlap/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + options-config-overlap/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + options-config-overlap/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 24 file(s)␊ + Summary: 80 error(s)␊ + `, + } + +## markdownlint-cjs-no-require (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 14 error(s)␊ + `, + } + +## markdownlint-mjs-no-require (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 14 error(s)␊ + `, + } + +## markdownlint-cli2-cjs-no-require (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 14 error(s)␊ + `, + } + +## markdownlint-cli2-mjs-no-require (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 14 error(s)␊ + `, + } + +## customRules-no-require (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/subdir2/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir2/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir2/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir2/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir2/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir/subdir3/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir3/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir3/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir3/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir3/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 9 file(s)␊ + Summary: 24 error(s)␊ + `, + } + +## markdownItPlugins-no-require (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `file/link.md:3:7 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + file/link.md:3:12 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + function/link.md:3:7 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + function/link.md:3:12 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + module/link.md:3:7 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + module/link.md:3:12 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + multiple/emoji.md:3:15 MD044/proper-names Proper names should have the correct capitalization [Expected: SMILE; Actual: smile]␊ + multiple/emoji.md:5:13 MD044/proper-names Proper names should have the correct capitalization [Expected: FROWNING; Actual: frowning]␊ + multiple/emoji.md:15 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + pre-imported/link.md:3:7 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + pre-imported/link.md:3:12 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + single/emoji.md:15 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 6 file(s)␊ + Summary: 12 error(s)␊ + `, + } + +## tilde-paths-commonjs (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `hr.md 3 sample-rule-commonjs␊ + link.md 3 MD039/no-space-in-links␊ + link.md 3 MD039/no-space-in-links␊ + viewme.md 3 any-blockquote␊ + viewme.md 3 MD009/no-trailing-spaces␊ + viewme.md 5 MD012/no-multiple-blanks␊ + viewme.md 6 MD025/single-title/single-h1␊ + viewme.md 12 MD019/no-multiple-space-atx␊ + viewme.md 14 MD047/single-trailing-newline␊ + cjs: hr.md 3 sample-rule-commonjs␊ + cjs: link.md 3 MD039/no-space-in-links␊ + cjs: link.md 3 MD039/no-space-in-links␊ + cjs: viewme.md 3 any-blockquote␊ + cjs: viewme.md 3 MD009/no-trailing-spaces␊ + cjs: viewme.md 5 MD012/no-multiple-blanks␊ + cjs: viewme.md 6 MD025/single-title/single-h1␊ + cjs: viewme.md 12 MD019/no-multiple-space-atx␊ + cjs: viewme.md 14 MD047/single-trailing-newline␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: *.md␊ + Linting: 3 file(s)␊ + Summary: 9 error(s)␊ + `, + } + +## tilde-paths-module (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `hr.md 3 sample-rule-commonjs␊ + link.md 3 MD039/no-space-in-links␊ + link.md 3 MD039/no-space-in-links␊ + viewme.md 3 any-blockquote␊ + viewme.md 3 MD009/no-trailing-spaces␊ + viewme.md 5 MD012/no-multiple-blanks␊ + viewme.md 6 MD025/single-title/single-h1␊ + viewme.md 12 MD019/no-multiple-space-atx␊ + viewme.md 14 MD047/single-trailing-newline␊ + cjs: hr.md 3 sample-rule-commonjs␊ + cjs: link.md 3 MD039/no-space-in-links␊ + cjs: link.md 3 MD039/no-space-in-links␊ + cjs: viewme.md 3 any-blockquote␊ + cjs: viewme.md 3 MD009/no-trailing-spaces␊ + cjs: viewme.md 5 MD012/no-multiple-blanks␊ + cjs: viewme.md 6 MD025/single-title/single-h1␊ + cjs: viewme.md 12 MD019/no-multiple-space-atx␊ + cjs: viewme.md 14 MD047/single-trailing-newline␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: *.md␊ + Linting: 3 file(s)␊ + Summary: 9 error(s)␊ + `, + } + +## no-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 14 error(s)␊ + `, + } + +## config-first-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 11 error(s)␊ + `, + } + +## config-last-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 11 error(s)␊ + `, + } + +## config-last-used-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 11 error(s)␊ + `, + } + +## fix-first-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:6:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + viewme.md:5 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 3 error(s)␊ + `, + } + +## fix-last-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:6:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + viewme.md:5 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 3 error(s)␊ + `, + } + +## fix-multiple-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:6:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + viewme.md:5 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 3 error(s)␊ + `, + } + +## fix-and-config-arg (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:6:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 3 file(s)␊ + Summary: 2 error(s)␊ + `, + } + +## modulePaths (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `cjs: dir/about.md 1 MD021/no-multiple-space-closed-atx␊ + cjs: dir/about.md 1 MD021/no-multiple-space-closed-atx␊ + cjs: dir/about.md 4 MD032/blanks-around-lists␊ + cjs: dir/about.md 5 MD029/ol-prefix␊ + cjs: dir/hr.md 3 sample-rule-commonjs␊ + cjs: dir/link.md 3 MD039/no-space-in-links␊ + cjs: dir/link.md 3 MD039/no-space-in-links␊ + cjs: dir/subdir/info.md 1 MD022/blanks-around-headings␊ + cjs: dir/subdir/info.md 1 MD041/first-line-heading/first-line-h1␊ + cjs: dir/subdir/info.md 2 MD038/no-space-in-code␊ + cjs: dir/subdir/info.md 2 MD038/no-space-in-code␊ + cjs: dir/subdir/info.md 4 MD012/no-multiple-blanks␊ + cjs: viewme.md 3 MD009/no-trailing-spaces␊ + cjs: viewme.md 5 MD012/no-multiple-blanks␊ + cjs: viewme.md 6 MD025/single-title/single-h1␊ + cjs: viewme.md 12 MD019/no-multiple-space-atx␊ + cjs: viewme.md 14 MD047/single-trailing-newline␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 5 file(s)␊ + Summary: 17 error(s)␊ + `, + } + +## modulePaths-non-root (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/about.md:1:3 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:1:10 MD021/no-multiple-space-closed-atx Multiple spaces inside hashes on closed atx style heading [Context: "# About #"]␊ + dir/about.md:4 MD032/blanks-around-lists Lists should be surrounded by blank lines [Context: "1. List"]␊ + dir/about.md:5:1 MD029/ol-prefix Ordered list item prefix [Expected: 2; Actual: 3; Style: 1/2/3]␊ + dir/hr.md:3 sample-rule-commonjs Sample rule (commonjs) [Sample error for hr]␊ + dir/link.md:3:7 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + dir/link.md:3:12 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + dir/subdir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/subdir/info.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Information"]␊ + dir/subdir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/subdir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/subdir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + dir2/link.md:3:7 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + dir2/link.md:3:12 MD039/no-space-in-links Spaces inside link text [Context: "[ link ]"]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:5 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 6 file(s)␊ + Summary: 19 error(s)␊ + `, + } + +## jsonc-trailing-comma (main) + +> Snapshot 1 + + { + exitCode: 1, + formatterCodeQuality: '', + formatterJson: '', + formatterJunit: '', + formatterSarif: '', + stderr: `dir/info.md:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## Information"]␊ + dir/info.md:2:6 MD038/no-space-in-code Spaces inside code span elements [Context: "\` code1\`"]␊ + dir/info.md:2:20 MD038/no-space-in-code Spaces inside code span elements [Context: "\`code2 \`"]␊ + dir/info.md:4 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]␊ + viewme.md:3:10 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 1]␊ + viewme.md:6 MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "Description"]␊ + viewme.md:12:4 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: "## Summary"]␊ + viewme.md:14:14 MD047/single-trailing-newline Files should end with a single newline character␊ + `, + stdout: `markdownlint-cli2 vX.Y.Z (markdownlint vX.Y.Z)␊ + Finding: **/*.md␊ + Linting: 2 file(s)␊ + Summary: 8 error(s)␊ + `, + } diff --git a/test/snapshots/markdownlint-cli2-test-main.mjs.snap b/test/snapshots/markdownlint-cli2-test-main.mjs.snap new file mode 100644 index 00000000..798533a3 Binary files /dev/null and b/test/snapshots/markdownlint-cli2-test-main.mjs.snap differ diff --git a/webworker/fs-virtual.js b/webworker/fs-virtual.mjs similarity index 100% rename from webworker/fs-virtual.js rename to webworker/fs-virtual.mjs diff --git a/webworker/index.cjs b/webworker/index.cjs new file mode 100644 index 00000000..13cc62cf --- /dev/null +++ b/webworker/index.cjs @@ -0,0 +1,5 @@ +// @ts-check + +"use strict"; + +module.exports = require("../markdownlint-cli2.mjs"); diff --git a/webworker/index.js b/webworker/index.js deleted file mode 100644 index 0f19a768..00000000 --- a/webworker/index.js +++ /dev/null @@ -1,5 +0,0 @@ -// @ts-check - -"use strict"; - -module.exports = require("../markdownlint-cli2.js"); diff --git a/webworker/module-empty.js b/webworker/module-empty.cjs similarity index 100% rename from webworker/module-empty.js rename to webworker/module-empty.cjs diff --git a/webworker/os-stub.js b/webworker/os-stub.cjs similarity index 100% rename from webworker/os-stub.js rename to webworker/os-stub.cjs diff --git a/webworker/process-stub.js b/webworker/process-stub.cjs similarity index 100% rename from webworker/process-stub.js rename to webworker/process-stub.cjs diff --git a/webworker/unicorn-magic-stub.js b/webworker/unicorn-magic-stub.cjs similarity index 100% rename from webworker/unicorn-magic-stub.js rename to webworker/unicorn-magic-stub.cjs diff --git a/webworker/webpack.config.js b/webworker/webpack.config.cjs similarity index 97% rename from webworker/webpack.config.js rename to webworker/webpack.config.cjs index 2fcc75ee..c1ea1e1e 100644 --- a/webworker/webpack.config.js +++ b/webworker/webpack.config.cjs @@ -12,7 +12,7 @@ module.exports = { "entry": "./index.js", "output": { "path": __dirname, - "filename": "markdownlint-cli2-webworker.js", + "filename": "markdownlint-cli2-webworker.cjs", "library": { "name": "markdownlintCli2", "type": "var" diff --git a/webworker/webworker-test.js b/webworker/webworker-test.cjs similarity index 100% rename from webworker/webworker-test.js rename to webworker/webworker-test.cjs