hemslo/keymaker-toolbox

View on GitHub

Showing 18 of 18 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

        types.forEach(function (type) {
          var i = decs[index] % indices.length;
          index = indices[i];
          indices.splice(i, 1);
          characters[index] = Characters[type][decs[index] % Characters[type].length];
Severity: Major
Found in dist/keymaker-toolbox.js and 1 other location - About 2 hrs to fix
src/keymaker-toolbox.js on lines 39..44

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 81.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

    types.forEach(type => {
      let i = decs[index] % indices.length;
      index = indices[i];
      indices.splice(i, 1);
      characters[index] = Characters[type][decs[index] % Characters[type].length];
Severity: Major
Found in src/keymaker-toolbox.js and 1 other location - About 2 hrs to fix
dist/keymaker-toolbox.js on lines 113..118

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 81.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Function makeKey has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      makeKey: function makeKey(password, salt) {
        var iterations = arguments.length <= 2 || arguments[2] === undefined ? 100000 : arguments[2];
        var keylen = arguments.length <= 3 || arguments[3] === undefined ? 32 : arguments[3];
        var lower = arguments.length <= 4 || arguments[4] === undefined ? true : arguments[4];
        var upper = arguments.length <= 5 || arguments[5] === undefined ? true : arguments[5];
Severity: Minor
Found in dist/keymaker-toolbox.js - About 1 hr to fix

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    const Characters = {
      lower: 'abcdefghijklmnopqrstuvwxyz'.split(''),
      upper: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.split(''),
      number: '0123456789'.split(''),
      special: '!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~'.split('')
    Severity: Major
    Found in src/keymaker-toolbox.js and 1 other location - About 1 hr to fix
    dist/keymaker-toolbox.js on lines 69..74

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 60.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

        var Characters = {
          lower: 'abcdefghijklmnopqrstuvwxyz'.split(''),
          upper: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.split(''),
          number: '0123456789'.split(''),
          special: '!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~'.split('')
    Severity: Major
    Found in dist/keymaker-toolbox.js and 1 other location - About 1 hr to fix
    src/keymaker-toolbox.js on lines 3..8

    Duplicated Code

    Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

    Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

    When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

    Tuning

    This issue has a mass of 60.

    We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

    The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

    If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

    See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

    Refactorings

    Further Reading

    Function testBrowser has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function testBrowser() {
      // Our testing bundle is made up of our unit tests, which
      // should individually load up pieces of our application.
      // We also include the browser setup file.
      const testFiles = glob.sync('./test/unit/**/*.js');
    Severity: Minor
    Found in gulpfile.babel.js - About 1 hr to fix

      Function makeKey has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        makeKey(password, salt, iterations=100000, keylen=32, lower=true, upper=true, number=true, special=true) {
          let dk = sjcl.misc.pbkdf2(password,
                                    sjcl.codec.utf8String.toBits(salt),
                                    iterations,
                                    keylen * 8);
      Severity: Minor
      Found in src/keymaker-toolbox.js - About 1 hr to fix

        Function makeKey has 8 arguments (exceeds 4 allowed). Consider refactoring.
        Open

          makeKey(password, salt, iterations=100000, keylen=32, lower=true, upper=true, number=true, special=true) {
        Severity: Major
        Found in src/keymaker-toolbox.js - About 1 hr to fix

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

              let characters = decs.map(dec => {
                let type = types[dec % types.length];
                return Characters[type][dec % Characters[type].length];
              });
          Severity: Minor
          Found in src/keymaker-toolbox.js and 1 other location - About 35 mins to fix
          dist/keymaker-toolbox.js on lines 103..106

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 46.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Similar blocks of code found in 2 locations. Consider refactoring.
          Open

                  var characters = decs.map(function (dec) {
                    var type = types[dec % types.length];
                    return Characters[type][dec % Characters[type].length];
                  });
          Severity: Minor
          Found in dist/keymaker-toolbox.js and 1 other location - About 35 mins to fix
          src/keymaker-toolbox.js on lines 31..34

          Duplicated Code

          Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

          Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

          When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

          Tuning

          This issue has a mass of 46.

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Strings must use singlequote.
          Open

                  exports["keymakerToolbox"] = factory(require("sjcl"));
          Severity: Minor
          Found in dist/keymaker-toolbox.js by eslint

          enforce the consistent use of either backticks, double, or single quotes (quotes)

          JavaScript allows you to define strings in one of three ways: double quotes, single quotes, and backticks (as of ECMAScript 6). For example:

          /*eslint-env es6*/
          
          var double = "double";
          var single = 'single';
          var backtick = `backtick`;    // ES6 only

          Each of these lines creates a string and, in some cases, can be used interchangeably. The choice of how to define strings in a codebase is a stylistic one outside of template literals (which allow embedded of expressions to be interpreted).

          Many codebases require strings to be defined in a consistent manner.

          Rule Details

          This rule enforces the consistent use of either backticks, double, or single quotes.

          Options

          This rule has two options, a string option and an object option.

          String option:

          • "double" (default) requires the use of double quotes wherever possible
          • "single" requires the use of single quotes wherever possible
          • "backtick" requires the use of backticks wherever possible

          Object option:

          • "avoidEscape": true allows strings to use single-quotes or double-quotes so long as the string contains a quote that would have to be escaped otherwise
          • "allowTemplateLiterals": true allows strings to use backticks

          Deprecated: The object property avoid-escape is deprecated; please use the object property avoidEscape instead.

          double

          Examples of incorrect code for this rule with the default "double" option:

          /*eslint quotes: ["error", "double"]*/
          
          var single = 'single';
          var unescaped = 'a string containing "double" quotes';

          Examples of correct code for this rule with the default "double" option:

          /*eslint quotes: ["error", "double"]*/
          /*eslint-env es6*/
          
          var double = "double";
          var backtick = `back\ntick`;  // backticks are allowed due to newline
          var backtick = tag`backtick`; // backticks are allowed due to tag

          single

          Examples of incorrect code for this rule with the "single" option:

          /*eslint quotes: ["error", "single"]*/
          
          var double = "double";
          var unescaped = "a string containing 'single' quotes";

          Examples of correct code for this rule with the "single" option:

          /*eslint quotes: ["error", "single"]*/
          /*eslint-env es6*/
          
          var single = 'single';
          var backtick = `back${x}tick`; // backticks are allowed due to substitution

          backticks

          Examples of incorrect code for this rule with the "backtick" option:

          /*eslint quotes: ["error", "backtick"]*/
          
          var single = 'single';
          var double = "double";
          var unescaped = 'a string containing `backticks`';

          Examples of correct code for this rule with the "backtick" option:

          /*eslint quotes: ["error", "backtick"]*/
          /*eslint-env es6*/
          
          var backtick = `backtick`;

          avoidEscape

          Examples of additional correct code for this rule with the "double", { "avoidEscape": true } options:

          /*eslint quotes: ["error", "double", { "avoidEscape": true }]*/
          
          var single = 'a string containing "double" quotes';

          Examples of additional correct code for this rule with the "single", { "avoidEscape": true } options:

          /*eslint quotes: ["error", "single", { "avoidEscape": true }]*/
          
          var double = "a string containing 'single' quotes";

          Examples of additional correct code for this rule with the "backtick", { "avoidEscape": true } options:

          /*eslint quotes: ["error", "backtick", { "avoidEscape": true }]*/
          
          var double = "a string containing `backtick` quotes"

          allowTemplateLiterals

          Examples of additional correct code for this rule with the "double", { "allowTemplateLiterals": true } options:

          /*eslint quotes: ["error", "double", { "allowTemplateLiterals": true }]*/
          
          var double = "double";
          var double = `double`;

          Examples of additional correct code for this rule with the "single", { "allowTemplateLiterals": true } options:

          /*eslint quotes: ["error", "single", { "allowTemplateLiterals": true }]*/
          
          var single = 'single';
          var single = `single`;

          When Not To Use It

          If you do not need consistency in your string styles, you can safely disable this rule. Source: http://eslint.org/docs/rules/

          Strings must use singlequote.
          Open

                  module.exports = factory(require("sjcl"));
          Severity: Minor
          Found in dist/keymaker-toolbox.js by eslint

          enforce the consistent use of either backticks, double, or single quotes (quotes)

          JavaScript allows you to define strings in one of three ways: double quotes, single quotes, and backticks (as of ECMAScript 6). For example:

          /*eslint-env es6*/
          
          var double = "double";
          var single = 'single';
          var backtick = `backtick`;    // ES6 only

          Each of these lines creates a string and, in some cases, can be used interchangeably. The choice of how to define strings in a codebase is a stylistic one outside of template literals (which allow embedded of expressions to be interpreted).

          Many codebases require strings to be defined in a consistent manner.

          Rule Details

          This rule enforces the consistent use of either backticks, double, or single quotes.

          Options

          This rule has two options, a string option and an object option.

          String option:

          • "double" (default) requires the use of double quotes wherever possible
          • "single" requires the use of single quotes wherever possible
          • "backtick" requires the use of backticks wherever possible

          Object option:

          • "avoidEscape": true allows strings to use single-quotes or double-quotes so long as the string contains a quote that would have to be escaped otherwise
          • "allowTemplateLiterals": true allows strings to use backticks

          Deprecated: The object property avoid-escape is deprecated; please use the object property avoidEscape instead.

          double

          Examples of incorrect code for this rule with the default "double" option:

          /*eslint quotes: ["error", "double"]*/
          
          var single = 'single';
          var unescaped = 'a string containing "double" quotes';

          Examples of correct code for this rule with the default "double" option:

          /*eslint quotes: ["error", "double"]*/
          /*eslint-env es6*/
          
          var double = "double";
          var backtick = `back\ntick`;  // backticks are allowed due to newline
          var backtick = tag`backtick`; // backticks are allowed due to tag

          single

          Examples of incorrect code for this rule with the "single" option:

          /*eslint quotes: ["error", "single"]*/
          
          var double = "double";
          var unescaped = "a string containing 'single' quotes";

          Examples of correct code for this rule with the "single" option:

          /*eslint quotes: ["error", "single"]*/
          /*eslint-env es6*/
          
          var single = 'single';
          var backtick = `back${x}tick`; // backticks are allowed due to substitution

          backticks

          Examples of incorrect code for this rule with the "backtick" option:

          /*eslint quotes: ["error", "backtick"]*/
          
          var single = 'single';
          var double = "double";
          var unescaped = 'a string containing `backticks`';

          Examples of correct code for this rule with the "backtick" option:

          /*eslint quotes: ["error", "backtick"]*/
          /*eslint-env es6*/
          
          var backtick = `backtick`;

          avoidEscape

          Examples of additional correct code for this rule with the "double", { "avoidEscape": true } options:

          /*eslint quotes: ["error", "double", { "avoidEscape": true }]*/
          
          var single = 'a string containing "double" quotes';

          Examples of additional correct code for this rule with the "single", { "avoidEscape": true } options:

          /*eslint quotes: ["error", "single", { "avoidEscape": true }]*/
          
          var double = "a string containing 'single' quotes";

          Examples of additional correct code for this rule with the "backtick", { "avoidEscape": true } options:

          /*eslint quotes: ["error", "backtick", { "avoidEscape": true }]*/
          
          var double = "a string containing `backtick` quotes"

          allowTemplateLiterals

          Examples of additional correct code for this rule with the "double", { "allowTemplateLiterals": true } options:

          /*eslint quotes: ["error", "double", { "allowTemplateLiterals": true }]*/
          
          var double = "double";
          var double = `double`;

          Examples of additional correct code for this rule with the "single", { "allowTemplateLiterals": true } options:

          /*eslint quotes: ["error", "single", { "allowTemplateLiterals": true }]*/
          
          var single = 'single';
          var single = `single`;

          When Not To Use It

          If you do not need consistency in your string styles, you can safely disable this rule. Source: http://eslint.org/docs/rules/

          Strings must use singlequote.
          Open

                  exports["keymakerToolbox"] = factory(require("sjcl"));
          Severity: Minor
          Found in dist/keymaker-toolbox.js by eslint

          enforce the consistent use of either backticks, double, or single quotes (quotes)

          JavaScript allows you to define strings in one of three ways: double quotes, single quotes, and backticks (as of ECMAScript 6). For example:

          /*eslint-env es6*/
          
          var double = "double";
          var single = 'single';
          var backtick = `backtick`;    // ES6 only

          Each of these lines creates a string and, in some cases, can be used interchangeably. The choice of how to define strings in a codebase is a stylistic one outside of template literals (which allow embedded of expressions to be interpreted).

          Many codebases require strings to be defined in a consistent manner.

          Rule Details

          This rule enforces the consistent use of either backticks, double, or single quotes.

          Options

          This rule has two options, a string option and an object option.

          String option:

          • "double" (default) requires the use of double quotes wherever possible
          • "single" requires the use of single quotes wherever possible
          • "backtick" requires the use of backticks wherever possible

          Object option:

          • "avoidEscape": true allows strings to use single-quotes or double-quotes so long as the string contains a quote that would have to be escaped otherwise
          • "allowTemplateLiterals": true allows strings to use backticks

          Deprecated: The object property avoid-escape is deprecated; please use the object property avoidEscape instead.

          double

          Examples of incorrect code for this rule with the default "double" option:

          /*eslint quotes: ["error", "double"]*/
          
          var single = 'single';
          var unescaped = 'a string containing "double" quotes';

          Examples of correct code for this rule with the default "double" option:

          /*eslint quotes: ["error", "double"]*/
          /*eslint-env es6*/
          
          var double = "double";
          var backtick = `back\ntick`;  // backticks are allowed due to newline
          var backtick = tag`backtick`; // backticks are allowed due to tag

          single

          Examples of incorrect code for this rule with the "single" option:

          /*eslint quotes: ["error", "single"]*/
          
          var double = "double";
          var unescaped = "a string containing 'single' quotes";

          Examples of correct code for this rule with the "single" option:

          /*eslint quotes: ["error", "single"]*/
          /*eslint-env es6*/
          
          var single = 'single';
          var backtick = `back${x}tick`; // backticks are allowed due to substitution

          backticks

          Examples of incorrect code for this rule with the "backtick" option:

          /*eslint quotes: ["error", "backtick"]*/
          
          var single = 'single';
          var double = "double";
          var unescaped = 'a string containing `backticks`';

          Examples of correct code for this rule with the "backtick" option:

          /*eslint quotes: ["error", "backtick"]*/
          /*eslint-env es6*/
          
          var backtick = `backtick`;

          avoidEscape

          Examples of additional correct code for this rule with the "double", { "avoidEscape": true } options:

          /*eslint quotes: ["error", "double", { "avoidEscape": true }]*/
          
          var single = 'a string containing "double" quotes';

          Examples of additional correct code for this rule with the "single", { "avoidEscape": true } options:

          /*eslint quotes: ["error", "single", { "avoidEscape": true }]*/
          
          var double = "a string containing 'single' quotes";

          Examples of additional correct code for this rule with the "backtick", { "avoidEscape": true } options:

          /*eslint quotes: ["error", "backtick", { "avoidEscape": true }]*/
          
          var double = "a string containing `backtick` quotes"

          allowTemplateLiterals

          Examples of additional correct code for this rule with the "double", { "allowTemplateLiterals": true } options:

          /*eslint quotes: ["error", "double", { "allowTemplateLiterals": true }]*/
          
          var double = "double";
          var double = `double`;

          Examples of additional correct code for this rule with the "single", { "allowTemplateLiterals": true } options:

          /*eslint quotes: ["error", "single", { "allowTemplateLiterals": true }]*/
          
          var single = 'single';
          var single = `single`;

          When Not To Use It

          If you do not need consistency in your string styles, you can safely disable this rule. Source: http://eslint.org/docs/rules/

          Strings must use singlequote.
          Open

              Object.defineProperty(exports, "__esModule", {
          Severity: Minor
          Found in dist/keymaker-toolbox.js by eslint

          enforce the consistent use of either backticks, double, or single quotes (quotes)

          JavaScript allows you to define strings in one of three ways: double quotes, single quotes, and backticks (as of ECMAScript 6). For example:

          /*eslint-env es6*/
          
          var double = "double";
          var single = 'single';
          var backtick = `backtick`;    // ES6 only

          Each of these lines creates a string and, in some cases, can be used interchangeably. The choice of how to define strings in a codebase is a stylistic one outside of template literals (which allow embedded of expressions to be interpreted).

          Many codebases require strings to be defined in a consistent manner.

          Rule Details

          This rule enforces the consistent use of either backticks, double, or single quotes.

          Options

          This rule has two options, a string option and an object option.

          String option:

          • "double" (default) requires the use of double quotes wherever possible
          • "single" requires the use of single quotes wherever possible
          • "backtick" requires the use of backticks wherever possible

          Object option:

          • "avoidEscape": true allows strings to use single-quotes or double-quotes so long as the string contains a quote that would have to be escaped otherwise
          • "allowTemplateLiterals": true allows strings to use backticks

          Deprecated: The object property avoid-escape is deprecated; please use the object property avoidEscape instead.

          double

          Examples of incorrect code for this rule with the default "double" option:

          /*eslint quotes: ["error", "double"]*/
          
          var single = 'single';
          var unescaped = 'a string containing "double" quotes';

          Examples of correct code for this rule with the default "double" option:

          /*eslint quotes: ["error", "double"]*/
          /*eslint-env es6*/
          
          var double = "double";
          var backtick = `back\ntick`;  // backticks are allowed due to newline
          var backtick = tag`backtick`; // backticks are allowed due to tag

          single

          Examples of incorrect code for this rule with the "single" option:

          /*eslint quotes: ["error", "single"]*/
          
          var double = "double";
          var unescaped = "a string containing 'single' quotes";

          Examples of correct code for this rule with the "single" option:

          /*eslint quotes: ["error", "single"]*/
          /*eslint-env es6*/
          
          var single = 'single';
          var backtick = `back${x}tick`; // backticks are allowed due to substitution

          backticks

          Examples of incorrect code for this rule with the "backtick" option:

          /*eslint quotes: ["error", "backtick"]*/
          
          var single = 'single';
          var double = "double";
          var unescaped = 'a string containing `backticks`';

          Examples of correct code for this rule with the "backtick" option:

          /*eslint quotes: ["error", "backtick"]*/
          /*eslint-env es6*/
          
          var backtick = `backtick`;

          avoidEscape

          Examples of additional correct code for this rule with the "double", { "avoidEscape": true } options:

          /*eslint quotes: ["error", "double", { "avoidEscape": true }]*/
          
          var single = 'a string containing "double" quotes';

          Examples of additional correct code for this rule with the "single", { "avoidEscape": true } options:

          /*eslint quotes: ["error", "single", { "avoidEscape": true }]*/
          
          var double = "a string containing 'single' quotes";

          Examples of additional correct code for this rule with the "backtick", { "avoidEscape": true } options:

          /*eslint quotes: ["error", "backtick", { "avoidEscape": true }]*/
          
          var double = "a string containing `backtick` quotes"

          allowTemplateLiterals

          Examples of additional correct code for this rule with the "double", { "allowTemplateLiterals": true } options:

          /*eslint quotes: ["error", "double", { "allowTemplateLiterals": true }]*/
          
          var double = "double";
          var double = `double`;

          Examples of additional correct code for this rule with the "single", { "allowTemplateLiterals": true } options:

          /*eslint quotes: ["error", "single", { "allowTemplateLiterals": true }]*/
          
          var single = 'single';
          var single = `single`;

          When Not To Use It

          If you do not need consistency in your string styles, you can safely disable this rule. Source: http://eslint.org/docs/rules/

          Strings must use singlequote.
          Open

                  root["keymakerToolbox"] = factory(root["sjcl"]);
          Severity: Minor
          Found in dist/keymaker-toolbox.js by eslint

          enforce the consistent use of either backticks, double, or single quotes (quotes)

          JavaScript allows you to define strings in one of three ways: double quotes, single quotes, and backticks (as of ECMAScript 6). For example:

          /*eslint-env es6*/
          
          var double = "double";
          var single = 'single';
          var backtick = `backtick`;    // ES6 only

          Each of these lines creates a string and, in some cases, can be used interchangeably. The choice of how to define strings in a codebase is a stylistic one outside of template literals (which allow embedded of expressions to be interpreted).

          Many codebases require strings to be defined in a consistent manner.

          Rule Details

          This rule enforces the consistent use of either backticks, double, or single quotes.

          Options

          This rule has two options, a string option and an object option.

          String option:

          • "double" (default) requires the use of double quotes wherever possible
          • "single" requires the use of single quotes wherever possible
          • "backtick" requires the use of backticks wherever possible

          Object option:

          • "avoidEscape": true allows strings to use single-quotes or double-quotes so long as the string contains a quote that would have to be escaped otherwise
          • "allowTemplateLiterals": true allows strings to use backticks

          Deprecated: The object property avoid-escape is deprecated; please use the object property avoidEscape instead.

          double

          Examples of incorrect code for this rule with the default "double" option:

          /*eslint quotes: ["error", "double"]*/
          
          var single = 'single';
          var unescaped = 'a string containing "double" quotes';

          Examples of correct code for this rule with the default "double" option:

          /*eslint quotes: ["error", "double"]*/
          /*eslint-env es6*/
          
          var double = "double";
          var backtick = `back\ntick`;  // backticks are allowed due to newline
          var backtick = tag`backtick`; // backticks are allowed due to tag

          single

          Examples of incorrect code for this rule with the "single" option:

          /*eslint quotes: ["error", "single"]*/
          
          var double = "double";
          var unescaped = "a string containing 'single' quotes";

          Examples of correct code for this rule with the "single" option:

          /*eslint quotes: ["error", "single"]*/
          /*eslint-env es6*/
          
          var single = 'single';
          var backtick = `back${x}tick`; // backticks are allowed due to substitution

          backticks

          Examples of incorrect code for this rule with the "backtick" option:

          /*eslint quotes: ["error", "backtick"]*/
          
          var single = 'single';
          var double = "double";
          var unescaped = 'a string containing `backticks`';

          Examples of correct code for this rule with the "backtick" option:

          /*eslint quotes: ["error", "backtick"]*/
          /*eslint-env es6*/
          
          var backtick = `backtick`;

          avoidEscape

          Examples of additional correct code for this rule with the "double", { "avoidEscape": true } options:

          /*eslint quotes: ["error", "double", { "avoidEscape": true }]*/
          
          var single = 'a string containing "double" quotes';

          Examples of additional correct code for this rule with the "single", { "avoidEscape": true } options:

          /*eslint quotes: ["error", "single", { "avoidEscape": true }]*/
          
          var double = "a string containing 'single' quotes";

          Examples of additional correct code for this rule with the "backtick", { "avoidEscape": true } options:

          /*eslint quotes: ["error", "backtick", { "avoidEscape": true }]*/
          
          var double = "a string containing `backtick` quotes"

          allowTemplateLiterals

          Examples of additional correct code for this rule with the "double", { "allowTemplateLiterals": true } options:

          /*eslint quotes: ["error", "double", { "allowTemplateLiterals": true }]*/
          
          var double = "double";
          var double = `double`;

          Examples of additional correct code for this rule with the "single", { "allowTemplateLiterals": true } options:

          /*eslint quotes: ["error", "single", { "allowTemplateLiterals": true }]*/
          
          var single = 'single';
          var single = `single`;

          When Not To Use It

          If you do not need consistency in your string styles, you can safely disable this rule. Source: http://eslint.org/docs/rules/

          Strings must use singlequote.
          Open

                  define(["sjcl"], factory);
          Severity: Minor
          Found in dist/keymaker-toolbox.js by eslint

          enforce the consistent use of either backticks, double, or single quotes (quotes)

          JavaScript allows you to define strings in one of three ways: double quotes, single quotes, and backticks (as of ECMAScript 6). For example:

          /*eslint-env es6*/
          
          var double = "double";
          var single = 'single';
          var backtick = `backtick`;    // ES6 only

          Each of these lines creates a string and, in some cases, can be used interchangeably. The choice of how to define strings in a codebase is a stylistic one outside of template literals (which allow embedded of expressions to be interpreted).

          Many codebases require strings to be defined in a consistent manner.

          Rule Details

          This rule enforces the consistent use of either backticks, double, or single quotes.

          Options

          This rule has two options, a string option and an object option.

          String option:

          • "double" (default) requires the use of double quotes wherever possible
          • "single" requires the use of single quotes wherever possible
          • "backtick" requires the use of backticks wherever possible

          Object option:

          • "avoidEscape": true allows strings to use single-quotes or double-quotes so long as the string contains a quote that would have to be escaped otherwise
          • "allowTemplateLiterals": true allows strings to use backticks

          Deprecated: The object property avoid-escape is deprecated; please use the object property avoidEscape instead.

          double

          Examples of incorrect code for this rule with the default "double" option:

          /*eslint quotes: ["error", "double"]*/
          
          var single = 'single';
          var unescaped = 'a string containing "double" quotes';

          Examples of correct code for this rule with the default "double" option:

          /*eslint quotes: ["error", "double"]*/
          /*eslint-env es6*/
          
          var double = "double";
          var backtick = `back\ntick`;  // backticks are allowed due to newline
          var backtick = tag`backtick`; // backticks are allowed due to tag

          single

          Examples of incorrect code for this rule with the "single" option:

          /*eslint quotes: ["error", "single"]*/
          
          var double = "double";
          var unescaped = "a string containing 'single' quotes";

          Examples of correct code for this rule with the "single" option:

          /*eslint quotes: ["error", "single"]*/
          /*eslint-env es6*/
          
          var single = 'single';
          var backtick = `back${x}tick`; // backticks are allowed due to substitution

          backticks

          Examples of incorrect code for this rule with the "backtick" option:

          /*eslint quotes: ["error", "backtick"]*/
          
          var single = 'single';
          var double = "double";
          var unescaped = 'a string containing `backticks`';

          Examples of correct code for this rule with the "backtick" option:

          /*eslint quotes: ["error", "backtick"]*/
          /*eslint-env es6*/
          
          var backtick = `backtick`;

          avoidEscape

          Examples of additional correct code for this rule with the "double", { "avoidEscape": true } options:

          /*eslint quotes: ["error", "double", { "avoidEscape": true }]*/
          
          var single = 'a string containing "double" quotes';

          Examples of additional correct code for this rule with the "single", { "avoidEscape": true } options:

          /*eslint quotes: ["error", "single", { "avoidEscape": true }]*/
          
          var double = "a string containing 'single' quotes";

          Examples of additional correct code for this rule with the "backtick", { "avoidEscape": true } options:

          /*eslint quotes: ["error", "backtick", { "avoidEscape": true }]*/
          
          var double = "a string containing `backtick` quotes"

          allowTemplateLiterals

          Examples of additional correct code for this rule with the "double", { "allowTemplateLiterals": true } options:

          /*eslint quotes: ["error", "double", { "allowTemplateLiterals": true }]*/
          
          var double = "double";
          var double = `double`;

          Examples of additional correct code for this rule with the "single", { "allowTemplateLiterals": true } options:

          /*eslint quotes: ["error", "single", { "allowTemplateLiterals": true }]*/
          
          var single = 'single';
          var single = `single`;

          When Not To Use It

          If you do not need consistency in your string styles, you can safely disable this rule. Source: http://eslint.org/docs/rules/

          Strings must use singlequote.
          Open

                  root["keymakerToolbox"] = factory(root["sjcl"]);
          Severity: Minor
          Found in dist/keymaker-toolbox.js by eslint

          enforce the consistent use of either backticks, double, or single quotes (quotes)

          JavaScript allows you to define strings in one of three ways: double quotes, single quotes, and backticks (as of ECMAScript 6). For example:

          /*eslint-env es6*/
          
          var double = "double";
          var single = 'single';
          var backtick = `backtick`;    // ES6 only

          Each of these lines creates a string and, in some cases, can be used interchangeably. The choice of how to define strings in a codebase is a stylistic one outside of template literals (which allow embedded of expressions to be interpreted).

          Many codebases require strings to be defined in a consistent manner.

          Rule Details

          This rule enforces the consistent use of either backticks, double, or single quotes.

          Options

          This rule has two options, a string option and an object option.

          String option:

          • "double" (default) requires the use of double quotes wherever possible
          • "single" requires the use of single quotes wherever possible
          • "backtick" requires the use of backticks wherever possible

          Object option:

          • "avoidEscape": true allows strings to use single-quotes or double-quotes so long as the string contains a quote that would have to be escaped otherwise
          • "allowTemplateLiterals": true allows strings to use backticks

          Deprecated: The object property avoid-escape is deprecated; please use the object property avoidEscape instead.

          double

          Examples of incorrect code for this rule with the default "double" option:

          /*eslint quotes: ["error", "double"]*/
          
          var single = 'single';
          var unescaped = 'a string containing "double" quotes';

          Examples of correct code for this rule with the default "double" option:

          /*eslint quotes: ["error", "double"]*/
          /*eslint-env es6*/
          
          var double = "double";
          var backtick = `back\ntick`;  // backticks are allowed due to newline
          var backtick = tag`backtick`; // backticks are allowed due to tag

          single

          Examples of incorrect code for this rule with the "single" option:

          /*eslint quotes: ["error", "single"]*/
          
          var double = "double";
          var unescaped = "a string containing 'single' quotes";

          Examples of correct code for this rule with the "single" option:

          /*eslint quotes: ["error", "single"]*/
          /*eslint-env es6*/
          
          var single = 'single';
          var backtick = `back${x}tick`; // backticks are allowed due to substitution

          backticks

          Examples of incorrect code for this rule with the "backtick" option:

          /*eslint quotes: ["error", "backtick"]*/
          
          var single = 'single';
          var double = "double";
          var unescaped = 'a string containing `backticks`';

          Examples of correct code for this rule with the "backtick" option:

          /*eslint quotes: ["error", "backtick"]*/
          /*eslint-env es6*/
          
          var backtick = `backtick`;

          avoidEscape

          Examples of additional correct code for this rule with the "double", { "avoidEscape": true } options:

          /*eslint quotes: ["error", "double", { "avoidEscape": true }]*/
          
          var single = 'a string containing "double" quotes';

          Examples of additional correct code for this rule with the "single", { "avoidEscape": true } options:

          /*eslint quotes: ["error", "single", { "avoidEscape": true }]*/
          
          var double = "a string containing 'single' quotes";

          Examples of additional correct code for this rule with the "backtick", { "avoidEscape": true } options:

          /*eslint quotes: ["error", "backtick", { "avoidEscape": true }]*/
          
          var double = "a string containing `backtick` quotes"

          allowTemplateLiterals

          Examples of additional correct code for this rule with the "double", { "allowTemplateLiterals": true } options:

          /*eslint quotes: ["error", "double", { "allowTemplateLiterals": true }]*/
          
          var double = "double";
          var double = `double`;

          Examples of additional correct code for this rule with the "single", { "allowTemplateLiterals": true } options:

          /*eslint quotes: ["error", "single", { "allowTemplateLiterals": true }]*/
          
          var single = 'single';
          var single = `single`;

          When Not To Use It

          If you do not need consistency in your string styles, you can safely disable this rule. Source: http://eslint.org/docs/rules/

          Strings must use singlequote.
          Open

          /******/     __webpack_require__.p = "";
          Severity: Minor
          Found in dist/keymaker-toolbox.js by eslint

          enforce the consistent use of either backticks, double, or single quotes (quotes)

          JavaScript allows you to define strings in one of three ways: double quotes, single quotes, and backticks (as of ECMAScript 6). For example:

          /*eslint-env es6*/
          
          var double = "double";
          var single = 'single';
          var backtick = `backtick`;    // ES6 only

          Each of these lines creates a string and, in some cases, can be used interchangeably. The choice of how to define strings in a codebase is a stylistic one outside of template literals (which allow embedded of expressions to be interpreted).

          Many codebases require strings to be defined in a consistent manner.

          Rule Details

          This rule enforces the consistent use of either backticks, double, or single quotes.

          Options

          This rule has two options, a string option and an object option.

          String option:

          • "double" (default) requires the use of double quotes wherever possible
          • "single" requires the use of single quotes wherever possible
          • "backtick" requires the use of backticks wherever possible

          Object option:

          • "avoidEscape": true allows strings to use single-quotes or double-quotes so long as the string contains a quote that would have to be escaped otherwise
          • "allowTemplateLiterals": true allows strings to use backticks

          Deprecated: The object property avoid-escape is deprecated; please use the object property avoidEscape instead.

          double

          Examples of incorrect code for this rule with the default "double" option:

          /*eslint quotes: ["error", "double"]*/
          
          var single = 'single';
          var unescaped = 'a string containing "double" quotes';

          Examples of correct code for this rule with the default "double" option:

          /*eslint quotes: ["error", "double"]*/
          /*eslint-env es6*/
          
          var double = "double";
          var backtick = `back\ntick`;  // backticks are allowed due to newline
          var backtick = tag`backtick`; // backticks are allowed due to tag

          single

          Examples of incorrect code for this rule with the "single" option:

          /*eslint quotes: ["error", "single"]*/
          
          var double = "double";
          var unescaped = "a string containing 'single' quotes";

          Examples of correct code for this rule with the "single" option:

          /*eslint quotes: ["error", "single"]*/
          /*eslint-env es6*/
          
          var single = 'single';
          var backtick = `back${x}tick`; // backticks are allowed due to substitution

          backticks

          Examples of incorrect code for this rule with the "backtick" option:

          /*eslint quotes: ["error", "backtick"]*/
          
          var single = 'single';
          var double = "double";
          var unescaped = 'a string containing `backticks`';

          Examples of correct code for this rule with the "backtick" option:

          /*eslint quotes: ["error", "backtick"]*/
          /*eslint-env es6*/
          
          var backtick = `backtick`;

          avoidEscape

          Examples of additional correct code for this rule with the "double", { "avoidEscape": true } options:

          /*eslint quotes: ["error", "double", { "avoidEscape": true }]*/
          
          var single = 'a string containing "double" quotes';

          Examples of additional correct code for this rule with the "single", { "avoidEscape": true } options:

          /*eslint quotes: ["error", "single", { "avoidEscape": true }]*/
          
          var double = "a string containing 'single' quotes";

          Examples of additional correct code for this rule with the "backtick", { "avoidEscape": true } options:

          /*eslint quotes: ["error", "backtick", { "avoidEscape": true }]*/
          
          var double = "a string containing `backtick` quotes"

          allowTemplateLiterals

          Examples of additional correct code for this rule with the "double", { "allowTemplateLiterals": true } options:

          /*eslint quotes: ["error", "double", { "allowTemplateLiterals": true }]*/
          
          var double = "double";
          var double = `double`;

          Examples of additional correct code for this rule with the "single", { "allowTemplateLiterals": true } options:

          /*eslint quotes: ["error", "single", { "allowTemplateLiterals": true }]*/
          
          var single = 'single';
          var single = `single`;

          When Not To Use It

          If you do not need consistency in your string styles, you can safely disable this rule. Source: http://eslint.org/docs/rules/

          Severity
          Category
          Status
          Source
          Language