@codacy/tools-markdownlint-0 0.6.2 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +101 -50
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -49,7 +49,8 @@ var patterns_default = [
49
49
  title: "Enforce Incremental Heading Levels",
50
50
  enabled: true,
51
51
  languages: ["Markdown"],
52
- parameters: []
52
+ parameters: [],
53
+ tags: ["headings"]
53
54
  },
54
55
  {
55
56
  id: "markdownlint_MD003",
@@ -64,7 +65,8 @@ var patterns_default = [
64
65
  default: "consistent",
65
66
  description: "Heading style"
66
67
  }
67
- ]
68
+ ],
69
+ tags: ["headings"]
68
70
  },
69
71
  {
70
72
  id: "markdownlint_MD004",
@@ -79,7 +81,8 @@ var patterns_default = [
79
81
  default: "consistent",
80
82
  description: "List style"
81
83
  }
82
- ]
84
+ ],
85
+ tags: ["bullet", "ul"]
83
86
  },
84
87
  {
85
88
  id: "markdownlint_MD005",
@@ -88,7 +91,8 @@ var patterns_default = [
88
91
  title: "Enforce consistent indentation for list items at the same level",
89
92
  enabled: true,
90
93
  languages: ["Markdown"],
91
- parameters: []
94
+ parameters: [],
95
+ tags: ["bullet", "indentation", "ul"]
92
96
  },
93
97
  {
94
98
  id: "markdownlint_MD007",
@@ -113,7 +117,8 @@ var patterns_default = [
113
117
  default: "false",
114
118
  description: "Whether to indent the first level of the list"
115
119
  }
116
- ]
120
+ ],
121
+ tags: ["bullet", "indentation", "ul"]
117
122
  },
118
123
  {
119
124
  id: "markdownlint_MD009",
@@ -138,7 +143,8 @@ var patterns_default = [
138
143
  default: "false",
139
144
  description: "Include unnecessary breaks"
140
145
  }
141
- ]
146
+ ],
147
+ tags: ["whitespace"]
142
148
  },
143
149
  {
144
150
  id: "markdownlint_MD010",
@@ -163,7 +169,8 @@ var patterns_default = [
163
169
  default: "1",
164
170
  description: "Number of spaces for each hard tab"
165
171
  }
166
- ]
172
+ ],
173
+ tags: ["hardtab", "whitespace"]
167
174
  },
168
175
  {
169
176
  id: "markdownlint_MD011",
@@ -172,7 +179,8 @@ var patterns_default = [
172
179
  title: "Avoid Reversed Link Syntax",
173
180
  enabled: true,
174
181
  languages: ["Markdown"],
175
- parameters: []
182
+ parameters: [],
183
+ tags: ["links"]
176
184
  },
177
185
  {
178
186
  id: "markdownlint_MD012",
@@ -187,7 +195,8 @@ var patterns_default = [
187
195
  default: "1",
188
196
  description: "Consecutive blank lines"
189
197
  }
190
- ]
198
+ ],
199
+ tags: ["blanklines", "whitespace"]
191
200
  },
192
201
  {
193
202
  id: "markdownlint_MD013",
@@ -237,7 +246,8 @@ var patterns_default = [
237
246
  default: "true",
238
247
  description: "Include tables"
239
248
  }
240
- ]
249
+ ],
250
+ tags: ["linelength"]
241
251
  },
