File tree 2 files changed +5
-1
lines changed
lib/credo/check/readability
test/credo/check/readability
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ defmodule Credo.Check.Readability.FunctionNames do
35
35
@ all_sigil_atoms Enum . map ( @ all_sigil_chars , & :"sigil_#{ & 1 } " )
36
36
37
37
# all non-special-form operators
38
- @ all_nonspecial_operators ~W( ! && ++ -- .. <> =~ @ |> || != !== * + - / < <= == === > >= ||| &&& <<< >>> <<~ ~>> <~ ~> <~> <|> ^^^ ~~~ +++ ---) a
38
+ @ all_nonspecial_operators ~W( ! && ++ -- .. <> =~ @ |> || != !== * + - / ** < <= == === > >= ||| &&& <<< >>> <<~ ~>> <~ ~> <~> <|> ^^^ ~~~ +++ ---) a
39
39
40
40
@ doc false
41
41
@ impl true
Original file line number Diff line number Diff line change @@ -152,6 +152,10 @@ defmodule Credo.Check.Readability.FunctionNamesTest do
152
152
def left --- right do
153
153
# ++ code
154
154
end
155
+
156
+ def left ** right do
157
+ # ...
158
+ end
155
159
"""
156
160
|> to_source_file
157
161
|> run_check ( @ described_check )
You can’t perform that action at this time.
0 commit comments