Commit graph

686 commits

Author SHA1 Message Date
David Anson
aa7fbce2dd Update code to fix or document false positives for CodeQL warnings. 2020-10-02 13:44:18 -07:00
David Anson
2605d56c62 MD044/proper-names should ignore text of automatic hyperlinks (fixes #329). 2020-09-18 20:30:46 -07:00
David Anson
6061cce169 Allow unknown (custom) rule names in .markdownlint.json schema. 2020-09-15 21:48:00 -07:00
David Anson
e9d63a6284 Add Promise-based APIs for markdownlint and readConfig, update declaration file. 2020-09-13 12:58:09 -07:00
David Anson
1f6a2cdc96 Split primary test cases across multiple files, address bogus @ts-ignore issues. 2020-09-12 12:42:46 -07:00
David Anson
ebc74e3d5f Duplicate markdownlint-test.js as first step of splitting it into smaller files. 2020-09-12 12:13:06 -07:00
David Anson
4286f68152 Introduce concurrency to asynchronous file linting for improved performance. 2020-09-12 12:01:20 -07:00
David Anson
2851a691ba Make toString function on LintResults object non-enumerable (hide it from for..in). 2020-09-07 20:05:36 -07:00
David Anson
5ab938a6ab Add lint rules from eslint-plugin-unicorn. 2020-09-06 20:34:10 -07:00
David Anson
0f4745efe3 Exclude eslint-plugin-node rules from customRulesLintJavaScript test due to inconsistent behavior on Node 10. 2020-09-06 19:58:07 -07:00
David Anson
e1eb81cd21 Add lint rules from eslint-plugin-node. 2020-09-06 19:49:35 -07:00
David Anson
94d5432f4d Improve README.md/CustomRules.md, add CustomRules.md/Rules.md to tests. 2020-09-06 16:31:26 -07:00
David Anson
e0e5ce555a Update dependency: tape to 5.0.1. 2020-09-05 17:31:39 -07:00
Álvaro Mondéjar
6dc20fcc21 Fix inline of links with empty link. (fixes #308) 2020-09-05 17:31:39 -07:00
David Anson
2af3dd0d7a Replace dev dependency markdown-it-katex with @iktakahiro/markdown-it-katex per "npm audit". 2020-09-05 17:31:26 -07:00
David Anson
0acc578e52 Update remaining references to refer to main branch as "main". 2020-08-11 22:52:29 -07:00
David Anson
e1772ddc51 Group items in "Related" section of README.md by category. 2020-06-22 21:03:26 -07:00
David Anson
6ac5fa52a6 Update bare URL RegExp to improve the behavior of MD034/no-bare-urls with trailing punctuation (fixes #283). 2020-06-21 21:47:32 -07:00
David Anson
e696960aab Update MD044/proper-names to handle names with non-word-character boundaries better. 2020-06-19 21:09:11 -07:00
David Anson
26e70a2c6d Update MD037/no-space-in-emphasis to avoid hang when backtracking for embedded emphasis on first character of line. 2020-06-15 19:42:46 -07:00
David Anson
87aac66d68 Update MD044/proper-names to avoid providing bogus range when proper name could not be found. 2020-05-13 20:59:18 -07:00
David Anson
ac5d52a3e3 Update MD037/no-space-in-emphasis to ignore emphasis markers in link text (fixes #280). 2020-05-12 20:13:51 -07:00
David Anson
f607a49a5b Update MD037/no-space-in-emphasis to handle more scenarios (refs #286). 2020-05-10 17:06:07 -07:00
David Anson
37f1d6b64b Update MD037/no-space-in-emphasis to ignore emphasis markers in link text/destination (refs #286). 2020-05-08 16:01:42 -07:00
David Anson
0cea489e18 Replace glob with globby (allows multiple patterns and exclusions). 2020-05-08 15:28:38 -07:00
David Anson
ebdf0ddf28 Add clone-test-repos-large script for cloning very large repositories (not part of push/pull_request trigger). 2020-05-08 12:27:41 -07:00
David Anson
2141566b47 Add lint-test-repos scripts and Workflow for real-world regression testing. 2020-05-08 11:55:08 -07:00
David Anson
70dc8fb6d3 Update MD037/no-space-in-emphasis to avoid pairing different kinds of emphasis marker. 2020-04-25 15:30:52 -07:00
David Anson
f5a71521d4 Update MD037/no-space-in-emphasis to ignore emphasis markers in code spans (fixes #278). 2020-04-25 15:10:07 -07:00
David Anson
bdc0246b34 Improve MD038/no-space-in-code to allow single-spaces surrounding a code inline with internal spaces (fixes #277). 2020-04-24 19:52:28 -07:00
David Anson
f775b9d4fb Update rewritten MD037/no-space-in-emphasis to handle multiple-line emphasis (fixes #272). 2020-04-12 20:40:05 -07:00
David Anson
5c60e00a90 Update MD037/no-space-in-emphasis to avoid crash, handle more scenarios. 2020-04-11 12:33:28 -07:00
David Anson
e470086d3b Sync to latest test file changes from Ruby implementation, commit 1e78c89224fe72572dc6f6c956da284ec7dafe62. 2020-04-10 19:21:58 -07:00
David Anson
678597485b Fix possible crash in MD005/list-indent, reporting issue with MD029/ol-prefix. 2020-04-09 20:14:36 -07:00
David Anson
320acfd7cc Update MD034/no-bare-urls to allow quoting bare URLs. 2020-04-08 21:58:52 -07:00
David Anson
e319f9501c Update MD031/blanks-around-fences to add blockquote characters when fixing issues in that context. 2020-04-07 21:01:39 -07:00
David Anson
65b19b703b Update MD038/no-space-in-code to allow the "single leading and trailing space" scenario (fixes #271). 2020-04-06 20:43:38 -07:00
David Anson
6ce426cf88 Add support for "markdownlint-configure-file" inline comments (fixes #264). 2020-04-05 19:47:12 -07:00
David Anson
dd66a33d75 Update MD034/no-bare-urls to ignore "[link]" scenario that conflicts with MD011/no-reversed-links (fixes #268). 2020-04-01 20:21:36 -07:00
David Anson
29f16bf402 Reimplement MD037/no-space-in-emphasis to better handle multiple fixes on a line and more scenarios (fixes #251). 2020-03-29 16:36:04 -07:00
David Anson
de86a26e4e Update MD013/line-length to support stern parameter (fixes #256). 2020-03-22 14:06:29 -07:00
David Anson
11ea2ad5f1 Update handling of lists nested in blockquotes to improve MD007/ul-indent (fixes #266). 2020-03-21 13:17:34 -07:00
David Anson
742f2a8d79 Update MD029/ol-prefix to treat 0/1/2 as "ordered" (fixes #250). 2020-03-18 21:50:28 -07:00
David Anson
4ff6f2f4b1 Change behavior of un-terminated HTML comments to be treated as text (fixes #252). 2020-03-09 23:06:13 -07:00
David Anson
b87094e33d Update MD018/no-missing-space-atx to ignore Keycap Number Sign emoji at start of line (fixes #257). 2020-03-08 19:49:52 -07:00
David Anson
67d1476ed8 Update MD039/no-space-in-links to handle RegExp match failure (fixes #262). 2020-03-07 19:49:57 -08:00
David Anson
d171b6c6b7 Add tape-player 0.1.0 to devDependencies for logging output from tape test harness. 2020-02-15 11:23:54 -08:00
David Anson
4d0c963c70 Sync to latest test file changes from Ruby implementation, commit d5145912de278e24ba7ebada19d84bb0cc609f96. 2020-01-26 20:50:29 -08:00
David Anson
3238ed4249 Update all rules to better handle wrongly-typed configuration parameters. 2020-01-25 18:40:39 -08:00
David Anson
26ad0550ec Update MD013/line-length to allow inline image links to exceed the length threshold (fixes #248). 2020-01-24 21:50:50 -08:00