fusesoc icon indicating copy to clipboard operation
fusesoc copied to clipboard

Fmt subcommand.

Open m-kru opened this issue 2 years ago • 1 comments

In my humble opinion it would be nice, if fusesoc could provide fmt command to format single .core file or all .core files under working directory if path to a file was not provided (fusesoc fmt /path/to/file.core or fusesoc fmt). People use different order of filesets, generate, parameters, targets, different indentation, different ordering rules. It only generates extra mess. I would like to be able to unify formatting of .core files in an uncompromising way.

This should be quite easy to implement if there is any data structure storing information about all possible keys, and value types.

m-kru avatar Apr 03 '22 06:04 m-kru

I think this makes sense. The first thing to do is probably to define a schema. I'm hoping to do some development in this side next year

olofk avatar Dec 18 '22 01:12 olofk