Skip to content

v0.3.1

Choose a tag to compare

@dannote dannote released this 26 Apr 07:40
· 12 commits to master since this release

What's Changed

New checks

  • PathExpandPriv (EXS1006) — flags Path.expand("...priv...", __DIR__) for app resources; use Application.app_dir/2 instead.
  • DualKeyAccess (EXS1007) — flags mixed atom/string key access; normalize data once at the boundary.
  • ReduceMapPut (EXS4013) — flags Enum.reduce(%{}, fn x, acc -> Map.put(acc, key, value) end); use Map.new/2.
  • RedundantBooleanIf (EXS4014) — flags if condition, do: true, else: false; use the condition directly.
  • FlatMapFilter (EXS4015) — flags Enum.flat_map(fn x -> if condition, do: [x], else: [] end); use Enum.filter/2.

Fixes

  • Expanded DualKeyAccess detection to catch mixed access across Map.get, Map.fetch, Map.fetch!, get_in, access syntax, and chained || expressions.
  • Fixed BlanketRescue false positives for specific exception rescues.

Published to Hex as ex_slop 0.3.1.