diff options
author | fholzhauser <ferenc@holzhauser.nl> | 2014-09-23 17:54:56 +0200 |
---|---|---|
committer | fholzhauser <ferenc@holzhauser.nl> | 2014-09-23 17:54:56 +0200 |
commit | b22487df5a92c00f7b0c00156cda83b142e934ac (patch) | |
tree | e428650eb836d4451d4682193446a4e126155f0b /src/rebar_dia_compiler.erl | |
parent | b3942a2765492e12a74448231ab65c8c19459abb (diff) | |
download | rebar-b22487df5a92c00f7b0c00156cda83b142e934ac.tar.gz |
Correct overlong lines in rebar_dia_compiler.erl
With the implementation of dia_first_files option some lines exceeded
79 columns (thanks to Tuncer Ayaz for pointing this out). These are
corrected with this change.
Diffstat (limited to 'src/rebar_dia_compiler.erl')
-rw-r--r-- | src/rebar_dia_compiler.erl | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/src/rebar_dia_compiler.erl b/src/rebar_dia_compiler.erl index b03f240..e4c97dc 100644 --- a/src/rebar_dia_compiler.erl +++ b/src/rebar_dia_compiler.erl @@ -77,9 +77,9 @@ info_help(Description) -> "~s.~n" "~n" "Valid rebar.config options:~n" - " {dia_opts, []} (options from diameter_make:codec/2 supported with " - "exception of inherits)~n" - " {dia_first_files, []} (list of files in sequence to compile first)~n", + " {dia_opts, []} (options from diameter_make:codec/2 supported with~n" + " exception of inherits)~n" + " {dia_first_files, []} (files in sequence to compile first)~n", [Description]). -spec compile_dia(file:filename(), file:filename(), @@ -95,7 +95,8 @@ compile_dia(Source, Target, Config) -> _ = diameter_codegen:from_dict(FileName, Spec, Opts, hrl), HrlFile = filename:join("src", FileName ++ ".hrl"), ErlFile = filename:join("src", FileName ++ ".erl"), - ErlCOpts = [{outdir, "ebin"}] ++ rebar_config:get(Config, erl_opts, []), + ErlCOpts = [{outdir, "ebin"}] ++ + rebar_config:get(Config, erl_opts, []), _ = compile:file(ErlFile, ErlCOpts), case filelib:is_regular(HrlFile) of true -> @@ -104,7 +105,10 @@ compile_dia(Source, Target, Config) -> ok end; {error, Reason} -> - ?ABORT("Compiling ~s failed: ~s~n", [Source, diameter_dict_util:format_error(Reason)]) + ?ABORT( + "Compiling ~s failed: ~s~n", + [Source, diameter_dict_util:format_error(Reason)] + ) end. dia_generated_files(DiaDir, SrcDir, IncDir) -> @@ -112,8 +116,12 @@ dia_generated_files(DiaDir, SrcDir, IncDir) -> case catch diameter_dict_util:parse({path, File}, []) of {ok, Spec} -> FileName = dia_filename(File, Spec), - [filename:join([IncDir, FileName ++ ".hrl"]) | - filelib:wildcard(filename:join([SrcDir, FileName ++ ".*"]))] ++ Acc; + [ + filename:join([IncDir, FileName ++ ".hrl"]) | + filelib:wildcard( + filename:join([SrcDir, FileName ++ ".*"]) + ) + ] ++ Acc; _ -> Acc end |