You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -104,8 +104,7 @@ Always exits with code `0`, even when validation errors are found. Useful in CI
104
104
105
105
Verify that a set of files or directories matching glob patterns exist on disk **and** are referenced as `<File>` entries in the solution file(s) being validated. Any failure is reported as a normal validation error (exit code `1`) that also appears in SonarQube reports.
106
106
107
-
-**Disk check** — if no files match the glob patterns, a `SLNX020` (`RequiredFileDoesntExistOnSystem`) error is added to the solution result.
108
-
-**Reference check** — for each matched file that is not referenced as `<File Path="...">` in the `.slnx`, a `SLNX021` (`RequiredFileNotReferencedInSolution`) error is added. The error message shows the exact `<File>` element that should be added.
107
+
-**Reference check** — for each matched file that is not referenced as `<File Path="...">` in the `.slnx`, a `SLNX021` (`RequiredFileNotReferencedInSolution`) error is added. The error message shows the exact `<File>` element that should be added. If the pattern matches no files, the check is skipped silently (not an error).
109
108
110
109
Relative paths in the `.slnx` are resolved relative to the solution file's location.
|`0`| All patterns matched and all matched files are referenced in the solution. |
154
-
|`1`| Any validation error — including required files not existing or not referenced. |
152
+
|`0`| All matched files are referenced in the solution (or no files matched the pattern). |
153
+
|`1`| Any validation error — including required files not referenced. |
155
154
156
155
### Severity override flags
157
156
@@ -403,7 +402,6 @@ The following are **intentionally out of scope** because the toolchain already h
403
402
|`SLNX011`|`ReferencedFileNotFound`| A file referenced in `<File Path="...">` does not exist on disk. |
404
403
|`SLNX012`|`InvalidWildcardUsage`| A `<File Path="...">` contains a wildcard pattern (see [`examples/invalid-wildcard.slnx`](examples/invalid-wildcard.slnx)). |
405
404
|`SLNX013`|`XsdViolation`| The XML structure violates the schema, e.g. `<Folder>` inside `<Folder>` (see [`examples/invalid-xsd.slnx`](examples/invalid-xsd.slnx)). |
406
-
|`SLNX020`|`RequiredFileDoesntExistOnSystem`| A `--required-files` pattern matched no files on the file system. |
407
405
|`SLNX021`|`RequiredFileNotReferencedInSolution`| A `--required-files` matched file exists on disk but is not referenced as a `<File>` element in the solution. |
0 commit comments