Skip to content

Commit

Permalink
Added options for PSRule v1.7.0 #395 (#396)
Browse files Browse the repository at this point in the history
  • Loading branch information
BernieWhite committed Sep 5, 2021
1 parent fd9ab6f commit f40bcb3
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ Continue reading to see the changes included in the latest version.

What's changed since v1.3.0:

- General improvements:
- Added options schema to support options introduced in PSRule v1.7.0. [#395](https://github.com/microsoft/PSRule-vscode/issues/395)
- Added support for `Input.IgnoreRepositoryCommon`, `Output.Footer`, and `Rule.IncludeLocal`.
- Engineering:
- Bump vscode engine to v1.60.0. [#393](https://github.com/microsoft/PSRule-vscode/pull/393)

Expand Down
31 changes: 30 additions & 1 deletion schemas/PSRule-options.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,14 @@
"type": "boolean",
"title": "Ignore .git path",
"description": "Determine if files within the .git path are ignored when the -InputPath parameter is used.",
"markdownDescription": "Determine if files within the `.git` path are ignored when the `-InputPath` parameter is used. [See help](https://microsoft.github.io/PSRule/concepts/PSRule/en-US/about_PSRule_Options.html#ignoregitpath)",
"markdownDescription": "Determine if files within the `.git` path are ignored when the `-InputPath` parameter is used. [See help](https://microsoft.github.io/PSRule/concepts/PSRule/en-US/about_PSRule_Options.html#inputignoregitpath)",
"default": true
},
"ignoreRepositoryCommon": {
"type": "boolean",
"title": "Ignore common files",
"description": "Determine if common repository files are ignored when the -InputPath parameter is used.",
"markdownDescription": "Determine if common repository files are ignored when the `-InputPath` parameter is used. [See help](https://microsoft.github.io/PSRule/concepts/PSRule/en-US/about_PSRule_Options.html#inputignorerepositorycommon)",
"default": true
},
"objectPath": {
Expand Down Expand Up @@ -384,6 +391,21 @@
"enum": ["Default", "UTF8", "UTF7", "Unicode", "UTF32", "ASCII"],
"default": "Default"
},
"footer": {
"title": "Footer format",
"description": "The information displayed for Assert-PSRule footer. The default is Default which includes RuleCount, and RunInfo.",
"markdownDescription": "The information displayed for Assert-PSRule footer. The default is `Default` which includes `RuleCount`, and `RunInfo`. [See help](https://microsoft.github.io/PSRule/concepts/PSRule/en-US/about_PSRule_Options.html#outputfooter)",
"oneOf": [
{
"type": "string",
"enum": ["None", "RuleCount", "RunInfo", "Default"]
},
{
"type": "integer"
}
],
"default": "Default"
},
"format": {
"type": "string",
"title": "Output format",
Expand Down Expand Up @@ -534,6 +556,13 @@
"markdownDescription": "Optionally filter to rules by name. [See help](https://microsoft.github.io/PSRule/concepts/PSRule/en-US/about_PSRule_Options.html#ruleinclude)",
"$ref": "#/definitions/rule-names"
},
"includeLocal": {
"type": "boolean",
"title": "Include local",
"description": "Automatically include all local rules in the search path unless they have been explicitly excluded.",
"markdownDescription": "Automatically include all local rules in the search path unless they have been explicitly excluded. [See help](https://microsoft.github.io/PSRule/concepts/PSRule/en-US/about_PSRule_Options.html#ruleincludelocal)",
"default": false
},
"exclude": {
"type": "array",
"title": "Exclude rules",
Expand Down

0 comments on commit f40bcb3

Please sign in to comment.