PowerShell / PSScriptAnalyzer

Download ScriptAnalyzer from PowerShellGallery
https://www.powershellgallery.com/packages/PSScriptAnalyzer/
MIT License
1.8k stars 365 forks source link

Support EditorConfig format settings #1898

Open ThomasNieto opened 1 year ago

ThomasNieto commented 1 year ago

Summary of the new feature

It would be nice if PSSA could be able to leverage format settings inside a .editorconfig file so settings don't have to duplicated across multiple files.

https://editorconfig.org/

Proposed technical implementation details (optional)

When PSSA is called and .editorconfig is in the PWD then leverage that file to fill in formatting settings if not already set in a PSSASettings file. A switch parameter could be used to also not leverage .editorconfig files.

What is the latest version of PSScriptAnalyzer at the point of writing

1.21