|
48 | 48 | "style": "node"
|
49 | 49 | },
|
50 | 50 | {
|
51 |
| - "directive": "good_example", |
52 |
| - "title": "Good Example", |
53 |
| - "prefix": "good_ex_", |
| 51 | + "directive": "compliant_example", |
| 52 | + "title": "Compliant Example", |
| 53 | + "prefix": "compl_ex_", |
54 | 54 | "color": "#729FCF",
|
55 | 55 | "style": "node"
|
56 | 56 | },
|
57 | 57 | {
|
58 |
| - "directive": "bad_example", |
59 |
| - "title": "Bad Example", |
60 |
| - "prefix": "bad_ex_", |
| 58 | + "directive": "non_compliant_example", |
| 59 | + "title": "Non-Compliant Example", |
| 60 | + "prefix": "non_compl_ex_", |
61 | 61 | "color": "#729FCF",
|
62 | 62 | "style": "node"
|
63 | 63 | }
|
|
69 | 69 | "content": [
|
70 | 70 | "content",
|
71 | 71 | "rationale",
|
72 |
| - "good_example", |
73 |
| - "bad_example" |
| 72 | + "non_compliant_example", |
| 73 | + "compliant_example" |
74 | 74 | ]
|
75 | 75 | }
|
76 | 76 | }
|
|
79 | 79 | needs_render_contexts = {
|
80 | 80 | "guideline": {
|
81 | 81 | "content": ["content"],
|
82 |
| - "extra_content": ["rationale", "bad_example", "good_example"] |
| 82 | + "extra_content": ["rationale", "non_compliant_example", "non_compliant_example"] |
83 | 83 | }
|
84 | 84 | }
|
85 | 85 |
|
86 | 86 | # Make sure these sections are included in the JSON
|
87 |
| -needs_extra_sections = ["rationale", "good_example", "bad_example"] |
| 87 | +needs_extra_sections = ["rationale", "compliant_example", "non_compliant_example"] |
88 | 88 |
|
89 | 89 | needs_statuses = [
|
90 | 90 | dict(name="draft", description="This guideline is in draft stage", color="#999999"),
|
|
101 | 101 | dict(name="numerics", description="Numerics-related guideline"),
|
102 | 102 | ]
|
103 | 103 |
|
104 |
| -needs_recommendations = [ |
105 |
| - dict(name="encouraged", description="This guideline is encouraged", color="#999999"), |
| 104 | +needs_categories = [ |
| 105 | + dict(name="mandatory", description="This guideline is mandatory", color="#999999"), |
106 | 106 | dict(name="required", description="This guideline is required", color="#FFCC00"),
|
| 107 | + dict(name="advisory", description="This guideline is advisory, should be followed when able", color="#FFCC00"), |
| 108 | + dict(name="disapplied", description="This guideline is advisory, should be followed when able", color="#FFCC00"), |
| 109 | +] |
| 110 | + |
| 111 | +needs_decidabilities = [ |
| 112 | + dict(name="decidable", description="This guideline can be automatically checked with tooling", color="#999999"), |
| 113 | + dict(name="undecidable", description="This guideline cannot be automatically checked with tooling", color="#999999"), |
| 114 | +] |
| 115 | + |
| 116 | +needs_scopes = [ |
| 117 | + dict(name="module", description="This guideline can be checked at the module level", color="#999999"), |
| 118 | + dict(name="crate", description="This guideline can be checked at the crate level", color="#FFCC00"), |
| 119 | + dict(name="system", description="This guideline must be checked alongside the entire source", color="#FFCC00"), |
107 | 120 | ]
|
108 | 121 |
|
109 | 122 | # Enable needs export
|
110 |
| -needs_extra_options = ["category", "recommendation", "fls"] |
| 123 | +needs_extra_options = ["category", "recommendation", "fls", "decidability", "scope"] |
111 | 124 |
|
112 | 125 | # -- Options for HTML output -------------------------------------------------
|
113 | 126 |
|
|
0 commit comments