summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2012-08-06 19:49:43 +0200
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2012-08-06 19:52:09 +0200
commitaec71f93cbcb13a3765b16209871769153af11e2 (patch)
treea89cc04676f9725a03a2311068f64e0d97935001 /src
parent1b9f2a59812036c66c6c50f9da0913fada30db6c (diff)
Clean up specs
Diffstat (limited to 'src')
-rw-r--r--src/rebar_asn1_compiler.erl4
-rw-r--r--src/rebar_erlc_compiler.erl2
-rw-r--r--src/rebar_file_utils.erl6
3 files changed, 6 insertions, 6 deletions
diff --git a/src/rebar_asn1_compiler.erl b/src/rebar_asn1_compiler.erl
index 40129c9..d93a2e8 100644
--- a/src/rebar_asn1_compiler.erl
+++ b/src/rebar_asn1_compiler.erl
@@ -36,13 +36,13 @@
%% Public API
%% ===================================================================
--spec compile(Config::rebar_config:config(), AppFile::file:filename()) -> 'ok'.
+-spec compile(rebar_config:config(), file:filename()) -> 'ok'.
compile(Config, _AppFile) ->
rebar_base_compiler:run(Config, filelib:wildcard("asn1/*.asn1"),
"asn1", ".asn1", "src", ".erl",
fun compile_asn1/3).
--spec clean(Config::rebar_config:config(), AppFile::file:filename()) -> 'ok'.
+-spec clean(rebar_config:config(), file:filename()) -> 'ok'.
clean(_Config, _AppFile) ->
GeneratedFiles = asn_generated_files("asn1", "src", "include"),
ok = rebar_file_utils:delete_each(GeneratedFiles),
diff --git a/src/rebar_erlc_compiler.erl b/src/rebar_erlc_compiler.erl
index 982c9ee..7123395 100644
--- a/src/rebar_erlc_compiler.erl
+++ b/src/rebar_erlc_compiler.erl
@@ -68,7 +68,7 @@
%% 'old_inets'}]}.
%%
--spec compile(Config::rebar_config:config(), AppFile::file:filename()) -> 'ok'.
+-spec compile(rebar_config:config(), file:filename()) -> 'ok'.
compile(Config, _AppFile) ->
rebar_base_compiler:run(Config,
check_files(rebar_config:get_local(
diff --git a/src/rebar_file_utils.erl b/src/rebar_file_utils.erl
index d9e295c..a3d9b58 100644
--- a/src/rebar_file_utils.erl
+++ b/src/rebar_file_utils.erl
@@ -39,7 +39,7 @@
%% @doc Remove files and directories.
%% Target is a single filename, directoryname or wildcard expression.
--spec rm_rf(Target::string()) -> ok.
+-spec rm_rf(string()) -> 'ok'.
rm_rf(Target) ->
case os:type() of
{unix, _} ->
@@ -56,7 +56,7 @@ rm_rf(Target) ->
ok
end.
--spec cp_r(Sources::list(string()), Dest::file:filename()) -> ok.
+-spec cp_r(list(string()), file:filename()) -> 'ok'.
cp_r([], _Dest) ->
ok;
cp_r(Sources, Dest) ->
@@ -73,7 +73,7 @@ cp_r(Sources, Dest) ->
ok
end.
--spec mv(Source::string(), Dest::file:filename()) -> ok.
+-spec mv(string(), file:filename()) -> 'ok'.
mv(Source, Dest) ->
case os:type() of
{unix, _} ->