@jpeakai/mermaidjs-lint 0.3.0 → 0.4.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.
@@ -3,6 +3,11 @@ import { RULE } from "./types.ts";
3
3
 
4
4
  export const MAX_NESTING = 3;
5
5
 
6
+ // Reads max_subgraph_depth only. A mindmap, treemap, treeView or ishikawa
7
+ // diagram reports its depth as max_tree_depth instead, because it draws no
8
+ // subgraphs and flattening them is no remedy for a deep tree. Its depth still
9
+ // weighs on the visual complexity score (calculateComplexity in metrics.ts).
10
+
6
11
  export const complexitySubgraphNestingTooDeep = complexityRule({
7
12
  id: RULE.NESTING,
8
13
  summary: "subgraphs nested three or more levels deep",
@@ -20,7 +20,7 @@ export const parseFenceUnterminated: Rule = {
20
20
  d,
21
21
  RULE.FENCE_UNTERMINATED,
22
22
  `mermaid fence opened at line ${d.startLine} is never closed`,
23
- "Add a closing fence after the last line of the diagram.",
23
+ "Add a closing fence directly after the last line of the diagram, with the opening line's prefix: `> ` in a quote, the item's indent in a list.",
24
24
  ),
25
25
  ),
26
26
  fix: (ctx) => {