Родитель
e1c118102f
Коммит
7dbfc05fa3
|
@ -21,6 +21,10 @@ Continue reading to see the changes included in the latest version.
|
||||||
- Source locations for rules failures are detected when using the `VisualStudioCode` style.
|
- Source locations for rules failures are detected when using the `VisualStudioCode` style.
|
||||||
- General improvements:
|
- General improvements:
|
||||||
- Preview channel will notify that a stable version is available. [#235](https://github.com/microsoft/PSRule-vscode/issues/235)
|
- Preview channel will notify that a stable version is available. [#235](https://github.com/microsoft/PSRule-vscode/issues/235)
|
||||||
|
- Added PSRule options schema support updates.
|
||||||
|
- Added `Output.Banner` option. [#264](https://github.com/microsoft/PSRule-vscode/issues/264)
|
||||||
|
- Improved validation for the requires option. [#265](https://github.com/microsoft/PSRule-vscode/issues/265)
|
||||||
|
- Added support for new style options `VisualStudioCode` and `Detect`. [#266](https://github.com/microsoft/PSRule-vscode/issues/266)
|
||||||
- Engineering:
|
- Engineering:
|
||||||
- Bump vscode engine to v1.56.0. [#241](https://github.com/microsoft/PSRule-vscode/pull/241)
|
- Bump vscode engine to v1.56.0. [#241](https://github.com/microsoft/PSRule-vscode/pull/241)
|
||||||
|
|
||||||
|
|
|
@ -294,6 +294,28 @@
|
||||||
"enum": ["Detail", "Summary"],
|
"enum": ["Detail", "Summary"],
|
||||||
"default": "Detail"
|
"default": "Detail"
|
||||||
},
|
},
|
||||||
|
"banner": {
|
||||||
|
"title": "Banner format",
|
||||||
|
"description": "The information displayed for Assert-PSRule banner. The default is Default which includes Title, Source, and SupportLinks.",
|
||||||
|
"markdownDescription": "The information displayed for Assert-PSRule banner. The default is `Default` which includes `Title`, `Source`, and `SupportLinks`. [See help](https://microsoft.github.io/PSRule/concepts/PSRule/en-US/about_PSRule_Options.html#outputbanner)",
|
||||||
|
"oneOf": [
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"None",
|
||||||
|
"Title",
|
||||||
|
"Source",
|
||||||
|
"SupportLinks",
|
||||||
|
"Default",
|
||||||
|
"Minimal"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"default": "Default"
|
||||||
|
},
|
||||||
"culture": {
|
"culture": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"title": "Culture",
|
"title": "Culture",
|
||||||
|
@ -353,10 +375,17 @@
|
||||||
"style": {
|
"style": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "Output Style",
|
"title": "Output Style",
|
||||||
"description": "The style that results will be presented in. The default is Client.",
|
"description": "The style that results will be presented in. The default is Detect.",
|
||||||
"markdownDescription": "The style that results will be presented in. The default is `Client`. [See help](https://microsoft.github.io/PSRule/concepts/PSRule/en-US/about_PSRule_Options.html#outputstyle)",
|
"markdownDescription": "The style that results will be presented in. The default is `Detect`. [See help](https://microsoft.github.io/PSRule/concepts/PSRule/en-US/about_PSRule_Options.html#outputstyle)",
|
||||||
"enum": ["Client", "Plain", "AzurePipelines", "GitHubActions"],
|
"enum": [
|
||||||
"default": "Client"
|
"Client",
|
||||||
|
"Plain",
|
||||||
|
"AzurePipelines",
|
||||||
|
"GitHubActions",
|
||||||
|
"VisualStudioCode",
|
||||||
|
"Detect"
|
||||||
|
],
|
||||||
|
"default": "Detect"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
|
@ -440,8 +469,20 @@
|
||||||
"description": "Specifies the required version of a module to use.",
|
"description": "Specifies the required version of a module to use.",
|
||||||
"markdownDescription": "Specifies the required version of a module to use. [See help](https://microsoft.github.io/PSRule/concepts/PSRule/en-US/about_PSRule_Options.html#requires)",
|
"markdownDescription": "Specifies the required version of a module to use. [See help](https://microsoft.github.io/PSRule/concepts/PSRule/en-US/about_PSRule_Options.html#requires)",
|
||||||
"additionalProperties": {
|
"additionalProperties": {
|
||||||
"type": "string"
|
"type": "string",
|
||||||
}
|
"title": "Version constraint",
|
||||||
|
"description": "Specifies a module to constrain to a specific version.",
|
||||||
|
"markdownDescription": "Specifies a module to constrain to a specific version. [See help](https://microsoft.github.io/PSRule/concepts/PSRule/en-US/about_PSRule_Options.html#requires)",
|
||||||
|
"pattern": "^(@pre|@prerelease )?(((?:^|~|\\>=|\\>|=|\\<=|\\<)?v?(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?)(?:\\s|\\s?\\|\\|\\s?)?){1,}$"
|
||||||
|
},
|
||||||
|
"defaultSnippets": [
|
||||||
|
{
|
||||||
|
"label": "Version constraint",
|
||||||
|
"body": {
|
||||||
|
"${1:Module}": "${2:'>=1.0.0'}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"rule-option": {
|
"rule-option": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
|
Загрузка…
Ссылка в новой задаче