Gapminder/vizabi

High overall complexity: 227

import { isTouchDevice } from "base/utils";

const css = {
  INVISIBLE: "vzb-invisible",
  COLOR_POINTER: "vzb-colorpicker-pointer",
Found in src/helpers/d3.colorPicker.js - About 2 days to fix

When classes take on too many responsibilities, they grow. A large number of instance variables or methods can make a class hard to understand. Large classes tend to have lower cohesion and higher churn.

Often large classes have methods that do not operate on all of the class state. Identifying the groups of data that are used together can point to seams to split out additional collaborator classes or value objects.

Another trick is to look for repeated prefixes or suffixes in method and variable names, or repeated parameter names, and use them to guide extractions.

Refactorings

Further Reading

High overall complexity: 128

//  d3.scale.genericLog
export default function genericLog() {
  return (function d3_scale_genericLog(logScale) {
    const _this = this;
    let scales = [];
Found in src/helpers/d3.genericLogScale.js - About 1 day to fix

When classes take on too many responsibilities, they grow. A large number of instance variables or methods can make a class hard to understand. Large classes tend to have lower cohesion and higher churn.

Often large classes have methods that do not operate on all of the class state. Identifying the groups of data that are used together can point to seams to split out additional collaborator classes or value objects.

Another trick is to look for repeated prefixes or suffixes in method and variable names, or repeated parameter names, and use them to guide extractions.

Refactorings

Further Reading

Complex method in buildScales

    const buildScales = function() {
      rangePointingForward = range[0] < range[range.length - 1];
      const rangePointingSign = rangePointingForward ? 1 : -1;
      scales = [];
      if (domainParts.length == 1) {
Found in src/helpers/d3.genericLogScale.js - About 4 hrs to fix

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Complex method in initAxis

  initAxis() {
    const {
      lineWidth,
      triangleWidth,
      triangleHeight,

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Complex method in setConditions

  setConditions(conditions) {
    if (!isNaN(parseFloat(conditions.rightOffset)) && isFinite(conditions.rightOffset)) {
      this.rightOffset = conditions.rightOffset;
    }
    if (!isNaN(parseFloat(conditions.leftOffset)) && isFinite(conditions.leftOffset)) {
Found in src/helpers/d3.dynamicBackground.js - About 2 hrs to fix

Long or complex methods can make code harder to understand. In most circumstances, methods are best as a small chunk of code (the "how") with a clear, understandable name (the "what"). Long methods can also lead to duplication, as it's harder to reuse logic that is tightly coupled to surrounding code.

Refactorings

Read More

Strings must use doublequote.

'use strict';
Found in .cicd/protractor.conf.js - About 5 mins to fix

When do I get this error?

JSHint (since version r09) will throw the "Mixed double and single quotes" error when it encounters a string literal delimited by double or single quote characters, when a string literal delimited by the other has already been encountered, but only when quotmark option is set to true.

Why do I get this error?

This error is raised to highlight a lack of consistency. There is no difference in JavaScript between single and double quotes. This is made clear by the grammar for string literals (ES5 §7.8.4).

The only difference is that DoubleStringCharacters cannot contain another double quote, and SingleStringCharacters cannot contain a single quote (as that would terminate the string literal).

However, it would usually be frowned upon to mix both types of quote within one program (there are obvious exceptions, such as nested quotes). You can easily resolve this issue by sticking to one type, and you should consider setting the quotmark option to either double or single to enforce your preference.

In JSHint 1.0.0 and above you have the ability to ignore any warning with a special option syntax. The identifier of this warning is W110. This means you can tell JSHint to not issue this warning with the /jshint -W110 / directive.

Strings must use doublequote.

    baseUrl: 'http://localhost:9000/',
Found in .cicd/protractor.conf.js - About 5 mins to fix

When do I get this error?

JSHint (since version r09) will throw the "Mixed double and single quotes" error when it encounters a string literal delimited by double or single quote characters, when a string literal delimited by the other has already been encountered, but only when quotmark option is set to true.

Why do I get this error?

This error is raised to highlight a lack of consistency. There is no difference in JavaScript between single and double quotes. This is made clear by the grammar for string literals (ES5 §7.8.4).

The only difference is that DoubleStringCharacters cannot contain another double quote, and SingleStringCharacters cannot contain a single quote (as that would terminate the string literal).

However, it would usually be frowned upon to mix both types of quote within one program (there are obvious exceptions, such as nested quotes). You can easily resolve this issue by sticking to one type, and you should consider setting the quotmark option to either double or single to enforce your preference.

In JSHint 1.0.0 and above you have the ability to ignore any warning with a special option syntax. The identifier of this warning is W110. This means you can tell JSHint to not issue this warning with the /jshint -W110 / directive.

Strings must use doublequote.

        '../tests/e2e/*.spec.js'
Found in .cicd/protractor.conf.js - About 5 mins to fix

When do I get this error?

JSHint (since version r09) will throw the "Mixed double and single quotes" error when it encounters a string literal delimited by double or single quote characters, when a string literal delimited by the other has already been encountered, but only when quotmark option is set to true.

Why do I get this error?

This error is raised to highlight a lack of consistency. There is no difference in JavaScript between single and double quotes. This is made clear by the grammar for string literals (ES5 §7.8.4).

The only difference is that DoubleStringCharacters cannot contain another double quote, and SingleStringCharacters cannot contain a single quote (as that would terminate the string literal).

However, it would usually be frowned upon to mix both types of quote within one program (there are obvious exceptions, such as nested quotes). You can easily resolve this issue by sticking to one type, and you should consider setting the quotmark option to either double or single to enforce your preference.

In JSHint 1.0.0 and above you have the ability to ignore any warning with a special option syntax. The identifier of this warning is W110. This means you can tell JSHint to not issue this warning with the /jshint -W110 / directive.

Strings must use doublequote.

  framework: 'jasmine',
Found in .cicd/protractor.conf.js - About 5 mins to fix

When do I get this error?

JSHint (since version r09) will throw the "Mixed double and single quotes" error when it encounters a string literal delimited by double or single quote characters, when a string literal delimited by the other has already been encountered, but only when quotmark option is set to true.

Why do I get this error?

This error is raised to highlight a lack of consistency. There is no difference in JavaScript between single and double quotes. This is made clear by the grammar for string literals (ES5 §7.8.4).

The only difference is that DoubleStringCharacters cannot contain another double quote, and SingleStringCharacters cannot contain a single quote (as that would terminate the string literal).

However, it would usually be frowned upon to mix both types of quote within one program (there are obvious exceptions, such as nested quotes). You can easily resolve this issue by sticking to one type, and you should consider setting the quotmark option to either double or single to enforce your preference.

In JSHint 1.0.0 and above you have the ability to ignore any warning with a special option syntax. The identifier of this warning is W110. This means you can tell JSHint to not issue this warning with the /jshint -W110 / directive.

Strings must use doublequote.

    var SpecReporter = require('jasmine-spec-reporter');
Found in .cicd/protractor.conf.js - About 5 mins to fix

When do I get this error?

JSHint (since version r09) will throw the "Mixed double and single quotes" error when it encounters a string literal delimited by double or single quote characters, when a string literal delimited by the other has already been encountered, but only when quotmark option is set to true.

Why do I get this error?

This error is raised to highlight a lack of consistency. There is no difference in JavaScript between single and double quotes. This is made clear by the grammar for string literals (ES5 §7.8.4).

The only difference is that DoubleStringCharacters cannot contain another double quote, and SingleStringCharacters cannot contain a single quote (as that would terminate the string literal).

However, it would usually be frowned upon to mix both types of quote within one program (there are obvious exceptions, such as nested quotes). You can easily resolve this issue by sticking to one type, and you should consider setting the quotmark option to either double or single to enforce your preference.

In JSHint 1.0.0 and above you have the ability to ignore any warning with a special option syntax. The identifier of this warning is W110. This means you can tell JSHint to not issue this warning with the /jshint -W110 / directive.

Strings must use doublequote.

    jasmine.getEnv().addReporter(new SpecReporter({displayStacktrace: 'all'}));
Found in .cicd/protractor.conf.js - About 5 mins to fix

When do I get this error?

JSHint (since version r09) will throw the "Mixed double and single quotes" error when it encounters a string literal delimited by double or single quote characters, when a string literal delimited by the other has already been encountered, but only when quotmark option is set to true.

Why do I get this error?

This error is raised to highlight a lack of consistency. There is no difference in JavaScript between single and double quotes. This is made clear by the grammar for string literals (ES5 §7.8.4).

The only difference is that DoubleStringCharacters cannot contain another double quote, and SingleStringCharacters cannot contain a single quote (as that would terminate the string literal).

However, it would usually be frowned upon to mix both types of quote within one program (there are obvious exceptions, such as nested quotes). You can easily resolve this issue by sticking to one type, and you should consider setting the quotmark option to either double or single to enforce your preference.

In JSHint 1.0.0 and above you have the ability to ignore any warning with a special option syntax. The identifier of this warning is W110. This means you can tell JSHint to not issue this warning with the /jshint -W110 / directive.

Strings must use doublequote.

  reporter: ['spec'],
Found in .cicd/protractor.conf.js - About 5 mins to fix

When do I get this error?

JSHint (since version r09) will throw the "Mixed double and single quotes" error when it encounters a string literal delimited by double or single quote characters, when a string literal delimited by the other has already been encountered, but only when quotmark option is set to true.

Why do I get this error?

This error is raised to highlight a lack of consistency. There is no difference in JavaScript between single and double quotes. This is made clear by the grammar for string literals (ES5 §7.8.4).

The only difference is that DoubleStringCharacters cannot contain another double quote, and SingleStringCharacters cannot contain a single quote (as that would terminate the string literal).

However, it would usually be frowned upon to mix both types of quote within one program (there are obvious exceptions, such as nested quotes). You can easily resolve this issue by sticking to one type, and you should consider setting the quotmark option to either double or single to enforce your preference.

In JSHint 1.0.0 and above you have the ability to ignore any warning with a special option syntax. The identifier of this warning is W110. This means you can tell JSHint to not issue this warning with the /jshint -W110 / directive.

Strings must use doublequote.

    'browserName': 'chrome',
Found in .cicd/protractor.conf.js - About 5 mins to fix

When do I get this error?

JSHint (since version r09) will throw the "Mixed double and single quotes" error when it encounters a string literal delimited by double or single quote characters, when a string literal delimited by the other has already been encountered, but only when quotmark option is set to true.

Why do I get this error?

This error is raised to highlight a lack of consistency. There is no difference in JavaScript between single and double quotes. This is made clear by the grammar for string literals (ES5 §7.8.4).

The only difference is that DoubleStringCharacters cannot contain another double quote, and SingleStringCharacters cannot contain a single quote (as that would terminate the string literal).

However, it would usually be frowned upon to mix both types of quote within one program (there are obvious exceptions, such as nested quotes). You can easily resolve this issue by sticking to one type, and you should consider setting the quotmark option to either double or single to enforce your preference.

In JSHint 1.0.0 and above you have the ability to ignore any warning with a special option syntax. The identifier of this warning is W110. This means you can tell JSHint to not issue this warning with the /jshint -W110 / directive.

Strings must use doublequote.

    'browserName': 'chrome',
Found in .cicd/protractor.conf.js - About 5 mins to fix

When do I get this error?

JSHint (since version r09) will throw the "Mixed double and single quotes" error when it encounters a string literal delimited by double or single quote characters, when a string literal delimited by the other has already been encountered, but only when quotmark option is set to true.

Why do I get this error?

This error is raised to highlight a lack of consistency. There is no difference in JavaScript between single and double quotes. This is made clear by the grammar for string literals (ES5 §7.8.4).

The only difference is that DoubleStringCharacters cannot contain another double quote, and SingleStringCharacters cannot contain a single quote (as that would terminate the string literal).

However, it would usually be frowned upon to mix both types of quote within one program (there are obvious exceptions, such as nested quotes). You can easily resolve this issue by sticking to one type, and you should consider setting the quotmark option to either double or single to enforce your preference.

In JSHint 1.0.0 and above you have the ability to ignore any warning with a special option syntax. The identifier of this warning is W110. This means you can tell JSHint to not issue this warning with the /jshint -W110 / directive.

'browser' is not defined.

    browser.ignoreSynchronization = true;
Found in .cicd/protractor.conf.js - About 5 mins to fix

This error pertains to the JSHint option undef.

This option prohibits the use of explicitly undeclared variables. This option is very useful for spotting leaking and mistyped variables.

/*jshint undef:true */

function test() {
  var myVar = 'Hello, World';
  console.log(myvar); // Oops, typoed here. JSHint with undef will complain
}

If your variable is defined in another file, you can use /global ... / directive to tell JSHint about it.

'jasmine' is not defined.

    jasmine.getEnv().addReporter(new SpecReporter({displayStacktrace: 'all'}));
Found in .cicd/protractor.conf.js - About 5 mins to fix

This error pertains to the JSHint option undef.

This option prohibits the use of explicitly undeclared variables. This option is very useful for spotting leaking and mistyped variables.

/*jshint undef:true */

function test() {
  var myVar = 'Hello, World';
  console.log(myvar); // Oops, typoed here. JSHint with undef will complain
}

If your variable is defined in another file, you can use /global ... / directive to tell JSHint about it.

Strings must use doublequote.

'use strict';
Found in .cicd/protractor_dev.conf.js - About 5 mins to fix

When do I get this error?

JSHint (since version r09) will throw the "Mixed double and single quotes" error when it encounters a string literal delimited by double or single quote characters, when a string literal delimited by the other has already been encountered, but only when quotmark option is set to true.

Why do I get this error?

This error is raised to highlight a lack of consistency. There is no difference in JavaScript between single and double quotes. This is made clear by the grammar for string literals (ES5 §7.8.4).

The only difference is that DoubleStringCharacters cannot contain another double quote, and SingleStringCharacters cannot contain a single quote (as that would terminate the string literal).

However, it would usually be frowned upon to mix both types of quote within one program (there are obvious exceptions, such as nested quotes). You can easily resolve this issue by sticking to one type, and you should consider setting the quotmark option to either double or single to enforce your preference.

In JSHint 1.0.0 and above you have the ability to ignore any warning with a special option syntax. The identifier of this warning is W110. This means you can tell JSHint to not issue this warning with the /jshint -W110 / directive.

Strings must use doublequote.

  chromeDriver: '/usr/lib/node_modules/webdriver-manager/selenium/chromedriver_2.28',
Found in .cicd/protractor_dev.conf.js - About 5 mins to fix

When do I get this error?

JSHint (since version r09) will throw the "Mixed double and single quotes" error when it encounters a string literal delimited by double or single quote characters, when a string literal delimited by the other has already been encountered, but only when quotmark option is set to true.

Why do I get this error?

This error is raised to highlight a lack of consistency. There is no difference in JavaScript between single and double quotes. This is made clear by the grammar for string literals (ES5 §7.8.4).

The only difference is that DoubleStringCharacters cannot contain another double quote, and SingleStringCharacters cannot contain a single quote (as that would terminate the string literal).

However, it would usually be frowned upon to mix both types of quote within one program (there are obvious exceptions, such as nested quotes). You can easily resolve this issue by sticking to one type, and you should consider setting the quotmark option to either double or single to enforce your preference.

In JSHint 1.0.0 and above you have the ability to ignore any warning with a special option syntax. The identifier of this warning is W110. This means you can tell JSHint to not issue this warning with the /jshint -W110 / directive.

Strings must use doublequote.

    '../tests/nginx/tools-page-tests.js'
Found in .cicd/protractor_dev.conf.js - About 5 mins to fix

When do I get this error?

JSHint (since version r09) will throw the "Mixed double and single quotes" error when it encounters a string literal delimited by double or single quote characters, when a string literal delimited by the other has already been encountered, but only when quotmark option is set to true.

Why do I get this error?

This error is raised to highlight a lack of consistency. There is no difference in JavaScript between single and double quotes. This is made clear by the grammar for string literals (ES5 §7.8.4).

The only difference is that DoubleStringCharacters cannot contain another double quote, and SingleStringCharacters cannot contain a single quote (as that would terminate the string literal).

However, it would usually be frowned upon to mix both types of quote within one program (there are obvious exceptions, such as nested quotes). You can easily resolve this issue by sticking to one type, and you should consider setting the quotmark option to either double or single to enforce your preference.

In JSHint 1.0.0 and above you have the ability to ignore any warning with a special option syntax. The identifier of this warning is W110. This means you can tell JSHint to not issue this warning with the /jshint -W110 / directive.

Strings must use doublequote.

    browserName: 'chrome',
Found in .cicd/protractor_dev.conf.js - About 5 mins to fix

When do I get this error?

JSHint (since version r09) will throw the "Mixed double and single quotes" error when it encounters a string literal delimited by double or single quote characters, when a string literal delimited by the other has already been encountered, but only when quotmark option is set to true.

Why do I get this error?

This error is raised to highlight a lack of consistency. There is no difference in JavaScript between single and double quotes. This is made clear by the grammar for string literals (ES5 §7.8.4).

The only difference is that DoubleStringCharacters cannot contain another double quote, and SingleStringCharacters cannot contain a single quote (as that would terminate the string literal).

However, it would usually be frowned upon to mix both types of quote within one program (there are obvious exceptions, such as nested quotes). You can easily resolve this issue by sticking to one type, and you should consider setting the quotmark option to either double or single to enforce your preference.

In JSHint 1.0.0 and above you have the ability to ignore any warning with a special option syntax. The identifier of this warning is W110. This means you can tell JSHint to not issue this warning with the /jshint -W110 / directive.

Strings must use doublequote.

      args: ['show-fps-counter=true']
Found in .cicd/protractor_dev.conf.js - About 5 mins to fix

When do I get this error?

JSHint (since version r09) will throw the "Mixed double and single quotes" error when it encounters a string literal delimited by double or single quote characters, when a string literal delimited by the other has already been encountered, but only when quotmark option is set to true.

Why do I get this error?

This error is raised to highlight a lack of consistency. There is no difference in JavaScript between single and double quotes. This is made clear by the grammar for string literals (ES5 §7.8.4).

The only difference is that DoubleStringCharacters cannot contain another double quote, and SingleStringCharacters cannot contain a single quote (as that would terminate the string literal).

However, it would usually be frowned upon to mix both types of quote within one program (there are obvious exceptions, such as nested quotes). You can easily resolve this issue by sticking to one type, and you should consider setting the quotmark option to either double or single to enforce your preference.

In JSHint 1.0.0 and above you have the ability to ignore any warning with a special option syntax. The identifier of this warning is W110. This means you can tell JSHint to not issue this warning with the /jshint -W110 / directive.

Strings must use doublequote.

  baseUrl: 'http://tools-dev.gapminderdev.org',
Found in .cicd/protractor_dev.conf.js - About 5 mins to fix

When do I get this error?

JSHint (since version r09) will throw the "Mixed double and single quotes" error when it encounters a string literal delimited by double or single quote characters, when a string literal delimited by the other has already been encountered, but only when quotmark option is set to true.

Why do I get this error?

This error is raised to highlight a lack of consistency. There is no difference in JavaScript between single and double quotes. This is made clear by the grammar for string literals (ES5 §7.8.4).

The only difference is that DoubleStringCharacters cannot contain another double quote, and SingleStringCharacters cannot contain a single quote (as that would terminate the string literal).

However, it would usually be frowned upon to mix both types of quote within one program (there are obvious exceptions, such as nested quotes). You can easily resolve this issue by sticking to one type, and you should consider setting the quotmark option to either double or single to enforce your preference.

In JSHint 1.0.0 and above you have the ability to ignore any warning with a special option syntax. The identifier of this warning is W110. This means you can tell JSHint to not issue this warning with the /jshint -W110 / directive.

Strings must use doublequote.

  framework: 'jasmine',
Found in .cicd/protractor_dev.conf.js - About 5 mins to fix

When do I get this error?

JSHint (since version r09) will throw the "Mixed double and single quotes" error when it encounters a string literal delimited by double or single quote characters, when a string literal delimited by the other has already been encountered, but only when quotmark option is set to true.

Why do I get this error?

This error is raised to highlight a lack of consistency. There is no difference in JavaScript between single and double quotes. This is made clear by the grammar for string literals (ES5 §7.8.4).

The only difference is that DoubleStringCharacters cannot contain another double quote, and SingleStringCharacters cannot contain a single quote (as that would terminate the string literal).

However, it would usually be frowned upon to mix both types of quote within one program (there are obvious exceptions, such as nested quotes). You can easily resolve this issue by sticking to one type, and you should consider setting the quotmark option to either double or single to enforce your preference.

In JSHint 1.0.0 and above you have the ability to ignore any warning with a special option syntax. The identifier of this warning is W110. This means you can tell JSHint to not issue this warning with the /jshint -W110 / directive.

Strings must use doublequote.

    let SpecReporter = require('jasmine-spec-reporter').SpecReporter;
Found in .cicd/protractor_dev.conf.js - About 5 mins to fix

When do I get this error?

JSHint (since version r09) will throw the "Mixed double and single quotes" error when it encounters a string literal delimited by double or single quote characters, when a string literal delimited by the other has already been encountered, but only when quotmark option is set to true.

Why do I get this error?

This error is raised to highlight a lack of consistency. There is no difference in JavaScript between single and double quotes. This is made clear by the grammar for string literals (ES5 §7.8.4).

The only difference is that DoubleStringCharacters cannot contain another double quote, and SingleStringCharacters cannot contain a single quote (as that would terminate the string literal).

However, it would usually be frowned upon to mix both types of quote within one program (there are obvious exceptions, such as nested quotes). You can easily resolve this issue by sticking to one type, and you should consider setting the quotmark option to either double or single to enforce your preference.

In JSHint 1.0.0 and above you have the ability to ignore any warning with a special option syntax. The identifier of this warning is W110. This means you can tell JSHint to not issue this warning with the /jshint -W110 / directive.

Missing semicolon.

    }))
Found in .cicd/protractor_dev.conf.js - About 5 mins to fix

The asi option in JSHint suppresses warnings about missing semicolons. There is a lot of FUD about semicolon spread by quite a few people in the community. The common myths are that semicolons are required all the time (they are not) and that they are unreliable. JavaScript has rules about semicolons which are followed by all browsers so it is up to you to decide whether you should or should not use semicolons in your code.

More Reading

http://blog.izs.me/post/2353458699/an-open-letter-to-javascript-leaders-regarding

http://inimino.org/~inimino/blog/javascript_semicolons

'jasmine' is not defined.

    jasmine.getEnv().addReporter(new SpecReporter({
Found in .cicd/protractor_dev.conf.js - About 5 mins to fix

This error pertains to the JSHint option undef.

This option prohibits the use of explicitly undeclared variables. This option is very useful for spotting leaking and mistyped variables.

/*jshint undef:true */

function test() {
  var myVar = 'Hello, World';
  console.log(myvar); // Oops, typoed here. JSHint with undef will complain
}

If your variable is defined in another file, you can use /global ... / directive to tell JSHint about it.

Strings must use doublequote.

'use strict';
Found in .cicd/protractor_local.conf.js - About 5 mins to fix

When do I get this error?

JSHint (since version r09) will throw the "Mixed double and single quotes" error when it encounters a string literal delimited by double or single quote characters, when a string literal delimited by the other has already been encountered, but only when quotmark option is set to true.

Why do I get this error?

This error is raised to highlight a lack of consistency. There is no difference in JavaScript between single and double quotes. This is made clear by the grammar for string literals (ES5 §7.8.4).

The only difference is that DoubleStringCharacters cannot contain another double quote, and SingleStringCharacters cannot contain a single quote (as that would terminate the string literal).

However, it would usually be frowned upon to mix both types of quote within one program (there are obvious exceptions, such as nested quotes). You can easily resolve this issue by sticking to one type, and you should consider setting the quotmark option to either double or single to enforce your preference.

In JSHint 1.0.0 and above you have the ability to ignore any warning with a special option syntax. The identifier of this warning is W110. This means you can tell JSHint to not issue this warning with the /jshint -W110 / directive.

Strings must use doublequote.

  chromeDriver: '/usr/lib/node_modules/webdriver-manager/selenium/chromedriver_2.28',
Found in .cicd/protractor_local.conf.js - About 5 mins to fix

When do I get this error?

JSHint (since version r09) will throw the "Mixed double and single quotes" error when it encounters a string literal delimited by double or single quote characters, when a string literal delimited by the other has already been encountered, but only when quotmark option is set to true.

Why do I get this error?

This error is raised to highlight a lack of consistency. There is no difference in JavaScript between single and double quotes. This is made clear by the grammar for string literals (ES5 §7.8.4).

The only difference is that DoubleStringCharacters cannot contain another double quote, and SingleStringCharacters cannot contain a single quote (as that would terminate the string literal).

However, it would usually be frowned upon to mix both types of quote within one program (there are obvious exceptions, such as nested quotes). You can easily resolve this issue by sticking to one type, and you should consider setting the quotmark option to either double or single to enforce your preference.

In JSHint 1.0.0 and above you have the ability to ignore any warning with a special option syntax. The identifier of this warning is W110. This means you can tell JSHint to not issue this warning with the /jshint -W110 / directive.

Strings must use doublequote.

    './tests/nginx/*.js'
Found in .cicd/protractor_local.conf.js - About 5 mins to fix

When do I get this error?

JSHint (since version r09) will throw the "Mixed double and single quotes" error when it encounters a string literal delimited by double or single quote characters, when a string literal delimited by the other has already been encountered, but only when quotmark option is set to true.

Why do I get this error?

This error is raised to highlight a lack of consistency. There is no difference in JavaScript between single and double quotes. This is made clear by the grammar for string literals (ES5 §7.8.4).

The only difference is that DoubleStringCharacters cannot contain another double quote, and SingleStringCharacters cannot contain a single quote (as that would terminate the string literal).

However, it would usually be frowned upon to mix both types of quote within one program (there are obvious exceptions, such as nested quotes). You can easily resolve this issue by sticking to one type, and you should consider setting the quotmark option to either double or single to enforce your preference.

In JSHint 1.0.0 and above you have the ability to ignore any warning with a special option syntax. The identifier of this warning is W110. This means you can tell JSHint to not issue this warning with the /jshint -W110 / directive.

Strings must use doublequote.

    browserName: 'chrome',
Found in .cicd/protractor_local.conf.js - About 5 mins to fix

When do I get this error?

JSHint (since version r09) will throw the "Mixed double and single quotes" error when it encounters a string literal delimited by double or single quote characters, when a string literal delimited by the other has already been encountered, but only when quotmark option is set to true.

Why do I get this error?

This error is raised to highlight a lack of consistency. There is no difference in JavaScript between single and double quotes. This is made clear by the grammar for string literals (ES5 §7.8.4).

The only difference is that DoubleStringCharacters cannot contain another double quote, and SingleStringCharacters cannot contain a single quote (as that would terminate the string literal).

However, it would usually be frowned upon to mix both types of quote within one program (there are obvious exceptions, such as nested quotes). You can easily resolve this issue by sticking to one type, and you should consider setting the quotmark option to either double or single to enforce your preference.

In JSHint 1.0.0 and above you have the ability to ignore any warning with a special option syntax. The identifier of this warning is W110. This means you can tell JSHint to not issue this warning with the /jshint -W110 / directive.

Strings must use doublequote.

      args: ['show-fps-counter=true']
Found in .cicd/protractor_local.conf.js - About 5 mins to fix

When do I get this error?

JSHint (since version r09) will throw the "Mixed double and single quotes" error when it encounters a string literal delimited by double or single quote characters, when a string literal delimited by the other has already been encountered, but only when quotmark option is set to true.

Why do I get this error?

This error is raised to highlight a lack of consistency. There is no difference in JavaScript between single and double quotes. This is made clear by the grammar for string literals (ES5 §7.8.4).

The only difference is that DoubleStringCharacters cannot contain another double quote, and SingleStringCharacters cannot contain a single quote (as that would terminate the string literal).

However, it would usually be frowned upon to mix both types of quote within one program (there are obvious exceptions, such as nested quotes). You can easily resolve this issue by sticking to one type, and you should consider setting the quotmark option to either double or single to enforce your preference.

In JSHint 1.0.0 and above you have the ability to ignore any warning with a special option syntax. The identifier of this warning is W110. This means you can tell JSHint to not issue this warning with the /jshint -W110 / directive.

Strings must use doublequote.

  baseUrl: 'https://www.gapminder.org',
Found in .cicd/protractor_local.conf.js - About 5 mins to fix

When do I get this error?

JSHint (since version r09) will throw the "Mixed double and single quotes" error when it encounters a string literal delimited by double or single quote characters, when a string literal delimited by the other has already been encountered, but only when quotmark option is set to true.

Why do I get this error?

This error is raised to highlight a lack of consistency. There is no difference in JavaScript between single and double quotes. This is made clear by the grammar for string literals (ES5 §7.8.4).

The only difference is that DoubleStringCharacters cannot contain another double quote, and SingleStringCharacters cannot contain a single quote (as that would terminate the string literal).

However, it would usually be frowned upon to mix both types of quote within one program (there are obvious exceptions, such as nested quotes). You can easily resolve this issue by sticking to one type, and you should consider setting the quotmark option to either double or single to enforce your preference.

In JSHint 1.0.0 and above you have the ability to ignore any warning with a special option syntax. The identifier of this warning is W110. This means you can tell JSHint to not issue this warning with the /jshint -W110 / directive.

Strings must use doublequote.

  framework: 'jasmine',
Found in .cicd/protractor_local.conf.js - About 5 mins to fix

When do I get this error?

JSHint (since version r09) will throw the "Mixed double and single quotes" error when it encounters a string literal delimited by double or single quote characters, when a string literal delimited by the other has already been encountered, but only when quotmark option is set to true.

Why do I get this error?

This error is raised to highlight a lack of consistency. There is no difference in JavaScript between single and double quotes. This is made clear by the grammar for string literals (ES5 §7.8.4).

The only difference is that DoubleStringCharacters cannot contain another double quote, and SingleStringCharacters cannot contain a single quote (as that would terminate the string literal).

However, it would usually be frowned upon to mix both types of quote within one program (there are obvious exceptions, such as nested quotes). You can easily resolve this issue by sticking to one type, and you should consider setting the quotmark option to either double or single to enforce your preference.

In JSHint 1.0.0 and above you have the ability to ignore any warning with a special option syntax. The identifier of this warning is W110. This means you can tell JSHint to not issue this warning with the /jshint -W110 / directive.

Strings must use doublequote.

    const SpecReporter = require('jasmine-spec-reporter');
Found in .cicd/protractor_local.conf.js - About 5 mins to fix

When do I get this error?

JSHint (since version r09) will throw the "Mixed double and single quotes" error when it encounters a string literal delimited by double or single quote characters, when a string literal delimited by the other has already been encountered, but only when quotmark option is set to true.

Why do I get this error?

This error is raised to highlight a lack of consistency. There is no difference in JavaScript between single and double quotes. This is made clear by the grammar for string literals (ES5 §7.8.4).

The only difference is that DoubleStringCharacters cannot contain another double quote, and SingleStringCharacters cannot contain a single quote (as that would terminate the string literal).

However, it would usually be frowned upon to mix both types of quote within one program (there are obvious exceptions, such as nested quotes). You can easily resolve this issue by sticking to one type, and you should consider setting the quotmark option to either double or single to enforce your preference.

In JSHint 1.0.0 and above you have the ability to ignore any warning with a special option syntax. The identifier of this warning is W110. This means you can tell JSHint to not issue this warning with the /jshint -W110 / directive.

Strings must use doublequote.

    jasmine.getEnv().addReporter(new SpecReporter({displayStacktrace: 'all'}));
Found in .cicd/protractor_local.conf.js - About 5 mins to fix

When do I get this error?

JSHint (since version r09) will throw the "Mixed double and single quotes" error when it encounters a string literal delimited by double or single quote characters, when a string literal delimited by the other has already been encountered, but only when quotmark option is set to true.

Why do I get this error?

This error is raised to highlight a lack of consistency. There is no difference in JavaScript between single and double quotes. This is made clear by the grammar for string literals (ES5 §7.8.4).

The only difference is that DoubleStringCharacters cannot contain another double quote, and SingleStringCharacters cannot contain a single quote (as that would terminate the string literal).

However, it would usually be frowned upon to mix both types of quote within one program (there are obvious exceptions, such as nested quotes). You can easily resolve this issue by sticking to one type, and you should consider setting the quotmark option to either double or single to enforce your preference.

In JSHint 1.0.0 and above you have the ability to ignore any warning with a special option syntax. The identifier of this warning is W110. This means you can tell JSHint to not issue this warning with the /jshint -W110 / directive.

'browser' is not defined.

    browser.driver.manage().window().maximize();
Found in .cicd/protractor_local.conf.js - About 5 mins to fix

This error pertains to the JSHint option undef.

This option prohibits the use of explicitly undeclared variables. This option is very useful for spotting leaking and mistyped variables.

/*jshint undef:true */

function test() {
  var myVar = 'Hello, World';
  console.log(myvar); // Oops, typoed here. JSHint with undef will complain
}

If your variable is defined in another file, you can use /global ... / directive to tell JSHint about it.

'browser' is not defined.

    browser.driver.get(browser.baseUrl);
Found in .cicd/protractor_local.conf.js - About 5 mins to fix

This error pertains to the JSHint option undef.

This option prohibits the use of explicitly undeclared variables. This option is very useful for spotting leaking and mistyped variables.

/*jshint undef:true */

function test() {
  var myVar = 'Hello, World';
  console.log(myvar); // Oops, typoed here. JSHint with undef will complain
}

If your variable is defined in another file, you can use /global ... / directive to tell JSHint about it.

'browser' is not defined.

    browser.driver.get(browser.baseUrl);
Found in .cicd/protractor_local.conf.js - About 5 mins to fix

This error pertains to the JSHint option undef.

This option prohibits the use of explicitly undeclared variables. This option is very useful for spotting leaking and mistyped variables.

/*jshint undef:true */

function test() {
  var myVar = 'Hello, World';
  console.log(myvar); // Oops, typoed here. JSHint with undef will complain
}

If your variable is defined in another file, you can use /global ... / directive to tell JSHint about it.

'browser' is not defined.

    browser.ignoreSynchronization = true;
Found in .cicd/protractor_local.conf.js - About 5 mins to fix

This error pertains to the JSHint option undef.

This option prohibits the use of explicitly undeclared variables. This option is very useful for spotting leaking and mistyped variables.

/*jshint undef:true */

function test() {
  var myVar = 'Hello, World';
  console.log(myvar); // Oops, typoed here. JSHint with undef will complain
}

If your variable is defined in another file, you can use /global ... / directive to tell JSHint about it.

'jasmine' is not defined.

    jasmine.getEnv().addReporter(new SpecReporter({displayStacktrace: 'all'}));
Found in .cicd/protractor_local.conf.js - About 5 mins to fix

This error pertains to the JSHint option undef.

This option prohibits the use of explicitly undeclared variables. This option is very useful for spotting leaking and mistyped variables.

/*jshint undef:true */

function test() {
  var myVar = 'Hello, World';
  console.log(myvar); // Oops, typoed here. JSHint with undef will complain
}

If your variable is defined in another file, you can use /global ... / directive to tell JSHint about it.

Strings must use doublequote.

'use strict';
Found in .cicd/protractor_saucelabs.conf.js - About 5 mins to fix

When do I get this error?

JSHint (since version r09) will throw the "Mixed double and single quotes" error when it encounters a string literal delimited by double or single quote characters, when a string literal delimited by the other has already been encountered, but only when quotmark option is set to true.

Why do I get this error?

This error is raised to highlight a lack of consistency. There is no difference in JavaScript between single and double quotes. This is made clear by the grammar for string literals (ES5 §7.8.4).

The only difference is that DoubleStringCharacters cannot contain another double quote, and SingleStringCharacters cannot contain a single quote (as that would terminate the string literal).

However, it would usually be frowned upon to mix both types of quote within one program (there are obvious exceptions, such as nested quotes). You can easily resolve this issue by sticking to one type, and you should consider setting the quotmark option to either double or single to enforce your preference.

In JSHint 1.0.0 and above you have the ability to ignore any warning with a special option syntax. The identifier of this warning is W110. This means you can tell JSHint to not issue this warning with the /jshint -W110 / directive.

Strings must use doublequote.

    '../tests/nginx/*.js'
Found in .cicd/protractor_saucelabs.conf.js - About 5 mins to fix

When do I get this error?

JSHint (since version r09) will throw the "Mixed double and single quotes" error when it encounters a string literal delimited by double or single quote characters, when a string literal delimited by the other has already been encountered, but only when quotmark option is set to true.

Why do I get this error?

This error is raised to highlight a lack of consistency. There is no difference in JavaScript between single and double quotes. This is made clear by the grammar for string literals (ES5 §7.8.4).

The only difference is that DoubleStringCharacters cannot contain another double quote, and SingleStringCharacters cannot contain a single quote (as that would terminate the string literal).

However, it would usually be frowned upon to mix both types of quote within one program (there are obvious exceptions, such as nested quotes). You can easily resolve this issue by sticking to one type, and you should consider setting the quotmark option to either double or single to enforce your preference.

In JSHint 1.0.0 and above you have the ability to ignore any warning with a special option syntax. The identifier of this warning is W110. This means you can tell JSHint to not issue this warning with the /jshint -W110 / directive.

Strings must use doublequote.

    browserName: 'chrome',
Found in .cicd/protractor_saucelabs.conf.js - About 5 mins to fix

When do I get this error?

JSHint (since version r09) will throw the "Mixed double and single quotes" error when it encounters a string literal delimited by double or single quote characters, when a string literal delimited by the other has already been encountered, but only when quotmark option is set to true.

Why do I get this error?

This error is raised to highlight a lack of consistency. There is no difference in JavaScript between single and double quotes. This is made clear by the grammar for string literals (ES5 §7.8.4).

The only difference is that DoubleStringCharacters cannot contain another double quote, and SingleStringCharacters cannot contain a single quote (as that would terminate the string literal).

However, it would usually be frowned upon to mix both types of quote within one program (there are obvious exceptions, such as nested quotes). You can easily resolve this issue by sticking to one type, and you should consider setting the quotmark option to either double or single to enforce your preference.

In JSHint 1.0.0 and above you have the ability to ignore any warning with a special option syntax. The identifier of this warning is W110. This means you can tell JSHint to not issue this warning with the /jshint -W110 / directive.

Strings must use doublequote.

        console.log('SauceOnDemandSessionID=' + session.getId() + ' job-name=' + jobName);
Found in .cicd/protractor_saucelabs.conf.js - About 5 mins to fix

When do I get this error?

JSHint (since version r09) will throw the "Mixed double and single quotes" error when it encounters a string literal delimited by double or single quote characters, when a string literal delimited by the other has already been encountered, but only when quotmark option is set to true.

Why do I get this error?

This error is raised to highlight a lack of consistency. There is no difference in JavaScript between single and double quotes. This is made clear by the grammar for string literals (ES5 §7.8.4).

The only difference is that DoubleStringCharacters cannot contain another double quote, and SingleStringCharacters cannot contain a single quote (as that would terminate the string literal).

However, it would usually be frowned upon to mix both types of quote within one program (there are obvious exceptions, such as nested quotes). You can easily resolve this issue by sticking to one type, and you should consider setting the quotmark option to either double or single to enforce your preference.

In JSHint 1.0.0 and above you have the ability to ignore any warning with a special option syntax. The identifier of this warning is W110. This means you can tell JSHint to not issue this warning with the /jshint -W110 / directive.

Strings must use doublequote.

        console.log('SauceOnDemandSessionID=' + session.getId() + ' job-name=' + jobName);
Found in .cicd/protractor_saucelabs.conf.js - About 5 mins to fix

When do I get this error?

JSHint (since version r09) will throw the "Mixed double and single quotes" error when it encounters a string literal delimited by double or single quote characters, when a string literal delimited by the other has already been encountered, but only when quotmark option is set to true.

Why do I get this error?

This error is raised to highlight a lack of consistency. There is no difference in JavaScript between single and double quotes. This is made clear by the grammar for string literals (ES5 §7.8.4).

The only difference is that DoubleStringCharacters cannot contain another double quote, and SingleStringCharacters cannot contain a single quote (as that would terminate the string literal).

However, it would usually be frowned upon to mix both types of quote within one program (there are obvious exceptions, such as nested quotes). You can easily resolve this issue by sticking to one type, and you should consider setting the quotmark option to either double or single to enforce your preference.

In JSHint 1.0.0 and above you have the ability to ignore any warning with a special option syntax. The identifier of this warning is W110. This means you can tell JSHint to not issue this warning with the /jshint -W110 / directive.

Missing semicolon.

    }
Found in .cicd/protractor_saucelabs.conf.js - About 5 mins to fix

The asi option in JSHint suppresses warnings about missing semicolons. There is a lot of FUD about semicolon spread by quite a few people in the community. The common myths are that semicolons are required all the time (they are not) and that they are unreliable. JavaScript has rules about semicolons which are followed by all browsers so it is up to you to decide whether you should or should not use semicolons in your code.

More Reading

http://blog.izs.me/post/2353458699/an-open-letter-to-javascript-leaders-regarding

http://inimino.org/~inimino/blog/javascript_semicolons

Missing semicolon.

}
Found in .cicd/protractor_saucelabs.conf.js - About 5 mins to fix

The asi option in JSHint suppresses warnings about missing semicolons. There is a lot of FUD about semicolon spread by quite a few people in the community. The common myths are that semicolons are required all the time (they are not) and that they are unreliable. JavaScript has rules about semicolons which are followed by all browsers so it is up to you to decide whether you should or should not use semicolons in your code.

More Reading

http://blog.izs.me/post/2353458699/an-open-letter-to-javascript-leaders-regarding

http://inimino.org/~inimino/blog/javascript_semicolons

'browser' is not defined.

    browser.driver.manage().window().maximize();
Found in .cicd/protractor_saucelabs.conf.js - About 5 mins to fix

This error pertains to the JSHint option undef.

This option prohibits the use of explicitly undeclared variables. This option is very useful for spotting leaking and mistyped variables.

/*jshint undef:true */

function test() {
  var myVar = 'Hello, World';
  console.log(myvar); // Oops, typoed here. JSHint with undef will complain
}

If your variable is defined in another file, you can use /global ... / directive to tell JSHint about it.

'browser' is not defined.

      browser.getSession().then(function(session) {
Found in .cicd/protractor_saucelabs.conf.js - About 5 mins to fix

This error pertains to the JSHint option undef.

This option prohibits the use of explicitly undeclared variables. This option is very useful for spotting leaking and mistyped variables.

/*jshint undef:true */

function test() {
  var myVar = 'Hello, World';
  console.log(myvar); // Oops, typoed here. JSHint with undef will complain
}

If your variable is defined in another file, you can use /global ... / directive to tell JSHint about it.

Strings must use doublequote.

'use strict';
Found in .cicd/w4gulp.js - About 5 mins to fix

When do I get this error?

JSHint (since version r09) will throw the "Mixed double and single quotes" error when it encounters a string literal delimited by double or single quote characters, when a string literal delimited by the other has already been encountered, but only when quotmark option is set to true.

Why do I get this error?

This error is raised to highlight a lack of consistency. There is no difference in JavaScript between single and double quotes. This is made clear by the grammar for string literals (ES5 §7.8.4).

The only difference is that DoubleStringCharacters cannot contain another double quote, and SingleStringCharacters cannot contain a single quote (as that would terminate the string literal).

However, it would usually be frowned upon to mix both types of quote within one program (there are obvious exceptions, such as nested quotes). You can easily resolve this issue by sticking to one type, and you should consider setting the quotmark option to either double or single to enforce your preference.

In JSHint 1.0.0 and above you have the ability to ignore any warning with a special option syntax. The identifier of this warning is W110. This means you can tell JSHint to not issue this warning with the /jshint -W110 / directive.