Skip to content

Commit

Permalink
Merge branch 'master' into fix/ignore-private-sigil-definitions-funct…
Browse files Browse the repository at this point in the history
…ion-names
  • Loading branch information
leobessa authored Aug 5, 2024
2 parents 880062a + 9f00f6b commit 91a95e6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/credo/check/config_comment.ex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
defmodule Credo.Check.ConfigComment do
@moduledoc """
`ConfigComment` structs represent comments which follow control Credo's behaviour.
`ConfigComment` structs represent comments which control Credo's behaviour.
The following comments are supported:
Expand Down
2 changes: 1 addition & 1 deletion lib/credo/check/warning/mix_env.ex
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ defmodule Credo.Check.Warning.MixEnv do
defp issue_for(issue_meta, meta) do
format_issue(
issue_meta,
message: "There should be no calls to Mix.env in application code.",
message: "There should be no calls to `Mix.env` in application code.",
trigger: "Mix.env",
line_no: meta[:line],
column: meta[:column]
Expand Down
2 changes: 2 additions & 0 deletions test/credo/check/readability/function_names_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ defmodule Credo.Check.Readability.FunctionNamesTest do
defmacro sigil_U({:<<>>, _, [string]}, []) when is_binary(string) do
# ...
end
defmacrop sigil_d(str, _opts) do
end
"""
|> to_source_file
|> run_check(@described_check)
Expand Down

0 comments on commit 91a95e6

Please sign in to comment.