sysml-validate 0.10.17 → 0.10.18
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/README.md +18 -18
- package/out/main.js +512 -450
- package/out/main.js.map +4 -4
- package/package.json +9 -9
- package/resources/sysml.dimension-table.json +1 -1
package/README.md
CHANGED
|
@@ -43,7 +43,7 @@ sysml-validate [paths...] [options]
|
|
|
43
43
|
--max-warnings <n> Fail when more than n warnings are reported.
|
|
44
44
|
--all Report informational notices and hints too.
|
|
45
45
|
--lint-profile <p> Override sysml.lint.profile: default | quiet | strict.
|
|
46
|
-
--workspace <path> Index this project for cross-file reference resolution.
|
|
46
|
+
--workspace <path> Index this project for cross-file reference resolution.
|
|
47
47
|
--no-config Ignore .vscode/settings.json and .vscode/sysml/project.json.
|
|
48
48
|
--library <path> Standard-library directory (default: the bundled library).
|
|
49
49
|
--color, --no-color Force ANSI colour on or off (default: on a terminal only).
|
|
@@ -51,10 +51,10 @@ sysml-validate [paths...] [options]
|
|
|
51
51
|
|
|
52
52
|
Paths may be files or directories; directories are searched recursively for
|
|
53
53
|
`.sysml` and `.kerml`, skipping `node_modules`, VCS directories, build output,
|
|
54
|
-
and vendored library trees. With no path, the working directory is checked.
|
|
55
|
-
By default, no model file outside the paths you name is discovered or indexed.
|
|
56
|
-
Use `--workspace <path>` only when references should resolve against other
|
|
57
|
-
project files.
|
|
54
|
+
and vendored library trees. With no path, the working directory is checked.
|
|
55
|
+
By default, no model file outside the paths you name is discovered or indexed.
|
|
56
|
+
Use `--workspace <path>` only when references should resolve against other
|
|
57
|
+
project files.
|
|
58
58
|
|
|
59
59
|
The OMG standard library ships with the package, so `Real`, `ISQ::*`, `SI::*`
|
|
60
60
|
and the rest resolve with nothing else installed.
|
|
@@ -115,21 +115,21 @@ $ sysml-validate models/ --format json | jq '.counts, .diagnostics[0].code'
|
|
|
115
115
|
$ sysml-validate models/ --max-warnings 5 && echo "model is publishable"
|
|
116
116
|
```
|
|
117
117
|
|
|
118
|
-
**Check just what changed**, without loading any model outside that list:
|
|
118
|
+
**Check just what changed**, without loading any model outside that list:
|
|
119
119
|
|
|
120
120
|
```console
|
|
121
|
-
$ git diff --name-only --diff-filter=d origin/main | grep -E '\.(sysml|kerml)$' | xargs -r sysml-validate
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
If those files need definitions elsewhere in the checkout, opt into workspace
|
|
125
|
-
indexing explicitly:
|
|
126
|
-
|
|
127
|
-
```console
|
|
128
|
-
$ git diff --name-only --diff-filter=d origin/main | grep -E '\.(sysml|kerml)$' | xargs -r sysml-validate --workspace .
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
`--workspace .` indexes the rest of the project for reference resolution, but
|
|
132
|
-
still reports diagnostics only for the files you named.
|
|
121
|
+
$ git diff --name-only --diff-filter=d origin/main | grep -E '\.(sysml|kerml)$' | xargs -r sysml-validate
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
If those files need definitions elsewhere in the checkout, opt into workspace
|
|
125
|
+
indexing explicitly:
|
|
126
|
+
|
|
127
|
+
```console
|
|
128
|
+
$ git diff --name-only --diff-filter=d origin/main | grep -E '\.(sysml|kerml)$' | xargs -r sysml-validate --workspace .
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
`--workspace .` indexes the rest of the project for reference resolution, but
|
|
132
|
+
still reports diagnostics only for the files you named.
|
|
133
133
|
|
|
134
134
|
**Use it from a coding agent.** The default output is plain text with a stable
|
|
135
135
|
one-line summary, so an agent can act on it directly:
|