@sigloch/contracts 10.14.0 → 11.0.0
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.
- package/dist/se/analysis-freshness-rules.d.ts +49 -15
- package/dist/se/analysis-freshness-rules.js +73 -37
- package/dist/se/ao-rules.js +3 -3
- package/dist/se/conformance-rules.d.ts +4 -0
- package/dist/se/conformance-rules.js +37 -32
- package/dist/se/cr-quality-rules.js +4 -76
- package/dist/se/evaluate-all.d.ts +5 -0
- package/dist/se/evaluate-all.js +2 -1
- package/dist/se/fchain-quality-rules.js +4 -4
- package/dist/se/fmea-rules.js +4 -4
- package/dist/se/format-e-parser.js +1 -1
- package/dist/se/grammar-snapshot.d.ts +6 -6
- package/dist/se/grammar-snapshot.js +90 -90
- package/dist/se/index.d.ts +3 -2
- package/dist/se/index.js +4 -2
- package/dist/se/metric-rules.d.ts +3 -0
- package/dist/se/metric-rules.js +3 -3
- package/dist/se/near-duplicate-rules.d.ts +2 -0
- package/dist/se/near-duplicate-rules.js +2 -2
- package/dist/se/ontology.d.ts +23 -4
- package/dist/se/ontology.js +36 -14
- package/dist/se/quality-rules.js +5 -5
- package/dist/se/readiness.d.ts +45 -47
- package/dist/se/readiness.js +57 -120
- package/dist/se/rule-due.d.ts +35 -0
- package/dist/se/rule-due.js +83 -0
- package/dist/se/rule-help.d.ts +2 -0
- package/dist/se/rule-help.js +51 -21
- package/dist/se/rules.d.ts +18 -0
- package/dist/se/rules.js +112 -72
- package/dist/se/schema-quality-rules.d.ts +1 -1
- package/dist/se/schema-quality-rules.js +1 -1
- package/dist/se/uc-quality-rules.js +4 -4
- package/dist/se/view-rules.js +6 -4
- package/package.json +1 -1
|
@@ -117,10 +117,10 @@ export function uc04GoalDefined(graph) {
|
|
|
117
117
|
// CR-SM-357: UC-05/UC-06 (Pre-/Postcondition-REQ) sind gestrichen — Schreibregel in se:author-uc,
|
|
118
118
|
// wie BQ in author-req (CR-GC-602): sie feuerten an fast jedem UC, und niemand handelte darauf.
|
|
119
119
|
export const UC_RULES = [
|
|
120
|
-
{ id: 'UC-01', name: 'UC has requirements', severity: 'warning', evaluate: uc01HasRequirements, domain: ['UC'] },
|
|
121
|
-
{ id: 'UC-02', name: 'UC has actor', severity: 'warning', evaluate: uc02HasActor, domain: ['UC'] },
|
|
122
|
-
{ id: 'UC-03', name: 'UC has scenario', severity: 'warning', evaluate: uc03HasScenario, domain: ['UC'] },
|
|
123
|
-
{ id: 'UC-04', name: 'UC has goal', severity: 'warning', evaluate: uc04GoalDefined, domain: ['UC'] },
|
|
120
|
+
{ id: 'UC-01', name: 'UC has requirements', severity: 'warning', stage: 3, role: 'existence', evaluate: uc01HasRequirements, domain: ['UC'] },
|
|
121
|
+
{ id: 'UC-02', name: 'UC has actor', severity: 'warning', stage: 2, role: 'existence', evaluate: uc02HasActor, domain: ['UC'] },
|
|
122
|
+
{ id: 'UC-03', name: 'UC has scenario', severity: 'warning', stage: 4, role: 'existence', evaluate: uc03HasScenario, domain: ['UC'] },
|
|
123
|
+
{ id: 'UC-04', name: 'UC has goal', severity: 'warning', stage: 2, evaluate: uc04GoalDefined, domain: ['UC'] },
|
|
124
124
|
];
|
|
125
125
|
// CR-SM-236: `policy` wird durchgereicht, auch wo diese Familie heute keine Schwelle hat —
|
|
126
126
|
// ein Sonderweg je Familie waere genau der zweite Pfad, den der Regelsatz verbietet.
|
package/dist/se/view-rules.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* CL-01: ACTOR without UCs in at least 2 distinct operatingModes (warning).
|
|
5
5
|
*/
|
|
6
6
|
import { readTestRefs } from './ontology.js';
|
|
7
|
+
import { whenDue } from './rule-due.js';
|
|
7
8
|
// ---------------------------------------------------------------------------
|
|
8
9
|
// VR-01: ein testRefs-Eintrag ohne Ergebnis
|
|
9
10
|
//
|
|
@@ -103,10 +104,11 @@ export function cl01ConopsCompleteness(graph) {
|
|
|
103
104
|
// ---------------------------------------------------------------------------
|
|
104
105
|
// Aggregated array & convenience runner
|
|
105
106
|
// ---------------------------------------------------------------------------
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
{ id: '
|
|
109
|
-
]
|
|
107
|
+
// CR-SM-395: VR-01 ist Stufe 11 — ein Testergebnis gibt es erst, wenn der Bau eroeffnet ist (`whenDue`).
|
|
108
|
+
export const VIEW_RULES = whenDue([
|
|
109
|
+
{ id: 'VR-01', name: 'TestNoResult', severity: 'info', stage: 11, evaluate: vr01TestNoResult, domain: ['TEST'] },
|
|
110
|
+
{ id: 'CL-01', name: 'ConopsCompleteness', severity: 'warning', stage: 2, evaluate: cl01ConopsCompleteness, domain: ['ACTOR'] },
|
|
111
|
+
]);
|
|
110
112
|
// CR-SM-236: `policy` wird durchgereicht, auch wo diese Familie heute keine Schwelle hat —
|
|
111
113
|
// ein Sonderweg je Familie waere genau der zweite Pfad, den der Regelsatz verbietet.
|
|
112
114
|
export function evaluateViewRules(graph, policy) {
|