Skip to content

Commit 58d48f9

Browse files
committed
Remove padding within blocks #168
* Add ESLint padded-blocks rule Signed-off-by: Jillian Daguil <[email protected]>
1 parent 9f5b714 commit 58d48f9

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

.eslintrc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,14 @@
6363
{
6464
"before": true
6565
}
66+
],
67+
"one-var": [
68+
"error",
69+
"never"
70+
],
71+
"padded-blocks": [
72+
"error",
73+
"never"
6674
]
6775
}
6876
}

assets/app/js/aboutCodeDB.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,8 @@ class AboutCodeDB {
235235
if (currProgress > progress) {
236236
progress = currProgress;
237237
onProgressUpdate(progress);
238-
console.log('Progress: ' +
239-
`${progress}% ` +
240-
`(${index}/${files_count})`);
241-
238+
console.log('Progress: ' + `${progress}% ` +
239+
`(${index}/${files_count})`);
242240
}
243241
})
244242
.then(() => {

assets/app/js/helpers/barChart.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
class BarChart {
1818
constructor(chartData, chartOptions, chartSelector) {
19-
2019
$(chartSelector).empty();
2120

2221
let formattedData = BarChart.formatChartData(chartData);
@@ -179,7 +178,6 @@ class BarChart {
179178
}
180179

181180
static formatChartData(names) {
182-
183181
// Sum the total number of times the name appears
184182
let count = {};
185183
$.each(names, function(i, name) {

test/aboutCodeDB.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ const FLATTENED_FILE = __dirname + '/data/flattened-scancode-results.json';
3333
const DUPLICATE_PATH_FILE = __dirname + '/data/scancode-duplicate-path-values.json';
3434

3535
describe('checkAboutCodeDB', function() {
36-
3736
describe('addFromJsonFile', function() {
3837
it('should add rows to database', function () {
3938
let aboutCodeDB = new AboutCodeDB();

0 commit comments

Comments
 (0)