Skip to content
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

EDN file for project-wide configuration? #41

Closed
sgrove opened this issue Jun 26, 2015 · 2 comments
Closed

EDN file for project-wide configuration? #41

sgrove opened this issue Jun 26, 2015 · 2 comments

Comments

@sgrove
Copy link

sgrove commented Jun 26, 2015

I'd love to be able to add a .cljfmt.edn file to my projects, specifying various forms of let alignment (e.g. #36 ) or strict whitespace removal (e.g. #39), and have all of the contributors format their PR's automatically so everything lines up nicely with the project's style guidelines (also, upon style changes, there's a single place to update and the entire codebase can be reformatted).

Actually, I'd enjoy this even more when contributing to other projects, as right now I have tons of issues with aggressive-indent-mode and whitespace problems, and end up having to link to the whitespace-disabled comparison view for PR's.

I'd like to be very aggressive about it (for my own personal/work projects), such that every character is placed according to format rules. Happy to write the rules once and then never deal with whitespace merges again.

@weavejester
Copy link
Owner

I'm not sure I understand the purpose of this suggestion. If you're using lein-cljfmt, then you can already configure it via the project file. If you're using cljfmt straight, then you can configure it via an argument.

@sgrove
Copy link
Author

sgrove commented Jun 26, 2015

Yes, that's fair, I slightly misunderstood the project.clj formatting option. Everything else is just more features for controlling the formatting. Sorry about that - closing this.

@sgrove sgrove closed this as completed Jun 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants