1
0
Fork 0

Add travis support for codebase linting

merge-requests/97/head
Nikos Roussos 2016-06-28 21:11:35 +03:00
parent 4bb38c83ca
commit 2ba4976e51
6 changed files with 15 additions and 4 deletions

2
.jshintignore 100644
View File

@ -0,0 +1,2 @@
db/static/js/lib/
staticfiles/

9
.travis.yml 100644
View File

@ -0,0 +1,9 @@
language: python
python:
- "2.7"
install:
- pip install flake8
- npm install -g jshint
script:
- flake8 .
- jshint .

View File

@ -1,4 +1,4 @@
from base import *
from base import * # flake8: noqa
ENVIRONMENT = 'dev'

View File

@ -1,5 +1,5 @@
import os
from base import *
from base import * # flake8: noqa
ENVIRONMENT = 'production'

View File

@ -1,5 +1,5 @@
import os
from base import *
from base import * # flake8: noqa
ENVIRONMENT = 'stage'

View File

@ -1,7 +1,7 @@
$(document).ready(function() {
'use strict';
var items = new Array();
var items = [];
$('div.satellite-group-item').each(function(i, obj) {
items.push(obj);
});