242
252
  {
243
253
  id: "markdownlint_MD014",
@@ -246,7 +256,8 @@ var patterns_default = [
246
256
  title: "Avoid Dollar Signs Before Commands Without Showing Output",
247
257
  enabled: true,
248
258
  languages: ["Markdown"],
249
- parameters: []
259
+ parameters: [],
260
+ tags: ["code"]
250
261
  },
251
262
  {
252
263
  id: "markdownlint_MD018",
@@ -255,7 +266,8 @@ var patterns_default = [
255
266
  title: "Enforce space after hash in ATX style heading",
256
267
  enabled: true,
257
268
  languages: ["Markdown"],
258
- parameters: []
269
+ parameters: [],
270
+ tags: ["atx", "headings", "spaces"]
259
271
  },
260
272
  {
261
273
  id: "markdownlint_MD019",
@@ -264,7 +276,8 @@ var patterns_default = [
264
276
  title: "Avoid Multiple Spaces After Hash in ATX Style Heading",
265
277
  enabled: true,
266
278
  languages: ["Markdown"],
267
- parameters: []
279
+ parameters: [],
280
+ tags: ["atx", "headings", "spaces"]
268
281
  },
269
282
  {
270
283
  id: "markdownlint_MD020",
@@ -273,7 +286,8 @@ var patterns_default = [
273
286
  title: "Enforce Space Inside Hashes on Closed Atx Style Headings",
274
287
  enabled: true,
275
288
  languages: ["Markdown"],
276
- parameters: []
289
+ parameters: [],
290
+ tags: ["atxclosed", "headings", "spaces"]
277
291
  },
278
292
  {
279
293
  id: "markdownlint_MD021",
@@ -282,7 +296,8 @@ var patterns_default = [
282
296
  title: "Avoid Multiple Spaces Inside Hashes on Closed ATX Style Headings",
283
297
  enabled: true,
284
298
  languages: ["Markdown"],
285
- parameters: []
299
+ parameters: [],
300
+ tags: ["atxclosed", "headings", "spaces"]
286
301
  },
287
302
  {
288
303
  id: "markdownlint_MD022",
@@ -302,7 +317,8 @@ var patterns_default = [
302
317
  default: "1",
303
318
  description: "Blank lines below heading"
304
319
  }
305
- ]
320
+ ],
321
+ tags: ["blanklines", "headings"]
306
322
  },
307
323
  {
308
324
  id: "markdownlint_MD023",
@@ -311,7 +327,8 @@ var patterns_default = [
311
327
  title: "Enforce Headings Start at Beginning of Line",
312
328
  enabled: true,
313
329
  languages: ["Markdown"],
314
- parameters: []
330
+ parameters: [],
331
+ tags: ["headings", "spaces"]
315
332
  },
316
333
  {
317
334
  id: "markdownlint_MD024",
@@ -326,7 +343,8 @@ var patterns_default = [
326
343
  default: "false",
327
344
  description: "Only check sibling headings"
328
345
  }
329
- ]
346
+ ],
347
+ tags: ["headings"]
330
348
  },
331
349
  {
332
350
  id: "markdownlint_MD025",
@@ -346,7 +364,8 @@ var patterns_default = [
346
364
  default: "1",
347
365
  description: "Heading level"
348
366
  }
349
- ]
367
+ ],
368
+ tags: ["headings"]
350
369
  },
351
370
  {
352
371
  id: "markdownlint_MD026",
@@ -361,7 +380,8 @@ var patterns_default = [
361
380
  default: ".,;:!\u3002\uFF0C\uFF1B\uFF1A\uFF01",
362
381
  description: "Punctuation characters"
363
382
  }
364
- ]
383
+ ],
384
+ tags: ["headings"]
365
385
  },
366
386
  {
367
387
  id: "markdownlint_MD027",
@@ -370,7 +390,8 @@ var patterns_default = [
370
390
  title: "Avoid Multiple Spaces After Blockquote Symbol",
371
391
  enabled: true,
372
392
  languages: ["Markdown"],
373
- parameters: []
393
+ parameters: [],
394
+ tags: ["blockquote", "indentation", "whitespace"]
374
395
  },
375
396
  {
376
397
  id: "markdownlint_MD028",
@@ -379,7 +400,8 @@ var patterns_default = [
379
400
  title: "Avoid Blank Line Inside Blockquote",
380
401
  enabled: true,
381
402
  languages: ["Markdown"],
382
- parameters: []
403
+ parameters: [],
404
+ tags: ["blockquote", "whitespace"]
383
405
  },
384
406
  {
385
407
  id: "markdownlint_MD029",
@@ -394,7 +416,8 @@ var patterns_default = [
394
416
  default: "one_or_ordered",
395
417
  description: "List style"
396
418
  }
397
- ]
419
+ ],
420
+ tags: ["ol"]
398
421
  },
399
422
  {
400
423
  id: "markdownlint_MD030",
@@ -424,7 +447,8 @@ var patterns_default = [
424
447
  default: "1",
425
448
  description: "Spaces for single-line unordered list items"
426
449
  }
427
- ]
450
+ ],
451
+ tags: ["ol", "ul", "whitespace"]
428
452
  },
429
453
  {
430
454
  id: "markdownlint_MD031",
@@ -439,7 +463,8 @@ var patterns_default = [
439
463
  default: "true",
440
464
  description: "Include list items"
441
465
  }
442
- ]
466
+ ],
467
+ tags: ["blanklines", "code"]
443
468
  },
444
469
  {
445
470
  id: "markdownlint_MD032",
@@ -448,7 +473,8 @@ var patterns_default = [
448
473
  title: "Enforce Lists Surrounded by Blank Lines",
449
474
  enabled: true,
450
475
  languages: ["Markdown"],
451
- parameters: []
476
+ parameters: [],
477
+ tags: ["blanklines", "bullet", "ol", "ul"]
452
478
  },
453
479
  {
454
480
  id: "markdownlint_MD033",
@@ -463,7 +489,8 @@ var patterns_default = [
463
489
  default: "[]",
464
490
  description: "Allowed elements"
465
491
  }
466
- ]
492
+ ],
493
+ tags: ["html"]
467
494
  },
468
495
  {
469
496
  id: "markdownlint_MD034",
@@ -472,7 +499,8 @@ var patterns_default = [
472
499
  title: "Enforce Angle Brackets Around Bare URLs",
473
500
  enabled: true,
474
501
  languages: ["Markdown"],
475
- parameters: []
502
+ parameters: [],
503
+ tags: ["links", "url"]
476
504
  },
477
505
  {
478
506
  id: "markdownlint_MD035",
@@ -487,7 +515,8 @@ var patterns_default = [
487
515
  default: "consistent",
488
516
  description: "Horizontal rule style"
489
517
  }
490
- ]
518
+ ],
519
+ tags: ["hr"]
491
520
  },
492
521
  {
493
522
  id: "markdownlint_MD036",
@@ -502,7 +531,8 @@ var patterns_default = [
502
531
  default: ".,;:!?\u3002\uFF0C\uFF1B\uFF1A\uFF01\uFF1F",
503
532
  description: "Punctuation characters"
504
533
  }
505
- ]
534
+ ],
535
+ tags: ["emphasis", "headings"]
506
536
  },
507
537
  {
508
538
  id: "markdownlint_MD037",
@@ -511,7 +541,8 @@ var patterns_default = [
511
541
  title: "Disallow Spaces Inside Emphasis Markers",
512
542
  enabled: true,
513
543
  languages: ["Markdown"],
514
- parameters: []
544
+ parameters: [],
545
+ tags: ["emphasis", "whitespace"]
515
546
  },
516
547
  {
517
548
  id: "markdownlint_MD038",
@@ -520,7 +551,8 @@ var patterns_default = [
520
551
  title: "Disallow Spaces Inside Code Span Elements",
521
552
  enabled: true,
522
553
  languages: ["Markdown"],
523
- parameters: []
554
+ parameters: [],
555
+ tags: ["code", "whitespace"]
524
556
  },
525
557
  {
526
558
  id: "markdownlint_MD039",
@@ -529,7 +561,8 @@ var patterns_default = [
529
561
  title: "Avoid Spaces Inside Link Text",
530
562
  enabled: true,
531
563
  languages: ["Markdown"],
532
- parameters: []
564
+ parameters: [],
565
+ tags: ["links", "whitespace"]
533
566
  },
534
567
  {
535
568
  id: "markdownlint_MD040",
@@ -549,7 +582,8 @@ var patterns_default = [
549
582
  default: "false",
550
583
  description: "Require language only"
551
584
  }
552
- ]
585
+ ],
586
+ tags: ["code", "language"]
553
587
  },
554
588
  {
555
589
  id: "markdownlint_MD041",
@@ -569,7 +603,8 @@ var patterns_default = [
569
603
  default: "1",
570
604
  description: "Heading level"
571
605
  }
572
- ]
606
+ ],
607
+ tags: ["headings"]
573
608
  },
574
609
  {
575
610
  id: "markdownlint_MD042",
@@ -578,7 +613,8 @@ var patterns_default = [
578
613
  title: "Disallow Empty Links",
579
614
  enabled: true,
580
615
  languages: ["Markdown"],
581
- parameters: []
616
+ parameters: [],
617
+ tags: ["links"]
582
618
  },
583
619
  {
584
620
  id: "markdownlint_MD043",
@@ -598,7 +634,8 @@ var patterns_default = [
598
634
  default: "false",
599
635
  description: "Match case of headings"
600
636
  }
601
- ]
637
+ ],
638
+ tags: ["headings"]
602
639
  },
603
640
  {
604
641
  id: "markdownlint_MD044",
@@ -623,7 +660,8 @@ var patterns_default = [
623
660
  default: "[]",
624
661
  description: "List of proper names"
625
662
  }
626
- ]
663
+ ],
664
+ tags: ["spelling"]
627
665
  },
628
666
  {
629
667
  id: "markdownlint_MD045",
@@ -632,7 +670,8 @@ var patterns_default = [
632
670
  title: "Enforce Images to Have Alternate Text (alt text)",
633
671
  enabled: true,
634
672
  languages: ["Markdown"],
635
- parameters: []
673
+ parameters: [],
674
+ tags: ["accessibility", "images"]
636
675
  },
637
676
  {
638
677
  id: "markdownlint_MD046",
@@ -647,7 +686,8 @@ var patterns_default = [
647
686
  default: "consistent",
648
687
  description: "Block style"
649
688
  }
650
- ]
689
+ ],
690
+ tags: ["code"]
651
691
  },
