From 7988df0dcf7814860b4eba7f34b07fccabad220a Mon Sep 17 00:00:00 2001 From: "Kenneth M. Elf Sternberg" Date: Mon, 19 Sep 2016 15:36:58 -0700 Subject: [PATCH] More development progress. --- .git-lint | 68 +++++++++++++++++++++++++++++++++++++++++++++++ .gitignore | 2 ++ Makefile | 5 ++-- docs/git_lint.rst | 22 +++++++++++++++ 4 files changed, 94 insertions(+), 3 deletions(-) create mode 100644 .git-lint create mode 100644 docs/git_lint.rst diff --git a/.git-lint b/.git-lint new file mode 100644 index 0000000..3983559 --- /dev/null +++ b/.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 + diff --git a/.gitignore b/.gitignore index f36c5d0..d7b2df7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ # Emacs-generated backups. *~ +\#* +.\#* # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/Makefile b/Makefile index 1934f48..2e3d70d 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/docs/git_lint.rst b/docs/git_lint.rst new file mode 100644 index 0000000..e1d243f --- /dev/null +++ b/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: