Kaynağa Gözat

Fix whitespace errors

pull/3/head
Tuncer Ayaz 13 yıl önce
ebeveyn
işleme
2cae2950c4
3 değiştirilmiş dosya ile 20 ekleme ve 20 silme
  1. +1
    -1
      src/rebar_erlydtl_compiler.erl
  2. +10
    -10
      src/rebar_lfe_compiler.erl
  3. +9
    -9
      src/rebar_neotoma_compiler.erl

+ 1
- 1
src/rebar_erlydtl_compiler.erl Dosyayı Görüntüle

@ -157,7 +157,7 @@ needs_compile(Source, Target, Config) ->
referenced_dtls(Source, Config) -> referenced_dtls(Source, Config) ->
Set = referenced_dtls1([Source], Config, Set = referenced_dtls1([Source], Config,
sets:add_element(Source, sets:new())),
sets:add_element(Source, sets:new())),
sets:to_list(sets:del_element(Source, Set)). sets:to_list(sets:del_element(Source, Set)).
referenced_dtls1(Step, Config, Seen) -> referenced_dtls1(Step, Config, Seen) ->

+ 10
- 10
src/rebar_lfe_compiler.erl Dosyayı Görüntüle

@ -49,16 +49,16 @@ compile_lfe(Source, _Target, Config) ->
case code:which(lfe_comp) of case code:which(lfe_comp) of
non_existing -> non_existing ->
?ERROR(<< ?ERROR(<<
"~n"
"*** MISSING LFE COMPILER ***~n"
" You must do one of the following:~n"
" a) Install LFE globally in your erl libs~n"
" b) Add LFE as a dep for your project, eg:~n"
" {lfe, \"0.6.1\",~n"
" {git, \"git://github.com/rvirding/lfe\",~n"
" {tag, \"v0.6.1\"}}}~n"
"~n"
>>, []),
"~n"
"*** MISSING LFE COMPILER ***~n"
" You must do one of the following:~n"
" a) Install LFE globally in your erl libs~n"
" b) Add LFE as a dep for your project, eg:~n"
" {lfe, \"0.6.1\",~n"
" {git, \"git://github.com/rvirding/lfe\",~n"
" {tag, \"v0.6.1\"}}}~n"
"~n"
>>, []),
?FAIL; ?FAIL;
_ -> _ ->
Opts = [{i, "include"}, {outdir, "ebin"}, report] Opts = [{i, "include"}, {outdir, "ebin"}, report]

+ 9
- 9
src/rebar_neotoma_compiler.erl Dosyayı Görüntüle

@ -49,22 +49,22 @@
%% ============================================================================ %% ============================================================================
compile(Config, _AppFile) -> compile(Config, _AppFile) ->
NeoOpts = neotoma_opts(Config),
rebar_base_compiler:run(Config, [],
option(doc_root, NeoOpts), ".peg",
option(out_dir, NeoOpts),
option(module_ext, NeoOpts) ++ ".beam",
fun compile_neo/3, [{check_last_mod,false}]).
NeoOpts = neotoma_opts(Config),
rebar_base_compiler:run(Config, [],
option(doc_root, NeoOpts), ".peg",
option(out_dir, NeoOpts),
option(module_ext, NeoOpts) ++ ".beam",
fun compile_neo/3, [{check_last_mod,false}]).
%% ============================================================================ %% ============================================================================
%% Public API %% Public API
%% ============================================================================ %% ============================================================================
neotoma_opts(Config) -> neotoma_opts(Config) ->
rebar_config:get(Config, neotoma_opts, []).
rebar_config:get(Config, neotoma_opts, []).
option(Opt, Options) -> option(Opt, Options) ->
proplists:get_value(Opt, Options, default(Opt)).
proplists:get_value(Opt, Options, default(Opt)).
default(doc_root) -> "src"; default(doc_root) -> "src";
default(out_dir) -> "src"; default(out_dir) -> "src";
@ -116,7 +116,7 @@ needs_compile(Source, Target, Config) ->
referenced_pegs(Source, Config) -> referenced_pegs(Source, Config) ->
Set = referenced_pegs1([Source], Config, Set = referenced_pegs1([Source], Config,
sets:add_element(Source, sets:new())),
sets:add_element(Source, sets:new())),
sets:to_list(sets:del_element(Source, Set)). sets:to_list(sets:del_element(Source, Set)).
referenced_pegs1(Step, Config, Seen) -> referenced_pegs1(Step, Config, Seen) ->

Yükleniyor…
İptal
Kaydet