Skip to content

Commit

Permalink
collect emacs specifics
Browse files Browse the repository at this point in the history
  • Loading branch information
andreineculau authored and Andrei Neculau committed Dec 17, 2015
1 parent 887f5ff commit 2787c54
Show file tree
Hide file tree
Showing 13 changed files with 9 additions and 48 deletions.
9 changes: 9 additions & 0 deletions .dir-locals.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
(
(nil . (
(indent-tabs-mode . nil)
(fill-column . 80))
)
(erlang-mode . (
(erlang-indent-level . 2))
)
)
4 changes: 0 additions & 4 deletions src/jesse.erl
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,3 @@ try_parse(Type, ParserFun, JsonBin) ->
schema -> throw({schema_error, {parse_error, Error}})
end
end.

%%% Local Variables:
%%% erlang-indent-level: 2
%%% End:
4 changes: 0 additions & 4 deletions src/jesse_database.erl
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,3 @@ is_outdated(InFile, SecondaryKey) ->
%% value.
%% @private
table_name() -> ?JESSE_ETS.

%%% Local Variables:
%%% erlang-indent-level: 2
%%% End:
4 changes: 0 additions & 4 deletions src/jesse_error.erl
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,3 @@ handle_error(Error, State) ->
AllowedErrors = jesse_state:get_allowed_errors(State),
NewErrorList = ErrorHandler(Error, ErrorList, AllowedErrors),
jesse_state:set_error_list(State, NewErrorList).

%%% Local Variables:
%%% erlang-indent-level: 2
%%% End:
4 changes: 0 additions & 4 deletions src/jesse_lib.erl
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,3 @@ is_json_object(_) -> false.
-spec is_null(Value :: any()) -> boolean().
is_null(null) -> true;
is_null(_Value) -> false.

%%% Local Variables:
%%% erlang-indent-level: 2
%%% End:
4 changes: 0 additions & 4 deletions src/jesse_schema_validator.erl
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,3 @@ select_and_run_validator(?json_schema_draft4, JsonSchema, Value, State) ->
);
select_and_run_validator(SchemaURI, _JsonSchema, _Value, State) ->
jesse_error:handle_schema_invalid({?schema_unsupported, SchemaURI}, State).

%%% Local Variables:
%%% erlang-indent-level: 2
%%% End:
4 changes: 0 additions & 4 deletions src/jesse_schema_validator.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,3 @@

%%
-define(not_found, not_found).

%%% Local Variables:
%%% erlang-indent-level: 2
%%% End:
4 changes: 0 additions & 4 deletions src/jesse_state.erl
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,3 @@ find_schema(#state{schema_loader_fun=LoaderFun}, SchemaURI) ->
catch
_:_ -> ?not_found
end.

%%% Local Variables:
%%% erlang-indent-level: 2
%%% End:
4 changes: 0 additions & 4 deletions src/jesse_validator_draft3.erl
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,3 @@ add_to_path(State, Property) ->
%% @private
remove_last_from_path(State) ->
jesse_state:remove_last_from_path(State).

%%% Local Variables:
%%% erlang-indent-level: 2
%%% End:
4 changes: 0 additions & 4 deletions src/jesse_validator_draft4.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1242,7 +1242,3 @@ add_to_path(State, Property) ->
%% @private
remove_last_from_path(State) ->
jesse_state:remove_last_from_path(State).

%%% Local Variables:
%%% erlang-indent-level: 2
%%% End:
4 changes: 0 additions & 4 deletions test/jesse_schema_validator_tests.erl
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,3 @@ schema_unsupported_test() ->
{schema_unsupported, <<"http://json-schema.org/draft-05/schema#">>}}]
, jesse_schema_validator:validate(UnsupportedSchema, Json, [])
).

%%% Local Variables:
%%% erlang-indent-level: 2
%%% End:
4 changes: 0 additions & 4 deletions test/jesse_tests_draft3_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,3 @@ load_schema(URI) ->
{ok, Response} = httpc:request(get, {URI, []}, [], [{body_format, binary}]),
{{_Line, 200, _}, _Headers, Body} = Response,
jsx:decode(Body).

%%% Local Variables:
%%% erlang-indent-level: 2
%%% End:
4 changes: 0 additions & 4 deletions test/jesse_tests_draft4_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,3 @@ load_schema(URI) ->
{ok, Response} = httpc:request(get, {URI, []}, [], [{body_format, binary}]),
{{_Line, 200, _}, _Headers, Body} = Response,
jsx:decode(Body).

%%% Local Variables:
%%% erlang-indent-level: 2
%%% End:

0 comments on commit 2787c54

Please sign in to comment.