elvis_core
elvis_core copied to clipboard
The core of an Erlang linter
## Bug Description [//]:# (A clear and concise description of what the bug is.) Elvis is currently not categorising type elements inside a callback node as types. Discovered this while...
In my crusade of killing all duplicated code for color printing on the console I'd wanted to offer the suggestion of using http://github.com/project-fifo/cf this. It includes a io:format like syntax...
Take [an example from MongooseIM (actually a legacy leftover from ejabberd)](https://github.com/esl/MongooseIM/blob/4211e4ca6e11d60cccfc0da16f08ba0c0d8e4a94/apps/ejabberd/src/mod_muc_room.erl#L2225-L2281) - this _inline fun_ is 55 lines long! This leads to the following issues: - the fun code has...
When possible, add code suggestions to the warnings. As an example, Instead of… > - macro_names > - Invalid macro name the_macro on line 11. Use UPPER_CASE. …say… > -...
`elvis:rock/*` seem to include all the printing code as well as the checking code. It could be helpful to separate this out in two step that way the output form...
I use macroses to hide internal exception data structure. I have .hrl file like ``` -define(MATCH_MY_ERROR, {my_error, _, _}). -define(MATCH_MY_ERROR(ErrorTag), {my_error, ErrorTag, _}). ``` And inside my code I use...
Could we 1. load file & apply rules (then repeat with next file) per-file thus breaking the current "load all files & then apply rules" 2. make sure to not...
It'd be great if Elvis could be configured to ignore files matching entries in a .gitignore file. This would be useful to ignore auto-generated files without having to duplicate the...
Hi there, I have tried to search previous issues but I cannot find this mentioned, correct me if I'm wrong. I have been playing with an idea in my head...
Sometimes people are lazy or are very tired and write code like this: ``` maps:from_list([ {, [0, 1, 2]}, {, [0, 3]} ]), ``` Elvis could detect conversion to and...