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

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

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

[fdupes]
apt = fdupes
command = fdupes -q -r .

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

[bitmap-vector]
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 -empty

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

# TODO: replace not-match with recursive option (#780197)
[isutf8]
apt = moreutils
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
command = isutf8 {files}

# TODO: EC2_SECRET_KEY
# TODO: curl -k --insecure
# TODO: wget --no-check-certificate
# TODO: svn --trust-server-cert
# TODO: bogomips
# TODO: diction
# 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

# vim:ft=dosini
