Skip to content

Releases: smartrent/credo_binary_patterns

v0.2.6

05 Jun 23:50
a45658a

Choose a tag to compare

v0.2.6

  • Fixes an issue where the :extraneous_size rule would be raised when using a variable in a size expression.
  • Suggest patterns in the form of <<x::size(y)>> to be rewritten as <<x::y>>.
  • Fix suggested pattern strings sometimes having a trailing :: in Credo output.

v0.2.4

05 Jun 19:46
cb04ec4

Choose a tag to compare

v0.2.4

  • Treat bytes and bits both as units. Fixes a false warning when using: <<x::4-bits>>.
  • Bump dependencies and Elixir version in CI.
  • Update code formatting to be more consistent.

v0.2.3

05 Oct 00:08
094fef7

Choose a tag to compare

  • Treat bitstring/bits with the same rules as binary/bytes (#13).
  • Do not allow size(constant) with interger and float.

v0.2.2

28 Sep 17:50
9420d91

Choose a tag to compare

  • Create more specific rules around bytes, binary, and size(x) in patterns. (#7).
  • Fix not handling unit correctly.

v0.2.1

27 Sep 19:10
4c2d507

Choose a tag to compare

  • Adds special case for bytes and binary options. Size should be specified before these types.

v0.2.0

27 Sep 01:29

Choose a tag to compare

  • Improve AST parser logic to handle 2, 3, and 4 element patterns.
  • Pretty print the pattern in the correct format, along with the issue.
  • Initial Hex release 🎉