Received several warnings, but at the end didn't finish successfully:
$ mix deps.get
New:
dogma 0.1.16
* Getting dogma (Hex package)
$mix escript.build
==> dogma
Compiling 59 files (.ex)
warning: "not expr1 in expr2" is deprecated. Instead use "expr1 not in expr2" if you require Elixir v1.5+, or "not(expr1 in expr2)" if you have to support earlier Elixir versions
lib/dogma/rule/infix_operator_padding.ex:129
warning: "not expr1 in expr2" is deprecated. Instead use "expr1 not in expr2" if you require Elixir v1.5+, or "not(expr1 in expr2)" if you have to support earlier Elixir versions
lib/dogma/rule/infix_operator_padding.ex:139
warning: the GenEvent module is deprecated, see its documentation for alternatives
lib/dogma/reporter/json.ex:37: Dogma.Reporter.JSON (module)
warning: the GenEvent module is deprecated, see its documentation for alternatives
lib/dogma/reporter/flycheck.ex:11: Dogma.Reporter.Flycheck (module)
warning: trailing commas are not allowed inside function/macro call arguments
lib/dogma/config.ex:8
warning: the GenEvent module is deprecated, see its documentation for alternatives
lib/dogma/reporter/simple.ex:18: Dogma.Reporter.Simple (module)
warning: Code.get_docs/2 is deprecated. Code.get_docs/2 always returns nil as its outdated documentation is no longer stored on BEAM files. Use Code.fetch_docs/1 instead
Found at 2 locations:
lib/dogma/documentation/reporters_list.ex:57
lib/dogma/documentation/rules_list.ex:50
warning: GenEvent.__using__/1 is deprecated. Use one of the alternatives described in the documentation for the GenEvent module
Found at 3 locations:
lib/dogma/reporter/flycheck.ex:11
lib/dogma/reporter/json.ex:37
lib/dogma/reporter/simple.ex:18
warning: GenEvent.add_handler/3 is deprecated. Use one of the alternatives described in the documentation for the GenEvent module
lib/mix/tasks/dogma.ex:22
warning: GenEvent.start_link/1 is deprecated. Use one of the alternatives described in the documentation for the GenEvent module
lib/mix/tasks/dogma.ex:21
warning: GenEvent.sync_notify/2 is deprecated. Use one of the alternatives described in the documentation for the GenEvent module
Found at 3 locations:
lib/dogma.ex:32
lib/dogma.ex:37
lib/dogma/rules.ex:22
warning: String.strip/1 is deprecated. Use String.trim/1 instead
lib/dogma/rule/multiple_blank_lines.ex:14
warning: String.to_char_list/1 is deprecated. Use String.to_charlist/1 instead
lib/dogma/script.ex:102
Generated dogma app
==> my_app
Compiling 9 files (.ex)
Generated my_app app
** (Mix) Could not generate escript, please set :main_module in your project configuration (under :escript option) to a module that implements main/1
By adding config/dogma.exs helped partially, but still:
Received several warnings, but at the end didn't finish successfully:
By adding
config/dogma.exs
helped partially, but still: