-
Notifications
You must be signed in to change notification settings - Fork 18
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
rebar3_lint running on umbrella project #26
Comments
Quick reply (just from looking at the top of the message): did you try |
Hello, thanks for the quick reply. I tried and it didn't work.
Then, running
|
This is |
This is how we're finding files -spec find_files([string()], string()) -> [file()].
find_files(Dirs, Pattern) ->
Fun = fun(Dir) ->
filelib:wildcard(filename:join(Dir, Pattern))
end,
[#{path => Path} || Path <- lists:usort(lists:flatmap(Fun, Dirs))]. Might be a bug there, lemme check closer. |
As a potential workaround can you try |
What does the following return (if you can share) when you do (fun (Dirs, Pattern) -> Fun = fun(Dir) -> filelib:wildcard(filename:join(Dir, Pattern)) end, [#{path => Path} || Path <- lists:usort(lists:flatmap(Fun, Dirs))] end(["src/**"], "*.erl")). |
Hm... fun stuff. I just create a template umbrella, and doing the previous with "apps/*/src/**" I get [#{path => "apps/myapp/src/myapp_app.erl"},
#{path => "apps/myapp/src/myapp_sup.erl"}] as expected, so I'm probably looking in the wrong place. |
Yes, it is master.
That works. But it is too wide and all files from _build are going to be linted.
In the rebar.config file, I've added the rebar3_lint like this:
|
Side note: if you always want to get |
Still looking at it, but I think this is the changed that messed the results up: inaka/elvis_core@cf8f4f0. |
@joaohf, I'm transferring this issue over to https://github.com/inaka/elvis_core/, because that's where the fix should take place. |
Hi there!
I'm trying to use rebar3_lint in a umbrella project. I'm using rebar3_lint 0.3.2.
The following elvis.config seems to not work because elvis is not able to find any erl file:
On the other hand, the following elvis.config works. But that is not what I would like to do:
Am I missing some configuration here ? Could you try running rebar3_lint in a umbrella project ?
Thanks.
The text was updated successfully, but these errors were encountered: