Badgerati / Fudge

Fudge is a PowerShell tool to help manage software packages via Chocolatey for specific development projects. Think NPM and Bower, but for Chocolatey
MIT License
21 stars 3 forks source link

Fudgefile.psd1 support #70

Open jayvdb opened 5 years ago

jayvdb commented 5 years ago

Continuing from https://github.com/Badgerati/Fudge/issues/59

.psd1 support would have lots of advantages. It doesnt need to replace the Fudgefile[.json] support. It should be additional, for people who have needs which make simple json undesirable. This also avoids backwards compatibility issues.

Re the "trailing comma" problem mentioned in issue #59, I see them used a lot, e.g.

https://github.com/PowerShell/PSScriptAnalyzer/blob/master/Engine/Settings/CodeFormattingOTBS.psd1

I hope it isnt a standard linting rule that they should be added.

Also another possible negative is that lint rules for PS typically require alignment of '=', which means adding a new property with a longer length means that other lines need to be adjusted to insert more whitespace. Whitespace additions are not nearly as bad, as git includes options to ignore whitespace changes, even when tracing through the blame history.

The reason why linting rules are relevant is the standard linter doesnt have good ability to ignore some files. https://github.com/PowerShell/PSScriptAnalyzer/issues/1230