Skip to content

Commit

Permalink
Improve the credo rule
Browse files Browse the repository at this point in the history
  • Loading branch information
andyduong1920 committed Sep 22, 2022
1 parent bc80cff commit 225a1fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .credo.exs
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,7 @@
{Credo.Check.Readability.StrictModuleLayout,
[
order:
~w/shortdoc moduledoc behaviour use import alias require module_attribute defstruct callback public_fun private_fun/a,
ignore: ~w/callback_impl/a
~w/shortdoc moduledoc behaviour use import alias require module_attribute type typep defstruct callback callback_impl public_fun private_fun/a
]},
{Credo.Check.Consistency.MultiAliasImportRequireUse, []},
{Credo.Check.Consistency.UnusedVariableNames, []},
Expand Down
3 changes: 1 addition & 2 deletions priv/templates/nimble_template/.credo.exs
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@
{Credo.Check.Readability.StrictModuleLayout,
[
order:
~w/shortdoc moduledoc behaviour use import alias require module_attribute defstruct callback public_fun private_fun/a,
ignore: ~w/callback_impl/a
~w/shortdoc moduledoc behaviour use import alias require module_attribute type typep defstruct callback callback_impl public_fun private_fun/a
]},
{Credo.Check.Consistency.MultiAliasImportRequireUse, []},
{Credo.Check.Consistency.UnusedVariableNames, false},
Expand Down

0 comments on commit 225a1fd

Please sign in to comment.