소스 검색

Fix a few minor formatting inconsistencies

* fix overlong lines
* where appropriate use %% instead of %
pull/3/head
Tuncer Ayaz 10 년 전
부모
커밋
5f995bfdc0
4개의 변경된 파일19개의 추가작업 그리고 12개의 파일을 삭제
  1. +5
    -4
      bootstrap
  2. +10
    -4
      rebar.config
  3. +2
    -2
      src/rebar_config.erl
  4. +2
    -2
      src/rebar_erlc_compiler.erl

+ 5
- 4
bootstrap 파일 보기

@ -28,10 +28,11 @@ main(Args) ->
%% Extract the system info of the version of OTP we use to compile rebar
OtpInfo = string:strip(erlang:system_info(otp_release), both, $\n),
%% Types dict:dict() and digraph:digraph() have been introduced in Erlang 17.
%% At the same time, their counterparts dict() and digraph() are to be deprecated
%% in Erlang 18. namespaced_types option is used to select proper type name
%% depending of the OTP version used.
%% Types dict:dict() and digraph:digraph() have been introduced in
%% Erlang 17.
%% At the same time, their counterparts dict() and digraph() are to be
%% deprecated in Erlang 18. namespaced_types option is used to select
%% proper type name depending of the OTP version used.
NamespacedTypes = case is_otp(OtpInfo, "^[0-9]+") of
true -> {d, namespaced_types};
false -> undefined

+ 10
- 4
rebar.config 파일 보기

@ -4,11 +4,17 @@
%% escript_incl_extra is for internal rebar-private use only.
%% Do not use outside rebar. Config interface is not stable.
{escript_incl_extra, [{"priv/templates/*", "."}]}.
%% Types dict:dict() and digraph:digraph() have been introduced in Erlang 17.
%% At the same time, their counterparts dict() and digraph() are to be deprecated
%% in Erlang 18. namespaced_types option is used to select proper type name
%% depending of the OTP version used.
{erl_opts, [{platform_define, "^[0-9]+", namespaced_types}, warnings_as_errors]}.
%% At the same time, their counterparts dict() and digraph() are to be
%% deprecated in Erlang 18. namespaced_types option is used to select proper
%% type name depending of the OTP version used.
{erl_opts,
[
{platform_define, "^[0-9]+", namespaced_types},
warnings_as_errors
]}.
{xref_checks, []}.
{xref_queries,
[{"(XC - UC) || (XU - X - B

+ 2
- 2
src/rebar_config.erl 파일 보기

@ -40,10 +40,10 @@
-include("rebar.hrl").
-ifdef(namespaced_types).
% dict:dict() exists starting from Erlang 17.
%% dict:dict() exists starting from Erlang 17.
-type rebar_dict() :: dict:dict().
-else.
% dict() has been obsoleted in Erlang 17 and deprecated in 18.
%% dict() has been obsoleted in Erlang 17 and deprecated in 18.
-type rebar_dict() :: dict().
-endif.

+ 2
- 2
src/rebar_erlc_compiler.erl 파일 보기

@ -48,10 +48,10 @@
}).
-ifdef(namespaced_types).
% digraph:digraph() exists starting from Erlang 17.
%% digraph:digraph() exists starting from Erlang 17.
-type rebar_digraph() :: digraph:digraph().
-else.
% digraph() has been obsoleted in Erlang 17 and deprecated in 18.
%% digraph() has been obsoleted in Erlang 17 and deprecated in 18.
-type rebar_digraph() :: digraph().
-endif.

불러오는 중...
취소
저장