1. For spacing, indentations etc., in the debian files run this command
$ wrap-and-sort --short-indent --wrap-always --sort-binary-packages --trailing-comma
2. For checking spellings in the entire package
$ codespell --quiet-level=3
3. To find links and change to https://
$ grep -rF http: .
4. Run lintain to know for security errors in the package
lintian -I -E --pedantic --no-tag-display-limit --color=auto foo.changes
5. To check the correct license addresses
$ licensecheck --check=. --recursive --copyright . | grep --text -F 'with incorrect FSF address'
6. To check deep into the spellings in the package
$ find -type d \( -iname .bzr -o -iname .git -o -iname .hg -o -iname .svn -o -iname CVS -o -iname RCS -o -iname SCCS -o -iname _MTN -o -iname _darcs -o -iname .pc -o -iname .cabal-sandbox -o -iname .cdv -o -iname .metadata -o -iname CMakeFiles -o -iname _build -o -iname _sgbak -o -iname autom4te.cache -o -iname blib -o -iname cover_db -o -iname node_modules -o -iname '~.dep' -o -iname '~.dot' -o -iname '~.nib' -o -iname '~.plst' \) -prune -o -type f ! \( -iname '*.bak' -o -iname '*.swp' -o -iname '#.*' -o -iname '#*#' -o -iname 'core.*' -o -iname '*~' -o -iname '*.gif' -o -iname '*.jpg' -o -iname '*.jpeg' -o -iname '*.png' -o -iname '*.min.js' -o -iname '*.js.map' -o -iname '*.js.min' -o -iname '*.min.css' -o -iname '*.css.map' -o -iname '*.css.min' -o -iname '*.wav' \) -exec env PERL5OPT=-m-lib=. spellintian --picky {} +