Closed lucaswerkmeister closed 10 years ago
I actually kinda like the idea of adding a [formatter]
section to the config
file. The Ceylon config file format is a bit more permissive than my current format (spacing, comments after options), but that should be no problem.
Two potential problems:
[formatter]
is very generic. The IntelliJ IDE people are, it seems, writing their own version of a formatter. We should try to sync the options anyways, but a [formatter]
section in the config file would force us to do this. (Which might be a good thing – consistent formatting across two IDEs and a command line tool with only one config file sounds great to me.)@gavinking what do you think? Can I put this into the config
file, or should I have a file just for the formatter? (I’d like to settle this before the 1.0.0 release, if possible.)
It's fine by me. I simply don't have a strong opinion.
I’m glad you say that, since I was bored on saturday and already implemented it :)
I think it would make sense to read a default configuration file from the
.ceylon
directory. Open questions:.ceylon
directory? Only in the current directory, or upwards as well?config
file (which currently contains the encoding), adapt format (git config
-like – maybe under a[formatter]
or[ceylon.formatter]
section?)formatter.config
ceylon.formatter.config
ceylon.formatter.options