This commit is contained in:
Bernie White 2019-10-11 22:10:31 +10:00 коммит произвёл GitHub
Родитель 6d3e4abd8b
Коммит 720de2289d
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
179 изменённых файлов: 708 добавлений и 144 удалений

Просмотреть файл

@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
# Install dependencies for integration with Azure DevOps
#

32
CONTRIBUTING.md Normal file
Просмотреть файл

@ -0,0 +1,32 @@
# Contributing
This project welcomes contributions and suggestions. Most contributions require you to
agree to a Contributor License Agreement (CLA) declaring that you have the right to,
and actually do, grant us the rights to use your contribution. For details, visit
https://cla.microsoft.com.
When you submit a pull request, a CLA-bot will automatically determine whether you need
to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the
instructions provided by the bot. You will only need to do this once across all repositories using our CLA.
## Code of Conduct
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
## Intro to Git and GitHub
- Make sure you have a [GitHub account][github-signup].
- GitHub Help:
- [Git and GitHub learning resources][learn-git].
- [GitHub Flow Guide][github-flow].
## Contributing to Issues
- Check if the issue you are going to file already exists in our GitHub [issues](https://github.com/BernieWhite/PSRule/issues).
- If you do not see your problem captured, please file a new issue and follow the provided template.
[learn-git]: https://help.github.com/en/articles/git-and-github-learning-resources
[github-flow]: https://guides.github.com/introduction/flow/
[github-signup]: https://github.com/signup/free

Просмотреть файл

@ -1,6 +1,8 @@
MIT License
PSRule
Copyright (c) 2017 Bernard White
Copyright (c) Microsoft Corporation.
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@ -12,7 +14,7 @@ furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER

Просмотреть файл

@ -266,13 +266,29 @@ The following conceptual topics exist in the `PSRule` module:
PSRule uses the following schemas:
- [PSRuleOptions](schemas/PSRule-options.schema.json) - Schema for PSRule YAML configuration file.
- [Options](schemas/PSRule-options.schema.json) - Schema for PSRule YAML options file.
- [Resources](schemas/PSRule-language.schema.json) - Schema for PSRule YAML resources such as baselines.
## Changes and versioning
Modules in this repository will use the [semantic versioning](http://semver.org/) model to declare breaking changes from v1.0.0. Prior to v1.0.0, breaking changes may be introduced in minor (0.x.0) version increments. For a list of module changes please see the [change log](CHANGELOG.md).
Modules in this repository will use the [semantic versioning](http://semver.org/) model to declare breaking changes from v1.0.0.
Prior to v1.0.0, breaking changes may be introduced in minor (0.x.0) version increments.
For a list of module changes please see the [change log](CHANGELOG.md).
> Pre-release module versions are created on major commits and can be installed from the PowerShell Gallery. Pre-release versions should be considered experimental. Modules and change log details for pre-releases will be removed as standard releases are made available.
> Pre-release module versions are created on major commits and can be installed from the PowerShell Gallery.
> Pre-release versions should be considered experimental.
> Modules and change log details for pre-releases will be removed as standard releases are made available.
## Contributing
This project welcomes contributions and suggestions.
If you are ready to contribute, please visit the [contribution guide](CONTRIBUTING.md).
## Code of Conduct
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
## Maintainers
@ -280,7 +296,7 @@ Modules in this repository will use the [semantic versioning](http://semver.org/
## License
This project is [licensed under the MIT License](LICENSE).
This project is [licensed under the MIT License](LICENSE.txt).
[install]: docs/scenarios/install-instructions.md
[ci-badge]: https://dev.azure.com/bewhite/PSRule/_apis/build/status/PSRule-CI?branchName=master

Просмотреть файл

@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
# Validation rules for Azure App Services
#

Просмотреть файл

@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
# Helper functions for rules
#

Просмотреть файл

@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
# Validation rules for Azure Storage Accounts
#

Просмотреть файл

@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
# Validation rules for Azure resource tagging standard
#

Просмотреть файл

@ -1,3 +1,5 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# Define objects
$items = @();

Просмотреть файл

@ -1,3 +1,5 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# Synopsis: An example rule
Rule 'isFruit' {

Просмотреть файл

@ -13,24 +13,28 @@ Install from [PowerShell Gallery][module-psrule] for all users (requires permiss
```powershell
# Install PSRule module
Install-Module -Name 'PSRule';
Install-Module -Name 'PSRule' -Repository PSGallery;
```
Install from [PowerShell Gallery][module-psrule] for current user only:
```powershell
# Install PSRule module
Install-Module -Name 'PSRule' -Scope CurrentUser;
Install-Module -Name 'PSRule' -Repository PSGallery -Scope CurrentUser;
```
Save for offline use from PowerShell Gallery:
```powershell
# Save PSRule module, in the .\modules directory
Save-Module -Name 'PSRule' -Path '.\modules';
Save-Module -Name 'PSRule' -Repository PSGallery -Path '.\modules';
```
> For pre-release versions the `-AllowPrerelease` switch must be added when calling `Install-Module` or `Save-Module`.
>
> To install pre-release module versions, upgrading to the latest version of _PowerShellGet_ may be required. To do this use:
>
> `Install-Module -Name PowerShellGet -Repository PSGallery -Scope CurrentUser -Force`
## Getting the extension

Просмотреть файл

@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
# Validation rules for Kubernetes resources
#

Просмотреть файл

@ -1,9 +1,10 @@
# Copyright Bernie White
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# Synopsis: Check file includes copyright header
Rule 'file.Header' -If { $TargetObject.Extension -in '.ps1', '.psm1', '.psd1', '.yaml', '.yml' } {
$fileContent = Get-Content -Path $TargetObject.FullName -Raw;
$fileContent -match '(\# Copyright \(c\) Bernie White\. All rights reserved\.)';
$fileContent -match '^(\# Copyright \(c\) Microsoft Corporation.(\r|\n|\r\n)\# Licensed under the MIT License\.)';
}
# Synopsis: File encoding should be UTF-8

Просмотреть файл

@ -12,7 +12,9 @@ This scenario covers the following:
Typically PSRule is not pre-installed on CI worker nodes, so within a CI pipeline the PSRule PowerShell module needs to be installed prior to calling PSRule cmdlets such as `Invoke-PSRule`.
If your CI pipeline runs on a persistent virtual machine that you control consider pre-installing PSRule. The following examples focus on installing PSRule dynamically during execution of the pipeline. Which is suitable for cloud based CI worker nodes.
If your CI pipeline runs on a persistent virtual machine that you control consider pre-installing PSRule.
The following examples focus on installing PSRule dynamically during execution of the pipeline.
Which is suitable for cloud based CI worker nodes.
To install PSRule within a CI pipeline execute the `Install-Module` PowerShell cmdlet.
@ -25,7 +27,8 @@ In the example below:
$Null = Install-Module -Name PSRule -Scope CurrentUser -Force;
```
In some cases installing NuGet may be required before the module can be installed. The NuGet package provider can be installed using the `Install-PackageProvider` PowerShell cmdlet.
In some cases installing NuGet may be required before the module can be installed.
The NuGet package provider can be installed using the `Install-PackageProvider` PowerShell cmdlet.
```powershell
$Null = Install-PackageProvider -Name NuGet -Scope CurrentUser -Force;
@ -72,7 +75,9 @@ task InstallPSRule InstallNuGet, {
When using PSRule within a continuous integration pipeline, typically we need to catch errors and failures and stop the pipeline if any occur.
When using `Invoke-PSRule` an easy way to catch an failure or error conditions is to use the `-Outcome Fail,Error` parameter. By using this parameter only errors or failures are returned to the pipeline. A simple `$Null` test can then throw a terminating error to stop the pipeline.
When using `Invoke-PSRule` an easy way to catch an failure or error conditions is to use the `-Outcome Fail,Error` parameter.
By using this parameter only errors or failures are returned to the pipeline.
A simple `$Null` test can then throw a terminating error to stop the pipeline.
```powershell
$result = Invoke-PSRule -Outcome Fail,Error;

Просмотреть файл

@ -1,3 +1,5 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
[CmdletBinding()]
param (

Просмотреть файл

@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
# A set of benchmark rules for testing PSRule performance
#

Просмотреть файл

@ -1,3 +1,6 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
# A set of benchmark rules for testing PSRule performance
#

Просмотреть файл

@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Engines;
using PSRule.Configuration;

Просмотреть файл

@ -1,4 +1,7 @@
using BenchmarkDotNet.Analysers;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using BenchmarkDotNet.Analysers;
using BenchmarkDotNet.Columns;
using BenchmarkDotNet.Configs;
using BenchmarkDotNet.Loggers;

Просмотреть файл

@ -1,4 +1,7 @@
using System.Diagnostics;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System.Diagnostics;
namespace PSRule.Annotations
{

Просмотреть файл

@ -1,4 +1,7 @@
using PSRule.Pipeline;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using PSRule.Pipeline;
using PSRule.Resources;
using PSRule.Rules;
using System.Management.Automation;

Просмотреть файл

@ -1,4 +1,7 @@
using PSRule.Pipeline;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using PSRule.Pipeline;
using PSRule.Resources;
using PSRule.Rules;
using System.Management.Automation;

Просмотреть файл

@ -1,4 +1,7 @@
using PSRule.Pipeline;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using PSRule.Pipeline;
using PSRule.Resources;
using PSRule.Runtime;
using System.Management.Automation;

Просмотреть файл

@ -1,4 +1,7 @@
using PSRule.Pipeline;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using PSRule.Pipeline;
using PSRule.Resources;
using PSRule.Runtime;
using System.Management.Automation;

Просмотреть файл

@ -1,4 +1,7 @@
using PSRule.Pipeline;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using PSRule.Pipeline;
using PSRule.Resources;
using System.Linq;
using System.Management.Automation;

Просмотреть файл

@ -1,4 +1,7 @@
using PSRule.Pipeline;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using PSRule.Pipeline;
using PSRule.Resources;
using PSRule.Runtime;
using System;

Просмотреть файл

@ -1,4 +1,7 @@
using PSRule.Pipeline;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using PSRule.Pipeline;
using PSRule.Rules;
using System;
using System.Linq;

Просмотреть файл

@ -1,4 +1,7 @@
using PSRule.Annotations;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using PSRule.Annotations;
using PSRule.Host;
using PSRule.Pipeline;
using PSRule.Rules;

Просмотреть файл

@ -1,4 +1,7 @@
namespace PSRule.Commands
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
namespace PSRule.Commands
{
internal static class LanguageKeywords
{

Просмотреть файл

@ -1,4 +1,7 @@
using PSRule.Parser;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using PSRule.Parser;
using PSRule.Pipeline;
using PSRule.Resources;
using PSRule.Rules;

Просмотреть файл

@ -1,4 +1,7 @@
using PSRule.Pipeline;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using PSRule.Pipeline;
using PSRule.Rules;
using System;
using System.Collections;

Просмотреть файл

@ -1,4 +1,7 @@
namespace PSRule.Commands
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
namespace PSRule.Commands
{
internal static class RuleLanguageNouns
{

Просмотреть файл

@ -1,4 +1,7 @@
using PSRule.Pipeline;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using PSRule.Pipeline;
using PSRule.Resources;
using System.Management.Automation;

Просмотреть файл

@ -1,4 +1,7 @@
using PSRule.Pipeline;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using PSRule.Pipeline;
using PSRule.Resources;
using System.Management.Automation;

Просмотреть файл

@ -1,4 +1,7 @@
using System;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;

Просмотреть файл

@ -1,4 +1,7 @@
using Newtonsoft.Json;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using Newtonsoft.Json;
using PSRule.Pipeline;
using PSRule.Resources;
using System;

Просмотреть файл

@ -1,4 +1,7 @@
using Newtonsoft.Json;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using Newtonsoft.Json;
using System;
using System.Globalization;
using System.Management.Automation;

Просмотреть файл

@ -1,4 +1,7 @@
using PSRule.Rules;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using PSRule.Rules;
namespace PSRule
{

Просмотреть файл

@ -1,4 +1,7 @@
namespace PSRule
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
namespace PSRule
{
internal static class StringExtensions
{

Просмотреть файл

@ -1,4 +1,7 @@
using PSRule.Annotations;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using PSRule.Annotations;
using PSRule.Configuration;
using PSRule.Host;
using PSRule.Pipeline;

Просмотреть файл

@ -1,4 +1,7 @@
using PSRule.Rules;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using PSRule.Rules;
using System;
using System.Collections;
using System.Collections.Generic;

Просмотреть файл

@ -1,4 +1,7 @@
using System;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using System.ComponentModel;
namespace PSRule.Configuration

Просмотреть файл

@ -1,4 +1,7 @@
using System;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Dynamic;

Просмотреть файл

@ -1,4 +1,7 @@
using System.ComponentModel;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System.ComponentModel;
namespace PSRule.Configuration
{

Просмотреть файл

@ -1,4 +1,7 @@
using Newtonsoft.Json;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace PSRule.Configuration

Просмотреть файл

@ -1,4 +1,7 @@
using System.ComponentModel;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System.ComponentModel;
namespace PSRule.Configuration
{

Просмотреть файл

@ -1,4 +1,7 @@
namespace PSRule.Configuration
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
namespace PSRule.Configuration
{
public enum LanguageMode
{

Просмотреть файл

@ -1,4 +1,7 @@
using System.ComponentModel;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System.ComponentModel;
namespace PSRule.Configuration
{

Просмотреть файл

@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;

Просмотреть файл

@ -1,4 +1,7 @@
using Newtonsoft.Json;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace PSRule.Configuration

Просмотреть файл

@ -1,4 +1,7 @@
using Newtonsoft.Json;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace PSRule.Configuration

Просмотреть файл

@ -1,4 +1,7 @@
using System;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using System.ComponentModel;
namespace PSRule.Configuration

Просмотреть файл

@ -1,4 +1,7 @@
using Newtonsoft.Json;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace PSRule.Configuration

Просмотреть файл

@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using Newtonsoft.Json;
using PSRule.Resources;
using PSRule.Rules;

Просмотреть файл

@ -1,4 +1,7 @@
using System.Collections.Generic;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System.Collections.Generic;
using System.Management.Automation;
namespace PSRule.Configuration

Просмотреть файл

@ -1,4 +1,7 @@
using Newtonsoft.Json;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace PSRule.Configuration

Просмотреть файл

@ -1,4 +1,7 @@
using System.Collections;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System.Collections;
namespace PSRule.Configuration
{

Просмотреть файл

@ -1,4 +1,7 @@
using System;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using System.Collections;
using System.Collections.Generic;

Просмотреть файл

@ -1,4 +1,7 @@
using System.Linq;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System.Linq;
namespace PSRule.Configuration
{

Просмотреть файл

@ -1,4 +1,7 @@
using System;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using System.Collections.Generic;
namespace PSRule.Host

Просмотреть файл

@ -1,4 +1,7 @@
using PSRule.Pipeline;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using PSRule.Pipeline;
using PSRule.Resources;
using System;
using System.Collections.Generic;

Просмотреть файл

@ -1,4 +1,7 @@
using PSRule.Commands;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using PSRule.Commands;
using PSRule.Pipeline;
using System;
using System.Management.Automation;

Просмотреть файл

@ -1,4 +1,7 @@
using PSRule.Annotations;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using PSRule.Annotations;
using PSRule.Pipeline;
using PSRule.Rules;
using System;

Просмотреть файл

@ -1,4 +1,7 @@
namespace PSRule.Host
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
namespace PSRule.Host
{
internal interface IDependencyTarget
{

Просмотреть файл

@ -1,4 +1,7 @@
namespace PSRule.Host
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
namespace PSRule.Host
{
public enum LanguageBlockKind : byte
{

Просмотреть файл

@ -1,4 +1,7 @@
using PSRule.Pipeline;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using PSRule.Pipeline;
using PSRule.Resources;
using System;
using System.Collections.Generic;

Просмотреть файл

@ -10,9 +10,9 @@
<Authors>Bernie White</Authors>
<AssemblyTitle>PSRule</AssemblyTitle>
<RepositoryUrl>https://github.com/BernieWhite/PSRule</RepositoryUrl>
<PackageLicenseExpression>https://github.com/BernieWhite/PSRule/blob/master/LICENSE</PackageLicenseExpression>
<PackageLicenseExpression>https://github.com/BernieWhite/PSRule/blob/master/LICENSE.txt</PackageLicenseExpression>
<!--<Version>0.0.1</Version>-->
<Copyright>(c) Bernie White. All rights reserved.</Copyright>
<Copyright>Copyright (c) Microsoft Corporation. Licensed under the MIT License.</Copyright>
<Description>Validate objects using PowerShell rules.
This project is to be considered a proof-of-concept and not a supported product.</Description>

Просмотреть файл

@ -1,4 +1,5 @@
# Copyright (c) Bernie White. All rights reserved.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
# PSRule module
@ -19,13 +20,13 @@ CompatiblePSEditions = 'Core', 'Desktop'
GUID = '0130215d-58eb-4887-b6fa-31ed02500569'
# Author of this module
Author = 'Bernie White'
Author = 'Microsoft Corporation'
# Company or vendor of this module
CompanyName = 'Bernie White'
CompanyName = 'Microsoft Corporation'
# Copyright statement for this module
Copyright = '(c) Bernie White. All rights reserved.'
Copyright = '(c) Microsoft Corporation. All rights reserved.'
# Description of the functionality provided by this module
Description = 'Validate objects using PowerShell rules.
@ -123,7 +124,7 @@ PrivateData = @{
Tags = @('Rule', 'Test')
# A URL to the license for this module.
LicenseUri = 'https://github.com/BernieWhite/PSRule/blob/master/LICENSE'
LicenseUri = 'https://github.com/BernieWhite/PSRule/blob/master/LICENSE.txt'
# A URL to the main website for this project.
ProjectUri = 'https://github.com/BernieWhite/PSRule'

Просмотреть файл

@ -1,4 +1,5 @@
# Copyright (c) Bernie White. All rights reserved.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
#
# PSRule module

Просмотреть файл

@ -1,4 +1,7 @@
using System.Management.Automation;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System.Management.Automation;
namespace PSRule.Parser
{

Просмотреть файл

@ -1,4 +1,7 @@
using System;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using System.Collections.Generic;
namespace PSRule.Parser

Просмотреть файл

@ -1,4 +1,7 @@
namespace PSRule.Parser
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
namespace PSRule.Parser
{
internal enum MarkdownReaderMode
{

Просмотреть файл

@ -1,4 +1,7 @@
using System;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using System.Diagnostics;
using System.Linq;

Просмотреть файл

@ -1,4 +1,7 @@
using System;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using System.Diagnostics;
namespace PSRule.Parser

Просмотреть файл

@ -1,4 +1,7 @@
namespace PSRule.Parser
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
namespace PSRule.Parser
{
internal static class MarkdownTokenExtensions
{

Просмотреть файл

@ -1,4 +1,7 @@
using System.Collections.Generic;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System.Collections.Generic;
namespace PSRule.Parser
{

Просмотреть файл

@ -1,4 +1,7 @@
using PSRule.Resources;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using PSRule.Resources;
using PSRule.Rules;
using System;
using System.Collections.Generic;

Просмотреть файл

@ -1,4 +1,7 @@
using PSRule.Rules;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using PSRule.Rules;
using System;
namespace PSRule.Parser

Просмотреть файл

@ -1,4 +1,7 @@
using System;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;

Просмотреть файл

@ -1,4 +1,7 @@
using PSRule.Configuration;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using PSRule.Configuration;
using PSRule.Resources;
using PSRule.Rules;
using System;

Просмотреть файл

@ -1,4 +1,7 @@
using PSRule.Rules;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using PSRule.Rules;
using System;
using System.Collections;
using System.Collections.Generic;

Просмотреть файл

@ -1,4 +1,7 @@
using PSRule.Resources;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using PSRule.Resources;
using PSRule.Rules;
using System;
using System.Collections.Generic;

Просмотреть файл

@ -1,4 +1,7 @@
using System;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using System.Runtime.Serialization;
using System.Security.Permissions;

Просмотреть файл

@ -1,4 +1,7 @@
namespace PSRule.Pipeline
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
namespace PSRule.Pipeline
{
internal enum ExecutionScope : byte
{

Просмотреть файл

@ -1,4 +1,7 @@
using PSRule.Configuration;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using PSRule.Configuration;
using PSRule.Host;
using PSRule.Rules;
using System.Linq;

Просмотреть файл

@ -1,4 +1,7 @@
using PSRule.Configuration;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using PSRule.Configuration;
using PSRule.Host;
using PSRule.Resources;
using PSRule.Rules;

Просмотреть файл

@ -1,4 +1,7 @@
using PSRule.Configuration;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using PSRule.Configuration;
using PSRule.Host;
using PSRule.Rules;
using System.Threading;

Просмотреть файл

@ -1,4 +1,7 @@
namespace PSRule.Pipeline
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
namespace PSRule.Pipeline
{
internal class HostContext
{

Просмотреть файл

@ -1,4 +1,7 @@
using System.Management.Automation;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System.Management.Automation;
namespace PSRule.Pipeline
{

Просмотреть файл

@ -1,4 +1,7 @@
using System.Management.Automation;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System.Management.Automation;
namespace PSRule.Pipeline
{

Просмотреть файл

@ -1,4 +1,7 @@
using System.Collections.Generic;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System.Collections.Generic;
using System.Linq;
using System.Management.Automation;

Просмотреть файл

@ -1,4 +1,7 @@
using PSRule.Rules;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using PSRule.Rules;
using System.Collections.Generic;
namespace PSRule.Pipeline

Просмотреть файл

@ -1,4 +1,7 @@
using PSRule.Configuration;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using PSRule.Configuration;
using PSRule.Host;
using PSRule.Resources;
using PSRule.Rules;

Просмотреть файл

@ -1,4 +1,7 @@
using Newtonsoft.Json;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using Newtonsoft.Json;
using PSRule.Rules;
using System.Collections.Generic;

Просмотреть файл

@ -1,4 +1,7 @@
using System;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

Просмотреть файл

@ -1,4 +1,7 @@
using PSRule.Configuration;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using PSRule.Configuration;
using PSRule.Resources;
using PSRule.Rules;
using System;

Просмотреть файл

@ -1,4 +1,7 @@
using PSRule.Configuration;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using PSRule.Configuration;
using PSRule.Host;
using PSRule.Resources;
using PSRule.Rules;

Просмотреть файл

@ -1,4 +1,7 @@
using Newtonsoft.Json;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using Newtonsoft.Json;
using PSRule.Configuration;
using PSRule.Runtime;
using System.Globalization;

Просмотреть файл

@ -1,4 +1,7 @@
using PSRule.Configuration;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using PSRule.Configuration;
using System;
using System.Collections.Generic;
using System.Management.Automation;

Просмотреть файл

@ -1,4 +1,7 @@
using System;
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using System.Collections.Concurrent;
using System.IO;
using System.Management.Automation;

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше