Skip to main content

Simple code checking metatool

Project description

Simple code checking metatool.

codequality is glue around multiple external code checking tools. Its goal is easy integration with editing environments and version control (scm) tools.

Installation

sudo python setup.py install

Then, run:

codequality --list-checkers

to see what checkers are available and installed on your machine. For now, codequality only knows about a few checkers, and it will use any that are available.

Usage details

See codequality --help.

Some examples:

codequality foo.py bar.js
codequality --ignore "*junk/*"
codequality --scm git
codequality --scm git --rev HEAD~3

Integration

All output follows a simple parseable format:

filename:linenumber:columnnumber: message

where the column number is optional (some external tools don’t provide it).

vim integration

:setlocal makeprg=codequality\ %
:make

see vim’s :help make for details about how this works.

git post-commit integration

Put the following in your .git/hooks/post-commit file:

#!/bin/sh
codequality --scm git -r HEAD

and make sure to chmod +x the post-commit hook file. You will then have a codequality report after each local commit.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codequality-0.2-dev.tar.gz (7.8 kB view details)

Uploaded Source

File details

Details for the file codequality-0.2-dev.tar.gz.

File metadata

File hashes

Hashes for codequality-0.2-dev.tar.gz
Algorithm Hash digest
SHA256 c7d7019047262888b9d3e470e5c5bd1231ae8dffd6a3d2d2a7af94d24c8f07e0
MD5 c4c3c1af68a9cff6553bfe02eed5c3b3
BLAKE2b-256 1444d79e5d87f9cb95ef78fb720ea4d22b382ba028d8f7b832af428bef273d11

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page