omarkj
cd2f72d2aa
Transform silent_connections well and parse
verbosity. Verbosity can be a integer but I am
parsing it as a term. This will work for integers
as well as terms.
пре 10 година
omarkj
a93723189f
Correctly parse create_priv_dir.
пре 10 година
omarkj
b0a48436bf
Return errors when tests fail.
пре 10 година
omarkj
94e474e471
Validate the input as it comes in from the
command line by converting things to atoms and
splitting up strings where needed.
пре 10 година
Tristan Sloughter
414621fb82
move rebar.hrl to src to keep private, not for use in plugins
пре 10 година
Fred Hebert
45ac9eb94d
Drop search for templates in cwd
Templates should only be in ~/.rebar3/templates and the built-in ones,
bar some specific overrides someone may want.
Looking recursively for templates in the CWD (.) may end up searching
nearly forever if the project is being created at the top of a very deep
directory tree, with extremely unlikely chances to find relevant
templates.
It causes more problems than benefits.
пре 10 година
Tristan Sloughter
6ec98e0b69
rename functions to be clearer
пре 10 година
Tristan Sloughter
4ea12beb77
fix git resource update check, bad url comparison
пре 10 година
Tristan Sloughter
4888810c69
use digraph topo sort for building
пре 10 година
Tristan Sloughter
eb5c0eb424
include initial verticies in solution list
пре 10 година
Tristan Sloughter
3e01e3e46d
replace rlx_depsolver types with new package types
пре 10 година
Tristan Sloughter
af35d5f0a2
replace rlx_depsolver use with new rebar_digraph
пре 10 година
Tristan Sloughter
f22db1302d
new dep graph working
пре 10 година
Tristan Sloughter
e9b58f2775
set REBAR_DEPS_DIR in hooks env and run pre_compile hooks before deps compile
пре 10 година
Tristan Sloughter
6c0b3f87c0
fix check for plugin being a provider
пре 10 година
James Fish
e90219cb14
Fix printing of dialyzer warnings
Fixes cases where dialyzer warning might include a `~` causing printing
to console to fail with `badarg`.
пре 10 година
James Fish
0bcec763ba
Fix dialyzer to work on rebar
code:lib_dir/1,2 can return archive directory for rebar escript archive
applications, rather than the application's directory in the project.
Add dependencies not listed in `applications` to `dialyzer_plt_apps`.
пре 10 година
James Fish
4ee0157b96
Add configuration to hide warnings when updating plt
пре 10 година
James Fish
16c9a23212
Cleanup dialyzer provider
пре 10 година
James Fish
c948769512
Add crypto to base plt by default
пре 10 година
James Fish
3dff706e14
Clarify how apps are selected for the plt files
пре 10 година
James Fish
37a88be662
Introduce dialyzer otp versioned plts and base plts
Adds a base plt per OTP version that is stored in $HOME/.rebar3/. The
base plt is copied to new projects that don't have a plt for the active
OTP version. Modules are added/removed to the project's copy based on
the project's .app files.
пре 10 година
James Fish
642a71e4ce
Prepare dialyzer command for public use
* Add description
* Make configuration constitent (prefix with dialyzer_)
* Make printed info consistent
пре 10 година
James Fish
16da6d2630
Add options to skip updating plt or success typing
* --update-plt=true|false (false skips updating plt)
* --succ-typings=true|false (false skips success typing analysis)
пре 10 година
James Fish
a96fddfcde
Improve default dialyzer PLT by trying to guess dependencies
Try to automatically detect all application dependencies when `plt_apps`
is not included in `rebar.config`.
Note that this will not follow `runtime_dependencies` in OTP
applications. This can be resolved by adding any missing
`runtime_dependencies` to `applications` in the .app.src file or
including `plt_apps` in `rebar.config`.
пре 10 година
James Fish
16b2dae066
Improve formatting of dialyzer errors
Strip ":0: " from unknown type/function/behaviour warnings
пре 10 година
James Fish
62e7cc27da
Refactor dialyzer PLT use
* Only include `plt_apps` (defaults to deps) in a single PLT
* Update PLT when `plt_apps` (or deps) are changed or updated
* Print warnings for all dialyzer runs (not just `succ_typings`)
пре 10 година
James Fish
03b07c3d39
Fix default dialyzer warnings
* Nolonger supress standard warnings
* Nolonger include race_conditions by default[1]
[1] http://erlang.org/pipermail/erlang-bugs/2014-July/004518.html
пре 10 година
Tristan Sloughter
fb630d18ea
add included applications to app_info applications element
пре 10 година
Tristan Sloughter
293c1b8e6e
add applications field to app_info to track all deps of an application
пре 10 година
Tristan Sloughter
71de52cb9d
fix callback r14 support
пре 10 година
Tristan Sloughter
8635beffc1
catch error on multiplpe app files in an app dir
пре 10 година
Tristan Sloughter
1d5703025c
fix default release output dir to _rel
пре 10 година
Tristan Sloughter
926e550f3b
update package index fetching
пре 10 година
Tristan Sloughter
4c8db4e047
write packages file to tmp so a lost connection doesn't mean corruption
пре 10 година
Fred Hebert
731c3fd8a4
Minor template fixes
- The OTP app template now adds the supevisor
- The default apps_dir value does not contain the trailing '/' that the
template index already added.
пре 10 година
Tristan Sloughter
33e4b7e017
add cleanup_code_path back to rebar_utils for eunit provider
пре 10 година
Tristan Sloughter
6cae428058
use CONFIG_DIR of rebar3 for config directories
пре 10 година
Fred Hebert
392abf1481
First unkeyed var is now 'name', appid -> name
The first variable can be unkeyed and the provider will sub in the
variable name 'name'. Additionally, the built-in templates and
documentation have been updated so that 'appid' is now 'name' and the
alternative commands are shown.
пре 10 година
Fred Hebert
4ed1c4ef58
Allow to forcibly overwrite files with templates
пре 10 година
Fred Hebert
c832b567db
Redo templates with docs and whatnot
This totally breaks compatibility with rebar2, and maybe it shouldn't
have.
пре 10 година
Tristan Sloughter
79b1f23240
move back to using format_error/1
пре 10 година
Tristan Sloughter
8d02c0767e
add deps plt
пре 10 година
Tristan Sloughter
1548d6f1e2
strip newline from end of dialyzer format warnings
пре 10 година
Tristan Sloughter
8277bbf975
add dialyzer provider
пре 10 година
Tristan Sloughter
77ae749326
update package update provider
пре 10 година
Tristan Sloughter
26192b2187
pass deps dir of project to relx
пре 10 година
Tristan Sloughter
bcb3689654
main module cleanup
пре 10 година
Tristan Sloughter
f1ca7950c3
fix warning/error compilation output
пре 10 година
Tristan Sloughter
0608e5087b
prepend base_dir when expanding code path
пре 10 година