#
# KleanSweep scoring rules (perl code)
#
# please be careful when tweaking anything;
# improper code may fail silently with maximum score.
#
# random notes:
#
# these rules are ignored if file is blacklisted (kleansweep-blacklist file)
# $score is 9 (this is the maximum) by default
# $_ contains absolute path of the file
# you may use perl 'last' if your rule should finish processing earlier
#
$score-=3 if /\/(?:etc|bin|sbin|lib)\//;
$score-=5 if /\/(?:kappfinder|gnome-app-install)\//;
$score-=5 if /\/lost\+found\//;
$score-=2 if -x;
$score-=2 if /(?:conf|ini|cfg|lock|rc)$/;
$score++ if /bak$/;
$score++ if /\/tmp\//;