652
692
  {
653
693
  id: "markdownlint_MD047",
@@ -656,7 +696,8 @@ var patterns_default = [
656
696
  title: "Enforce Single Trailing Newline at End of File",
657
697
  enabled: false,
658
698
  languages: ["Markdown"],
659
- parameters: []
699
+ parameters: [],
700
+ tags: ["blanklines", "singletrailingnewline"]
660
701
  },
661
702
  {
662
703
  id: "markdownlint_MD048",
@@ -671,7 +712,8 @@ var patterns_default = [
671
712
  default: "consistent",
672
713
  description: "Code fence style"
673
714
  }
674
- ]
715
+ ],
716
+ tags: ["code"]
675
717
  },
676
718
  {
677
719
  id: "markdownlint_MD049",
@@ -686,7 +728,8 @@ var patterns_default = [
686
728
  default: "consistent",
687
729
  description: "Emphasis style"
688
730
  }
689
- ]
731
+ ],
732
+ tags: ["emphasis"]
690
733
  },
691
734
  {
692
735
  id: "markdownlint_MD050",
@@ -701,7 +744,8 @@ var patterns_default = [
701
744
  default: "consistent",
702
745
  description: "Strong style"
703
746
  }
704
- ]
747
+ ],
748
+ tags: ["emphasis"]
705
749
  },
706
750
  {
707
751
  id: "markdownlint_MD051",
@@ -710,7 +754,8 @@ var patterns_default = [
710
754
  title: "Enforce Valid Link Fragments in Markdown",
711
755
  enabled: true,
712
756
  languages: ["Markdown"],
713
- parameters: []
757
+ parameters: [],
758
+ tags: ["links"]
714
759
  },
715
760
  {
716
761
  id: "markdownlint_MD052",
@@ -725,7 +770,8 @@ var patterns_default = [
725
770
  default: "false",
726
771
  description: "Include shortcut syntax"
727
772
  }
728
- ]
773
+ ],
774
+ tags: ["links", "images"]
729
775
  },
730
776
  {
731
777
  id: "markdownlint_MD053",
@@ -740,7 +786,8 @@ var patterns_default = [
740
786
  default: '["//"]',
741
787
  description: "Ignored definitions"
742
788
  }
743
- ]
789
+ ],
790
+ tags: ["images", "links"]
744
791
  },
745
792
  {
746
793
  id: "markdownlint_MD054",
@@ -780,7 +827,8 @@ var patterns_default = [
780
827
  default: "true",
781
828
  description: "Allow URLs as inline links"
782
829
  }
783
- ]
830
+ ],
831
+ tags: ["images", "links"]
784
832
  },
785
833
  {
786
834
  id: "markdownlint_MD055",
@@ -795,7 +843,8 @@ var patterns_default = [
795
843
  default: "consistent",
796
844
  description: "Table pipe style"
797
845
  }
798
- ]
846
+ ],
847
+ tags: ["table"]
799
848
  },
800
849
  {
801
850
  id: "markdownlint_MD056",
@@ -804,7 +853,8 @@ var patterns_default = [
804
853
  title: "Enforce Consistent Table Column Count",
805
854
  enabled: true,
806
855
  languages: ["Markdown"],
807
- parameters: []
856
+ parameters: [],
857
+ tags: ["table"]
808
858
  }
809
859
  ];
810
860
 
@@ -888,6 +938,7 @@ async function importMarkdownlintSync() {
888
938
  }
889
939
  var adapter = {
890
940
  ...descriptor,
941
+ patternsMetadata: patterns_default,
891
942
  compatibleVersions: ">=0.30.0 <1.0.0",
892
943
  website: "https://github.com/DavidAnson/markdownlint",
893
944
  prerequisites: [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codacy/tools-markdownlint-0",
3
- "version": "0.6.2",
3
+ "version": "0.8.1",
4
4
  "description": "markdownlint adapter — Library-mode Markdown linter",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -9,7 +9,7 @@
9
9
  ],
10
10
  "dependencies": {
11
11
  "markdownlint": "^0.37.4",
12
- "@codacy/tooling": "0.6.2"
12
+ "@codacy/tooling": "0.8.1"
13
13
  },
14
14
  "license": "MIT",
15
15
  "author": "Codacy <support@codacy.com> (https://www.codacy.com)",