-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #212 from jackyhui96/master
Fix 210: New rule for behavior vs behaviour.
- Loading branch information
Showing
12 changed files
with
133 additions
and
7 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
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
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,38 @@ | ||
-module(american_behavior_spelling). | ||
|
||
-dialyzer(no_behaviours). | ||
|
||
-behavior(gen_server). | ||
|
||
-export([ | ||
init/1, | ||
handle_call/3, | ||
handle_cast/2, | ||
handle_info/2, | ||
code_change/3, | ||
terminate/2 | ||
]). | ||
|
||
-spec init(term()) -> ok. | ||
init(_Args) -> | ||
ok. | ||
|
||
-spec handle_call(term(), term(), term()) -> ok. | ||
handle_call(_Request, _From, _State) -> | ||
ok. | ||
|
||
-spec handle_cast(term(), term()) -> ok. | ||
handle_cast(_Request, _State) -> | ||
ok. | ||
|
||
-spec handle_info(term(), term()) -> ok. | ||
handle_info(_Info, _State) -> | ||
ok. | ||
|
||
-spec code_change(term(), term(), term()) -> term(). | ||
code_change(_OldVsn, State, _Extra) -> | ||
{ok, State}. | ||
|
||
-spec terminate(term(), term()) -> ok. | ||
terminate(_Reason, _State) -> | ||
ok. |
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,38 @@ | ||
-module(british_behaviour_spelling). | ||
|
||
-dialyzer(no_behaviours). | ||
|
||
-behaviour(gen_server). | ||
|
||
-export([ | ||
init/1, | ||
handle_call/3, | ||
handle_cast/2, | ||
handle_info/2, | ||
code_change/3, | ||
terminate/2 | ||
]). | ||
|
||
-spec init(term()) -> ok. | ||
init(_Args) -> | ||
ok. | ||
|
||
-spec handle_call(term(), term(), term()) -> ok. | ||
handle_call(_Request, _From, _State) -> | ||
ok. | ||
|
||
-spec handle_cast(term(), term()) -> ok. | ||
handle_cast(_Request, _State) -> | ||
ok. | ||
|
||
-spec handle_info(term(), term()) -> ok. | ||
handle_info(_Info, _State) -> | ||
ok. | ||
|
||
-spec code_change(term(), term(), term()) -> term(). | ||
code_change(_OldVsn, State, _Extra) -> | ||
{ok, State}. | ||
|
||
-spec terminate(term(), term()) -> ok. | ||
terminate(_Reason, _State) -> | ||
ok. |
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
-dialyzer(no_behaviours). | ||
|
||
-behavior(gen_server). | ||
-behaviour(gen_server). | ||
|
||
-export([ | ||
init/1, | ||
|
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
-dialyzer(no_behaviours). | ||
|
||
-behavior(gen_statem). | ||
-behaviour(gen_statem). | ||
|
||
-export([ | ||
init/1, | ||
|
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
-dialyzer(no_behaviours). | ||
|
||
-behavior(gen_statem). | ||
-behaviour(gen_statem). | ||
|
||
-export([ | ||
init/1, | ||
|
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
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
-dialyzer(no_behaviours). | ||
|
||
-behavior(gen_server). | ||
-behaviour(gen_server). | ||
|
||
-export([ | ||
init/1, | ||
|
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
-dialyzer(no_behaviours). | ||
|
||
-behavior(gen_server). | ||
-behaviour(gen_server). | ||
|
||
-export([ | ||
init/1, | ||
|
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
-dialyzer(no_behaviours). | ||
|
||
-behavior(gen_statem). | ||
-behaviour(gen_statem). | ||
|
||
-export([ | ||
init/1, | ||
|
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