Skip to content

Commit

Permalink
[Closes inaka/elvis#326] Remove calls to io:format
Browse files Browse the repository at this point in the history
  • Loading branch information
jfacorro committed Jan 14, 2016
1 parent 207464d commit 0bffbfd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 8 additions & 0 deletions test/examples/fail_operator_spaces.erl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
function4/2,
function5/0,
function6/0,
function7/0,
tag_filters/2]).

%% No space before and after coma,on a comment.
Expand Down Expand Up @@ -36,6 +37,13 @@ function6() ->
_MissingRightSpace = 2 +3,
_Successfull = 2 + 3.

function7() ->
% commas within strings must be ignored
Name = "anyone",
re:run(Name, "^.{1,20}$", [unicode]),
RegExp = "^.{1,20}$",
re:run(Name, RegExp, [unicode]).

tag_filters(DocName, #{conn := Conn} = State) ->
TableName = atom_to_list(DocName),
Sql = ["SELECT "
Expand Down
2 changes: 0 additions & 2 deletions test/style_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,6 @@ verify_no_spec_with_records(_Config) ->

PathFail = "fail_no_spec_with_records.erl",
{ok, FileFail} = elvis_test_utils:find_file(SrcDirs, PathFail),
io:format(user, "FileFail: ~p~n", [FileFail]),
io:format(user, "pwd: ~p~n", [os:cmd("pwd")]),
[_, _, _] = elvis_style:no_spec_with_records(ElvisConfig, FileFail, #{}),

PathPass = "pass_no_spec_with_records.erl",
Expand Down

0 comments on commit 0bffbfd

Please sign in to comment.