Skip to content
Snippets Groups Projects
Commit ccada28f authored by Mike Greiling's avatar Mike Greiling
Browse files

resolve all padded-blocks eslint violations

parent e7b5945c
No related branches found
No related tags found
No related merge requests found
Showing
with 20 additions and 50 deletions
/* eslint-disable space-before-function-paren, arrow-body-style, indent, padded-blocks */
/* eslint-disable space-before-function-paren, arrow-body-style, indent */
 
//= require jquery
//= require gl_field_errors
Loading
Loading
@@ -107,7 +107,5 @@
expect(noTitleErrorElem.text()).toBe('This field is required.');
expect(hasTitleErrorElem.text()).toBe('Please provide a valid email address.');
});
});
})(window.gl || (window.gl = {}));
/* eslint-disable quotes, indent, object-curly-spacing, jasmine/no-suite-dupes, vars-on-top, no-var, padded-blocks, spaced-comment, max-len */
/* eslint-disable quotes, indent, object-curly-spacing, jasmine/no-suite-dupes, vars-on-top, no-var, spaced-comment, max-len */
/* global d3 */
/* global ContributorsGraph */
/* global ContributorsMasterGraph */
Loading
Loading
@@ -94,7 +94,6 @@ describe("ContributorsGraph", function () {
});
 
describe("ContributorsMasterGraph", function () {
// TODO: fix or remove
//describe("#process_dates", function () {
//it("gets and parses dates", function () {
Loading
Loading
@@ -128,6 +127,4 @@ describe("ContributorsMasterGraph", function () {
expect(data).toEqual(correct);
});
});
});
/* eslint-disable quotes, padded-blocks, no-var, camelcase, object-curly-spacing, indent, object-property-newline, comma-dangle, comma-spacing, spaced-comment, max-len, key-spacing, vars-on-top, quote-props, no-multi-spaces */
/* eslint-disable quotes, no-var, camelcase, object-curly-spacing, indent, object-property-newline, comma-dangle, comma-spacing, spaced-comment, max-len, key-spacing, vars-on-top, quote-props, no-multi-spaces */
/* global ContributorsStatGraphUtil */
 
//= require graphs/stat_graph_contributors_util
 
describe("ContributorsStatGraphUtil", function () {
describe("#parse_log", function () {
it("returns a correctly parsed log", function () {
var fake_log = [
Loading
Loading
@@ -34,7 +33,6 @@ describe("ContributorsStatGraphUtil", function () {
});
 
describe("#store_data", function () {
var fake_entry = {author: "Karlo Soriano", date: "2013-05-09", additions: 471};
var fake_total = {};
var fake_by_author = {};
Loading
Loading
@@ -56,7 +54,6 @@ describe("ContributorsStatGraphUtil", function () {
ContributorsStatGraphUtil.store_data(fake_entry, fake_total, fake_by_author);
expect(ContributorsStatGraphUtil.store_deletions).toHaveBeenCalled();
});
});
 
// TODO: fix or remove
Loading
Loading
@@ -210,6 +207,4 @@ describe("ContributorsStatGraphUtil", function () {
expect(ContributorsStatGraphUtil.in_range(date, date_range)).toEqual(false);
});
});
});
/* eslint-disable quotes, padded-blocks */
/* eslint-disable quotes */
/* global StatGraph */
 
//= require graphs/stat_graph
 
describe("StatGraph", function () {
describe("#get_log", function () {
it("returns log", function () {
StatGraph.log = "test";
Loading
Loading
@@ -18,5 +17,4 @@ describe("StatGraph", function () {
expect(StatGraph.log).toBe("test");
});
});
});
/* eslint-disable space-before-function-paren, padded-blocks, no-var */
/* eslint-disable space-before-function-paren, no-var */
/*= require header */
/*= require lib/utils/text_utility */
/*= require jquery */
 
(function() {
describe('Header', function() {
var todosPendingCount = '.todos-pending-count';
var fixtureTemplate = 'static/header.html.raw';
Loading
Loading
@@ -51,5 +50,4 @@
});
});
});
}).call(this);
/* eslint-disable space-before-function-paren, no-var, one-var, one-var-declaration-per-line, no-use-before-define, indent, no-trailing-spaces, comma-dangle, padded-blocks, max-len */
/* eslint-disable space-before-function-paren, no-var, one-var, one-var-declaration-per-line, no-use-before-define, indent, no-trailing-spaces, comma-dangle, max-len */
/* global Issue */
 
/*= require lib/utils/text_utility */
Loading
Loading
@@ -161,5 +161,4 @@
expect($btnReopen).toHaveProp('disabled', false);
});
});
}).call(this);
/* eslint-disable space-before-function-paren, no-var, no-param-reassign, quotes, prefer-template, no-else-return, new-cap, dot-notation, no-return-assign, comma-dangle, no-new, one-var, one-var-declaration-per-line, jasmine/no-spec-dupes, no-underscore-dangle, padded-blocks, max-len */
/* eslint-disable space-before-function-paren, no-var, no-param-reassign, quotes, prefer-template, no-else-return, new-cap, dot-notation, no-return-assign, comma-dangle, no-new, one-var, one-var-declaration-per-line, jasmine/no-spec-dupes, no-underscore-dangle, max-len */
/* global LineHighlighter */
 
/*= require line_highlighter */
Loading
Loading
@@ -227,5 +227,4 @@
});
});
});
}).call(this);
/* eslint-disable space-before-function-paren, no-return-assign, padded-blocks */
/* eslint-disable space-before-function-paren, no-return-assign */
/* global MergeRequest */
 
/*= require merge_request */
Loading
Loading
@@ -26,5 +26,4 @@
});
});
});
}).call(this);
/* eslint-disable space-before-function-paren, quotes, comma-dangle, dot-notation, indent, quote-props, no-var, padded-blocks, max-len */
/* eslint-disable space-before-function-paren, quotes, comma-dangle, dot-notation, indent, quote-props, no-var, max-len */
 
/*= require merge_request_widget */
/*= require lib/utils/datetime_utility */
Loading
Loading
@@ -167,5 +167,4 @@
});
});
});
}).call(this);
/* eslint-disable space-before-function-paren, one-var, no-var, one-var-declaration-per-line, no-return-assign, quotes, padded-blocks, max-len */
/* eslint-disable space-before-function-paren, one-var, no-var, one-var-declaration-per-line, no-return-assign, quotes, max-len */
/* global NewBranchForm */
 
/*= require jquery-ui/autocomplete */
Loading
Loading
@@ -166,5 +166,4 @@
});
});
});
}).call(this);
/* eslint-disable space-before-function-paren, no-unused-expressions, no-var, object-shorthand, comma-dangle, padded-blocks, max-len */
/* eslint-disable space-before-function-paren, no-unused-expressions, no-var, object-shorthand, comma-dangle, max-len */
/* global Notes */
 
/*= require notes */
Loading
Loading
@@ -75,5 +75,4 @@
});
});
});
}).call(this);
/* eslint-disable space-before-function-paren, no-unused-expressions, no-return-assign, no-param-reassign, no-var, new-cap, wrap-iife, no-unused-vars, quotes, jasmine/no-expect-in-setup-teardown, padded-blocks, max-len */
/* eslint-disable space-before-function-paren, no-unused-expressions, no-return-assign, no-param-reassign, no-var, new-cap, wrap-iife, no-unused-vars, quotes, jasmine/no-expect-in-setup-teardown, max-len */
 
/* global Project */
 
