Updated CodeClimate config

This commit is contained in:
Liam Newman 2017-02-19 15:39:21 -08:00
parent 679f9f938e
commit 60f897e1f3
8 changed files with 9 additions and 7 deletions

View File

@ -8,3 +8,5 @@ ratings:
- "**.js"
- "**.py"
exclude_paths:
- web/third-party/**
- "**/generated/*"

View File

@ -4,6 +4,6 @@ node_modules/**
python/**
target/**
tools/**
test/underscore-min.js
test/underscore.js
test/resources/underscore-min.js
test/resources/underscore.js
web/third-party/**

View File

@ -14,7 +14,7 @@ var fs = require('fs'),
function node_beautifier_html_tests() {
console.log('Testing performance...');
var index_html = fs.readFileSync(__dirname + '/../../index.html', 'utf8');
var data_attr = fs.readFileSync(__dirname + '/../../test/html-with-base64image.html', 'utf8');
var data_attr = fs.readFileSync(__dirname + '/../../test/resources/html-with-base64image.html', 'utf8');
var options = {
wrap_line_length: 80
};

View File

@ -12,8 +12,8 @@ var fs = require('fs'),
function node_beautifier_tests() {
console.log('Testing performance...');
var data = fs.readFileSync(__dirname + '/../../test/underscore.js', 'utf8');
var data_min = fs.readFileSync(__dirname + '/../../test/underscore-min.js', 'utf8');
var data = fs.readFileSync(__dirname + '/../../test/resources/underscore.js', 'utf8');
var data_min = fs.readFileSync(__dirname + '/../../test/resources/underscore-min.js', 'utf8');
var options = {
wrap_line_length: 80
};

View File

@ -23,8 +23,8 @@ def report_perf(fn):
if __name__ == '__main__':
dirname = os.path.dirname(os.path.abspath(__file__))
underscore_file = os.path.join(dirname, "../../../", "test/underscore.js")
underscore_min_file = os.path.join(dirname, "../../../", "test/underscore-min.js")
underscore_file = os.path.join(dirname, "../../../", "test/resources/underscore.js")
underscore_min_file = os.path.join(dirname, "../../../", "test/resources/underscore-min.js")
data = copy.copy(''.join(open(underscore_file).readlines()))
data_min = copy.copy(''.join(open(underscore_min_file).readlines()))