-
Notifications
You must be signed in to change notification settings - Fork 407
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
Fixed case on file names, and applied a new rules from script analyzer #590
Conversation
Did the new PSSA catch the casing? |
No, it didn't. I installled the module in cloud-shell and 3 or 4 files were not found. All the changes outside the PSM1 came from PSSA. I've left a couple of the things it doesn't like for now. Your |
Might be a useful report to run on commits$xlfile = "$env:TEMP\ScriptAnalyzer.xlsx"
Remove-Item $xlfile -ErrorAction SilentlyContinue
$p = @{
AutoSize = $true
AutoFilter = $true
Show = $true
IncludePivotTable = $true
IncludePivotChart = $true
Activate = $true
PivotRows = 'Severity', 'RuleName'
PivotData = @{RuleName = 'Count' }
ChartType = 'BarClustered'
}
Invoke-ScriptAnalyzer . | Export-Excel $xlfile @p BeforeAfter |
@dfinke Genius ! The highest praise I can offer it is to put it straight into my presentation for later ... plagiarism is the highest form of flattery :-) |
Need to find a different word :-)You don't do that! Please amplify. Probably will tweet this. Plagiarism is the "wrongful appropriation" and "stealing and publication" of another author's "language, thoughts, ideas, or expressions" and the representation of them as one's own original work. |
Research(see Tom Lehrer) |
@dfinke I've checked in an example named analyze-this.ps1
|
Thanks! Was going to ask. I'll check in the the other too. |
Hmm. Don't see it. |
Very little functional change - remove-worksheet supports -confirm, and I changed 3 or 4 instances of ::new() to new-object because that will work with PS 4 (we don't expressly want to support 4, but at the same time there's no sense in breaking 4 if we don't need to)
I've made some changes to either bring the code into line with PSScriptAnalyzer 1.18 guidlines or to tell it where it doesn't need to worry.
Also fixed a test which didn't work in the appveryor environment.