-
Notifications
You must be signed in to change notification settings - Fork 460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generating config based on existing styles #30
Comments
:) you can try! |
WIP |
A few words on detecting custom sort order. It may sound weird, but the task is similar to finding a De Bruijn sequence. |
I gave the idea of detecting custom sort order some thoughts. And came up with idea that I'm not capable of doing it right now. All the other options (well, almost all of them) can be easily detected and it would work ok with template file, but when it comes to sort order… As there are different cases for detection, only one of them can benefit from the detecting the sort order — generating the code style options for the project. Other two — normalize and using
|
This could be kinda a killer-feature.
We could add a possibility to use any given styles instead of setting the config manually.
There could be a lot of use cases for this, two of them:
You could have a file with a sample code that would be used as a template for your other files:
Would set all the config options to the ones were used in this example: space before opening brace, two spaces for indent, uppercase color, trailing semicolon, closing brace on the same level as properties etc.
We could “comb” the styles using the statistics got from all the available CSS files. This way it would be really easy to generate a config for any given project: the most used code style would become a template and all the minor inconsistencies then would be combed down.
The text was updated successfully, but these errors were encountered: