Boeing / config-file-validator

Cross Platform tool to validate configuration files
https://boeing.github.io/config-file-validator/
Apache License 2.0
348 stars 71 forks source link

Add functionality to auto-format or enforce formatting rules for config files #159

Open kehoecj opened 3 months ago

kehoecj commented 3 months ago

Requested by a user here

21Average commented 1 month ago

I’m interested in collaborating on this if you haven’t begun yet. I prefer add a -format flag, Here’s my proposed approach:

  1. add a -format flag.
  2. Create a new package called Formatter.
  3. Modify the Run function in cli.go to format files after they’ve been validated (only formatting validated files).

Should we modify the existing files, or would it be better to create new ones?

kehoecj commented 1 month ago

@21Average It's yours to work on if you'd like. I think your approach makes sense. Please do an initial config type (XML, JSON, YAML, whichever) then put it up for an initial MR review

kehoecj commented 3 weeks ago

@21Average Haven't seen a PR in 3 weeks so I'm unassigning you so someone else can pick it up before hacktoberfest is over