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/ci.yml b/.github/workflows/ci.yml index 5f5f8755..0e878e3f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -76,7 +76,7 @@ jobs: - name: Install markdownlint-cli2 dependencies locally run: sudo npm install --no-package-lock --production - name: Lint with formatters - run: node ./markdownlint-cli2 CONTRIBUTING.md README.md + run: node ./markdownlint-cli2.mjs CONTRIBUTING.md README.md lint-dockerfile: runs-on: ubuntu-latest 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/.gitignore b/.gitignore index f09431b6..85f9fcd9 100644 --- a/.gitignore +++ b/.gitignore @@ -4,5 +4,5 @@ npm-debug.log !test/customRules/node_modules !test/markdownItPlugins/module/node_modules !test/outputFormatters-module/node_modules -webworker/markdownlint-cli2-webworker.js -webworker/setImmediate.js +webworker/markdownlint-cli2-webworker.cjs +webworker/setImmediate.cjs diff --git a/append-to-array.js b/append-to-array.mjs similarity index 87% rename from append-to-array.js rename to append-to-array.mjs index 4002d699..1635cee2 100644 --- a/append-to-array.js +++ b/append-to-array.mjs @@ -1,7 +1,5 @@ // @ts-check -"use strict"; - const sliceSize = 1000; /** @@ -21,5 +19,4 @@ const appendToArray = (destination, source) => { } }; -appendToArray.sliceSize = sliceSize; -module.exports = appendToArray; +export { appendToArray as default, sliceSize }; diff --git a/eslint.config.mjs b/eslint.config.mjs index 4255d5f4..56b2be9d 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -21,14 +21,11 @@ export default [ { "ignores": [ "test/*/**", - "webworker/markdownlint-cli2-webworker.js", - "webworker/setImmediate.js" + "webworker/markdownlint-cli2-webworker.cjs", + "webworker/setImmediate.cjs" ] }, { - "languageOptions": { - "sourceType": "commonjs" - }, "linterOptions": { "reportUnusedDisableDirectives": true }, @@ -68,10 +65,17 @@ export default [ }, { "files": [ - "**/*.mjs" + "**/*-formatter-*.js", + "webworker/*.cjs" ], "languageOptions": { - "sourceType": "module" + "sourceType": "commonjs", + "globals": { + "__dirname": "readonly", + "__filename": "readonly", + "module": "readonly", + "require": "readonly" + } } } ]; diff --git a/export-markdownlint-helpers.js b/export-markdownlint-helpers.js deleted file mode 100644 index 44cfe31a..00000000 --- a/export-markdownlint-helpers.js +++ /dev/null @@ -1,5 +0,0 @@ -// @ts-check - -"use strict"; - -module.exports = require("markdownlint/helpers"); diff --git a/export-markdownlint-helpers.mjs b/export-markdownlint-helpers.mjs new file mode 100644 index 00000000..6598099d --- /dev/null +++ b/export-markdownlint-helpers.mjs @@ -0,0 +1,3 @@ +// @ts-check + +export { default } from "markdownlint/helpers"; diff --git a/export-markdownlint.js b/export-markdownlint.js deleted file mode 100644 index b3f98eb0..00000000 --- a/export-markdownlint.js +++ /dev/null @@ -1,5 +0,0 @@ -// @ts-check - -"use strict"; - -module.exports = require("markdownlint"); diff --git a/export-markdownlint.mjs b/export-markdownlint.mjs new file mode 100644 index 00000000..d14558b1 --- /dev/null +++ b/export-markdownlint.mjs @@ -0,0 +1,3 @@ +// @ts-check + +export { default } from "markdownlint"; diff --git a/markdownlint-cli2.js b/markdownlint-cli2.mjs similarity index 95% rename from markdownlint-cli2.js rename to markdownlint-cli2.mjs index 2ae120d6..6ef2c20e 100755 --- a/markdownlint-cli2.js +++ b/markdownlint-cli2.mjs @@ -1,19 +1,19 @@ #!/usr/bin/env node -// @ts-check - -"use strict"; - // @ts-ignore -// eslint-disable-next-line camelcase, no-inline-comments, no-undef -const dynamicRequire = (typeof __non_webpack_require__ === "undefined") ? require : /* c8 ignore next */ __non_webpack_require__; -// Capture native require implementation for dynamic loading of modules // Requires -const pathDefault = require("node:path"); +import fsx from "node:fs"; +import { createRequire } from "node:module"; +const dynamicRequire = createRequire(import.meta.url); +import os from "node:os"; +import pathDefault from "node:path"; const pathPosix = pathDefault.posix; -const { pathToFileURL } = require("node:url"); -const markdownlintLibrary = require("markdownlint"); +import { pathToFileURL } from "node:url"; +import esMain from "es-main"; +import { globby } from "globby"; +import micromatch from "micromatch"; +import markdownlintLibrary from "markdownlint"; const { applyFixes, "getVersion": getLibraryVersion, @@ -24,9 +24,10 @@ const { "extendConfig": markdownlintExtendConfig, "readConfig": markdownlintReadConfig } = markdownlintPromises; -const appendToArray = require("./append-to-array"); -const mergeOptions = require("./merge-options"); -const resolveAndRequire = require("./resolve-and-require"); +import { expandTildePath } from "markdownlint/helpers"; +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"; @@ -41,13 +42,16 @@ const utf8 = "utf8"; const noop = () => null; // Gets a JSONC parser -const getJsoncParse = () => require("./parsers/jsonc-parse.js"); +import jsoncParse from "./parsers/jsonc-parse.mjs"; +const getJsoncParse = () => jsoncParse; // Gets a YAML parser -const getYamlParse = () => require("./parsers/yaml-parse.js"); +import yamlParse from "./parsers/yaml-parse.mjs"; +const getYamlParse = () => yamlParse; // Gets an ordered array of parsers -const getParsers = () => require("./parsers/parsers.js"); +import parsers from "./parsers/parsers.mjs"; +const getParsers = () => parsers; // Negates a glob const negateGlob = (glob) => `!${glob}`; @@ -63,15 +67,9 @@ const throwForConfigurationFile = (file, error) => { // Return a posix path (even on Windows) const posixPath = (p) => p.split(pathDefault.sep).join(pathPosix.sep); -// Expands a path with a tilde to an absolute path -const expandTildePath = (id) => { - const markdownlintRuleHelpers = require("markdownlint/helpers"); - return markdownlintRuleHelpers.expandTildePath(id, require("node:os")); -}; - // Resolves module paths relative to the specified directory const resolveModulePaths = (dir, modulePaths) => ( - modulePaths.map((path) => pathDefault.resolve(dir, expandTildePath(path))) + modulePaths.map((path) => pathDefault.resolve(dir, expandTildePath(path, os))) ); // Read a JSON(C) or YAML file and return the object @@ -95,7 +93,7 @@ const importOrRequireResolve = async (dirOrDirs, id, noRequire) => { return null; } const dirs = Array.isArray(dirOrDirs) ? dirOrDirs : [ dirOrDirs ]; - const expandId = expandTildePath(id); + const expandId = expandTildePath(id, os); const errors = []; try { return resolveAndRequire(dynamicRequire, expandId, dirs); @@ -213,13 +211,12 @@ const readOptionsOrConfig = async (configPath, fs, noRequire) => { }; // Filter a list of files to ignore by glob -const removeIgnoredFiles = (dir, files, ignores) => { - const micromatch = require("micromatch"); - return micromatch( +const removeIgnoredFiles = (dir, files, ignores) => ( + micromatch( files.map((file) => pathPosix.relative(dir, file)), ignores - ).map((file) => pathPosix.join(dir, file)); -}; + ).map((file) => pathPosix.join(dir, file)) +); // Process/normalize command-line arguments and return glob patterns const processArgv = (argv) => { @@ -540,8 +537,6 @@ const enumerateFiles = async ( }) ); // Process glob patterns - // eslint-disable-next-line no-inline-comments - const { globby } = await import(/* webpackMode: "eager" */ "globby"); const files = [ ...await globby(expandedDirectories, globbyOptions), ...filteredLiteralFiles @@ -891,7 +886,8 @@ const outputSummary = async ( const dirs = [ dir, ...modulePaths ]; const formattersAndParams = outputFormatters ? await importOrRequireIdsAndParams(dirs, outputFormatters, noRequire) - : [ [ require("markdownlint-cli2-formatter-default") ] ]; + // eslint-disable-next-line no-inline-comments, unicorn/no-await-expression-member + : [ [ (await import(/* webpackMode: "eager" */ "markdownlint-cli2-formatter-default")).default ] ]; await Promise.all(formattersAndParams.map((formatterAndParams) => { const [ formatter, ...formatterParams ] = formatterAndParams; return formatter(formatterOptions, ...formatterParams); @@ -918,7 +914,7 @@ const main = async (params) => { } = params; const logMessage = params.logMessage || noop; const logError = params.logError || noop; - const fs = params.fs || require("node:fs"); + const fs = params.fs || fsx; const baseDirSystem = (directory && pathDefault.resolve(directory)) || process.cwd(); @@ -995,7 +991,7 @@ const main = async (params) => { // Add stdin as a non-file input if necessary if (useStdin) { const key = pathPosix.join(baseDir, "stdin"); - const { text } = require("node:stream/consumers"); + const { text } = await import("node:stream/consumers"); nonFileContents = { ...nonFileContents, [key]: await text(process.stdin) @@ -1082,13 +1078,13 @@ const main = async (params) => { return errorsPresent ? 1 : 0; }; -// Export functions -module.exports = { +// Exports +export { main }; // Run if invoked as a CLI -if (require.main === module) { +if (esMain(import.meta)) { const params = { "argv": process.argv.slice(2), "logMessage": console.log, diff --git a/merge-options.js b/merge-options.mjs similarity index 92% rename from merge-options.js rename to merge-options.mjs index 915f5e45..8c294188 100644 --- a/merge-options.js +++ b/merge-options.mjs @@ -1,7 +1,5 @@ // @ts-check -"use strict"; - /** * Merges two options objects by combining config and replacing properties. * @param {object} first First options object. @@ -24,4 +22,4 @@ const mergeOptions = (first, second) => { return merged; }; -module.exports = mergeOptions; +export default mergeOptions; diff --git a/package.json b/package.json index a46a2e45..58efe8b7 100644 --- a/package.json +++ b/package.json @@ -7,18 +7,18 @@ "url": "https://dlaa.me/" }, "license": "MIT", - "type": "commonjs", - "main": "./markdownlint-cli2.js", + "type": "module", + "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.49.0 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,31 +47,32 @@ "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.js ./webworker --flat --rename=setImmediate.cjs" }, "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" ], "dependencies": { + "es-main": "1.3.0", "globby": "14.0.2", "js-yaml": "4.1.0", "jsonc-parser": "3.3.1", @@ -94,7 +95,6 @@ "eslint-plugin-jsdoc": "50.5.0", "eslint-plugin-n": "17.14.0", "eslint-plugin-unicorn": "56.0.1", - "nano-spawn": "0.2.0", "markdown-it-emoji": "3.0.0", "markdown-it-for-inline": "2.0.1", "markdownlint-cli2-formatter-codequality": "0.0.5", @@ -105,6 +105,7 @@ "markdownlint-cli2-formatter-summarize": "0.0.7", "markdownlint-cli2-formatter-template": "0.0.2", "markdownlint-rule-extended-ascii": "0.1.0", + "nano-spawn": "0.2.0", "npm-run-all": "4.1.5" }, "keywords": [ diff --git a/parsers/jsonc-parse.js b/parsers/jsonc-parse.mjs similarity index 84% rename from parsers/jsonc-parse.js rename to parsers/jsonc-parse.mjs index 3dd30300..446f1778 100644 --- a/parsers/jsonc-parse.js +++ b/parsers/jsonc-parse.mjs @@ -1,8 +1,6 @@ // @ts-check -"use strict"; - -const { parse, printParseErrorCode } = require("jsonc-parser"); +import { parse, printParseErrorCode } from "jsonc-parser"; /** * Parses a JSONC string, returning the corresponding object. @@ -21,4 +19,4 @@ const jsoncParse = (text) => { return result; }; -module.exports = jsoncParse; +export default jsoncParse; diff --git a/parsers/parsers.js b/parsers/parsers.js deleted file mode 100644 index 0676305d..00000000 --- a/parsers/parsers.js +++ /dev/null @@ -1,16 +0,0 @@ -// @ts-check - -"use strict"; - -const jsoncParse = require("./jsonc-parse"); -const yamlParse = require("./yaml-parse"); - -/** - * Array of parser objects ordered by priority. - */ -const parsers = [ - jsoncParse, - yamlParse -]; - -module.exports = parsers; diff --git a/parsers/parsers.mjs b/parsers/parsers.mjs new file mode 100644 index 00000000..8b89bb0c --- /dev/null +++ b/parsers/parsers.mjs @@ -0,0 +1,14 @@ +// @ts-check + +import jsoncParse from "./jsonc-parse.mjs"; +import yamlParse from "./yaml-parse.mjs"; + +/** + * Array of parser objects ordered by priority. + */ +const parsers = [ + jsoncParse, + yamlParse +]; + +export default parsers; diff --git a/parsers/yaml-parse.js b/parsers/yaml-parse.mjs similarity index 74% rename from parsers/yaml-parse.js rename to parsers/yaml-parse.mjs index 22ff335f..0cf404df 100644 --- a/parsers/yaml-parse.js +++ b/parsers/yaml-parse.mjs @@ -1,8 +1,6 @@ // @ts-check -"use strict"; - -const yaml = require("js-yaml"); +import yaml from "js-yaml"; /** * Parses a YAML string, returning the corresponding object. @@ -11,4 +9,4 @@ const yaml = require("js-yaml"); */ const yamlParse = (text) => yaml.load(text); -module.exports = yamlParse; +export default yamlParse; diff --git a/resolve-and-require.js b/resolve-and-require.mjs similarity index 91% rename from resolve-and-require.js rename to resolve-and-require.mjs index 9507698c..8650ee2e 100644 --- a/resolve-and-require.js +++ b/resolve-and-require.mjs @@ -1,7 +1,5 @@ // @ts-check -"use strict"; - /** * Wrapper for calling Node's require.resolve/require with an additional path. * @param {object} req Node's require implementation (or equivalent). @@ -16,4 +14,4 @@ const resolveAndRequire = (req, id, dirs) => { return req(resolved); }; -module.exports = resolveAndRequire; +export default resolveAndRequire; diff --git a/test/append-to-array-test.js b/test/append-to-array-test.mjs similarity index 94% rename from test/append-to-array-test.js rename to test/append-to-array-test.mjs index aca4c704..9540dbce 100644 --- a/test/append-to-array-test.js +++ b/test/append-to-array-test.mjs @@ -1,10 +1,7 @@ // @ts-check -"use strict"; - -const test = require("ava").default; -const appendToArray = require("../append-to-array"); -const { sliceSize } = appendToArray; +import test from "ava"; +import appendToArray, { sliceSize } from "../append-to-array.mjs"; const makeArray = (minimum, maximum) => { const length = maximum - minimum + 1; diff --git a/test/customRules-pre-imported/.markdownlint-cli2.cjs b/test/customRules-pre-imported/.markdownlint-cli2.cjs index 98fa5da8..5ba88bee 100644 --- a/test/customRules-pre-imported/.markdownlint-cli2.cjs +++ b/test/customRules-pre-imported/.markdownlint-cli2.cjs @@ -2,7 +2,7 @@ "use strict"; -const anyBlockquote = require("./rules/any-blockquote.js"); +const anyBlockquote = require("./rules/any-blockquote.cjs"); module.exports = { "customRules": [ diff --git a/test/customRules-pre-imported/rules/any-blockquote.js b/test/customRules-pre-imported/rules/any-blockquote.cjs similarity index 100% rename from test/customRules-pre-imported/rules/any-blockquote.js rename to test/customRules-pre-imported/rules/any-blockquote.cjs diff --git a/test/customRules-throws/.markdownlint-cli2.jsonc b/test/customRules-throws/.markdownlint-cli2.jsonc index 59e833f9..5d41a132 100644 --- a/test/customRules-throws/.markdownlint-cli2.jsonc +++ b/test/customRules-throws/.markdownlint-cli2.jsonc @@ -1,5 +1,5 @@ { "customRules": [ - "./rules/throws.js" + "./rules/throws.cjs" ] } diff --git a/test/customRules-throws/rules/throws.js b/test/customRules-throws/rules/throws.cjs similarity index 100% rename from test/customRules-throws/rules/throws.js rename to test/customRules-throws/rules/throws.cjs diff --git a/test/customRules/.markdownlint-cli2.jsonc b/test/customRules/.markdownlint-cli2.jsonc index 1350bd58..599aee08 100644 --- a/test/customRules/.markdownlint-cli2.jsonc +++ b/test/customRules/.markdownlint-cli2.jsonc @@ -1,8 +1,8 @@ { "customRules": [ - "./rules/any-blockquote.js", - "./rules/every-n-lines.js", - "./rules/first-line.js" + "./rules/any-blockquote.cjs", + "./rules/every-n-lines.cjs", + "./rules/first-line.cjs" ], "config": { "every-n-lines": { diff --git a/test/customRules/dir/subdir/.markdownlint-cli2.jsonc b/test/customRules/dir/subdir/.markdownlint-cli2.jsonc index ab641367..66c3cb4b 100644 --- a/test/customRules/dir/subdir/.markdownlint-cli2.jsonc +++ b/test/customRules/dir/subdir/.markdownlint-cli2.jsonc @@ -1,6 +1,6 @@ { "customRules": [ - "../../rules/first-line.js", + "../../rules/first-line.cjs", "../../node_modules/markdownlint-rule-sample-commonjs", "../../node_modules/markdownlint-rule-sample-module/sample-rule.mjs", "markdownlint-rule-extended-ascii" diff --git a/test/customRules/dir3/.markdownlint-cli2.jsonc b/test/customRules/dir3/.markdownlint-cli2.jsonc index 0fed617e..e9a71c6c 100644 --- a/test/customRules/dir3/.markdownlint-cli2.jsonc +++ b/test/customRules/dir3/.markdownlint-cli2.jsonc @@ -1,6 +1,6 @@ { "customRules": [ - "../rules/all-rules", + "../rules/all-rules.cjs", "../node_modules/markdownlint-rule-sample-commonjs", "../node_modules/markdownlint-rule-sample-module/sample-rule.mjs" ] diff --git a/test/customRules/rules/all-rules.cjs b/test/customRules/rules/all-rules.cjs new file mode 100644 index 00000000..b333a173 --- /dev/null +++ b/test/customRules/rules/all-rules.cjs @@ -0,0 +1,10 @@ +// @ts-check + +"use strict"; + +module.exports = [ + require("./any-blockquote.cjs"), + require("./every-n-lines.cjs"), + require("./first-line.cjs"), + require("./second-line.cjs") +]; diff --git a/test/customRules/rules/all-rules.js b/test/customRules/rules/all-rules.js deleted file mode 100644 index 32817133..00000000 --- a/test/customRules/rules/all-rules.js +++ /dev/null @@ -1,10 +0,0 @@ -// @ts-check - -"use strict"; - -module.exports = [ - require("./any-blockquote"), - require("./every-n-lines"), - require("./first-line"), - require("./second-line") -]; diff --git a/test/customRules/rules/any-blockquote.js b/test/customRules/rules/any-blockquote.cjs similarity index 100% rename from test/customRules/rules/any-blockquote.js rename to test/customRules/rules/any-blockquote.cjs diff --git a/test/customRules/rules/every-n-lines.js b/test/customRules/rules/every-n-lines.cjs similarity index 100% rename from test/customRules/rules/every-n-lines.js rename to test/customRules/rules/every-n-lines.cjs diff --git a/test/customRules/rules/first-line.js b/test/customRules/rules/first-line.cjs similarity index 100% rename from test/customRules/rules/first-line.js rename to test/customRules/rules/first-line.cjs diff --git a/test/customRules/rules/second-line.js b/test/customRules/rules/second-line.cjs similarity index 100% rename from test/customRules/rules/second-line.js rename to test/customRules/rules/second-line.cjs diff --git a/test/esm-helpers.mjs b/test/esm-helpers.mjs new file mode 100644 index 00000000..fdf0b6e1 --- /dev/null +++ b/test/esm-helpers.mjs @@ -0,0 +1,19 @@ +// @ts-check + +import fs from "node:fs/promises"; +import path from "node:path"; +import { fileURLToPath } from "node:url"; + +// Shims import.meta.filename on Node 18 +// eslint-disable-next-line no-underscore-dangle +export const __filename = (meta) => fileURLToPath(meta.url); + +// Shims import.meta.dirname on Node 18 +// eslint-disable-next-line no-underscore-dangle +export const __dirname = (meta) => path.dirname(__filename(meta)); + +// Avoids "ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time" +export const importWithTypeJson = async (file) => ( + // @ts-ignore + JSON.parse(await fs.readFile(path.resolve(__dirname(import.meta), file))) +); diff --git a/test/fs-mock-test.js b/test/fs-mock-test.mjs similarity index 73% rename from test/fs-mock-test.js rename to test/fs-mock-test.mjs index f9734e64..4b25de9b 100644 --- a/test/fs-mock-test.js +++ b/test/fs-mock-test.mjs @@ -1,19 +1,19 @@ // @ts-check -"use strict"; - -const path = require("node:path"); -const { promisify } = require("node:util"); -const test = require("ava").default; -const FsMock = require("./fs-mock"); +import fsNodePromises from "node:fs/promises"; +import path from "node:path"; +import { promisify } from "node:util"; +import test from "ava"; +import { __dirname, __filename } from "./esm-helpers.mjs"; +import FsMock from "./fs-mock.mjs"; const mockPath = "/mock"; -const thisFile = path.basename(__filename); +const thisFile = path.basename(__filename(import.meta)); const testFile = path.join(mockPath, thisFile); test("fsMock.stat", async (t) => { t.plan(2); - const fs = new FsMock(__dirname); + const fs = new FsMock(__dirname(import.meta)); const fsStat = promisify(fs.stat); // @ts-ignore const stat = await fsStat(testFile); @@ -23,7 +23,7 @@ test("fsMock.stat", async (t) => { test("fsMock.lstat", async (t) => { t.plan(3); - const fs = new FsMock(__dirname); + const fs = new FsMock(__dirname(import.meta)); const fsLstat = promisify(fs.lstat); // @ts-ignore const stat = await fsLstat(testFile); @@ -34,7 +34,7 @@ test("fsMock.lstat", async (t) => { test("fsMock.lstat symbolic links", async (t) => { t.plan(3); - const fs = new FsMock(__dirname, true); + const fs = new FsMock(__dirname(import.meta), true); const fsLstat = promisify(fs.lstat); // @ts-ignore const stat = await fsLstat(testFile); @@ -45,7 +45,7 @@ test("fsMock.lstat symbolic links", async (t) => { test("fsMock.readdir", async (t) => { t.plan(3); - const fs = new FsMock(__dirname); + const fs = new FsMock(__dirname(import.meta)); const fsReaddir = promisify(fs.readdir); // @ts-ignore const files = await fsReaddir(mockPath); @@ -56,7 +56,7 @@ test("fsMock.readdir", async (t) => { test("fsMock.*", async (t) => { t.plan(1); - const fs = new FsMock(__dirname); + const fs = new FsMock(__dirname(import.meta)); const fsAccess = promisify(fs.access); // @ts-ignore await fsAccess(testFile); @@ -74,7 +74,7 @@ test("fsMock.*", async (t) => { test("fsMock.promises.*", async (t) => { t.plan(2); - const fs = new FsMock(__dirname); + const fs = new FsMock(__dirname(import.meta)); const tempName = "fs-mock.tmp"; const tempFile = path.join(mockPath, tempName); await t.throwsAsync(() => fs.promises.access(tempFile)); @@ -82,5 +82,5 @@ test("fsMock.promises.*", async (t) => { await fs.promises.access(tempFile); await fs.promises.stat(tempFile); t.is(await fs.promises.readFile(tempFile, "utf8"), tempFile); - await require("node:fs").promises.unlink(path.join(__dirname, tempName)); + await fsNodePromises.unlink(path.join(__dirname(import.meta), tempName)); }); diff --git a/test/fs-mock.js b/test/fs-mock.mjs similarity index 87% rename from test/fs-mock.js rename to test/fs-mock.mjs index ad3a4580..655b5d88 100644 --- a/test/fs-mock.js +++ b/test/fs-mock.mjs @@ -1,13 +1,11 @@ // @ts-check -"use strict"; +import fs from "node:fs"; +import nodePath from "node:path"; -const fs = require("node:fs"); - -const mapPath = (base, mockPath) => { - const path = require("node:path"); - return path.resolve(base, path.relative("/mock", mockPath)); -}; +const mapPath = (base, mockPath) => ( + nodePath.resolve(base, nodePath.relative("/mock", mockPath)) +); class fsMock { constructor(base, symbolicLinks) { @@ -56,4 +54,4 @@ class fsMock { } } -module.exports = fsMock; +export default fsMock; diff --git a/test/fs-virtual-test.js b/test/fs-virtual-test.mjs similarity index 88% rename from test/fs-virtual-test.js rename to test/fs-virtual-test.mjs index 1887bc70..ac33a79a 100644 --- a/test/fs-virtual-test.js +++ b/test/fs-virtual-test.mjs @@ -1,19 +1,18 @@ // @ts-check -"use strict"; - -const path = require("node:path"); -const { promisify } = require("node:util"); -const test = require("ava").default; -const FsVirtual = require("../webworker/fs-virtual"); +import path from "node:path"; +import { promisify } from "node:util"; +import test from "ava"; +import { __filename } from "./esm-helpers.mjs"; +import FsVirtual from "../webworker/fs-virtual.cjs"; const mockPath = "/mock"; -const thisFile = path.basename(__filename); +const thisFile = path.basename(__filename(import.meta)); 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 97% rename from test/markdownlint-cli2-test-cases.js rename to test/markdownlint-cli2-test-cases.mjs index 11fdfad6..ac654fac 100644 --- a/test/markdownlint-cli2-test-cases.js +++ b/test/markdownlint-cli2-test-cases.mjs @@ -1,11 +1,10 @@ // @ts-check -"use strict"; - -const fs = require("node:fs").promises; -const os = require("node:os"); -const path = require("node:path"); -const test = require("ava").default; +import fs from "node:fs/promises"; +import os from "node:os"; +import path from "node:path"; +import test from "ava"; +import { __dirname } from "./esm-helpers.mjs"; const noop = () => null; const empty = () => ""; @@ -13,7 +12,7 @@ const sanitize = (str) => str. replace(/\r/gu, ""). replace(/\bv\d+\.\d+\.\d+\b/gu, "vX.Y.Z"). replace(/ :.+[/\\]sentinel/gu, " :[PATH]"); -const sameFileSystem = (path.relative(os.homedir(), __dirname) !== __dirname); +const sameFileSystem = (path.relative(os.homedir(), __dirname(import.meta)) !== __dirname(import.meta)); const isModule = (file) => file.endsWith(".cjs") || file.endsWith(".mjs"); const testCases = ({ @@ -57,7 +56,7 @@ const testCases = ({ } test(`${name} (${host})`, (t) => { t.plan(3); - const directory = path.join(__dirname, cwd || name); + const directory = path.join(__dirname(import.meta), cwd || name); return ((pre || noop)(name, shadow) || Promise.resolve()). then(invoke(directory, args, noRequire, env, script)). then((result) => Promise.all([ @@ -143,13 +142,13 @@ const testCases = ({ const copyDirectory = (dir, alt) => import("cpy").then((cpy) => ( cpy.default( - path.join(__dirname, (alt || dir), "**"), - path.join(__dirname, directoryName(dir)) + path.join(__dirname(import.meta), (alt || dir), "**"), + path.join(__dirname(import.meta), directoryName(dir)) ) )); const deleteDirectory = (dir) => import("del").then((del) => ( - del.deleteAsync(path.join(__dirname, directoryName(dir))) + del.deleteAsync(path.join(__dirname(import.meta), directoryName(dir))) )); testCase({ @@ -588,7 +587,7 @@ const testCases = ({ }); const literalFilesAbsoluteFile = absolute( - path.join(__dirname, "literal-files"), + path.join(__dirname(import.meta), "literal-files"), "sentinel/dir(1)/(view)me.md" ). split(path.sep). @@ -670,7 +669,7 @@ const testCases = ({ "name": `config-files-${configFile}-absolute-arg`, "args": [ "--config", - path.join(__dirname, "config-files", `cfg/${configFile}`), + path.join(__dirname(import.meta), "config-files", `cfg/${configFile}`), "**/*.md" ], "exitCode": 1, @@ -1161,4 +1160,4 @@ const testCases = ({ }; -module.exports = testCases; +export default testCases; diff --git a/test/markdownlint-cli2-test-exec.js b/test/markdownlint-cli2-test-exec.mjs similarity index 89% rename from test/markdownlint-cli2-test-exec.js rename to test/markdownlint-cli2-test-exec.mjs index 394262f5..5285c555 100644 --- a/test/markdownlint-cli2-test-exec.js +++ b/test/markdownlint-cli2-test-exec.mjs @@ -1,14 +1,13 @@ // @ts-check -"use strict"; - -const fs = require("node:fs/promises"); -const path = require("node:path"); -const test = require("ava").default; -const testCases = require("./markdownlint-cli2-test-cases"); +import fs from "node:fs/promises"; +import path from "node:path"; +import test from "ava"; +import testCases from "./markdownlint-cli2-test-cases.mjs"; +import { __dirname } from "./esm-helpers.mjs"; const absolute = (rootDir, file) => path.join(rootDir, file); -const repositoryPath = (name) => path.join(__dirname, "..", name); +const repositoryPath = (name) => path.join(__dirname(import.meta), "..", name); const invoke = (directory, args, noRequire, env, script) => async () => { await fs.access(directory); @@ -16,7 +15,7 @@ const invoke = (directory, args, noRequire, env, script) => async () => { return spawn( "node", [ - repositoryPath(script || "markdownlint-cli2.js"), + repositoryPath(script || "markdownlint-cli2.mjs"), ...args ], { @@ -47,7 +46,7 @@ const invokeStdin = async (args, stdin, cwd) => { return spawn( "node", [ - repositoryPath("markdownlint-cli2.js"), + repositoryPath("markdownlint-cli2.mjs"), ...args ], { @@ -160,7 +159,7 @@ test("- parameter uses base directory configuration", (t) => { return invokeStdin( [ "-" ], invalidInput, - path.join(__dirname, "stdin") + path.join(__dirname(import.meta), "stdin") ). then(() => t.fail()). catch((error) => { @@ -174,7 +173,7 @@ test("- parameter not treated as stdin in configuration file globs", (t) => { return invokeStdin( [], invalidInput, - path.join(__dirname, "stdin-globs") + path.join(__dirname(import.meta), "stdin-globs") ). then(() => t.pass()). catch(() => t.fail()); diff --git a/test/markdownlint-cli2-test-exports.js b/test/markdownlint-cli2-test-exports.js deleted file mode 100644 index de1713c1..00000000 --- a/test/markdownlint-cli2-test-exports.js +++ /dev/null @@ -1,31 +0,0 @@ -// @ts-check - -"use strict"; - -const test = require("ava").default; -const packageJson = require("../package.json"); - -const exportMappings = new Map([ - [ ".", ".." ], - [ "./markdownlint", "markdownlint" ], - [ "./markdownlint/helpers", "markdownlint/helpers" ], - [ "./parsers", "../parsers/parsers.js" ], - [ "./parsers/jsonc", "../parsers/jsonc-parse.js" ], - [ "./parsers/yaml", "../parsers/yaml-parse.js" ] -]); - -test("exportMappings", (t) => { - t.deepEqual( - Object.keys(packageJson.exports), - [ ...exportMappings.keys() ] - ); -}); - -for (const [ exportName, exportPath ] of exportMappings) { - test(exportName, (t) => { - t.is( - require(exportName.replace(/^\./u, packageJson.name)), - require(exportPath) - ); - }); -} diff --git a/test/markdownlint-cli2-test-exports.mjs b/test/markdownlint-cli2-test-exports.mjs new file mode 100644 index 00000000..951ab87d --- /dev/null +++ b/test/markdownlint-cli2-test-exports.mjs @@ -0,0 +1,35 @@ +// @ts-check + +import test from "ava"; +import { importWithTypeJson } from "./esm-helpers.mjs"; +const packageJson = await importWithTypeJson("../package.json"); + +const exportMappings = new Map([ + [ ".", "../markdownlint-cli2.mjs" ], + [ "./markdownlint", "markdownlint" ], + [ "./markdownlint/helpers", "markdownlint/helpers" ], + [ "./parsers", "../parsers/parsers.mjs" ], + [ "./parsers/jsonc", "../parsers/jsonc-parse.mjs" ], + [ "./parsers/yaml", "../parsers/yaml-parse.mjs" ] +]); + +test("exportMappings", (t) => { + t.deepEqual( + Object.keys(packageJson.exports), + [ ...exportMappings.keys() ] + ); +}); + +const commonJsRe = /.js$/u; + +for (const [ exportName, exportPath ] of exportMappings) { + test(exportName, async (t) => { + const commonJs = !commonJsRe.test(exportPath); + const importExportName = await import(exportName.replace(/^\./u, packageJson.name)); + const importExportPath = await import(exportPath); + t.is( + commonJs ? importExportName.default : importExportName, + commonJs ? importExportPath.default : importExportPath + ); + }); +} diff --git a/test/markdownlint-cli2-test-fs.js b/test/markdownlint-cli2-test-fs.mjs similarity index 81% rename from test/markdownlint-cli2-test-fs.js rename to test/markdownlint-cli2-test-fs.mjs index d2b703af..8306a1c2 100644 --- a/test/markdownlint-cli2-test-fs.js +++ b/test/markdownlint-cli2-test-fs.mjs @@ -1,11 +1,9 @@ // @ts-check -"use strict"; - -const path = require("node:path"); -const { "main": markdownlintCli2 } = require("../markdownlint-cli2.js"); -const testCases = require("./markdownlint-cli2-test-cases"); -const FsMock = require("./fs-mock"); +import path from "node:path"; +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 83% rename from test/markdownlint-cli2-test-main.js rename to test/markdownlint-cli2-test-main.mjs index 80e61ca7..067e3bec 100644 --- a/test/markdownlint-cli2-test-main.js +++ b/test/markdownlint-cli2-test-main.mjs @@ -1,10 +1,8 @@ // @ts-check -"use strict"; - -const path = require("node:path"); -const { "main": markdownlintCli2 } = require("../markdownlint-cli2.js"); -const testCases = require("./markdownlint-cli2-test-cases"); +import path from "node:path"; +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 90% rename from test/markdownlint-cli2-test.js rename to test/markdownlint-cli2-test.mjs index 43c3f4b7..91301f94 100644 --- a/test/markdownlint-cli2-test.js +++ b/test/markdownlint-cli2-test.mjs @@ -1,20 +1,23 @@ // @ts-check -"use strict"; - -const fs = require("node:fs/promises"); -const path = require("node:path"); -const Ajv = require("ajv"); -const test = require("ava").default; -const { "main": markdownlintCli2 } = require("../markdownlint-cli2.js"); -const jsoncParse = require("../parsers/jsonc-parse.js"); -const yamlParse = require("../parsers/yaml-parse.js"); -const FsMock = require("./fs-mock"); -const FsVirtual = require("../webworker/fs-virtual"); +import nodeFs from "node:fs"; +import fs from "node:fs/promises"; +import path from "node:path"; +import Ajv from "ajv"; +import test from "ava"; +import { globby } from "globby"; +import { __dirname, importWithTypeJson } from "./esm-helpers.mjs"; +const packageJson = await importWithTypeJson("../package.json"); +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.cjs"; +import firstLine from "./customRules/rules/first-line.cjs"; const schemaIdVersionRe = /^.*v(?\d+\.\d+\.\d+).*$/u; -const markdownlintConfigSchemaDefinition = require("../schema/markdownlint-config-schema.json"); -const markdownlintCli2ConfigSchemaDefinition = require("../schema/markdownlint-cli2-config-schema.json"); +const markdownlintConfigSchemaDefinition = await importWithTypeJson("../schema/markdownlint-config-schema.json"); +const markdownlintCli2ConfigSchemaDefinition = await importWithTypeJson("../schema/markdownlint-cli2-config-schema.json"); const outputFormatterLengthIs = (t, length) => (options) => { const { results } = options; @@ -23,7 +26,6 @@ const outputFormatterLengthIs = (t, length) => (options) => { test("name and version", (t) => { t.plan(3); - const packageJson = require("../package.json"); const logMessage = (msg) => { const match = (/^(?\S+)\sv(?\S+)\s/u).exec(msg); if (match) { @@ -77,7 +79,7 @@ test("validateMarkdownlintConfigSchema", async (t) => { const validateConfigSchema = ajv.compile(markdownlintConfigSchemaDefinition); t.is( markdownlintConfigSchemaDefinition.$id.replace(schemaIdVersionRe, "$"), - require("../package.json").dependencies.markdownlint + packageJson.dependencies.markdownlint ); t.is( markdownlintConfigSchemaDefinition.$id, @@ -85,7 +87,6 @@ test("validateMarkdownlintConfigSchema", async (t) => { ); // Validate instances - const { globby } = await import("globby"); const files = await globby( [ "**/*.markdownlint.(json|jsonc)", @@ -123,7 +124,7 @@ test("validateMarkdownlintCli2ConfigSchema", async (t) => { const validateConfigSchema = ajv.compile(markdownlintCli2ConfigSchemaDefinition); t.is( markdownlintCli2ConfigSchemaDefinition.$id.replace(schemaIdVersionRe, "$"), - require("../package.json").version + packageJson.version ); t.is( markdownlintCli2ConfigSchemaDefinition.$id, @@ -131,7 +132,6 @@ test("validateMarkdownlintCli2ConfigSchema", async (t) => { ); // Validate instances - const { globby } = await import("globby"); const files = await globby( [ "**/*.markdownlint-cli2.(json|jsonc)", @@ -200,7 +200,7 @@ test("main options default", (t) => { "directory": "test/main-options-default", "argv": [ "info.md" ], "optionsDefault": { - "customRules": [ require("./customRules/rules/first-line") ] + "customRules": [ firstLine ] } }) ]). @@ -294,7 +294,7 @@ test("alternate file contents with ignores", (t) => { test("extension scenario, file, no changes", (t) => { t.plan(2); return markdownlintCli2({ - "directory": __dirname, + "directory": __dirname(import.meta), "argv": [ ":./markdownlint-json/viewme.md" ], "optionsOverride": { "outputFormatters": [ [ outputFormatterLengthIs(t, 4) ] ] @@ -306,7 +306,7 @@ test("extension scenario, file, no changes", (t) => { test("extension scenario, file, changes", (t) => { t.plan(2); return markdownlintCli2({ - "directory": __dirname, + "directory": __dirname(import.meta), "argv": [ ":./markdownlint-json/viewme.md" ], "fileContents": { "./markdownlint-json/viewme.md": "# Title\n\n> Tagline \n\n\n" @@ -321,7 +321,7 @@ test("extension scenario, file, changes", (t) => { test("extension scenario, no file", (t) => { t.plan(2); return markdownlintCli2({ - "directory": __dirname, + "directory": __dirname(import.meta), "argv": [], "nonFileContents": { "untitled-1": "# Title\n\nText\t\n" @@ -336,7 +336,7 @@ test("extension scenario, no file", (t) => { test("extension scenario, no file, empty", (t) => { t.plan(2); return markdownlintCli2({ - "directory": __dirname, + "directory": __dirname(import.meta), "argv": [], "nonFileContents": { "untitled-1": "" @@ -360,7 +360,7 @@ test("extension scenario, ignores handled", (t) => { }; const argv = Object.keys(fileContents).map((key) => `:${key}`); return markdownlintCli2({ - "directory": path.join(__dirname, "extension-scenario-ignores"), + "directory": path.join(__dirname(import.meta), "extension-scenario-ignores"), argv, fileContents, "optionsOverride": { @@ -372,7 +372,7 @@ test("extension scenario, ignores handled", (t) => { test("extension scenario, ignores handled, absolute paths", (t) => { t.plan(2); - const directory = path.join(__dirname, "extension-scenario-ignores"); + const directory = path.join(__dirname(import.meta), "extension-scenario-ignores"); const fileContents = Object.fromEntries( Object.entries({ "viewme.md": "Heading", @@ -401,7 +401,7 @@ test("extension scenario, ignores handled, absolute paths", (t) => { test("extension scenario, globs ignored/filtered", (t) => { t.plan(2); return markdownlintCli2({ - "directory": path.join(__dirname, "extension-scenario-globs"), + "directory": path.join(__dirname(import.meta), "extension-scenario-globs"), "argv": [ ":viewme.md", ":dir/viewme.md", @@ -425,14 +425,14 @@ test("extension scenario, globs ignored/filtered", (t) => { test("backslash translation", (t) => { t.plan(2); return markdownlintCli2({ - "directory": __dirname, + "directory": __dirname(import.meta), "argv": [ "./markdownlint-json/viewme.md", "markdownlint-jsonc/viewme.md", - path.join(__dirname, "markdownlint-cli2-jsonc/viewme.md"), + path.join(__dirname(import.meta), "markdownlint-cli2-jsonc/viewme.md"), ".\\markdownlint-yml\\viewme.md", "markdownlint-yaml\\viewme.md", - path.join(__dirname, "markdownlint-cli2-yaml\\viewme.md") + path.join(__dirname(import.meta), "markdownlint-cli2-yaml\\viewme.md") ], "optionsOverride": { "outputFormatters": [ [ outputFormatterLengthIs(t, 24) ] ] @@ -563,7 +563,7 @@ test("custom fs, using node:fs", (t) => { "optionsOverride": { "outputFormatters": [ [ outputFormatterLengthIs(t, 10) ] ] }, - "fs": require("node:fs") + "fs": nodeFs }). then((exitCode) => { t.is(exitCode, 1); @@ -578,7 +578,7 @@ test("custom fs, using node:fs and noRequire=false", (t) => { "optionsOverride": { "outputFormatters": [ [ outputFormatterLengthIs(t, 11) ] ] }, - "fs": require("node:fs"), + "fs": nodeFs, "noRequire": false }). then((exitCode) => { @@ -594,7 +594,7 @@ test("custom fs, using node:fs and noRequire=true", (t) => { "optionsOverride": { "outputFormatters": [ [ outputFormatterLengthIs(t, 14) ] ] }, - "fs": require("node:fs"), + "fs": nodeFs, "noRequire": true }). then((exitCode) => { @@ -610,7 +610,7 @@ test("custom fs, using fsMock", (t) => { "optionsOverride": { "outputFormatters": [ [ outputFormatterLengthIs(t, 10) ] ] }, - "fs": new FsMock(path.join(__dirname, "markdownlint-cli2-jsonc")), + "fs": new FsMock(path.join(__dirname(import.meta), "markdownlint-cli2-jsonc")), "noRequire": true }). then((exitCode) => { @@ -626,7 +626,7 @@ test("custom fs, using fsMock simulating symbolic links", (t) => { "optionsOverride": { "outputFormatters": [ [ outputFormatterLengthIs(t, 10) ] ] }, - "fs": new FsMock(path.join(__dirname, "markdownlint-cli2-jsonc"), true), + "fs": new FsMock(path.join(__dirname(import.meta), "markdownlint-cli2-jsonc"), true), "noRequire": true }). then((exitCode) => { diff --git a/test/merge-options-test.js b/test/merge-options-test.mjs similarity index 96% rename from test/merge-options-test.js rename to test/merge-options-test.mjs index a13ade7f..ada5c695 100644 --- a/test/merge-options-test.js +++ b/test/merge-options-test.mjs @@ -1,9 +1,7 @@ // @ts-check -"use strict"; - -const test = require("ava").default; -const mergeOptions = require("../merge-options"); +import test from "ava"; +import mergeOptions from "../merge-options.mjs"; test("null/null", (t) => { t.plan(1); diff --git a/test/nested-options-config/config-options-disjoint-empty/dir/dir/.markdownlint-cli2.jsonc b/test/nested-options-config/config-options-disjoint-empty/dir/dir/.markdownlint-cli2.jsonc index 3b0219dc..9f3778dd 100644 --- a/test/nested-options-config/config-options-disjoint-empty/dir/dir/.markdownlint-cli2.jsonc +++ b/test/nested-options-config/config-options-disjoint-empty/dir/dir/.markdownlint-cli2.jsonc @@ -1,5 +1,5 @@ { "customRules": [ - "../../../first-line.js" + "../../../first-line.cjs" ] } diff --git a/test/nested-options-config/config-options-disjoint/dir/dir/.markdownlint-cli2.jsonc b/test/nested-options-config/config-options-disjoint/dir/dir/.markdownlint-cli2.jsonc index 3b0219dc..9f3778dd 100644 --- a/test/nested-options-config/config-options-disjoint/dir/dir/.markdownlint-cli2.jsonc +++ b/test/nested-options-config/config-options-disjoint/dir/dir/.markdownlint-cli2.jsonc @@ -1,5 +1,5 @@ { "customRules": [ - "../../../first-line.js" + "../../../first-line.cjs" ] } diff --git a/test/nested-options-config/config-options-overlap-empty/dir/dir/.markdownlint-cli2.jsonc b/test/nested-options-config/config-options-overlap-empty/dir/dir/.markdownlint-cli2.jsonc index 4569433e..c8e78b72 100644 --- a/test/nested-options-config/config-options-overlap-empty/dir/dir/.markdownlint-cli2.jsonc +++ b/test/nested-options-config/config-options-overlap-empty/dir/dir/.markdownlint-cli2.jsonc @@ -1,6 +1,6 @@ { "customRules": [ - "../../../first-line.js" + "../../../first-line.cjs" ], "config": { "no-space-in-code": false diff --git a/test/nested-options-config/config-options-overlap/dir/dir/.markdownlint-cli2.jsonc b/test/nested-options-config/config-options-overlap/dir/dir/.markdownlint-cli2.jsonc index 4569433e..c8e78b72 100644 --- a/test/nested-options-config/config-options-overlap/dir/dir/.markdownlint-cli2.jsonc +++ b/test/nested-options-config/config-options-overlap/dir/dir/.markdownlint-cli2.jsonc @@ -1,6 +1,6 @@ { "customRules": [ - "../../../first-line.js" + "../../../first-line.cjs" ], "config": { "no-space-in-code": false diff --git a/test/nested-options-config/first-line.js b/test/nested-options-config/first-line.cjs similarity index 100% rename from test/nested-options-config/first-line.js rename to test/nested-options-config/first-line.cjs diff --git a/test/nested-options-config/options-config-disjoint-empty/.markdownlint-cli2.jsonc b/test/nested-options-config/options-config-disjoint-empty/.markdownlint-cli2.jsonc index 37174581..07bd66bb 100644 --- a/test/nested-options-config/options-config-disjoint-empty/.markdownlint-cli2.jsonc +++ b/test/nested-options-config/options-config-disjoint-empty/.markdownlint-cli2.jsonc @@ -1,5 +1,5 @@ { "customRules": [ - "../first-line.js" + "../first-line.cjs" ] } diff --git a/test/nested-options-config/options-config-disjoint/.markdownlint-cli2.jsonc b/test/nested-options-config/options-config-disjoint/.markdownlint-cli2.jsonc index 37174581..07bd66bb 100644 --- a/test/nested-options-config/options-config-disjoint/.markdownlint-cli2.jsonc +++ b/test/nested-options-config/options-config-disjoint/.markdownlint-cli2.jsonc @@ -1,5 +1,5 @@ { "customRules": [ - "../first-line.js" + "../first-line.cjs" ] } diff --git a/test/nested-options-config/options-config-overlap-empty/.markdownlint-cli2.jsonc b/test/nested-options-config/options-config-overlap-empty/.markdownlint-cli2.jsonc index 8c0936d0..ee852567 100644 --- a/test/nested-options-config/options-config-overlap-empty/.markdownlint-cli2.jsonc +++ b/test/nested-options-config/options-config-overlap-empty/.markdownlint-cli2.jsonc @@ -1,6 +1,6 @@ { "customRules": [ - "../first-line.js" + "../first-line.cjs" ], "config": { "no-space-in-code": false diff --git a/test/nested-options-config/options-config-overlap/.markdownlint-cli2.jsonc b/test/nested-options-config/options-config-overlap/.markdownlint-cli2.jsonc index 8c0936d0..ee852567 100644 --- a/test/nested-options-config/options-config-overlap/.markdownlint-cli2.jsonc +++ b/test/nested-options-config/options-config-overlap/.markdownlint-cli2.jsonc @@ -1,6 +1,6 @@ { "customRules": [ - "../first-line.js" + "../first-line.cjs" ], "config": { "no-space-in-code": false diff --git a/test/resolve-and-require-test.js b/test/resolve-and-require-test.mjs similarity index 73% rename from test/resolve-and-require-test.js rename to test/resolve-and-require-test.mjs index 49038b38..97897f64 100644 --- a/test/resolve-and-require-test.js +++ b/test/resolve-and-require-test.mjs @@ -1,18 +1,18 @@ // @ts-check -"use strict"; +import test from "ava"; +import path from "node:path"; +import { __dirname } from "./esm-helpers.mjs"; +import resolveAndRequire from "../resolve-and-require.mjs"; -const test = require("ava").default; -const path = require("node:path"); -const resolveAndRequire = require("../resolve-and-require"); - -/* eslint-disable n/no-missing-require */ +import { createRequire } from "node:module"; +const require = createRequire(import.meta.url); test("built-in module", (t) => { t.plan(1); t.deepEqual( require("node:fs"), - resolveAndRequire(require, "fs", [ __dirname ]) + resolveAndRequire(require, "fs", [ __dirname(import.meta) ]) ); }); @@ -20,18 +20,18 @@ test("locally-installed module", (t) => { t.plan(1); t.deepEqual( require("markdownlint"), - resolveAndRequire(require, "markdownlint", [ __dirname ]) + resolveAndRequire(require, "markdownlint", [ __dirname(import.meta) ]) ); }); -test("relative (to __dirname) path to module", (t) => { +test("relative (to __dirname(import.meta)) path to module", (t) => { t.plan(1); t.deepEqual( require("./customRules/node_modules/markdownlint-rule-sample-commonjs"), resolveAndRequire( require, "./customRules/node_modules/markdownlint-rule-sample-commonjs", - [ __dirname ] + [ __dirname(import.meta) ] ) ); }); @@ -48,7 +48,7 @@ test("module in alternate node_modules", (t) => { resolveAndRequire( require, "markdownlint-rule-sample-commonjs", - [ path.join(__dirname, "customRules") ] + [ path.join(__dirname(import.meta), "customRules") ] ) ); }); @@ -67,7 +67,7 @@ test("module in alternate node_modules and no require.resolve.paths", (t) => { resolveAndRequire( require, "markdownlint-rule-sample-commonjs", - [ path.join(__dirname, "customRules") ] + [ path.join(__dirname(import.meta), "customRules") ] ) ); }); @@ -75,8 +75,8 @@ test("module in alternate node_modules and no require.resolve.paths", (t) => { test("module local, relative, and in alternate node_modules", (t) => { t.plan(3); const dirs = [ - __dirname, - path.join(__dirname, "customRules") + __dirname(import.meta), + path.join(__dirname(import.meta), "customRules") ]; t.deepEqual( require("markdownlint"), 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.cjs similarity index 100% rename from webworker/fs-virtual.js rename to webworker/fs-virtual.cjs diff --git a/webworker/index.html b/webworker/index.html index e6f2ec36..93697b1c 100644 --- a/webworker/index.html +++ b/webworker/index.html @@ -10,9 +10,9 @@
- - - - + + + + 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/index.mjs b/webworker/index.mjs new file mode 100644 index 00000000..5abe0535 --- /dev/null +++ b/webworker/index.mjs @@ -0,0 +1,3 @@ +// @ts-check + +export { main } from "../markdownlint-cli2.mjs"; 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/module-stub.cjs b/webworker/module-stub.cjs new file mode 100644 index 00000000..fec94871 --- /dev/null +++ b/webworker/module-stub.cjs @@ -0,0 +1,8 @@ +// @ts-check + +"use strict"; + +module.exports = { + // @ts-ignore + "createRequire": () => require +}; 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 89% rename from webworker/process-stub.js rename to webworker/process-stub.cjs index f4245d09..6db93931 100644 --- a/webworker/process-stub.js +++ b/webworker/process-stub.cjs @@ -3,6 +3,7 @@ "use strict"; module.exports = { + "argv": [], "cwd": () => "/", "env": {}, "versions": { 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 74% rename from webworker/webpack.config.js rename to webworker/webpack.config.cjs index 2fcc75ee..6b9377b6 100644 --- a/webworker/webpack.config.js +++ b/webworker/webpack.config.cjs @@ -7,12 +7,13 @@ const webpack = require("webpack"); const nodeModulePrefixRe = /^node:/u; +/** @type {import("webpack").Configuration} */ module.exports = { "target": "webworker", - "entry": "./index.js", + "entry": "./index.mjs", "output": { "path": __dirname, - "filename": "markdownlint-cli2-webworker.js", + "filename": "markdownlint-cli2-webworker.cjs", "library": { "name": "markdownlintCli2", "type": "var" @@ -31,14 +32,14 @@ module.exports = { new webpack.NormalModuleReplacementPlugin( /^stream\/(?:consumers|promises)$/u, (resource) => { - resource.request = require.resolve("./module-empty.js"); + resource.request = require.resolve("./module-empty.cjs"); } ), // Intercept existing "unicorn-magic" package to provide missing import new webpack.NormalModuleReplacementPlugin( /^unicorn-magic$/u, (resource) => { - resource.request = require.resolve("./unicorn-magic-stub.js"); + resource.request = require.resolve("./unicorn-magic-stub.cjs"); } ), // Intercept use of "process" to provide implementation @@ -50,12 +51,13 @@ module.exports = { "fallback": { "buffer": false, "fs": false, - "os": require.resolve("./os-stub.js"), + "module": require.resolve("./module-stub.cjs"), + "os": require.resolve("./os-stub.cjs"), "path": require.resolve("path-browserify"), - "process": require.resolve("./process-stub.js"), - "process-wrapper": require.resolve("./process-stub.js"), + "process": require.resolve("./process-stub.cjs"), + "process-wrapper": require.resolve("./process-stub.cjs"), "stream": require.resolve("stream-browserify"), - "url": require.resolve("./module-empty.js") + "url": require.resolve("./module-empty.cjs") } } }; 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