A Visual Studio Code extension for PSRule.
Перейти к файлу
Bernie White 858a149764
Added feature documentation (#236)
2021-05-07 01:05:58 +10:00
.azure-pipelines Added feature documentation (#236) 2021-05-07 01:05:58 +10:00
.github Bump CI pipeline version (#210) 2021-04-02 02:03:03 +10:00
.vscode Update display name for channel #229 (#230) 2021-05-06 13:43:54 +10:00
docs Added feature documentation (#236) 2021-05-07 01:05:58 +10:00
images Update snippet and options schema v0.13.0 #59 #60 (#61) 2020-01-03 23:50:51 +10:00
schemas Add support for input.ignoreGitPath option #231 (#232) 2021-05-06 15:08:49 +10:00
snippets Added support for selectors #206 #207 #208 (#209) 2021-04-02 01:38:39 +10:00
src Update display name for channel #229 (#230) 2021-05-06 13:43:54 +10:00
syntaxes Add support for v0.9.0 features #38 #39 #40 #41 (#42) 2019-09-22 11:50:03 +10:00
.eslintignore Update dependencies and use eslint (#66) 2020-03-17 13:26:05 +10:00
.eslintrc.json Split extension into two release channels #150 (#221) 2021-05-04 03:35:23 +10:00
.gitignore Exclude reports from git (#90) 2020-07-27 09:20:00 +10:00
.markdownlint.json Update display name for channel #229 (#230) 2021-05-06 13:43:54 +10:00
.prettierrc Split extension into two release channels #150 (#221) 2021-05-04 03:35:23 +10:00
.vscodeignore Bundled extension #222 (#223) 2021-05-05 17:26:07 +10:00
CHANGELOG.md Added feature documentation (#236) 2021-05-07 01:05:58 +10:00
CODE_OF_CONDUCT.md Migrate repository to Microsoft GitHub org #152 (#165) 2020-12-17 17:20:29 +10:00
CONTRIBUTING.md Migrate repository to Microsoft GitHub org #152 (#165) 2020-12-17 17:20:29 +10:00
LICENSE Migrate repository to Microsoft GitHub org #152 (#165) 2020-12-17 17:20:29 +10:00
README.md Added feature documentation (#236) 2021-05-07 01:05:58 +10:00
SECURITY.md Migrate repository to Microsoft GitHub org #152 (#165) 2020-12-17 17:20:29 +10:00
SUPPORT.md Split extension into two release channels #150 (#221) 2021-05-04 03:35:23 +10:00
package-lock.json Bump esbuild from 0.11.18 to 0.11.19 (#233) 2021-05-06 16:38:33 +10:00
package.json Bump esbuild from 0.11.18 to 0.11.19 (#233) 2021-05-06 16:38:33 +10:00
pipeline.build.ps1 Update display name for channel #229 (#230) 2021-05-06 13:43:54 +10:00
ps-project.yaml Migrate repository to Microsoft GitHub org #152 (#165) 2020-12-17 17:20:29 +10:00
ps-rule.yaml Added repository validation rules (#139) 2020-10-20 23:10:47 +10:00
tsconfig.json Split extension into two release channels #150 (#221) 2021-05-04 03:35:23 +10:00

README.md

PSRule

Validate infrastructure as code (IaC) and DevOps repositories using the PSRule PowerShell module. PSRule is powerful, feature rich, and highly customizable to meet your needs.

ext-stable-version-badge ext-stable-installs-badge module-version-badge

This extension is available in two release channels:

Channel Description Version/ downloads
Preview More frequent releases but more likely to contain bugs. Preview ext-preview-installs-badge
Stable (coming soon) Less frequent releases, with more user testing, experimental features are disabled. Stable ext-stable-installs-badge

Features

IntelliSense

Options suggestion context menu

  • Adds IntelliSense and validation support for configuring options and resources.
    • Workspace options — use IntelliSense to configure options for the workspace.
      • Type or trigger IntelliSense with Ctrl+Space from ps-rule.yaml.
    • Create resources — define baselines and selectors by using pre-built snippets and IntelliSense.

Rule definition snippet

  • Adds snippets for defining new rules.
    • Define rules with snippets and IntelliSense support.
      • Trigger IntelliSense by typing rule in a .Rule.ps1 file. IntelliSense can also be triggered by using the shortcut Ctrl+Space.

Rule markdown documentation snippet

  • Adds snippets for creating markdown documentation.
    • Quick documentation — create rule documentation to provide rule recommendations and examples.
      • Trigger IntelliSense by typing rule in a .md file. IntelliSense can also be triggered by using the shortcut Ctrl+Space.

Support

This project uses GitHub Issues to track bugs and feature requests. Please search the existing issues before filing new issues to avoid duplicates.

  • For new issues, file your bug or feature request as a new issue.
  • For help, discussion, and support questions about using this project, join or start a discussion.

Support for this project/ product is limited to the resources listed above.

Installing PSRule module

PSRule is available from the PowerShell Gallery and is required for this extension to work.

To install the module use the following command from a PowerShell prompt.

Install-Module -Name PSRule -Scope CurrentUser;

Installing the extension

You can install the latest release of the extension by following the steps in the Visual Studio Code documentation. In the Extensions pane, search for PSRule extension and install it there. You will get notified automatically about any future extension updates.

code --install-extension bewhite.psrule-vscode-preview

NOTE: If you are using VS Code Insiders, the command will be code-insiders.

Contributing

This project welcomes contributions and suggestions. If you are ready to contribute, please visit the contribution guide.

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Maintainers

License

This project is licensed under the MIT License.