Loading
Loading
@@ -49,5 +49,4 @@
});
});
});
}).call(this);
/* eslint-disable space-before-function-paren, no-var, one-var, one-var-declaration-per-line, new-parens, no-return-assign, new-cap, vars-on-top, padded-blocks, max-len */
/* eslint-disable space-before-function-paren, no-var, one-var, one-var-declaration-per-line, new-parens, no-return-assign, new-cap, vars-on-top, max-len */
/* global Sidebar */
 
/*= require right_sidebar */
Loading
Loading
@@ -80,5 +80,4 @@
expect(todoToggleSpy.calls.count()).toEqual(1);
});
});
}).call(this);
/* eslint-disable space-before-function-paren, max-len, no-var, one-var, one-var-declaration-per-line, no-unused-expressions, consistent-return, no-param-reassign, default-case, no-return-assign, comma-dangle, object-shorthand, prefer-template, quotes, new-parens, vars-on-top, new-cap, padded-blocks, max-len */
/* eslint-disable space-before-function-paren, max-len, no-var, one-var, one-var-declaration-per-line, no-unused-expressions, consistent-return, no-param-reassign, default-case, no-return-assign, comma-dangle, object-shorthand, prefer-template, quotes, new-parens, vars-on-top, new-cap, max-len */
 
/*= require gl_dropdown */
/*= require search_autocomplete */
Loading
Loading
@@ -171,5 +171,4 @@
expect(enterKeyEvent.isDefaultPrevented()).toBe(true);
});
});
}).call(this);
/* eslint-disable space-before-function-paren, no-return-assign, no-var, quotes, padded-blocks */
/* eslint-disable space-before-function-paren, no-return-assign, no-var, quotes */
/* global ShortcutsIssuable */
 
/*= require shortcuts_issuable */
Loading
Loading
@@ -75,5 +75,4 @@
});
});
});
}).call(this);
/* eslint-disable space-before-function-paren, no-var, no-return-assign, quotes, padded-blocks */
/* eslint-disable space-before-function-paren, no-var, no-return-assign, quotes */
 
/*= require syntax_highlight */
 
Loading
Loading
@@ -41,5 +41,4 @@
});
});
});
}).call(this);
/* eslint-disable space-before-function-paren, new-parens, quotes, comma-dangle, no-var, one-var, one-var-declaration-per-line, padded-blocks, max-len */
/* eslint-disable space-before-function-paren, new-parens, quotes, comma-dangle, no-var, one-var, one-var-declaration-per-line, max-len */
/* global MockU2FDevice */
/* global U2FAuthenticate */
 
Loading
Loading
@@ -69,5 +69,4 @@
});
});
});
}).call(this);
/* eslint-disable space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, no-unused-expressions, no-return-assign, no-param-reassign, padded-blocks, max-len */
/* eslint-disable space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, no-unused-expressions, no-return-assign, no-param-reassign, max-len */
(function() {
var bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
 
Loading
Loading
@@ -28,7 +28,5 @@
};
 
return MockU2FDevice;
})();
}).call(this);
/* eslint-disable space-before-function-paren, new-parens, quotes, no-var, one-var, one-var-declaration-per-line, comma-dangle, padded-blocks, max-len */
/* eslint-disable space-before-function-paren, new-parens, quotes, no-var, one-var, one-var-declaration-per-line, comma-dangle, max-len */
/* global MockU2FDevice */
/* global U2FRegister */
 
Loading
Loading
@@ -74,5 +74,4 @@
});
});
});
}).call(this);
/* eslint-disable space-before-function-paren, no-var, one-var, one-var-declaration-per-line, object-shorthand, comma-dangle, no-return-assign, new-cap, padded-blocks, max-len */
/* eslint-disable space-before-function-paren, no-var, one-var, one-var-declaration-per-line, object-shorthand, comma-dangle, no-return-assign, new-cap, max-len */
/* global Dropzone */
/* global Mousetrap */
/* global ZenMode */
Loading
Loading
@@ -76,5 +76,4 @@
keyCode: 27
}));
};
}).call(this);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment