v0.3.1
What's Changed
New checks
PathExpandPriv(EXS1006) — flagsPath.expand("...priv...", __DIR__)for app resources; useApplication.app_dir/2instead.DualKeyAccess(EXS1007) — flags mixed atom/string key access; normalize data once at the boundary.ReduceMapPut(EXS4013) — flagsEnum.reduce(%{}, fn x, acc -> Map.put(acc, key, value) end); useMap.new/2.RedundantBooleanIf(EXS4014) — flagsif condition, do: true, else: false; use the condition directly.FlatMapFilter(EXS4015) — flagsEnum.flat_map(fn x -> if condition, do: [x], else: [] end); useEnum.filter/2.
Fixes
- Expanded
DualKeyAccessdetection to catch mixed access acrossMap.get,Map.fetch,Map.fetch!,get_in, access syntax, and chained||expressions. - Fixed
BlanketRescuefalse positives for specific exception rescues.
Published to Hex as ex_slop 0.3.1.