Skip to content

Fixed issue with CodeFormatter script not calling out all the rules#688

Merged
dpaulson45 merged 24 commits into
mainfrom
dpaul-CodeFormatterFix
Aug 9, 2021
Merged

Fixed issue with CodeFormatter script not calling out all the rules#688
dpaulson45 merged 24 commits into
mainfrom
dpaul-CodeFormatterFix

Conversation

@dpaulson45
Copy link
Copy Markdown
Member

Removed the IncludeRules section of the PSScriptAnalyzerSettings.psd1 file and addressed all the rules that were now being flagged for all the scripts

Resolved #682

dpaulson45 and others added 21 commits August 9, 2021 10:52
By having this defined, we override the value `IncludeDefaultRules = $true`
No need to have the functions in Shared till they are used by other scripts.
placing into a process/end block didn't help
To allow the branch to be merged in.

Follow updates in #687
Comment thread .build/CodeFormatter.ps1 Outdated
bill-long
bill-long previously approved these changes Aug 9, 2021
@bill-long bill-long force-pushed the dpaul-CodeFormatterFix branch from 8d3ce03 to deb6495 Compare August 9, 2021 19:28
@dpaulson45 dpaulson45 requested a review from bill-long August 9, 2021 19:33
@dpaulson45 dpaulson45 merged commit 1f3dfcc into main Aug 9, 2021
@dpaulson45 dpaulson45 deleted the dpaul-CodeFormatterFix branch August 9, 2021 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Issue] Invoke-ScriptAnalyzer isn't catching all the rules like it use to

2 participants