leaking_addresses: simplify path skipping
authorTobin C. Harding <me@tobin.cc>
Mon, 19 Feb 2018 00:03:37 +0000 (11:03 +1100)
committerTobin C. Harding <me@tobin.cc>
Fri, 6 Apr 2018 22:50:34 +0000 (08:50 +1000)
commitb401f56f33bf551304cc4ca4f503863ee6ac7787
tree810a69ac53bb627f7d90309af2656be976d593fa
parente2858caddc71f61521254a5359d17d058d6dda08
leaking_addresses: simplify path skipping

Currently script has multiple configuration arrays.  This is confusing,
evident by the fact that a bunch of the entries are in the wrong place.
We can simplify the code by just having a single array for absolute
paths to skip and a single array for file names to skip wherever they
appear in the scanned directory tree.  There are also currently multiple
subroutines to handle the different arrays, we can reduce these to a
single subroutine also.

Simplify the path skipping code.

Signed-off-by: Tobin C. Harding <me@tobin.cc>
scripts/leaking_addresses.pl