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
## PSR0003 - The specified baseline group is not known
109
+
###PSR0003 - The specified baseline group is not known
108
110
109
111
!!! Error
110
112
@@ -115,10 +117,31 @@ To define a baseline group, see [Baseline.Group][4] option.
115
117
116
118
[4]: https://aka.ms/ps-rule/options#baselinegroup
117
119
118
-
## PSR0004 - The specified resource is not known
120
+
###PSR0004 - The specified resource is not known
119
121
120
122
!!! Error
121
123
122
124
PSR0004: The specified Baseline resource 'TestModule4\Module4' is not known.
123
125
124
126
This error is caused when you attempt to reference a resource such as a baseline, rule, or selector which has not been defined.
127
+
128
+
## CLI exit codes
129
+
130
+
The following table lists exit codes that may be returned by the PSRule CLI.
131
+
132
+
Exit code | Description | Notes
133
+
--------- | ----------- | -----
134
+
0 | Success | The CLI completed the operation successfully. This may occur during normal operation.
135
+
1 | Generic error. | An unexpected error occurred. Please report this issue.
136
+
100 | Break because one or more rules failed. | This may occur during normal operation when one or more rules fail. Use the `Execution.Break` option to control this behavior.
137
+
501 | Unable to manage or restore a module. | This may occur when attempting to restoring a module that is not available.
138
+
502 | Failed to find a module. | A specified module could not be found in PowerShell Gallery.
139
+
503 | The module version does not meet configured version constraint requirements. | The module version that was specified on the command line does not meet the configured `Requires` option.
140
+
141
+
## Language server exit codes
142
+
143
+
The following table lists exit codes that may be returned by the PSRule language server.
144
+
145
+
Exit code | Description | Notes
146
+
--------- | ----------- | -----
147
+
0 | Success | The language server exited during normal operation.
0 commit comments