-
Notifications
You must be signed in to change notification settings - Fork 87
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
read rebar.config elvis section if exists #307
Comments
I think they are different tools which can exist independently so elvis should not look at |
Oh on the host side I fully agree, already exists ;) did that. What I'm thinking about is the hosted elvis that is offered where the programmer has no control over how it is fetched. |
@Licenser you mean the service at elvis.inakalabs.com ? It already reads the elvis.config file from your repo, if you push it. Why do you think it should check the rebar.config as well? |
Mostly convenience, the canonical way of rebar is to combine the configurations of all plugins/tasks into the rebar.config file. so the elvis plugin for rebar uses the rebar.config file for the configuration. That can be argued good or bad, I can see valid arguments for both sides, but it seems to be the standard way. |
I think the consistent behavior would be that Making an "elvis" plug-in for rebar sounds like a nice idea. |
@waisbrot that plugin exists https://github.com/project-fifo/rebar3_lint and that works as you described (since it feels like the 'right' way for a plugin). The issue here (quite literally ;) is that this makes the hosted elvis service incompatible. Or rather it makes the plugin incompatible with the service. While the incompatibility clearly comes from my plugin, my take is that having a consistent workflow for developers is important so it feels 'better' to adjust the service to read the config then to make the plugin read an extra config. That said I totally understand if the change like that is not in inaka's interest, it's a free service and I'm grateful for it one way or another. |
Basically there are a few options:
PS: I'm happy to PR this if it's wanted. |
@Licenser even if you want to send a PR you'll probably not be able to get it to the hosted server, mostly because the hosted service code lives in a private repo. |
Sounds wonderful, I totally get that it's not a priority as it has no extra value to inaka in itself, so I'm happy to do as much of the work as possible :) |
@Licenser This was fixed on inaka/elvis_core#33, can you give it a try and let us know if you need something else :) |
It would be great if elvis would look at the
rebar.confg
elvis section if no elvis.config existed. :)The text was updated successfully, but these errors were encountered: