Skip to content

Commit 8eabb1c

Browse files
committed
Add credo binary pattern checks
1 parent 2655cd7 commit 8eabb1c

4 files changed

Lines changed: 4 additions & 1 deletion

File tree

.credo.exs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
},
1010
strict: true,
1111
checks: [
12+
{CredoBinaryPatterns.Check.Consistency.Pattern},
1213
{Credo.Check.Refactor.MapInto, false},
1314
{Credo.Check.Warning.LazyLogging, false},
1415
{Credo.Check.Readability.LargeNumbers, only_greater_than: 86400},

.formatter.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Used by "mix format"
22
[
3-
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"]
3+
inputs: ["{mix,.formatter,.credo}.exs", "{config,lib,test}/**/*.{ex,exs}"]
44
]

mix.exs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ defmodule CircuitsSim.MixProject do
5454
{:sht4x, "~> 0.2.0", only: [:dev, :test]},
5555
{:ex_doc, "~> 0.22", only: :docs, runtime: false},
5656
{:credo, "~> 1.6", only: :dev, runtime: false},
57+
{:credo_binary_patterns, "~> 0.2.2", only: :dev, runtime: false},
5758
{:dialyxir, "~> 1.2", only: :dev, runtime: false}
5859
]
5960
end

mix.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"circuits_i2c": {:hex, :circuits_i2c, "2.0.0", "8343b12879189f844835abeaf31a36c5626b8ace58413a582794fdfe60c2dc0e", [:make, :mix], [{:elixir_make, "~> 0.6", [hex: :elixir_make, repo: "hexpm", optional: false]}], "hexpm", "06eccd33b36bcedf41730cac8da58e359967ea63a2cd899cea58c2a138634cc4"},
99
"circuits_spi": {:hex, :circuits_spi, "2.0.0-pre.0", "51c12522f2dec1c3219e93caa95cc12315adbafe895b4fa4f096daa69ca8f912", [:make, :mix], [{:elixir_make, "~> 0.6", [hex: :elixir_make, repo: "hexpm", optional: false]}], "hexpm", "154a8a9295f14aed0c7302bfb819572ec40482de62cd33b840f5e2c0f9a005c6"},
1010
"credo": {:hex, :credo, "1.7.0", "6119bee47272e85995598ee04f2ebbed3e947678dee048d10b5feca139435f75", [:mix], [{:bunt, "~> 0.2.1", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2.8", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "6839fcf63d1f0d1c0f450abc8564a57c43d644077ab96f2934563e68b8a769d7"},
11+
"credo_binary_patterns": {:hex, :credo_binary_patterns, "0.2.2", "6df471245f720db7825f4bbbefffe853cea770a6cd284cc3340ce29a8f943497", [:mix], [{:credo, "~> 1.6", [hex: :credo, repo: "hexpm", optional: false]}], "hexpm", "8a0d9c1939cacbb18e4f62120ca12517edcdbb23791152abdd6caa447e6295d1"},
1112
"dialyxir": {:hex, :dialyxir, "1.4.1", "a22ed1e7bd3a3e3f197b68d806ef66acb61ee8f57b3ac85fc5d57354c5482a93", [:mix], [{:erlex, ">= 0.2.6", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "84b795d6d7796297cca5a3118444b80c7d94f7ce247d49886e7c291e1ae49801"},
1213
"earmark_parser": {:hex, :earmark_parser, "1.4.33", "3c3fd9673bb5dcc9edc28dd90f50c87ce506d1f71b70e3de69aa8154bc695d44", [:mix], [], "hexpm", "2d526833729b59b9fdb85785078697c72ac5e5066350663e5be6a1182da61b8f"},
1314
"elixir_make": {:hex, :elixir_make, "0.7.7", "7128c60c2476019ed978210c245badf08b03dbec4f24d05790ef791da11aa17c", [:mix], [{:castore, "~> 0.1 or ~> 1.0", [hex: :castore, repo: "hexpm", optional: true]}], "hexpm", "5bc19fff950fad52bbe5f211b12db9ec82c6b34a9647da0c2224b8b8464c7e6c"},

0 commit comments

Comments
 (0)