1
Fork 0

add security checks

This commit is contained in:
Jake Howard 2016-10-02 12:42:39 +01:00
parent 45fb57dafd
commit 142b090184
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 7 additions and 1 deletions

View file

@ -47,7 +47,7 @@ node_modules:
npm install npm install
test: unittest lint spellcheck test: unittest lint spellcheck securitycheck
unittest: unittest:
$(ENV)/nose2 --verbose $(ENV)/nose2 --verbose
@ -64,6 +64,10 @@ spellcheck:
$(NODE_BIN)/mdspell --en-gb -ranx theme/templates/**/*.* theme/templates/*.* $(NODE_BIN)/mdspell --en-gb -ranx theme/templates/**/*.* theme/templates/*.*
$(NODE_BIN)/mdspell --en-gb -ranx content/**/*.md content/*.md content/**/*.html content/*.html $(NODE_BIN)/mdspell --en-gb -ranx content/**/*.md content/*.md content/**/*.html content/*.html
securitycheck:
$(NODE_BIN)/nsp check
$(ENV)/bandit -r plugins/ config/ tests/
upload: upload:
git clone https://github.com/RealOrangeOne/host-container.git $(DEPLOY_DIR) git clone https://github.com/RealOrangeOne/host-container.git $(DEPLOY_DIR)

View file

@ -32,6 +32,7 @@
"eslint-plugin-react": "=3.4.2", "eslint-plugin-react": "=3.4.2",
"markdown-spellcheck": "=0.11.0", "markdown-spellcheck": "=0.11.0",
"node-sass": "=3.8.0", "node-sass": "=3.8.0",
"nsp": "=2.6.1",
"postcss-cli": "=2.5.2", "postcss-cli": "=2.5.2",
"sass-lint": "=1.8.2", "sass-lint": "=1.8.2",
"uglify-js": "=2.7.0" "uglify-js": "=2.7.0"

View file

@ -1,3 +1,4 @@
bandit==1.1.0
flake8==2.5.0 flake8==2.5.0
fontawesome_markdown==0.2.5 fontawesome_markdown==0.2.5
git+https://github.com/ryneeverett/python-markdown-comments.git git+https://github.com/ryneeverett/python-markdown-comments.git