Skip to content

Commit

Permalink
More development progress.
Browse files Browse the repository at this point in the history
  • Loading branch information
elfsternberg committed Sep 19, 2016
1 parent ad5ab53 commit 7988df0
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 3 deletions.
68 changes: 68 additions & 0 deletions .git-lint
@@ -0,0 +1,68 @@
[DEFAULT]


[debugging]
output = Checking for debugger commands in Javascript...
command = grep -n debugger {filename}
files = [".*\.js$"]
print = True
condition = output

[jshint]
output = Running Jshint...
command = jshint -c {config_path}/jshint.rc {filename}
match = [".*\.js$"]
print = False
condition = error

[coffeelint]
output = Running Coffeelint...
command = coffeelint {filename}
match = [".*\.coffee$"]
print = False
condition = error

[jscs]
output = Running JSCS...
command = jscs -c {config_path}/jscs.rc {filename}
match = [".*\.js$"]
print = False
condition = error

[pep8]
output = Running pep8...
command = pep8 -r --ignore=E501,W293,W391 {filename}
match = [".*\.py$"]
print = False
condition = error

[xmllint]
output = Running xmllint...
command = xmllint {filename}
match = [".*\.xml"]
print = False
condition = error

[flake8]

[csslint]
output = Running eslint...
command = csslint --quiet --config={filename}
match = [".*\.js"]
print = False
condition = error

[eslint]
output = "Running eslint..."
command = "eslint -c {filename}"
match = [".*\.js"]
print = False
condition = error

[jsonlint]
output = "Running jsonlint..."
command = "jsonlint -q -c {filename}"
match = [".*\.json"]
print = False
condition = error

2 changes: 2 additions & 0 deletions .gitignore
@@ -1,5 +1,7 @@
# Emacs-generated backups.
*~
\#*
.\#*

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
5 changes: 2 additions & 3 deletions Makefile
Expand Up @@ -49,15 +49,14 @@ lint:
flake8 git_lint tests

test:
py.test
py.test


test-all:
tox

coverage:
coverage run --source git_lint py.test

coverage run --source git_lint py.test
coverage report -m
coverage html
$(BROWSER) htmlcov/index.html
Expand Down
22 changes: 22 additions & 0 deletions docs/git_lint.rst
@@ -0,0 +1,22 @@
git_lint package
================

Submodules
----------

git_lint.git_lint module
------------------------

.. automodule:: git_lint.git_lint
:members:
:undoc-members:
:show-inheritance:


Module contents
---------------

.. automodule:: git_lint
:members:
:undoc-members:
:show-inheritance:

0 comments on commit 7988df0

Please sign in to comment.