mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-18 23:10:12 +01:00
Break lint.
This commit is contained in:
parent
2e761f8296
commit
38d65b0943
1 changed files with 1 additions and 5 deletions
|
|
@ -11,14 +11,10 @@ const helpers = require("../helpers");
|
||||||
const cache = require("./cache");
|
const cache = require("./cache");
|
||||||
|
|
||||||
const deprecatedRuleNames = [ "MD002" ];
|
const deprecatedRuleNames = [ "MD002" ];
|
||||||
|
const x = 5;
|
||||||
function bork() {}
|
|
||||||
|
|
||||||
// Validates the list of rules for structure and reuse
|
// Validates the list of rules for structure and reuse
|
||||||
function validateRuleList(ruleList) {
|
function validateRuleList(ruleList) {
|
||||||
if (ruleList.length > 100) {
|
|
||||||
bork();
|
|
||||||
}
|
|
||||||
let result = null;
|
let result = null;
|
||||||
if (ruleList.length === rules.length) {
|
if (ruleList.length === rules.length) {
|
||||||
// No need to validate if only using built-in rules
|
// No need to validate if only using built-in rules
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue