[licensecheck]
apt = devscripts
command = licensecheck --check=. --recursive --copyright .
# TODO: is --check=. reasonable?

[suspicious-source]
apt = devscripts, python3-magic | python-magic
command = suspicious-source

[licensecheck-generated-files]
apt = devscripts
command = licensecheck --check=. --recursive --copyright . | grep -F 'GENERATED FILE'

[licensecheck-incorrect-fsf-address]
apt = devscripts
command = licensecheck --check=. --recursive --copyright . | grep -F 'with incorrect FSF address'

[codespell]
apt = codespell
command = codespell --quiet-level=3

[sourcecode-spellchecker]
flags = todo
comment = CPAN Sourcecode::Spellchecker

[fdupes]
apt = fdupes
command = fdupes -q -r . | grep -vE '/(\.(git|svn|bzr|hg|sgdrawer)|_(darcs|FOSSIL_)|CVS)(/|$)' | cat -s

[bitmap-multilayer]
groups = images
comment = Check with upstream where the GIMP XCF source files are.
match = *.png *.gif *.jpg *.jpeg
command = grep -iF gimp {files}

[bitmap-vector]
groups = images
comment = Check with upstream where the Inkscape SVG source files are.
match = *.png *.gif *.jpg *.jpeg
command = grep -iF inkscape {files}

[cpuinfo]
comment = Parsing /proc/cpuinfo is not portable at all, use /sys instead.
command = grep -rF /proc/cpuinfo .

[readme-install]
comment = Users of binary packages do not need install instructions.
match = *README*
not-match = README.md README.install
command = grep --ignore-case --fixed-strings --with-filename install {files}

# TODO: not yet possible (#776559)
#[autoupdate]
#apt = autoconf, diffutils, diffstat
#match = configure.ac configure.in
#command = autoupdate --check

[empty]
command = find \( -name .git -o -name .svn -o -name .bzr -o -name CVS -o -name .hg -o -name _darcs -o -name _FOSSIL_ -o -name .sgdrawer \) -prune -o -empty -print

[todo]
command = grep -riE 'fixme|todo|hack|xxx' .

[isutf8]
apt = moreutils
# TODO: replace prune with --ignore option
prune = .git .svn .bzr CVS .hg _darcs _FOSSIL_ .sgdrawer
# TODO: replace not-match with recursive option (#780197)
not-match =
 *.blend
 *.icns *.bmp *.ico *.png *.gif *.jpg *.jpeg *.tga *.xcf
 *.mo *.gmo
 *.gz *.bz2 *.xz *.lz *.zip *.tar *.deb
 *.pdf *.odt *.docx *.doc
 *.torrent
 *.pyc *.pyo *.o *.so *.so.* *.debug
 *.wav *.ogg *.oga *.ogv *.mid
 *.ttf *.otf *.fon
 *.pgp *.gpg
command = isutf8 {files}

[disabled-tests]
command = grep -riEC1 '((check|test) *\|\| *true|-dh_auto_test)' .

# TODO: EC2_SECRET_KEY
# TODO: curl -k --insecure
# TODO: wget --no-check-certificate
# TODO: svn --trust-server-cert
# TODO: bogomips
# TODO: diction
# TODO: ripper #796920
# TODO: similarity-tester sim_text
# TODO: http://jwilk.net/software/mwic
# TODO: https://bitbucket.org/jwilk/spellintian
# TODO: https://www.cs.umd.edu/~nspring/software/style-check-readme.html
# TODO: https://github.com/coala-analyzer/coala
# TODO: https://github.com/nexB/scancode-toolkit/
# TODO: https://github.com/jeremylong/DependencyCheck/
# TODO: http://www.coding-guidelines.com/numbers/
# TODO: ebnflint
# TODO: http://fbinfer.com/ #789059

# vim:ft=dosini
