Skip to content

Give profile alias configuration and provide some sample configurations #369

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 24, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Engine/Commands/InvokeScriptAnalyzerCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ public SwitchParameter SuppressedOnly
/// <summary>
/// Returns path to the file that contains user profile for ScriptAnalyzer
/// </summary>
[Alias("Configuration")]
[Parameter(Mandatory = false)]
[ValidateNotNull]
public string Profile
Expand Down
10 changes: 10 additions & 0 deletions Engine/Configurations/CmdletDesign.psd1
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@{
IncludeRules=@('PSUseApprovedVerbs',
'PSReservedCmdletChar',
'PSReservedParams',
'PSShouldProcess',
'PSUseShouldProcessForStateChangingFunctions',
'PSUseSingularNouns',
'PSMissingModuleManifestField',
'PSAvoidDefaultValueSwitchParameter')
}
3 changes: 3 additions & 0 deletions Engine/Configurations/DSC.psd1
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@{
IncludeRules=@('PSDSC*')
}
11 changes: 11 additions & 0 deletions Engine/Configurations/ScriptFunctions.psd1
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@{
IncludeRules=@('PSAvoidUsingCmdletAliases',
'PSAvoidUsingWMICmdlet',
'PSAvoidUsingEmptyCatchBlock',
'PSUseCmdletCorrectly',
'PSUseShouldProcessForStateChangingFunctions',
'PSAvoidUsingPositionalParameters',
'PSAvoidGlobalVars',
'PSUseDeclaredVarsMoreThanAssignments',
'PSAvoidUsingInvokeExpression')
}
8 changes: 8 additions & 0 deletions Engine/Configurations/ScriptSecurity.psd1
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@{
IncludeRules=@('PSAvoidUsingPlainTextForPassword',
'PSAvoidUsingComputerNameHardcoded',
'PSAvoidUsingConvertToSecureStringWithPlainText',
'PSUsePSCredentialType',
'PSAvoidUsingUserNameAndPasswordParams',
'PSAvoidUsingFilePath')
}
4 changes: 4 additions & 0 deletions Engine/Configurations/ScriptingStyle.psd1
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@{
IncludeRules=@('PSProvideCommentHelp',
'PSAvoidUsingWriteHost')
}
2 changes: 2 additions & 0 deletions Engine/ScriptAnalyzerEngine.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@
<PostBuildEvent>mkdir "$(SolutionDir)$(SolutionName)"
copy /y "$(ProjectDir)\*.ps1xml" "$(SolutionDir)$(SolutionName)"
copy /y "$(ProjectDir)\*.psd1" "$(SolutionDir)$(SolutionName)"
mkdir "$(SolutionDir)$(SolutionName)\Configurations"
copy /y "$(ProjectDir)\Configurations\*.psd1" "$(SolutionDir)$(SolutionName)\Configurations"
copy /y "$(TargetPath)" "$(SolutionDir)$(SolutionName)"
mkdir "$(SolutionDir)$(SolutionName)\en-US"
copy /y "$(ProjectDir)\about_*.help.txt" "$(SolutionDir)$(SolutionName)\en-US"</PostBuildEvent>
Expand Down