mirror of
https://github.com/beautifier/js-beautify.git
synced 2025-01-31 09:52:17 +00:00
Updated CodeClimate config
This commit is contained in:
parent
679f9f938e
commit
60f897e1f3
@ -8,3 +8,5 @@ ratings:
|
||||
- "**.js"
|
||||
- "**.py"
|
||||
exclude_paths:
|
||||
- web/third-party/**
|
||||
- "**/generated/*"
|
||||
|
@ -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/**
|
||||
|
@ -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
|
||||
};
|
||||
|
@ -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
|
||||
};
|
||||
|
@ -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()))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user