-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fix indentation - Match out module when filtering functions - Add test
- Loading branch information
1 parent
364ad0a
commit 68f111c
Showing
3 changed files
with
43 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
test/examples/fail_function_naming_convention_ignored_function.erl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
-module(fail_function_naming_convention_ignored_function). | ||
|
||
-dialyzer({nowarn_function, bad_names_inside/0}). | ||
|
||
-export([bad_names_inside/0]). | ||
|
||
%% Function names must use only lowercase characters. | ||
%% Words in function names must be separated with _. | ||
|
||
%% Cf. https://github.com/inaka/erlang_guidelines#function-names | ||
|
||
bad_names_inside() -> | ||
camelCase(should, fail). | ||
|
||
%% Private / hidden functions still checked | ||
|
||
camelCase(Should, Fail) -> | ||
[Should, Fail]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters