-
Notifications
You must be signed in to change notification settings - Fork 10
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 #18 from norbajunior/14-customize-formatter-to-not…
…-set-parenthesis-on-transition-statements In order to keep a friendly code style to the dsl it was configured the `.formatter.exs` to no use parenthesis in macros Before ```elixir from(:some_state, to: :another, event: "some_event") from :some_state do to(:another, event: "some_event") end ``` Now ```elixir from :some_state, to: :another, event: "some_event" from :some_state do to :another, event: "some_event" end ```
- Loading branch information
Showing
3 changed files
with
51 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
# Used by "mix format" | ||
functions = [event: 1, event: 2, from: 2, from: 3, to: 1, to: 2] | ||
|
||
[ | ||
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"] | ||
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"], | ||
locals_without_parens: functions, | ||
export: [ | ||
locals_without_parens: functions | ||
] | ||
] |
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