forked from clybob/code_quality_tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modified readme to add information of usage
- Loading branch information
Romulo Costa Tavares
committed
Oct 3, 2012
1 parent
0bd70ce
commit 0096ae2
Showing
1 changed file
with
71 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,72 @@ | ||
code_quality_tools | ||
================== | ||
================== | ||
|
||
What is a code_quality_tools? | ||
----------------------------- | ||
|
||
code_quality_tools is a little API, in python, to collect some data about code quality of your application. | ||
|
||
|
||
Usage | ||
----- | ||
|
||
- Get Pep8 errors and warnings without save output | ||
''' | ||
from code_quality_tools import CodeQualityCheck | ||
|
||
check = CodeQualityCheck() | ||
check.get_pep8_errors(path='application/path/') | ||
''' | ||
|
||
- Get Pep8 errors and warnings saving output | ||
''' | ||
from code_quality_tools import CodeQualityCheck | ||
|
||
check = CodeQualityCheck() | ||
check.get_pep8_errors(path='application/path/', output_file='pep8_errors.txt') | ||
''' | ||
|
||
- Get Pep8 errors and warnings passing extra options | ||
''' | ||
from code_quality_tools import CodeQualityCheck | ||
|
||
check = CodeQualityCheck() | ||
check.get_pep8_errors(path='application/path/', options=['--exclude=fixtures']) | ||
''' | ||
|
||
All examples above returns something as: | ||
''' | ||
{ | ||
'total_errors': 1, | ||
'list_errors': ['./code_quality_tools.py:60:80: E501 line too long (98 characters)'] | ||
} | ||
''' | ||
|
||
|
||
Dependencies | ||
------------ | ||
|
||
- Pep8 (http://pypi.python.org/pypi/pep8) | ||
- PyFlakes (http://pypi.python.org/pypi/pyflakes) | ||
- CloneDigger (http://pypi.python.org/pypi/clonedigger) | ||
- JSHint (https://npmjs.org/package/jshint) | ||
- CSSLint (https://npmjs.org/package/csslint) | ||
|
||
|
||
Author | ||
------ | ||
|
||
**Romulo Tavares** | ||
|
||
- https://github.com/clybob | ||
|
||
|
||
Colaborators | ||
------------ | ||
|
||
**Zacarias Eugenio** | ||
|
||
|
||
License | ||
------- | ||
|