From ba34f69e7c22c8db2cf36845f437b0a5ed266b1c Mon Sep 17 00:00:00 2001 From: Bernie White Date: Wed, 25 Sep 2024 13:47:09 +1000 Subject: [PATCH] Fix linting errors (#2560) --- .editorconfig | 3 ++- .github/workflows/build.yaml | 5 +++++ PSRule.sln | 8 ++++---- src/PSRule.Badges/Properties/AssemblyInfo.cs | 2 +- src/PSRule.CommandLine/Commands/ModuleCommand.cs | 4 ++-- src/PSRule.Types/Definitions/IResourceAnnotations.cs | 2 +- src/PSRule.Types/Definitions/IResourceMetadata.cs | 2 +- src/PSRule.Types/Definitions/ResourceHelpInfo.cs | 2 +- src/PSRule.Types/Definitions/ResourceIdKind.cs | 2 +- src/PSRule.Types/Emitters/InternalFileStream.cs | 4 ++-- src/PSRule.Types/Options/IOption.cs | 2 +- src/PSRule.Types/Options/IOptionContext.cs | 2 +- src/PSRule.Types/Runtime/NullLogger_T.cs | 2 +- src/PSRule/Annotations/CommentMetadata.cs | 2 +- src/PSRule/Commands/AssertAllOfCommand.cs | 2 +- src/PSRule/Commands/AssertAnyOfCommand.cs | 2 +- src/PSRule/Commands/ExportConventionCommand.cs | 1 - src/PSRule/Commands/InvokeConventionCommand.cs | 2 +- src/PSRule/Commands/InvokeRuleBlockCommand.cs | 1 - src/PSRule/Commands/LanguageKeywords.cs | 2 +- src/PSRule/Commands/RuleLanguageNouns.cs | 2 +- src/PSRule/Common/ListExtensions.cs | 2 +- src/PSRule/Common/LoggerExtensions.cs | 1 - src/PSRule/Common/RuleOutcomeExtensions.cs | 2 +- src/PSRule/Configuration/OutputStyle.cs | 2 +- src/PSRule/Configuration/PSRuleOption.cs | 1 - src/PSRule/Data/IInputFileInfoCollection.cs | 2 +- src/PSRule/Data/TargetIssueCollection.cs | 2 +- src/PSRule/Data/TargetSourceCollection.cs | 2 +- src/PSRule/Definitions/AnnotatedExtensions.cs | 2 +- src/PSRule/Definitions/Baselines/BaselineFilter.cs | 2 +- src/PSRule/Definitions/Baselines/BaselineRef.cs | 2 +- src/PSRule/Definitions/Baselines/BaselineSpec.cs | 2 +- src/PSRule/Definitions/Baselines/IBaselineV1Spec.cs | 2 +- src/PSRule/Definitions/Conventions/ConventionFilter.cs | 2 +- .../Definitions/Expressions/LanguageExpressionBuilder.cs | 1 - src/PSRule/Definitions/Expressions/Primitives.cs | 1 - src/PSRule/Definitions/IConditionResult.cs | 2 +- src/PSRule/Definitions/IDetailedRuleResultV2.cs | 2 +- src/PSRule/Definitions/IResourceFilter.cs | 2 +- src/PSRule/Definitions/IResultDetailV2.cs | 2 +- src/PSRule/Definitions/IResultReasonV2.cs | 2 +- src/PSRule/Definitions/ISpecDescriptor.cs | 2 +- src/PSRule/Definitions/ISuppressionInfoComparer.cs | 2 +- .../Definitions/ModuleConfigs/ModuleConfigV1Spec.cs | 2 +- src/PSRule/Definitions/Resource.cs | 1 - src/PSRule/Definitions/Rules/IRuleSpec.cs | 2 +- src/PSRule/Definitions/Rules/RuleV1Spec.cs | 2 +- src/PSRule/Definitions/Rules/RuleVisitor.cs | 1 - src/PSRule/Definitions/Selectors/ISelector.cs | 2 +- src/PSRule/Definitions/Selectors/SelectorV1.cs | 2 +- src/PSRule/Definitions/SpecAttribute.cs | 2 +- .../SuppressionGroups/ISuppressionGroupV1Spec.cs | 2 +- .../SuppressionGroups/SuppressionGroupV1Spec.cs | 2 +- .../SuppressionGroups/SuppressionGroupVisitor.cs | 1 - src/PSRule/Help/FormatOptions.cs | 2 +- src/PSRule/Help/IHelpDocument.cs | 2 +- src/PSRule/Help/Link.cs | 2 +- src/PSRule/Help/RuleDocument.cs | 2 +- src/PSRule/Help/TextBlock.cs | 2 +- src/PSRule/Host/AssertVariable.cs | 2 +- src/PSRule/Host/PSRuleVariable.cs | 2 +- src/PSRule/Host/RuleVariable.cs | 2 +- src/PSRule/PSRule.csproj | 4 ++-- src/PSRule/Pipeline/ExecutionScope.cs | 2 +- src/PSRule/Pipeline/GetTargetPipelineBuilder.cs | 1 - src/PSRule/Pipeline/HostContextExtensions.cs | 2 +- src/PSRule/Pipeline/IGetPipelineBuilder.cs | 2 +- src/PSRule/Pipeline/IGetTargetPipelineBuilder.cs | 2 +- src/PSRule/Pipeline/IHelpPipelineBuilder.cs | 2 +- src/PSRule/Pipeline/IHostContext.cs | 2 +- src/PSRule/Pipeline/IInvokePipelineBuilder.cs | 2 +- src/PSRule/Pipeline/IPipelineResult.cs | 2 +- src/PSRule/Pipeline/ISourceCommandLineBuilder.cs | 2 +- src/PSRule/Pipeline/ISourcePipelineBuilder.cs | 2 +- src/PSRule/Pipeline/PSHostContext.cs | 2 +- src/PSRule/Pipeline/Source.cs | 1 - src/PSRule/Properties/AssemblyInfo.cs | 2 +- src/PSRule/Rules/ErrorInfo.cs | 2 +- src/PSRule/Rules/PowerShellCondition.cs | 1 - src/PSRule/Rules/RuleBlock.cs | 1 - src/PSRule/Runtime/NameToken.cs | 2 +- src/PSRule/Runtime/ObjectPath/IPathExpressionContext.cs | 4 ++-- src/PSRule/Runtime/ObjectPath/PathExpressionContext.cs | 2 +- tests/PSRule.CommandLine.Tests/GlobalUsings.cs | 1 - tests/PSRule.Tests/LanguageVisitorTests.cs | 2 +- tests/PSRule.Tests/ObjectPathTests.cs | 2 +- tests/PSRule.Tests/ResourceHelperTests.cs | 2 +- tests/PSRule.Tests/SemanticBreakTests.cs | 2 +- tests/PSRule.Tests/TestEnumValue.cs | 2 +- tests/PSRule.Tests/TestResourceName.cs | 1 - 91 files changed, 88 insertions(+), 97 deletions(-) diff --git a/.editorconfig b/.editorconfig index a06e4ea9e8..78906e8269 100644 --- a/.editorconfig +++ b/.editorconfig @@ -23,9 +23,10 @@ indent_size = 2 # Code style defaults csharp_using_directive_placement = outside_namespace:error csharp_style_implicit_object_creation_when_type_is_apparent = true:suggestion -dotnet_sort_system_directives_first = true +dotnet_sort_system_directives_first = true:error dotnet_style_readonly_field = true:suggestion csharp_style_namespace_declarations = file_scoped:error +dotnet_diagnostic.IDE0005.severity = error # License header file_header_template = Copyright (c) Microsoft Corporation.\nLicensed under the MIT License. diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 5763ad9be3..2388657551 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -47,6 +47,11 @@ jobs: timeout-minutes: 5 run: Invoke-Build -Configuration Release -AssertStyle GitHubActions + - name: Lint .NET + shell: pwsh + timeout-minutes: 5 + run: dotnet format --verify-no-changes + - name: Upload module uses: actions/upload-artifact@v4 with: diff --git a/PSRule.sln b/PSRule.sln index 79368d3392..29700881d3 100644 --- a/PSRule.sln +++ b/PSRule.sln @@ -3,14 +3,16 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.2.32602.215 MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PSRule.Types", "src\PSRule.Types\PSRule.Types.csproj", "{5FE4DB0B-63D1-4DDB-9762-9C0D29168BC9}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PSRule.Badges", "src\PSRule.Badges\PSRule.Badges.csproj", "{309BED8B-4E60-4C42-A2B4-37A2E7EBEF3F}" +EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PSRule", "src\PSRule\PSRule.csproj", "{0130215D-58EB-4887-B6FA-31ED02500569}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PSRule.Benchmark", "src\PSRule.Benchmark\PSRule.Benchmark.csproj", "{3EC0912F-BFC7-4B53-A1A1-0BA993C6282E}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PSRule.Tests", "tests\PSRule.Tests\PSRule.Tests.csproj", "{D3488CE2-779F-4474-B38A-F894A4B689F7}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PSRule.Badges", "src\PSRule.Badges\PSRule.Badges.csproj", "{309BED8B-4E60-4C42-A2B4-37A2E7EBEF3F}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PSRule.BuildTool", "src\PSRule.BuildTool\PSRule.BuildTool.csproj", "{20DDCC65-8A9A-4BDC-91EC-C3BE6F32E52E}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PSRule.SDK", "src\PSRule.SDK\PSRule.SDK.csproj", "{07A84E67-1CA3-4766-B9EA-1FDD9DF6516F}" @@ -22,8 +24,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution src\PSRule.Common.props = src\PSRule.Common.props EndProjectSection EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PSRule.Types", "src\PSRule.Types\PSRule.Types.csproj", "{5FE4DB0B-63D1-4DDB-9762-9C0D29168BC9}" -EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PSRule.MSBuild", "src\PSRule.MSBuild\PSRule.MSBuild.csproj", "{872D2648-2F00-475E-84B5-F08BE07385B7}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{E0EA0CBA-96C5-4447-8B69-BC13EF0D7A4A}" diff --git a/src/PSRule.Badges/Properties/AssemblyInfo.cs b/src/PSRule.Badges/Properties/AssemblyInfo.cs index eb7f94bc53..efee02b75d 100644 --- a/src/PSRule.Badges/Properties/AssemblyInfo.cs +++ b/src/PSRule.Badges/Properties/AssemblyInfo.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.Runtime.CompilerServices; diff --git a/src/PSRule.CommandLine/Commands/ModuleCommand.cs b/src/PSRule.CommandLine/Commands/ModuleCommand.cs index 92b3c59bfd..58430a26b3 100644 --- a/src/PSRule.CommandLine/Commands/ModuleCommand.cs +++ b/src/PSRule.CommandLine/Commands/ModuleCommand.cs @@ -5,7 +5,9 @@ using System.Diagnostics.CodeAnalysis; using System.Management.Automation; using Newtonsoft.Json; +using NuGet.Common; using NuGet.Configuration; +using NuGet.Packaging; using NuGet.Protocol; using NuGet.Protocol.Core.Types; using NuGet.Versioning; @@ -15,8 +17,6 @@ using PSRule.Data; using PSRule.Pipeline.Dependencies; using SemanticVersion = PSRule.Data.SemanticVersion; -using NuGet.Packaging; -using NuGet.Common; namespace PSRule.CommandLine.Commands; diff --git a/src/PSRule.Types/Definitions/IResourceAnnotations.cs b/src/PSRule.Types/Definitions/IResourceAnnotations.cs index 4acc58b8f1..60e1f2e19f 100644 --- a/src/PSRule.Types/Definitions/IResourceAnnotations.cs +++ b/src/PSRule.Types/Definitions/IResourceAnnotations.cs @@ -7,5 +7,5 @@ namespace PSRule.Definitions; /// /// public interface IResourceAnnotations : IDictionary -{ +{ } diff --git a/src/PSRule.Types/Definitions/IResourceMetadata.cs b/src/PSRule.Types/Definitions/IResourceMetadata.cs index 416891a163..68e74937b3 100644 --- a/src/PSRule.Types/Definitions/IResourceMetadata.cs +++ b/src/PSRule.Types/Definitions/IResourceMetadata.cs @@ -11,5 +11,5 @@ public interface IResourceMetadata /// /// Annotations on the resource. /// - public IResourceAnnotations Annotations { get;} + public IResourceAnnotations Annotations { get; } } diff --git a/src/PSRule.Types/Definitions/ResourceHelpInfo.cs b/src/PSRule.Types/Definitions/ResourceHelpInfo.cs index 0bab43fe5c..7f22c458ff 100644 --- a/src/PSRule.Types/Definitions/ResourceHelpInfo.cs +++ b/src/PSRule.Types/Definitions/ResourceHelpInfo.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using Newtonsoft.Json; diff --git a/src/PSRule.Types/Definitions/ResourceIdKind.cs b/src/PSRule.Types/Definitions/ResourceIdKind.cs index 980d2f0577..ad0d96a593 100644 --- a/src/PSRule.Types/Definitions/ResourceIdKind.cs +++ b/src/PSRule.Types/Definitions/ResourceIdKind.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace PSRule.Definitions; diff --git a/src/PSRule.Types/Emitters/InternalFileStream.cs b/src/PSRule.Types/Emitters/InternalFileStream.cs index 1665c31131..42510e4925 100644 --- a/src/PSRule.Types/Emitters/InternalFileStream.cs +++ b/src/PSRule.Types/Emitters/InternalFileStream.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace PSRule.Emitters; @@ -8,4 +8,4 @@ internal class InternalFileStream public InternalFileStream() { } -} \ No newline at end of file +} diff --git a/src/PSRule.Types/Options/IOption.cs b/src/PSRule.Types/Options/IOption.cs index 38ecc0faf8..355bf9d0d6 100644 --- a/src/PSRule.Types/Options/IOption.cs +++ b/src/PSRule.Types/Options/IOption.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace PSRule.Options; diff --git a/src/PSRule.Types/Options/IOptionContext.cs b/src/PSRule.Types/Options/IOptionContext.cs index 0e94c7813b..ab6eacf737 100644 --- a/src/PSRule.Types/Options/IOptionContext.cs +++ b/src/PSRule.Types/Options/IOptionContext.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace PSRule.Options; diff --git a/src/PSRule.Types/Runtime/NullLogger_T.cs b/src/PSRule.Types/Runtime/NullLogger_T.cs index 71bd03e12c..d2d0187a2b 100644 --- a/src/PSRule.Types/Runtime/NullLogger_T.cs +++ b/src/PSRule.Types/Runtime/NullLogger_T.cs @@ -22,6 +22,6 @@ public bool IsEnabled(LogLevel logLevel) /// public void Log(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func formatter) { - + } } diff --git a/src/PSRule/Annotations/CommentMetadata.cs b/src/PSRule/Annotations/CommentMetadata.cs index 03a2d773cd..dcad0a7a87 100644 --- a/src/PSRule/Annotations/CommentMetadata.cs +++ b/src/PSRule/Annotations/CommentMetadata.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.Diagnostics; diff --git a/src/PSRule/Commands/AssertAllOfCommand.cs b/src/PSRule/Commands/AssertAllOfCommand.cs index a25d390709..f258233852 100644 --- a/src/PSRule/Commands/AssertAllOfCommand.cs +++ b/src/PSRule/Commands/AssertAllOfCommand.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.Management.Automation; diff --git a/src/PSRule/Commands/AssertAnyOfCommand.cs b/src/PSRule/Commands/AssertAnyOfCommand.cs index 6e1bece6a1..427cb0b905 100644 --- a/src/PSRule/Commands/AssertAnyOfCommand.cs +++ b/src/PSRule/Commands/AssertAnyOfCommand.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.Management.Automation; diff --git a/src/PSRule/Commands/ExportConventionCommand.cs b/src/PSRule/Commands/ExportConventionCommand.cs index 7ce5ef4fce..1a5e75be5b 100644 --- a/src/PSRule/Commands/ExportConventionCommand.cs +++ b/src/PSRule/Commands/ExportConventionCommand.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -using System.Diagnostics.CodeAnalysis; using System.Management.Automation; using PSRule.Definitions; using PSRule.Definitions.Conventions; diff --git a/src/PSRule/Commands/InvokeConventionCommand.cs b/src/PSRule/Commands/InvokeConventionCommand.cs index 90b254e5a3..13516ecf92 100644 --- a/src/PSRule/Commands/InvokeConventionCommand.cs +++ b/src/PSRule/Commands/InvokeConventionCommand.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.Management.Automation; diff --git a/src/PSRule/Commands/InvokeRuleBlockCommand.cs b/src/PSRule/Commands/InvokeRuleBlockCommand.cs index f64130777e..e0003fefc2 100644 --- a/src/PSRule/Commands/InvokeRuleBlockCommand.cs +++ b/src/PSRule/Commands/InvokeRuleBlockCommand.cs @@ -2,7 +2,6 @@ // Licensed under the MIT License. using System.Management.Automation; -using PSRule.Configuration; using PSRule.Definitions; using PSRule.Pipeline; using PSRule.Resources; diff --git a/src/PSRule/Commands/LanguageKeywords.cs b/src/PSRule/Commands/LanguageKeywords.cs index bea69610f8..1c28f6ad6c 100644 --- a/src/PSRule/Commands/LanguageKeywords.cs +++ b/src/PSRule/Commands/LanguageKeywords.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace PSRule.Commands; diff --git a/src/PSRule/Commands/RuleLanguageNouns.cs b/src/PSRule/Commands/RuleLanguageNouns.cs index 10d7f90880..7006349b4d 100644 --- a/src/PSRule/Commands/RuleLanguageNouns.cs +++ b/src/PSRule/Commands/RuleLanguageNouns.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace PSRule.Commands; diff --git a/src/PSRule/Common/ListExtensions.cs b/src/PSRule/Common/ListExtensions.cs index 675f0c784b..558504fc5b 100644 --- a/src/PSRule/Common/ListExtensions.cs +++ b/src/PSRule/Common/ListExtensions.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace PSRule; diff --git a/src/PSRule/Common/LoggerExtensions.cs b/src/PSRule/Common/LoggerExtensions.cs index 3af2e689d4..cee7fa2c0a 100644 --- a/src/PSRule/Common/LoggerExtensions.cs +++ b/src/PSRule/Common/LoggerExtensions.cs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -using System.Management.Automation; using PSRule.Definitions; using PSRule.Pipeline; using PSRule.Resources; diff --git a/src/PSRule/Common/RuleOutcomeExtensions.cs b/src/PSRule/Common/RuleOutcomeExtensions.cs index f195c62de6..e7a3b8f6de 100644 --- a/src/PSRule/Common/RuleOutcomeExtensions.cs +++ b/src/PSRule/Common/RuleOutcomeExtensions.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using PSRule.Rules; diff --git a/src/PSRule/Configuration/OutputStyle.cs b/src/PSRule/Configuration/OutputStyle.cs index 5ba566aa57..2c8f6e10a3 100644 --- a/src/PSRule/Configuration/OutputStyle.cs +++ b/src/PSRule/Configuration/OutputStyle.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using Newtonsoft.Json; diff --git a/src/PSRule/Configuration/PSRuleOption.cs b/src/PSRule/Configuration/PSRuleOption.cs index 17e86ecc07..0217f170f8 100644 --- a/src/PSRule/Configuration/PSRuleOption.cs +++ b/src/PSRule/Configuration/PSRuleOption.cs @@ -4,7 +4,6 @@ using System.Collections; using System.Diagnostics; using System.Management.Automation; -using Newtonsoft.Json; using PSRule.Converters.Yaml; using PSRule.Definitions.Baselines; using PSRule.Pipeline; diff --git a/src/PSRule/Data/IInputFileInfoCollection.cs b/src/PSRule/Data/IInputFileInfoCollection.cs index 79dbc34a15..831feca3be 100644 --- a/src/PSRule/Data/IInputFileInfoCollection.cs +++ b/src/PSRule/Data/IInputFileInfoCollection.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace PSRule.Data; diff --git a/src/PSRule/Data/TargetIssueCollection.cs b/src/PSRule/Data/TargetIssueCollection.cs index d78af94ce6..c2572d2724 100644 --- a/src/PSRule/Data/TargetIssueCollection.cs +++ b/src/PSRule/Data/TargetIssueCollection.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace PSRule.Data; diff --git a/src/PSRule/Data/TargetSourceCollection.cs b/src/PSRule/Data/TargetSourceCollection.cs index 3a82339429..5e0842693e 100644 --- a/src/PSRule/Data/TargetSourceCollection.cs +++ b/src/PSRule/Data/TargetSourceCollection.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace PSRule.Data; diff --git a/src/PSRule/Definitions/AnnotatedExtensions.cs b/src/PSRule/Definitions/AnnotatedExtensions.cs index f0a3f9b8ed..8e121061b0 100644 --- a/src/PSRule/Definitions/AnnotatedExtensions.cs +++ b/src/PSRule/Definitions/AnnotatedExtensions.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace PSRule.Definitions; diff --git a/src/PSRule/Definitions/Baselines/BaselineFilter.cs b/src/PSRule/Definitions/Baselines/BaselineFilter.cs index 4101b0d742..db2528ab47 100644 --- a/src/PSRule/Definitions/Baselines/BaselineFilter.cs +++ b/src/PSRule/Definitions/Baselines/BaselineFilter.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.Management.Automation; diff --git a/src/PSRule/Definitions/Baselines/BaselineRef.cs b/src/PSRule/Definitions/Baselines/BaselineRef.cs index 19f909c9e5..1a2e56f868 100644 --- a/src/PSRule/Definitions/Baselines/BaselineRef.cs +++ b/src/PSRule/Definitions/Baselines/BaselineRef.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using PSRule.Pipeline; diff --git a/src/PSRule/Definitions/Baselines/BaselineSpec.cs b/src/PSRule/Definitions/Baselines/BaselineSpec.cs index 71bb5feb0a..6753ee90d8 100644 --- a/src/PSRule/Definitions/Baselines/BaselineSpec.cs +++ b/src/PSRule/Definitions/Baselines/BaselineSpec.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using PSRule.Configuration; diff --git a/src/PSRule/Definitions/Baselines/IBaselineV1Spec.cs b/src/PSRule/Definitions/Baselines/IBaselineV1Spec.cs index e14c9a2c94..7024cdf25b 100644 --- a/src/PSRule/Definitions/Baselines/IBaselineV1Spec.cs +++ b/src/PSRule/Definitions/Baselines/IBaselineV1Spec.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using PSRule.Configuration; diff --git a/src/PSRule/Definitions/Conventions/ConventionFilter.cs b/src/PSRule/Definitions/Conventions/ConventionFilter.cs index 30c767ee16..b3c41a68e6 100644 --- a/src/PSRule/Definitions/Conventions/ConventionFilter.cs +++ b/src/PSRule/Definitions/Conventions/ConventionFilter.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.Management.Automation; diff --git a/src/PSRule/Definitions/Expressions/LanguageExpressionBuilder.cs b/src/PSRule/Definitions/Expressions/LanguageExpressionBuilder.cs index eec7407914..bee6f85b86 100644 --- a/src/PSRule/Definitions/Expressions/LanguageExpressionBuilder.cs +++ b/src/PSRule/Definitions/Expressions/LanguageExpressionBuilder.cs @@ -2,7 +2,6 @@ // Licensed under the MIT License. using System.Diagnostics; -using PSRule.Configuration; using PSRule.Resources; using PSRule.Runtime; diff --git a/src/PSRule/Definitions/Expressions/Primitives.cs b/src/PSRule/Definitions/Expressions/Primitives.cs index 4a5b2f9563..fe894fe70f 100644 --- a/src/PSRule/Definitions/Expressions/Primitives.cs +++ b/src/PSRule/Definitions/Expressions/Primitives.cs @@ -2,7 +2,6 @@ // Licensed under the MIT License. using System.Diagnostics; -using PSRule.Pipeline; namespace PSRule.Definitions.Expressions; diff --git a/src/PSRule/Definitions/IConditionResult.cs b/src/PSRule/Definitions/IConditionResult.cs index 58263aea5f..fa467c33f0 100644 --- a/src/PSRule/Definitions/IConditionResult.cs +++ b/src/PSRule/Definitions/IConditionResult.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace PSRule.Definitions; diff --git a/src/PSRule/Definitions/IDetailedRuleResultV2.cs b/src/PSRule/Definitions/IDetailedRuleResultV2.cs index 404c369c8c..fa2f3dcf46 100644 --- a/src/PSRule/Definitions/IDetailedRuleResultV2.cs +++ b/src/PSRule/Definitions/IDetailedRuleResultV2.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.Collections; diff --git a/src/PSRule/Definitions/IResourceFilter.cs b/src/PSRule/Definitions/IResourceFilter.cs index d11355235a..daaea799c0 100644 --- a/src/PSRule/Definitions/IResourceFilter.cs +++ b/src/PSRule/Definitions/IResourceFilter.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace PSRule.Definitions; diff --git a/src/PSRule/Definitions/IResultDetailV2.cs b/src/PSRule/Definitions/IResultDetailV2.cs index e25b105655..daae852ded 100644 --- a/src/PSRule/Definitions/IResultDetailV2.cs +++ b/src/PSRule/Definitions/IResultDetailV2.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace PSRule.Definitions; diff --git a/src/PSRule/Definitions/IResultReasonV2.cs b/src/PSRule/Definitions/IResultReasonV2.cs index 2f0c29287e..db518222dc 100644 --- a/src/PSRule/Definitions/IResultReasonV2.cs +++ b/src/PSRule/Definitions/IResultReasonV2.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace PSRule.Definitions; diff --git a/src/PSRule/Definitions/ISpecDescriptor.cs b/src/PSRule/Definitions/ISpecDescriptor.cs index 1cfe30017c..f6c441063c 100644 --- a/src/PSRule/Definitions/ISpecDescriptor.cs +++ b/src/PSRule/Definitions/ISpecDescriptor.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using PSRule.Annotations; diff --git a/src/PSRule/Definitions/ISuppressionInfoComparer.cs b/src/PSRule/Definitions/ISuppressionInfoComparer.cs index 600138f2d9..f84ee4bd11 100644 --- a/src/PSRule/Definitions/ISuppressionInfoComparer.cs +++ b/src/PSRule/Definitions/ISuppressionInfoComparer.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace PSRule.Definitions; diff --git a/src/PSRule/Definitions/ModuleConfigs/ModuleConfigV1Spec.cs b/src/PSRule/Definitions/ModuleConfigs/ModuleConfigV1Spec.cs index 4103a9a5bd..9d9b05cadd 100644 --- a/src/PSRule/Definitions/ModuleConfigs/ModuleConfigV1Spec.cs +++ b/src/PSRule/Definitions/ModuleConfigs/ModuleConfigV1Spec.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using PSRule.Configuration; diff --git a/src/PSRule/Definitions/Resource.cs b/src/PSRule/Definitions/Resource.cs index 6bdfbbf124..f7c8f44f7c 100644 --- a/src/PSRule/Definitions/Resource.cs +++ b/src/PSRule/Definitions/Resource.cs @@ -2,7 +2,6 @@ // Licensed under the MIT License. using System.Diagnostics; -using System.Net.Http.Headers; using PSRule.Pipeline; using YamlDotNet.Serialization; diff --git a/src/PSRule/Definitions/Rules/IRuleSpec.cs b/src/PSRule/Definitions/Rules/IRuleSpec.cs index b46f544ade..a7775d8356 100644 --- a/src/PSRule/Definitions/Rules/IRuleSpec.cs +++ b/src/PSRule/Definitions/Rules/IRuleSpec.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using PSRule.Definitions.Expressions; diff --git a/src/PSRule/Definitions/Rules/RuleV1Spec.cs b/src/PSRule/Definitions/Rules/RuleV1Spec.cs index a288fa0981..6e8c949c08 100644 --- a/src/PSRule/Definitions/Rules/RuleV1Spec.cs +++ b/src/PSRule/Definitions/Rules/RuleV1Spec.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using PSRule.Definitions.Expressions; diff --git a/src/PSRule/Definitions/Rules/RuleVisitor.cs b/src/PSRule/Definitions/Rules/RuleVisitor.cs index 2b2e253c05..403e297fa9 100644 --- a/src/PSRule/Definitions/Rules/RuleVisitor.cs +++ b/src/PSRule/Definitions/Rules/RuleVisitor.cs @@ -4,7 +4,6 @@ using System.Diagnostics; using System.Management.Automation; using PSRule.Definitions.Expressions; -using PSRule.Pipeline; using PSRule.Resources; using PSRule.Runtime; diff --git a/src/PSRule/Definitions/Selectors/ISelector.cs b/src/PSRule/Definitions/Selectors/ISelector.cs index e2f362640d..616f173080 100644 --- a/src/PSRule/Definitions/Selectors/ISelector.cs +++ b/src/PSRule/Definitions/Selectors/ISelector.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace PSRule.Definitions.Selectors; diff --git a/src/PSRule/Definitions/Selectors/SelectorV1.cs b/src/PSRule/Definitions/Selectors/SelectorV1.cs index ccbea2f6b5..b2c884a4de 100644 --- a/src/PSRule/Definitions/Selectors/SelectorV1.cs +++ b/src/PSRule/Definitions/Selectors/SelectorV1.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using PSRule.Pipeline; diff --git a/src/PSRule/Definitions/SpecAttribute.cs b/src/PSRule/Definitions/SpecAttribute.cs index dec059e1d6..a815be79be 100644 --- a/src/PSRule/Definitions/SpecAttribute.cs +++ b/src/PSRule/Definitions/SpecAttribute.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace PSRule.Definitions; diff --git a/src/PSRule/Definitions/SuppressionGroups/ISuppressionGroupV1Spec.cs b/src/PSRule/Definitions/SuppressionGroups/ISuppressionGroupV1Spec.cs index 1e69df583e..d620ee5bd0 100644 --- a/src/PSRule/Definitions/SuppressionGroups/ISuppressionGroupV1Spec.cs +++ b/src/PSRule/Definitions/SuppressionGroups/ISuppressionGroupV1Spec.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using PSRule.Definitions.Expressions; diff --git a/src/PSRule/Definitions/SuppressionGroups/SuppressionGroupV1Spec.cs b/src/PSRule/Definitions/SuppressionGroups/SuppressionGroupV1Spec.cs index f539806a2d..4e7548d064 100644 --- a/src/PSRule/Definitions/SuppressionGroups/SuppressionGroupV1Spec.cs +++ b/src/PSRule/Definitions/SuppressionGroups/SuppressionGroupV1Spec.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using PSRule.Definitions.Expressions; diff --git a/src/PSRule/Definitions/SuppressionGroups/SuppressionGroupVisitor.cs b/src/PSRule/Definitions/SuppressionGroups/SuppressionGroupVisitor.cs index b294dd8ef0..5c0dbd13f5 100644 --- a/src/PSRule/Definitions/SuppressionGroups/SuppressionGroupVisitor.cs +++ b/src/PSRule/Definitions/SuppressionGroups/SuppressionGroupVisitor.cs @@ -2,7 +2,6 @@ // Licensed under the MIT License. using PSRule.Definitions.Expressions; -using PSRule.Pipeline; using PSRule.Resources; using PSRule.Runtime; diff --git a/src/PSRule/Help/FormatOptions.cs b/src/PSRule/Help/FormatOptions.cs index 87ed6b6ccf..0abb1f46a5 100644 --- a/src/PSRule/Help/FormatOptions.cs +++ b/src/PSRule/Help/FormatOptions.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace PSRule.Help; diff --git a/src/PSRule/Help/IHelpDocument.cs b/src/PSRule/Help/IHelpDocument.cs index 5d89c01990..58e5180a5c 100644 --- a/src/PSRule/Help/IHelpDocument.cs +++ b/src/PSRule/Help/IHelpDocument.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using PSRule.Definitions; diff --git a/src/PSRule/Help/Link.cs b/src/PSRule/Help/Link.cs index a2a4ccd9d8..eef4067b39 100644 --- a/src/PSRule/Help/Link.cs +++ b/src/PSRule/Help/Link.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace PSRule.Help; diff --git a/src/PSRule/Help/RuleDocument.cs b/src/PSRule/Help/RuleDocument.cs index b5b310a20e..d9a4681a53 100644 --- a/src/PSRule/Help/RuleDocument.cs +++ b/src/PSRule/Help/RuleDocument.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using PSRule.Definitions; diff --git a/src/PSRule/Help/TextBlock.cs b/src/PSRule/Help/TextBlock.cs index adfc56f43a..532f867c78 100644 --- a/src/PSRule/Help/TextBlock.cs +++ b/src/PSRule/Help/TextBlock.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace PSRule.Help; diff --git a/src/PSRule/Host/AssertVariable.cs b/src/PSRule/Host/AssertVariable.cs index 5602b92ac0..70a33c93a9 100644 --- a/src/PSRule/Host/AssertVariable.cs +++ b/src/PSRule/Host/AssertVariable.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.Management.Automation; diff --git a/src/PSRule/Host/PSRuleVariable.cs b/src/PSRule/Host/PSRuleVariable.cs index 5c40fc5379..2976a2807c 100644 --- a/src/PSRule/Host/PSRuleVariable.cs +++ b/src/PSRule/Host/PSRuleVariable.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.Management.Automation; diff --git a/src/PSRule/Host/RuleVariable.cs b/src/PSRule/Host/RuleVariable.cs index e0ae39a27c..7f6c103b61 100644 --- a/src/PSRule/Host/RuleVariable.cs +++ b/src/PSRule/Host/RuleVariable.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.Management.Automation; diff --git a/src/PSRule/PSRule.csproj b/src/PSRule/PSRule.csproj index f6768e9014..61396579a2 100644 --- a/src/PSRule/PSRule.csproj +++ b/src/PSRule/PSRule.csproj @@ -38,8 +38,8 @@ - - + + diff --git a/src/PSRule/Pipeline/ExecutionScope.cs b/src/PSRule/Pipeline/ExecutionScope.cs index 6e51f6afb3..67ceeaa872 100644 --- a/src/PSRule/Pipeline/ExecutionScope.cs +++ b/src/PSRule/Pipeline/ExecutionScope.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace PSRule.Pipeline; diff --git a/src/PSRule/Pipeline/GetTargetPipelineBuilder.cs b/src/PSRule/Pipeline/GetTargetPipelineBuilder.cs index 9692883336..5d5c92f483 100644 --- a/src/PSRule/Pipeline/GetTargetPipelineBuilder.cs +++ b/src/PSRule/Pipeline/GetTargetPipelineBuilder.cs @@ -2,7 +2,6 @@ // Licensed under the MIT License. using PSRule.Configuration; -using PSRule.Options; namespace PSRule.Pipeline; diff --git a/src/PSRule/Pipeline/HostContextExtensions.cs b/src/PSRule/Pipeline/HostContextExtensions.cs index fe1b27344f..0e695305e8 100644 --- a/src/PSRule/Pipeline/HostContextExtensions.cs +++ b/src/PSRule/Pipeline/HostContextExtensions.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.Management.Automation; diff --git a/src/PSRule/Pipeline/IGetPipelineBuilder.cs b/src/PSRule/Pipeline/IGetPipelineBuilder.cs index 832ba886ce..70d6202b3e 100644 --- a/src/PSRule/Pipeline/IGetPipelineBuilder.cs +++ b/src/PSRule/Pipeline/IGetPipelineBuilder.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace PSRule.Pipeline; diff --git a/src/PSRule/Pipeline/IGetTargetPipelineBuilder.cs b/src/PSRule/Pipeline/IGetTargetPipelineBuilder.cs index d895baa4af..aa1e6aa45e 100644 --- a/src/PSRule/Pipeline/IGetTargetPipelineBuilder.cs +++ b/src/PSRule/Pipeline/IGetTargetPipelineBuilder.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace PSRule.Pipeline; diff --git a/src/PSRule/Pipeline/IHelpPipelineBuilder.cs b/src/PSRule/Pipeline/IHelpPipelineBuilder.cs index f9904516a8..5584f1a517 100644 --- a/src/PSRule/Pipeline/IHelpPipelineBuilder.cs +++ b/src/PSRule/Pipeline/IHelpPipelineBuilder.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace PSRule.Pipeline; diff --git a/src/PSRule/Pipeline/IHostContext.cs b/src/PSRule/Pipeline/IHostContext.cs index 51619e7242..44997fc0e5 100644 --- a/src/PSRule/Pipeline/IHostContext.cs +++ b/src/PSRule/Pipeline/IHostContext.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.Management.Automation; diff --git a/src/PSRule/Pipeline/IInvokePipelineBuilder.cs b/src/PSRule/Pipeline/IInvokePipelineBuilder.cs index d5bf4a9b10..1b6553db2f 100644 --- a/src/PSRule/Pipeline/IInvokePipelineBuilder.cs +++ b/src/PSRule/Pipeline/IInvokePipelineBuilder.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace PSRule.Pipeline; diff --git a/src/PSRule/Pipeline/IPipelineResult.cs b/src/PSRule/Pipeline/IPipelineResult.cs index fe0ff10d9c..76b1a85487 100644 --- a/src/PSRule/Pipeline/IPipelineResult.cs +++ b/src/PSRule/Pipeline/IPipelineResult.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace PSRule.Pipeline; diff --git a/src/PSRule/Pipeline/ISourceCommandLineBuilder.cs b/src/PSRule/Pipeline/ISourceCommandLineBuilder.cs index a0d9c90fa3..13a26f4bc6 100644 --- a/src/PSRule/Pipeline/ISourceCommandLineBuilder.cs +++ b/src/PSRule/Pipeline/ISourceCommandLineBuilder.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace PSRule.Pipeline; diff --git a/src/PSRule/Pipeline/ISourcePipelineBuilder.cs b/src/PSRule/Pipeline/ISourcePipelineBuilder.cs index 065a7ad634..ebdee01c46 100644 --- a/src/PSRule/Pipeline/ISourcePipelineBuilder.cs +++ b/src/PSRule/Pipeline/ISourcePipelineBuilder.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.Management.Automation; diff --git a/src/PSRule/Pipeline/PSHostContext.cs b/src/PSRule/Pipeline/PSHostContext.cs index dbe931f8e9..d38859c328 100644 --- a/src/PSRule/Pipeline/PSHostContext.cs +++ b/src/PSRule/Pipeline/PSHostContext.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.Management.Automation; diff --git a/src/PSRule/Pipeline/Source.cs b/src/PSRule/Pipeline/Source.cs index 5d6b0fd913..ba21e9bf97 100644 --- a/src/PSRule/Pipeline/Source.cs +++ b/src/PSRule/Pipeline/Source.cs @@ -4,7 +4,6 @@ using System.Collections; using System.Management.Automation; using PSRule.Definitions; -using PSRule.Runtime; namespace PSRule.Pipeline; diff --git a/src/PSRule/Properties/AssemblyInfo.cs b/src/PSRule/Properties/AssemblyInfo.cs index 424e35fcb8..e6426a36eb 100644 --- a/src/PSRule/Properties/AssemblyInfo.cs +++ b/src/PSRule/Properties/AssemblyInfo.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.Runtime.CompilerServices; diff --git a/src/PSRule/Rules/ErrorInfo.cs b/src/PSRule/Rules/ErrorInfo.cs index 44c456ac5a..844c5b102f 100644 --- a/src/PSRule/Rules/ErrorInfo.cs +++ b/src/PSRule/Rules/ErrorInfo.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.Management.Automation; diff --git a/src/PSRule/Rules/PowerShellCondition.cs b/src/PSRule/Rules/PowerShellCondition.cs index bcf96ca91a..612ef55b98 100644 --- a/src/PSRule/Rules/PowerShellCondition.cs +++ b/src/PSRule/Rules/PowerShellCondition.cs @@ -4,7 +4,6 @@ using System.Collections.ObjectModel; using System.Management.Automation; using PSRule.Definitions; -using PSRule.Pipeline; namespace PSRule.Rules; diff --git a/src/PSRule/Rules/RuleBlock.cs b/src/PSRule/Rules/RuleBlock.cs index 0dc24a435d..22cbf088c5 100644 --- a/src/PSRule/Rules/RuleBlock.cs +++ b/src/PSRule/Rules/RuleBlock.cs @@ -6,7 +6,6 @@ using Newtonsoft.Json; using PSRule.Definitions; using PSRule.Definitions.Rules; -using PSRule.Pipeline; using PSRule.Runtime; using YamlDotNet.Serialization; diff --git a/src/PSRule/Runtime/NameToken.cs b/src/PSRule/Runtime/NameToken.cs index 2e06cc32c0..35acdadc19 100644 --- a/src/PSRule/Runtime/NameToken.cs +++ b/src/PSRule/Runtime/NameToken.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.Diagnostics; diff --git a/src/PSRule/Runtime/ObjectPath/IPathExpressionContext.cs b/src/PSRule/Runtime/ObjectPath/IPathExpressionContext.cs index fc754f726a..eb96efb2bf 100644 --- a/src/PSRule/Runtime/ObjectPath/IPathExpressionContext.cs +++ b/src/PSRule/Runtime/ObjectPath/IPathExpressionContext.cs @@ -1,10 +1,10 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace PSRule.Runtime.ObjectPath; /// -/// A context ojbect used using evaluating a path expression. +/// A context object used using evaluating a path expression. /// internal interface IPathExpressionContext { diff --git a/src/PSRule/Runtime/ObjectPath/PathExpressionContext.cs b/src/PSRule/Runtime/ObjectPath/PathExpressionContext.cs index dead15f9df..5a09235e06 100644 --- a/src/PSRule/Runtime/ObjectPath/PathExpressionContext.cs +++ b/src/PSRule/Runtime/ObjectPath/PathExpressionContext.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace PSRule.Runtime.ObjectPath; diff --git a/tests/PSRule.CommandLine.Tests/GlobalUsings.cs b/tests/PSRule.CommandLine.Tests/GlobalUsings.cs index 8c07c6cf4c..5f34b52a07 100644 --- a/tests/PSRule.CommandLine.Tests/GlobalUsings.cs +++ b/tests/PSRule.CommandLine.Tests/GlobalUsings.cs @@ -1,4 +1,3 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -global using Xunit; diff --git a/tests/PSRule.Tests/LanguageVisitorTests.cs b/tests/PSRule.Tests/LanguageVisitorTests.cs index 1928a5b3e6..751a8707bd 100644 --- a/tests/PSRule.Tests/LanguageVisitorTests.cs +++ b/tests/PSRule.Tests/LanguageVisitorTests.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.Management.Automation; diff --git a/tests/PSRule.Tests/ObjectPathTests.cs b/tests/PSRule.Tests/ObjectPathTests.cs index b549c02215..a15ff3bca3 100644 --- a/tests/PSRule.Tests/ObjectPathTests.cs +++ b/tests/PSRule.Tests/ObjectPathTests.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System; diff --git a/tests/PSRule.Tests/ResourceHelperTests.cs b/tests/PSRule.Tests/ResourceHelperTests.cs index 750aa1e56c..d23097f97a 100644 --- a/tests/PSRule.Tests/ResourceHelperTests.cs +++ b/tests/PSRule.Tests/ResourceHelperTests.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using PSRule.Definitions; diff --git a/tests/PSRule.Tests/SemanticBreakTests.cs b/tests/PSRule.Tests/SemanticBreakTests.cs index f600ba272e..62a1f8a7ce 100644 --- a/tests/PSRule.Tests/SemanticBreakTests.cs +++ b/tests/PSRule.Tests/SemanticBreakTests.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace PSRule; diff --git a/tests/PSRule.Tests/TestEnumValue.cs b/tests/PSRule.Tests/TestEnumValue.cs index fbdcfc8c68..fcea60d404 100644 --- a/tests/PSRule.Tests/TestEnumValue.cs +++ b/tests/PSRule.Tests/TestEnumValue.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace PSRule; diff --git a/tests/PSRule.Tests/TestResourceName.cs b/tests/PSRule.Tests/TestResourceName.cs index c03babcca6..b8415e9c51 100644 --- a/tests/PSRule.Tests/TestResourceName.cs +++ b/tests/PSRule.Tests/TestResourceName.cs @@ -3,7 +3,6 @@ using System; using PSRule.Definitions; -using PSRule.Pipeline; namespace PSRule;