Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

sfood-checker(1) [debian man page]

SFOOD-CHECKER(1)					      General Commands Manual						  SFOOD-CHECKER(1)

NAME
sfood-checker - check for superfluous import statements in Python source code SYNOPSIS
sfood-checker [options] files... DESCRIPTION
This script is used to detect forgotten imports that are not used anymore. When writing Python code (which happens so fast), it is often the case that we forget to remove useless imports. This is implemented using a search in the AST, and as such we do not require to import the module in order to run the checks. This is a major advantage over all the other lint/checker programs, and the main reason for taking the time to write it. As inputs, it can receive either files or directories; in case no argument is passed, it parses the current directory recursively. OPTIONS
-h, --help show the help message and exit --debug Debugging output. -I IGNORES, --ignore=IGNORES Add the given directory name to the list to be ignored. -d, --disable-pragmas Disable processing of pragma directives as strings after imports. -D, --duplicates, --enable-duplicates Enable experimental heuristic for finding duplicate imports. -M, --missing, --enable-missing Enable experimental heuristic for finding missing imports. SEE ALSO
sfood(1), sfood-cluster(1), sfood-copy(1), sfood-flatten(1), sfood-graph(1), sfood-imports(1). AUTHOR
sfood-checker was written by Martin Blais <blais@furius.ca> and it's part of snakefood suite. This manual page was written by Sandro Tosi <morph@debian.org>, for the Debian project (and may be used by others). January 2, 2009 SFOOD-CHECKER(1)

Check Out this Related Man Page

CRUFT(8)						      System Manager's Manual							  CRUFT(8)

NAME
cruft - Check the filesystem for cruft (missing and unexplained files) SYNOPSIS
cruft [-h] [-d DRIVES] [--chroots CHROOTS] [--ignore IGNORES] [-r REPORTFILE] [-m ADDRESS] [-k | -n | -N] DESCRIPTION
This manual page documents briefly the cruft command. Please see /usr/share/doc/cruft/README.gz for more information. cruft is a program that goes over the Debian packaging system's database, and compares the contents of that with the files actually on your system, and produces a summary of the differences. OPTIONS
The following options are recognized: -h Show a summary of options and exit. -d DRIVES Search only the listed filesystems. DRIVES should be an absolute path, or a quoted, space-separated list of multiple absolute paths (eg, "/ /usr /home"). Multiple -d options are allowed as well. If not specified, cruft attempts to autodetect which filesystems to scan. --chroots CHROOTS Do not perform validity checks on symlinks under these directories. Useful for whatever chroots are set up in the system. --ignore IGNORES Treat the directory trees in IGNORES as if they did not exist. IGNORES should be an absolute path, or a quoted, space-separated list of multiple absolute paths. Multiple --ignore options are allowed as well. -r REPORTFILE Output report to REPORTFILE instead of standard output. -m ADDRESS Mail report to ADDRESS. -k Only cleanup cruft's spool directory. -n Generate input files for reporting, but do not generate a report. -N Only generate a report, based on old input files. With none of -k -n or -N cruft performs all the above three actions, that is cleans its own spool directory, generates new input files and produces a report. Please note that cruft never deletes any files outside its own spool directory. ENVIRONMENT VARIABLES
It is possible to get some debugging information from cruft by setting the variable CRUFT_DEBUG to 1. If you need more detailed information on what cruft is doing, set it to 2. SEE ALSO
/usr/share/doc/cruft/README.gz AUTHOR
This manual page was written by Anthony Towns <ajt@debian.org>, for the Debian GNU/Linux system (but may be used by others). CRUFT(8)
Man Page