Merge branch 'master' into stricter_parsing
This commit is contained in:
commit
51076f2054
3 changed files with 24 additions and 4 deletions
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
ebin/
|
||||||
|
deps/
|
||||||
|
*.orig
|
17
rebar.config
17
rebar.config
|
@ -4,3 +4,20 @@
|
||||||
|
|
||||||
%% uncomment to get verbose output from test suite
|
%% uncomment to get verbose output from test suite
|
||||||
%% {eunit_opts, [verbose]}.
|
%% {eunit_opts, [verbose]}.
|
||||||
|
|
||||||
|
{erl_opts, [{i, "src"}, {src_dirs, ["src"]},
|
||||||
|
warn_unused_vars,
|
||||||
|
warn_export_all,
|
||||||
|
warn_shadow_vars,
|
||||||
|
warn_unused_import,
|
||||||
|
warn_unused_function,
|
||||||
|
warn_bif_clash,
|
||||||
|
warn_unused_record,
|
||||||
|
warn_deprecated_function,
|
||||||
|
warn_obsolete_guard,
|
||||||
|
strict_validation,
|
||||||
|
warn_export_vars,
|
||||||
|
warn_exported_vars,
|
||||||
|
debug_info]}.
|
||||||
|
{dialyzer_opts, [{warnings, [unmatched_returns, error_handling, race_conditions, behaviours]}]}.
|
||||||
|
{xref_checks, [undefined_function_calls]}.
|
||||||
|
|
|
@ -76,7 +76,7 @@ decoder(OptsList) ->
|
||||||
json_to_term(JSON) ->
|
json_to_term(JSON) ->
|
||||||
try json_to_term(JSON, [])
|
try json_to_term(JSON, [])
|
||||||
%% rethrow exception so internals aren't confusingly exposed to users
|
%% rethrow exception so internals aren't confusingly exposed to users
|
||||||
catch error:badarg -> erlang:error(badarg,[JSON])
|
catch error:badarg -> erlang:error(badarg, [JSON])
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
|
||||||
|
@ -91,7 +91,7 @@ json_to_term(JSON, Opts) ->
|
||||||
term_to_json(JSON) ->
|
term_to_json(JSON) ->
|
||||||
try term_to_json(JSON, [])
|
try term_to_json(JSON, [])
|
||||||
%% rethrow exception so internals aren't confusingly exposed to users
|
%% rethrow exception so internals aren't confusingly exposed to users
|
||||||
catch error:badarg -> erlang:error(badarg,[JSON])
|
catch error:badarg -> erlang:error(badarg, [JSON])
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
|
||||||
|
@ -100,7 +100,7 @@ term_to_json(JSON) ->
|
||||||
term_to_json(JSON, Opts) ->
|
term_to_json(JSON, Opts) ->
|
||||||
try jsx_eep0018:term_to_json(JSON, Opts)
|
try jsx_eep0018:term_to_json(JSON, Opts)
|
||||||
%% rethrow exception so internals aren't confusingly exposed to users
|
%% rethrow exception so internals aren't confusingly exposed to users
|
||||||
catch error:badarg -> erlang:error(badarg,[JSON,Opts])
|
catch error:badarg -> erlang:error(badarg, [JSON, Opts])
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
|
||||||
|
@ -275,4 +275,4 @@ multi_test_result() ->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-endif.
|
-endif.
|
Loading…
Add table
Add a link
Reference in a new issue