AutolabJS/AutolabJS

View on GitHub

Showing 35 of 4,708 total issues

File load_balancerTest.js has 386 lines of code (exceeds 250 allowed). Consider refactoring.
Open

const chai = require('chai');
const dirtyChai = require('dirty-chai');
const request = require('request');
const nock = require('nock');
const dns = require('dns');
Severity: Minor
Found in load_balancer/test/functional/load_balancerTest.js - About 5 hrs to fix

    Function exports has 112 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    module.exports = function(socket)
    {
    
    
        if(socket.handshake.session.key)
    Severity: Major
    Found in main_server/admin.js - About 4 hrs to fix

      File main_server.js has 329 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /* eslint import/no-dynamic-require: 0 */
      var fs = require('fs');
      var express = require('express');
      var path = require('path');
      var app = express();
      Severity: Minor
      Found in main_server/main_server.js - About 3 hrs to fix

        Function exports has 65 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        module.exports = function(hostname,rootId,password)
        {
            function getPrivateToken(callback)
            {
                request.post({
        Severity: Major
        Found in main_server/reval/gitlab.js - About 2 hrs to fix

          File configLogic.js has 267 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          $(document).ready(function() {
            $('.modal-trigger').leanModal();
            $('#logout-navbar').hide();
          
          
          
          Severity: Minor
          Found in main_server/public/js/configLogic.js - About 2 hrs to fix

            File load_balancer.js has 261 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /* eslint import/no-dynamic-require: 0 */
            var fs = require('fs');
            var express = require('express');
            var app = express();
            var https_config={
            Severity: Minor
            Found in load_balancer/load_balancer.js - About 2 hrs to fix

              Function addLab has 50 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                    function addLab(lab)
                    {
                        $('<li class = "row" id = "lab'+(++number_of_labs) +'">'+
                   '<div class="collapsible-header " id = "lab'+(number_of_labs)+'"><i class="material-icons">mode_edit</i>'+lab["Lab_No"]+'<i class = "material-icons right clear_lab" >clear</i></div>'+
                   '<div class="collapsible-body">'+
              Severity: Minor
              Found in main_server/public/js/configLogic.js - About 2 hrs to fix

                Function revaluation has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function revaluation(lab,start_time,end_time,admin_key,callback)
                {
                
                    var max_scores = {};
                    var number_of_requests=0;
                Severity: Minor
                Found in main_server/reval/reval.js - About 1 hr to fix

                  Function insert has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
                  Open

                  def insert(root,node):
                      if(root == None):
                          root = node
                          return root
                          
                  Severity: Minor
                  Found in docs/examples/io_tests/student_solution/python3/python31.py - About 1 hr to fix

                  Cognitive Complexity

                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                  A method's cognitive complexity is based on a few simple rules:

                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                  • Code is considered more complex for each "break in the linear flow of the code"
                  • Code is considered more complex when "flow breaking structures are nested"

                  Further reading

                  Line 225 exceeds the maximum line length of 100.
                  Open

                    for(var node in node_queue) if(node_queue[node].hostname === req.body.hostname && node_queue[node].port === req.body.port) return;
                  Severity: Minor
                  Found in load_balancer/load_balancer.js by eslint

                  enforce a maximum line length (max-len)

                  Very long lines of code in any language can be difficult to read. In order to aid in readability and maintainability many coders have developed a convention to limit lines of code to X number of characters (traditionally 80 characters).

                  var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" }, "difficult": "to read" }; // very long

                  Rule Details

                  This rule enforces a maximum line length to increase code readability and maintainability. The length of a line is defined as the number of Unicode characters in the line.

                  Options

                  This rule has a number or object option:

                  • "code" (default 80) enforces a maximum line length
                  • "tabWidth" (default 4) specifies the character width for tab characters
                  • "comments" enforces a maximum line length for comments; defaults to value of code
                  • "ignorePattern" ignores lines matching a regular expression; can only match a single line and need to be double escaped when written in YAML or JSON
                  • "ignoreComments": true ignores all trailing comments and comments on their own line
                  • "ignoreTrailingComments": true ignores only trailing comments
                  • "ignoreUrls": true ignores lines that contain a URL
                  • "ignoreStrings": true ignores lines that contain a double-quoted or single-quoted string
                  • "ignoreTemplateLiterals": true ignores lines that contain a template literal
                  • "ignoreRegExpLiterals": true ignores lines that contain a RegExp literal

                  code

                  Examples of incorrect code for this rule with the default { "code": 80 } option:

                  /*eslint max-len: ["error", 80]*/
                  
                  var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" }, "difficult": "to read" };

                  Examples of correct code for this rule with the default { "code": 80 } option:

                  /*eslint max-len: ["error", 80]*/
                  
                  var foo = {
                    "bar": "This is a bar.",
                    "baz": { "qux": "This is a qux" },
                    "easier": "to read"
                  };

                  tabWidth

                  Examples of incorrect code for this rule with the default { "tabWidth": 4 } option:

                  /*eslint max-len: ["error", 80, 4]*/
                  
                  \t  \t  var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" } };

                  Examples of correct code for this rule with the default { "tabWidth": 4 } option:

                  /*eslint max-len: ["error", 80, 4]*/
                  
                  \t  \t  var foo = {
                  \t  \t  \t  \t  "bar": "This is a bar.",
                  \t  \t  \t  \t  "baz": { "qux": "This is a qux" }
                  \t  \t  };

                  comments

                  Examples of incorrect code for this rule with the { "comments": 65 } option:

                  /*eslint max-len: ["error", { "comments": 65 }]*/
                  
                  /**
                   * This is a comment that violates the maximum line length we have specified
                  **/

                  ignoreComments

                  Examples of correct code for this rule with the { "ignoreComments": true } option:

                  /*eslint max-len: ["error", { "ignoreComments": true }]*/
                  
                  /**
                   * This is a really really really really really really really really really long comment
                  **/

                  ignoreTrailingComments

                  Examples of correct code for this rule with the { "ignoreTrailingComments": true } option:

                  /*eslint max-len: ["error", { "ignoreTrailingComments": true }]*/
                  
                  var foo = 'bar'; // This is a really really really really really really really long comment

                  ignoreUrls

                  Examples of correct code for this rule with the { "ignoreUrls": true } option:

                  /*eslint max-len: ["error", { "ignoreUrls": true }]*/
                  
                  var url = 'https://www.example.com/really/really/really/really/really/really/really/long';

                  ignoreStrings

                  Examples of correct code for this rule with the { "ignoreStrings": true } option:

                  /*eslint max-len: ["error", { "ignoreStrings": true }]*/
                  
                  var longString = 'this is a really really really really really long string!';

                  ignoreTemplateLiterals

                  Examples of correct code for this rule with the { "ignoreTemplateLiterals": true } option:

                  /*eslint max-len: ["error", { "ignoreTemplateLiterals": true }]*/
                  
                  var longTemplateLiteral = `this is a really really really really really long template literal!`;

                  ignoreRegExpLiterals

                  Examples of correct code for this rule with the { "ignoreRegExpLiterals": true } option:

                  /*eslint max-len: ["error", { "ignoreRegExpLiterals": true }]*/
                  
                  var longRegExpLiteral = /this is a really really really really really long regular expression!/;

                  ignorePattern

                  Examples of correct code for this rule with the { "ignorePattern": true } option:

                  /*eslint max-len: ["error", { "ignorePattern": "^\\s*var\\s.+=\\s*require\\s*\\(/" }]*/
                  
                  var dep = require('really/really/really/really/really/really/really/really/long/module');

                  Related Rules

                  • [complexity](complexity.md)
                  • [max-depth](max-depth.md)
                  • [max-nested-callbacks](max-nested-callbacks.md)
                  • [max-params](max-params.md)
                  • [max-statements](max-statements.md) Source: http://eslint.org/docs/rules/

                  Line 62 exceeds the maximum line length of 100.
                  Open

                                          if(max_scores[data.id_no]) max_scores[data.id_no] = Math.max(max_scores[data.id_no],total_score);
                  Severity: Minor
                  Found in main_server/reval/reval.js by eslint

                  enforce a maximum line length (max-len)

                  Very long lines of code in any language can be difficult to read. In order to aid in readability and maintainability many coders have developed a convention to limit lines of code to X number of characters (traditionally 80 characters).

                  var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" }, "difficult": "to read" }; // very long

                  Rule Details

                  This rule enforces a maximum line length to increase code readability and maintainability. The length of a line is defined as the number of Unicode characters in the line.

                  Options

                  This rule has a number or object option:

                  • "code" (default 80) enforces a maximum line length
                  • "tabWidth" (default 4) specifies the character width for tab characters
                  • "comments" enforces a maximum line length for comments; defaults to value of code
                  • "ignorePattern" ignores lines matching a regular expression; can only match a single line and need to be double escaped when written in YAML or JSON
                  • "ignoreComments": true ignores all trailing comments and comments on their own line
                  • "ignoreTrailingComments": true ignores only trailing comments
                  • "ignoreUrls": true ignores lines that contain a URL
                  • "ignoreStrings": true ignores lines that contain a double-quoted or single-quoted string
                  • "ignoreTemplateLiterals": true ignores lines that contain a template literal
                  • "ignoreRegExpLiterals": true ignores lines that contain a RegExp literal

                  code

                  Examples of incorrect code for this rule with the default { "code": 80 } option:

                  /*eslint max-len: ["error", 80]*/
                  
                  var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" }, "difficult": "to read" };

                  Examples of correct code for this rule with the default { "code": 80 } option:

                  /*eslint max-len: ["error", 80]*/
                  
                  var foo = {
                    "bar": "This is a bar.",
                    "baz": { "qux": "This is a qux" },
                    "easier": "to read"
                  };

                  tabWidth

                  Examples of incorrect code for this rule with the default { "tabWidth": 4 } option:

                  /*eslint max-len: ["error", 80, 4]*/
                  
                  \t  \t  var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" } };

                  Examples of correct code for this rule with the default { "tabWidth": 4 } option:

                  /*eslint max-len: ["error", 80, 4]*/
                  
                  \t  \t  var foo = {
                  \t  \t  \t  \t  "bar": "This is a bar.",
                  \t  \t  \t  \t  "baz": { "qux": "This is a qux" }
                  \t  \t  };

                  comments

                  Examples of incorrect code for this rule with the { "comments": 65 } option:

                  /*eslint max-len: ["error", { "comments": 65 }]*/
                  
                  /**
                   * This is a comment that violates the maximum line length we have specified
                  **/

                  ignoreComments

                  Examples of correct code for this rule with the { "ignoreComments": true } option:

                  /*eslint max-len: ["error", { "ignoreComments": true }]*/
                  
                  /**
                   * This is a really really really really really really really really really long comment
                  **/

                  ignoreTrailingComments

                  Examples of correct code for this rule with the { "ignoreTrailingComments": true } option:

                  /*eslint max-len: ["error", { "ignoreTrailingComments": true }]*/
                  
                  var foo = 'bar'; // This is a really really really really really really really long comment

                  ignoreUrls

                  Examples of correct code for this rule with the { "ignoreUrls": true } option:

                  /*eslint max-len: ["error", { "ignoreUrls": true }]*/
                  
                  var url = 'https://www.example.com/really/really/really/really/really/really/really/long';

                  ignoreStrings

                  Examples of correct code for this rule with the { "ignoreStrings": true } option:

                  /*eslint max-len: ["error", { "ignoreStrings": true }]*/
                  
                  var longString = 'this is a really really really really really long string!';

                  ignoreTemplateLiterals

                  Examples of correct code for this rule with the { "ignoreTemplateLiterals": true } option:

                  /*eslint max-len: ["error", { "ignoreTemplateLiterals": true }]*/
                  
                  var longTemplateLiteral = `this is a really really really really really long template literal!`;

                  ignoreRegExpLiterals

                  Examples of correct code for this rule with the { "ignoreRegExpLiterals": true } option:

                  /*eslint max-len: ["error", { "ignoreRegExpLiterals": true }]*/
                  
                  var longRegExpLiteral = /this is a really really really really really long regular expression!/;

                  ignorePattern

                  Examples of correct code for this rule with the { "ignorePattern": true } option:

                  /*eslint max-len: ["error", { "ignorePattern": "^\\s*var\\s.+=\\s*require\\s*\\(/" }]*/
                  
                  var dep = require('really/really/really/really/really/really/really/really/long/module');

                  Related Rules

                  • [complexity](complexity.md)
                  • [max-depth](max-depth.md)
                  • [max-nested-callbacks](max-nested-callbacks.md)
                  • [max-params](max-params.md)
                  • [max-statements](max-statements.md) Source: http://eslint.org/docs/rules/

                  Line 31 exceeds the maximum line length of 100.
                  Open

                      gitlab.getPrivateToken(function(err,token)             //Get the private token required to get all the commits
                  Severity: Minor
                  Found in main_server/reval/reval.js by eslint

                  enforce a maximum line length (max-len)

                  Very long lines of code in any language can be difficult to read. In order to aid in readability and maintainability many coders have developed a convention to limit lines of code to X number of characters (traditionally 80 characters).

                  var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" }, "difficult": "to read" }; // very long

                  Rule Details

                  This rule enforces a maximum line length to increase code readability and maintainability. The length of a line is defined as the number of Unicode characters in the line.

                  Options

                  This rule has a number or object option:

                  • "code" (default 80) enforces a maximum line length
                  • "tabWidth" (default 4) specifies the character width for tab characters
                  • "comments" enforces a maximum line length for comments; defaults to value of code
                  • "ignorePattern" ignores lines matching a regular expression; can only match a single line and need to be double escaped when written in YAML or JSON
                  • "ignoreComments": true ignores all trailing comments and comments on their own line
                  • "ignoreTrailingComments": true ignores only trailing comments
                  • "ignoreUrls": true ignores lines that contain a URL
                  • "ignoreStrings": true ignores lines that contain a double-quoted or single-quoted string
                  • "ignoreTemplateLiterals": true ignores lines that contain a template literal
                  • "ignoreRegExpLiterals": true ignores lines that contain a RegExp literal

                  code

                  Examples of incorrect code for this rule with the default { "code": 80 } option:

                  /*eslint max-len: ["error", 80]*/
                  
                  var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" }, "difficult": "to read" };

                  Examples of correct code for this rule with the default { "code": 80 } option:

                  /*eslint max-len: ["error", 80]*/
                  
                  var foo = {
                    "bar": "This is a bar.",
                    "baz": { "qux": "This is a qux" },
                    "easier": "to read"
                  };

                  tabWidth

                  Examples of incorrect code for this rule with the default { "tabWidth": 4 } option:

                  /*eslint max-len: ["error", 80, 4]*/
                  
                  \t  \t  var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" } };

                  Examples of correct code for this rule with the default { "tabWidth": 4 } option:

                  /*eslint max-len: ["error", 80, 4]*/
                  
                  \t  \t  var foo = {
                  \t  \t  \t  \t  "bar": "This is a bar.",
                  \t  \t  \t  \t  "baz": { "qux": "This is a qux" }
                  \t  \t  };

                  comments

                  Examples of incorrect code for this rule with the { "comments": 65 } option:

                  /*eslint max-len: ["error", { "comments": 65 }]*/
                  
                  /**
                   * This is a comment that violates the maximum line length we have specified
                  **/

                  ignoreComments

                  Examples of correct code for this rule with the { "ignoreComments": true } option:

                  /*eslint max-len: ["error", { "ignoreComments": true }]*/
                  
                  /**
                   * This is a really really really really really really really really really long comment
                  **/

                  ignoreTrailingComments

                  Examples of correct code for this rule with the { "ignoreTrailingComments": true } option:

                  /*eslint max-len: ["error", { "ignoreTrailingComments": true }]*/
                  
                  var foo = 'bar'; // This is a really really really really really really really long comment

                  ignoreUrls

                  Examples of correct code for this rule with the { "ignoreUrls": true } option:

                  /*eslint max-len: ["error", { "ignoreUrls": true }]*/
                  
                  var url = 'https://www.example.com/really/really/really/really/really/really/really/long';

                  ignoreStrings

                  Examples of correct code for this rule with the { "ignoreStrings": true } option:

                  /*eslint max-len: ["error", { "ignoreStrings": true }]*/
                  
                  var longString = 'this is a really really really really really long string!';

                  ignoreTemplateLiterals

                  Examples of correct code for this rule with the { "ignoreTemplateLiterals": true } option:

                  /*eslint max-len: ["error", { "ignoreTemplateLiterals": true }]*/
                  
                  var longTemplateLiteral = `this is a really really really really really long template literal!`;

                  ignoreRegExpLiterals

                  Examples of correct code for this rule with the { "ignoreRegExpLiterals": true } option:

                  /*eslint max-len: ["error", { "ignoreRegExpLiterals": true }]*/
                  
                  var longRegExpLiteral = /this is a really really really really really long regular expression!/;

                  ignorePattern

                  Examples of correct code for this rule with the { "ignorePattern": true } option:

                  /*eslint max-len: ["error", { "ignorePattern": "^\\s*var\\s.+=\\s*require\\s*\\(/" }]*/
                  
                  var dep = require('really/really/really/really/really/really/really/really/long/module');

                  Related Rules

                  • [complexity](complexity.md)
                  • [max-depth](max-depth.md)
                  • [max-nested-callbacks](max-nested-callbacks.md)
                  • [max-params](max-params.md)
                  • [max-statements](max-statements.md) Source: http://eslint.org/docs/rules/

                  Line 9 exceeds the maximum line length of 100.
                  Open

                          accordion : false // A setting that changes the collapsible behavior to expandable instead of the default accordion style
                  Severity: Minor
                  Found in main_server/public/js/adminLogic.js by eslint

                  enforce a maximum line length (max-len)

                  Very long lines of code in any language can be difficult to read. In order to aid in readability and maintainability many coders have developed a convention to limit lines of code to X number of characters (traditionally 80 characters).

                  var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" }, "difficult": "to read" }; // very long

                  Rule Details

                  This rule enforces a maximum line length to increase code readability and maintainability. The length of a line is defined as the number of Unicode characters in the line.

                  Options

                  This rule has a number or object option:

                  • "code" (default 80) enforces a maximum line length
                  • "tabWidth" (default 4) specifies the character width for tab characters
                  • "comments" enforces a maximum line length for comments; defaults to value of code
                  • "ignorePattern" ignores lines matching a regular expression; can only match a single line and need to be double escaped when written in YAML or JSON
                  • "ignoreComments": true ignores all trailing comments and comments on their own line
                  • "ignoreTrailingComments": true ignores only trailing comments
                  • "ignoreUrls": true ignores lines that contain a URL
                  • "ignoreStrings": true ignores lines that contain a double-quoted or single-quoted string
                  • "ignoreTemplateLiterals": true ignores lines that contain a template literal
                  • "ignoreRegExpLiterals": true ignores lines that contain a RegExp literal

                  code

                  Examples of incorrect code for this rule with the default { "code": 80 } option:

                  /*eslint max-len: ["error", 80]*/
                  
                  var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" }, "difficult": "to read" };

                  Examples of correct code for this rule with the default { "code": 80 } option:

                  /*eslint max-len: ["error", 80]*/
                  
                  var foo = {
                    "bar": "This is a bar.",
                    "baz": { "qux": "This is a qux" },
                    "easier": "to read"
                  };

                  tabWidth

                  Examples of incorrect code for this rule with the default { "tabWidth": 4 } option:

                  /*eslint max-len: ["error", 80, 4]*/
                  
                  \t  \t  var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" } };

                  Examples of correct code for this rule with the default { "tabWidth": 4 } option:

                  /*eslint max-len: ["error", 80, 4]*/
                  
                  \t  \t  var foo = {
                  \t  \t  \t  \t  "bar": "This is a bar.",
                  \t  \t  \t  \t  "baz": { "qux": "This is a qux" }
                  \t  \t  };

                  comments

                  Examples of incorrect code for this rule with the { "comments": 65 } option:

                  /*eslint max-len: ["error", { "comments": 65 }]*/
                  
                  /**
                   * This is a comment that violates the maximum line length we have specified
                  **/

                  ignoreComments

                  Examples of correct code for this rule with the { "ignoreComments": true } option:

                  /*eslint max-len: ["error", { "ignoreComments": true }]*/
                  
                  /**
                   * This is a really really really really really really really really really long comment
                  **/

                  ignoreTrailingComments

                  Examples of correct code for this rule with the { "ignoreTrailingComments": true } option:

                  /*eslint max-len: ["error", { "ignoreTrailingComments": true }]*/
                  
                  var foo = 'bar'; // This is a really really really really really really really long comment

                  ignoreUrls

                  Examples of correct code for this rule with the { "ignoreUrls": true } option:

                  /*eslint max-len: ["error", { "ignoreUrls": true }]*/
                  
                  var url = 'https://www.example.com/really/really/really/really/really/really/really/long';

                  ignoreStrings

                  Examples of correct code for this rule with the { "ignoreStrings": true } option:

                  /*eslint max-len: ["error", { "ignoreStrings": true }]*/
                  
                  var longString = 'this is a really really really really really long string!';

                  ignoreTemplateLiterals

                  Examples of correct code for this rule with the { "ignoreTemplateLiterals": true } option:

                  /*eslint max-len: ["error", { "ignoreTemplateLiterals": true }]*/
                  
                  var longTemplateLiteral = `this is a really really really really really long template literal!`;

                  ignoreRegExpLiterals

                  Examples of correct code for this rule with the { "ignoreRegExpLiterals": true } option:

                  /*eslint max-len: ["error", { "ignoreRegExpLiterals": true }]*/
                  
                  var longRegExpLiteral = /this is a really really really really really long regular expression!/;

                  ignorePattern

                  Examples of correct code for this rule with the { "ignorePattern": true } option:

                  /*eslint max-len: ["error", { "ignorePattern": "^\\s*var\\s.+=\\s*require\\s*\\(/" }]*/
                  
                  var dep = require('really/really/really/really/really/really/really/really/long/module');

                  Related Rules

                  • [complexity](complexity.md)
                  • [max-depth](max-depth.md)
                  • [max-nested-callbacks](max-nested-callbacks.md)
                  • [max-params](max-params.md)
                  • [max-statements](max-statements.md) Source: http://eslint.org/docs/rules/

                  Line 31 exceeds the maximum line length of 100.
                  Open

                          deletedLabs.push($(this).parent().parent().children().children().children().children().children().val())
                  Severity: Minor
                  Found in main_server/public/js/configLogic.js by eslint

                  enforce a maximum line length (max-len)

                  Very long lines of code in any language can be difficult to read. In order to aid in readability and maintainability many coders have developed a convention to limit lines of code to X number of characters (traditionally 80 characters).

                  var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" }, "difficult": "to read" }; // very long

                  Rule Details

                  This rule enforces a maximum line length to increase code readability and maintainability. The length of a line is defined as the number of Unicode characters in the line.

                  Options

                  This rule has a number or object option:

                  • "code" (default 80) enforces a maximum line length
                  • "tabWidth" (default 4) specifies the character width for tab characters
                  • "comments" enforces a maximum line length for comments; defaults to value of code
                  • "ignorePattern" ignores lines matching a regular expression; can only match a single line and need to be double escaped when written in YAML or JSON
                  • "ignoreComments": true ignores all trailing comments and comments on their own line
                  • "ignoreTrailingComments": true ignores only trailing comments
                  • "ignoreUrls": true ignores lines that contain a URL
                  • "ignoreStrings": true ignores lines that contain a double-quoted or single-quoted string
                  • "ignoreTemplateLiterals": true ignores lines that contain a template literal
                  • "ignoreRegExpLiterals": true ignores lines that contain a RegExp literal

                  code

                  Examples of incorrect code for this rule with the default { "code": 80 } option:

                  /*eslint max-len: ["error", 80]*/
                  
                  var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" }, "difficult": "to read" };

                  Examples of correct code for this rule with the default { "code": 80 } option:

                  /*eslint max-len: ["error", 80]*/
                  
                  var foo = {
                    "bar": "This is a bar.",
                    "baz": { "qux": "This is a qux" },
                    "easier": "to read"
                  };

                  tabWidth

                  Examples of incorrect code for this rule with the default { "tabWidth": 4 } option:

                  /*eslint max-len: ["error", 80, 4]*/
                  
                  \t  \t  var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" } };

                  Examples of correct code for this rule with the default { "tabWidth": 4 } option:

                  /*eslint max-len: ["error", 80, 4]*/
                  
                  \t  \t  var foo = {
                  \t  \t  \t  \t  "bar": "This is a bar.",
                  \t  \t  \t  \t  "baz": { "qux": "This is a qux" }
                  \t  \t  };

                  comments

                  Examples of incorrect code for this rule with the { "comments": 65 } option:

                  /*eslint max-len: ["error", { "comments": 65 }]*/
                  
                  /**
                   * This is a comment that violates the maximum line length we have specified
                  **/

                  ignoreComments

                  Examples of correct code for this rule with the { "ignoreComments": true } option:

                  /*eslint max-len: ["error", { "ignoreComments": true }]*/
                  
                  /**
                   * This is a really really really really really really really really really long comment
                  **/

                  ignoreTrailingComments

                  Examples of correct code for this rule with the { "ignoreTrailingComments": true } option:

                  /*eslint max-len: ["error", { "ignoreTrailingComments": true }]*/
                  
                  var foo = 'bar'; // This is a really really really really really really really long comment

                  ignoreUrls

                  Examples of correct code for this rule with the { "ignoreUrls": true } option:

                  /*eslint max-len: ["error", { "ignoreUrls": true }]*/
                  
                  var url = 'https://www.example.com/really/really/really/really/really/really/really/long';

                  ignoreStrings

                  Examples of correct code for this rule with the { "ignoreStrings": true } option:

                  /*eslint max-len: ["error", { "ignoreStrings": true }]*/
                  
                  var longString = 'this is a really really really really really long string!';

                  ignoreTemplateLiterals

                  Examples of correct code for this rule with the { "ignoreTemplateLiterals": true } option:

                  /*eslint max-len: ["error", { "ignoreTemplateLiterals": true }]*/
                  
                  var longTemplateLiteral = `this is a really really really really really long template literal!`;

                  ignoreRegExpLiterals

                  Examples of correct code for this rule with the { "ignoreRegExpLiterals": true } option:

                  /*eslint max-len: ["error", { "ignoreRegExpLiterals": true }]*/
                  
                  var longRegExpLiteral = /this is a really really really really really long regular expression!/;

                  ignorePattern

                  Examples of correct code for this rule with the { "ignorePattern": true } option:

                  /*eslint max-len: ["error", { "ignorePattern": "^\\s*var\\s.+=\\s*require\\s*\\(/" }]*/
                  
                  var dep = require('really/really/really/really/really/really/really/really/long/module');

                  Related Rules

                  • [complexity](complexity.md)
                  • [max-depth](max-depth.md)
                  • [max-nested-callbacks](max-nested-callbacks.md)
                  • [max-params](max-params.md)
                  • [max-statements](max-statements.md) Source: http://eslint.org/docs/rules/

                  Line 45 exceeds the maximum line length of 100.
                  Open

                          deletedLabs.push($(this).parent().parent().children().children().children().children().children().val());
                  Severity: Minor
                  Found in main_server/public/js/configLogic.js by eslint

                  enforce a maximum line length (max-len)

                  Very long lines of code in any language can be difficult to read. In order to aid in readability and maintainability many coders have developed a convention to limit lines of code to X number of characters (traditionally 80 characters).

                  var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" }, "difficult": "to read" }; // very long

                  Rule Details

                  This rule enforces a maximum line length to increase code readability and maintainability. The length of a line is defined as the number of Unicode characters in the line.

                  Options

                  This rule has a number or object option:

                  • "code" (default 80) enforces a maximum line length
                  • "tabWidth" (default 4) specifies the character width for tab characters
                  • "comments" enforces a maximum line length for comments; defaults to value of code
                  • "ignorePattern" ignores lines matching a regular expression; can only match a single line and need to be double escaped when written in YAML or JSON
                  • "ignoreComments": true ignores all trailing comments and comments on their own line
                  • "ignoreTrailingComments": true ignores only trailing comments
                  • "ignoreUrls": true ignores lines that contain a URL
                  • "ignoreStrings": true ignores lines that contain a double-quoted or single-quoted string
                  • "ignoreTemplateLiterals": true ignores lines that contain a template literal
                  • "ignoreRegExpLiterals": true ignores lines that contain a RegExp literal

                  code

                  Examples of incorrect code for this rule with the default { "code": 80 } option:

                  /*eslint max-len: ["error", 80]*/
                  
                  var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" }, "difficult": "to read" };

                  Examples of correct code for this rule with the default { "code": 80 } option:

                  /*eslint max-len: ["error", 80]*/
                  
                  var foo = {
                    "bar": "This is a bar.",
                    "baz": { "qux": "This is a qux" },
                    "easier": "to read"
                  };

                  tabWidth

                  Examples of incorrect code for this rule with the default { "tabWidth": 4 } option:

                  /*eslint max-len: ["error", 80, 4]*/
                  
                  \t  \t  var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" } };

                  Examples of correct code for this rule with the default { "tabWidth": 4 } option:

                  /*eslint max-len: ["error", 80, 4]*/
                  
                  \t  \t  var foo = {
                  \t  \t  \t  \t  "bar": "This is a bar.",
                  \t  \t  \t  \t  "baz": { "qux": "This is a qux" }
                  \t  \t  };

                  comments

                  Examples of incorrect code for this rule with the { "comments": 65 } option:

                  /*eslint max-len: ["error", { "comments": 65 }]*/
                  
                  /**
                   * This is a comment that violates the maximum line length we have specified
                  **/

                  ignoreComments

                  Examples of correct code for this rule with the { "ignoreComments": true } option:

                  /*eslint max-len: ["error", { "ignoreComments": true }]*/
                  
                  /**
                   * This is a really really really really really really really really really long comment
                  **/

                  ignoreTrailingComments

                  Examples of correct code for this rule with the { "ignoreTrailingComments": true } option:

                  /*eslint max-len: ["error", { "ignoreTrailingComments": true }]*/
                  
                  var foo = 'bar'; // This is a really really really really really really really long comment

                  ignoreUrls

                  Examples of correct code for this rule with the { "ignoreUrls": true } option:

                  /*eslint max-len: ["error", { "ignoreUrls": true }]*/
                  
                  var url = 'https://www.example.com/really/really/really/really/really/really/really/long';

                  ignoreStrings

                  Examples of correct code for this rule with the { "ignoreStrings": true } option:

                  /*eslint max-len: ["error", { "ignoreStrings": true }]*/
                  
                  var longString = 'this is a really really really really really long string!';

                  ignoreTemplateLiterals

                  Examples of correct code for this rule with the { "ignoreTemplateLiterals": true } option:

                  /*eslint max-len: ["error", { "ignoreTemplateLiterals": true }]*/
                  
                  var longTemplateLiteral = `this is a really really really really really long template literal!`;

                  ignoreRegExpLiterals

                  Examples of correct code for this rule with the { "ignoreRegExpLiterals": true } option:

                  /*eslint max-len: ["error", { "ignoreRegExpLiterals": true }]*/
                  
                  var longRegExpLiteral = /this is a really really really really really long regular expression!/;

                  ignorePattern

                  Examples of correct code for this rule with the { "ignorePattern": true } option:

                  /*eslint max-len: ["error", { "ignorePattern": "^\\s*var\\s.+=\\s*require\\s*\\(/" }]*/
                  
                  var dep = require('really/really/really/really/really/really/really/really/long/module');

                  Related Rules

                  • [complexity](complexity.md)
                  • [max-depth](max-depth.md)
                  • [max-nested-callbacks](max-nested-callbacks.md)
                  • [max-params](max-params.md)
                  • [max-statements](max-statements.md) Source: http://eslint.org/docs/rules/

                  Line 81 exceeds the maximum line length of 100.
                  Open

                                  continue; //Dont create a new checkbox if there is already one with the same lab name
                  Severity: Minor
                  Found in main_server/public/js/adminLogic.js by eslint

                  enforce a maximum line length (max-len)

                  Very long lines of code in any language can be difficult to read. In order to aid in readability and maintainability many coders have developed a convention to limit lines of code to X number of characters (traditionally 80 characters).

                  var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" }, "difficult": "to read" }; // very long

                  Rule Details

                  This rule enforces a maximum line length to increase code readability and maintainability. The length of a line is defined as the number of Unicode characters in the line.

                  Options

                  This rule has a number or object option:

                  • "code" (default 80) enforces a maximum line length
                  • "tabWidth" (default 4) specifies the character width for tab characters
                  • "comments" enforces a maximum line length for comments; defaults to value of code
                  • "ignorePattern" ignores lines matching a regular expression; can only match a single line and need to be double escaped when written in YAML or JSON
                  • "ignoreComments": true ignores all trailing comments and comments on their own line
                  • "ignoreTrailingComments": true ignores only trailing comments
                  • "ignoreUrls": true ignores lines that contain a URL
                  • "ignoreStrings": true ignores lines that contain a double-quoted or single-quoted string
                  • "ignoreTemplateLiterals": true ignores lines that contain a template literal
                  • "ignoreRegExpLiterals": true ignores lines that contain a RegExp literal

                  code

                  Examples of incorrect code for this rule with the default { "code": 80 } option:

                  /*eslint max-len: ["error", 80]*/
                  
                  var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" }, "difficult": "to read" };

                  Examples of correct code for this rule with the default { "code": 80 } option:

                  /*eslint max-len: ["error", 80]*/
                  
                  var foo = {
                    "bar": "This is a bar.",
                    "baz": { "qux": "This is a qux" },
                    "easier": "to read"
                  };

                  tabWidth

                  Examples of incorrect code for this rule with the default { "tabWidth": 4 } option:

                  /*eslint max-len: ["error", 80, 4]*/
                  
                  \t  \t  var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" } };

                  Examples of correct code for this rule with the default { "tabWidth": 4 } option:

                  /*eslint max-len: ["error", 80, 4]*/
                  
                  \t  \t  var foo = {
                  \t  \t  \t  \t  "bar": "This is a bar.",
                  \t  \t  \t  \t  "baz": { "qux": "This is a qux" }
                  \t  \t  };

                  comments

                  Examples of incorrect code for this rule with the { "comments": 65 } option:

                  /*eslint max-len: ["error", { "comments": 65 }]*/
                  
                  /**
                   * This is a comment that violates the maximum line length we have specified
                  **/

                  ignoreComments

                  Examples of correct code for this rule with the { "ignoreComments": true } option:

                  /*eslint max-len: ["error", { "ignoreComments": true }]*/
                  
                  /**
                   * This is a really really really really really really really really really long comment
                  **/

                  ignoreTrailingComments

                  Examples of correct code for this rule with the { "ignoreTrailingComments": true } option:

                  /*eslint max-len: ["error", { "ignoreTrailingComments": true }]*/
                  
                  var foo = 'bar'; // This is a really really really really really really really long comment

                  ignoreUrls

                  Examples of correct code for this rule with the { "ignoreUrls": true } option:

                  /*eslint max-len: ["error", { "ignoreUrls": true }]*/
                  
                  var url = 'https://www.example.com/really/really/really/really/really/really/really/long';

                  ignoreStrings

                  Examples of correct code for this rule with the { "ignoreStrings": true } option:

                  /*eslint max-len: ["error", { "ignoreStrings": true }]*/
                  
                  var longString = 'this is a really really really really really long string!';

                  ignoreTemplateLiterals

                  Examples of correct code for this rule with the { "ignoreTemplateLiterals": true } option:

                  /*eslint max-len: ["error", { "ignoreTemplateLiterals": true }]*/
                  
                  var longTemplateLiteral = `this is a really really really really really long template literal!`;

                  ignoreRegExpLiterals

                  Examples of correct code for this rule with the { "ignoreRegExpLiterals": true } option:

                  /*eslint max-len: ["error", { "ignoreRegExpLiterals": true }]*/
                  
                  var longRegExpLiteral = /this is a really really really really really long regular expression!/;

                  ignorePattern

                  Examples of correct code for this rule with the { "ignorePattern": true } option:

                  /*eslint max-len: ["error", { "ignorePattern": "^\\s*var\\s.+=\\s*require\\s*\\(/" }]*/
                  
                  var dep = require('really/really/really/really/really/really/really/really/long/module');

                  Related Rules

                  • [complexity](complexity.md)
                  • [max-depth](max-depth.md)
                  • [max-nested-callbacks](max-nested-callbacks.md)
                  • [max-params](max-params.md)
                  • [max-statements](max-statements.md) Source: http://eslint.org/docs/rules/

                  Line 43 exceeds the maximum line length of 100.
                  Open

                          console.log(lab_id,$(this).parent().parent().children().children().children().children().children().val());
                  Severity: Minor
                  Found in main_server/public/js/configLogic.js by eslint

                  enforce a maximum line length (max-len)

                  Very long lines of code in any language can be difficult to read. In order to aid in readability and maintainability many coders have developed a convention to limit lines of code to X number of characters (traditionally 80 characters).

                  var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" }, "difficult": "to read" }; // very long

                  Rule Details

                  This rule enforces a maximum line length to increase code readability and maintainability. The length of a line is defined as the number of Unicode characters in the line.

                  Options

                  This rule has a number or object option:

                  • "code" (default 80) enforces a maximum line length
                  • "tabWidth" (default 4) specifies the character width for tab characters
                  • "comments" enforces a maximum line length for comments; defaults to value of code
                  • "ignorePattern" ignores lines matching a regular expression; can only match a single line and need to be double escaped when written in YAML or JSON
                  • "ignoreComments": true ignores all trailing comments and comments on their own line
                  • "ignoreTrailingComments": true ignores only trailing comments
                  • "ignoreUrls": true ignores lines that contain a URL
                  • "ignoreStrings": true ignores lines that contain a double-quoted or single-quoted string
                  • "ignoreTemplateLiterals": true ignores lines that contain a template literal
                  • "ignoreRegExpLiterals": true ignores lines that contain a RegExp literal

                  code

                  Examples of incorrect code for this rule with the default { "code": 80 } option:

                  /*eslint max-len: ["error", 80]*/
                  
                  var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" }, "difficult": "to read" };

                  Examples of correct code for this rule with the default { "code": 80 } option:

                  /*eslint max-len: ["error", 80]*/
                  
                  var foo = {
                    "bar": "This is a bar.",
                    "baz": { "qux": "This is a qux" },
                    "easier": "to read"
                  };

                  tabWidth

                  Examples of incorrect code for this rule with the default { "tabWidth": 4 } option:

                  /*eslint max-len: ["error", 80, 4]*/
                  
                  \t  \t  var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" } };

                  Examples of correct code for this rule with the default { "tabWidth": 4 } option:

                  /*eslint max-len: ["error", 80, 4]*/
                  
                  \t  \t  var foo = {
                  \t  \t  \t  \t  "bar": "This is a bar.",
                  \t  \t  \t  \t  "baz": { "qux": "This is a qux" }
                  \t  \t  };

                  comments

                  Examples of incorrect code for this rule with the { "comments": 65 } option:

                  /*eslint max-len: ["error", { "comments": 65 }]*/
                  
                  /**
                   * This is a comment that violates the maximum line length we have specified
                  **/

                  ignoreComments

                  Examples of correct code for this rule with the { "ignoreComments": true } option:

                  /*eslint max-len: ["error", { "ignoreComments": true }]*/
                  
                  /**
                   * This is a really really really really really really really really really long comment
                  **/

                  ignoreTrailingComments

                  Examples of correct code for this rule with the { "ignoreTrailingComments": true } option:

                  /*eslint max-len: ["error", { "ignoreTrailingComments": true }]*/
                  
                  var foo = 'bar'; // This is a really really really really really really really long comment

                  ignoreUrls

                  Examples of correct code for this rule with the { "ignoreUrls": true } option:

                  /*eslint max-len: ["error", { "ignoreUrls": true }]*/
                  
                  var url = 'https://www.example.com/really/really/really/really/really/really/really/long';

                  ignoreStrings

                  Examples of correct code for this rule with the { "ignoreStrings": true } option:

                  /*eslint max-len: ["error", { "ignoreStrings": true }]*/
                  
                  var longString = 'this is a really really really really really long string!';

                  ignoreTemplateLiterals

                  Examples of correct code for this rule with the { "ignoreTemplateLiterals": true } option:

                  /*eslint max-len: ["error", { "ignoreTemplateLiterals": true }]*/
                  
                  var longTemplateLiteral = `this is a really really really really really long template literal!`;

                  ignoreRegExpLiterals

                  Examples of correct code for this rule with the { "ignoreRegExpLiterals": true } option:

                  /*eslint max-len: ["error", { "ignoreRegExpLiterals": true }]*/
                  
                  var longRegExpLiteral = /this is a really really really really really long regular expression!/;

                  ignorePattern

                  Examples of correct code for this rule with the { "ignorePattern": true } option:

                  /*eslint max-len: ["error", { "ignorePattern": "^\\s*var\\s.+=\\s*require\\s*\\(/" }]*/
                  
                  var dep = require('really/really/really/really/really/really/really/really/long/module');

                  Related Rules

                  • [complexity](complexity.md)
                  • [max-depth](max-depth.md)
                  • [max-nested-callbacks](max-nested-callbacks.md)
                  • [max-params](max-params.md)
                  • [max-statements](max-statements.md) Source: http://eslint.org/docs/rules/

                  Line 44 exceeds the maximum line length of 100.
                  Open

                          //socket.emit('delete lab',$(this).parent().parent().children().children().children().children().children().val());
                  Severity: Minor
                  Found in main_server/public/js/configLogic.js by eslint

                  enforce a maximum line length (max-len)

                  Very long lines of code in any language can be difficult to read. In order to aid in readability and maintainability many coders have developed a convention to limit lines of code to X number of characters (traditionally 80 characters).

                  var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" }, "difficult": "to read" }; // very long

                  Rule Details

                  This rule enforces a maximum line length to increase code readability and maintainability. The length of a line is defined as the number of Unicode characters in the line.

                  Options

                  This rule has a number or object option:

                  • "code" (default 80) enforces a maximum line length
                  • "tabWidth" (default 4) specifies the character width for tab characters
                  • "comments" enforces a maximum line length for comments; defaults to value of code
                  • "ignorePattern" ignores lines matching a regular expression; can only match a single line and need to be double escaped when written in YAML or JSON
                  • "ignoreComments": true ignores all trailing comments and comments on their own line
                  • "ignoreTrailingComments": true ignores only trailing comments
                  • "ignoreUrls": true ignores lines that contain a URL
                  • "ignoreStrings": true ignores lines that contain a double-quoted or single-quoted string
                  • "ignoreTemplateLiterals": true ignores lines that contain a template literal
                  • "ignoreRegExpLiterals": true ignores lines that contain a RegExp literal

                  code

                  Examples of incorrect code for this rule with the default { "code": 80 } option:

                  /*eslint max-len: ["error", 80]*/
                  
                  var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" }, "difficult": "to read" };

                  Examples of correct code for this rule with the default { "code": 80 } option:

                  /*eslint max-len: ["error", 80]*/
                  
                  var foo = {
                    "bar": "This is a bar.",
                    "baz": { "qux": "This is a qux" },
                    "easier": "to read"
                  };

                  tabWidth

                  Examples of incorrect code for this rule with the default { "tabWidth": 4 } option:

                  /*eslint max-len: ["error", 80, 4]*/
                  
                  \t  \t  var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" } };

                  Examples of correct code for this rule with the default { "tabWidth": 4 } option:

                  /*eslint max-len: ["error", 80, 4]*/
                  
                  \t  \t  var foo = {
                  \t  \t  \t  \t  "bar": "This is a bar.",
                  \t  \t  \t  \t  "baz": { "qux": "This is a qux" }
                  \t  \t  };

                  comments

                  Examples of incorrect code for this rule with the { "comments": 65 } option:

                  /*eslint max-len: ["error", { "comments": 65 }]*/
                  
                  /**
                   * This is a comment that violates the maximum line length we have specified
                  **/

                  ignoreComments

                  Examples of correct code for this rule with the { "ignoreComments": true } option:

                  /*eslint max-len: ["error", { "ignoreComments": true }]*/
                  
                  /**
                   * This is a really really really really really really really really really long comment
                  **/

                  ignoreTrailingComments

                  Examples of correct code for this rule with the { "ignoreTrailingComments": true } option:

                  /*eslint max-len: ["error", { "ignoreTrailingComments": true }]*/
                  
                  var foo = 'bar'; // This is a really really really really really really really long comment

                  ignoreUrls

                  Examples of correct code for this rule with the { "ignoreUrls": true } option:

                  /*eslint max-len: ["error", { "ignoreUrls": true }]*/
                  
                  var url = 'https://www.example.com/really/really/really/really/really/really/really/long';

                  ignoreStrings

                  Examples of correct code for this rule with the { "ignoreStrings": true } option:

                  /*eslint max-len: ["error", { "ignoreStrings": true }]*/
                  
                  var longString = 'this is a really really really really really long string!';

                  ignoreTemplateLiterals

                  Examples of correct code for this rule with the { "ignoreTemplateLiterals": true } option:

                  /*eslint max-len: ["error", { "ignoreTemplateLiterals": true }]*/
                  
                  var longTemplateLiteral = `this is a really really really really really long template literal!`;

                  ignoreRegExpLiterals

                  Examples of correct code for this rule with the { "ignoreRegExpLiterals": true } option:

                  /*eslint max-len: ["error", { "ignoreRegExpLiterals": true }]*/
                  
                  var longRegExpLiteral = /this is a really really really really really long regular expression!/;

                  ignorePattern

                  Examples of correct code for this rule with the { "ignorePattern": true } option:

                  /*eslint max-len: ["error", { "ignorePattern": "^\\s*var\\s.+=\\s*require\\s*\\(/" }]*/
                  
                  var dep = require('really/really/really/really/really/really/really/really/long/module');

                  Related Rules

                  • [complexity](complexity.md)
                  • [max-depth](max-depth.md)
                  • [max-nested-callbacks](max-nested-callbacks.md)
                  • [max-params](max-params.md)
                  • [max-statements](max-statements.md) Source: http://eslint.org/docs/rules/

                  Line 271 exceeds the maximum line length of 100.
                  Open

                      end=new Date(lab_conf.Labs[i].end_year, lab_conf.Labs[i].end_month -1 ,lab_conf.Labs[i].end_date, lab_conf.Labs[i].end_hour,lab_conf.Labs[i].end_minute, 0,0);
                  Severity: Minor
                  Found in main_server/main_server.js by eslint

                  enforce a maximum line length (max-len)

                  Very long lines of code in any language can be difficult to read. In order to aid in readability and maintainability many coders have developed a convention to limit lines of code to X number of characters (traditionally 80 characters).

                  var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" }, "difficult": "to read" }; // very long

                  Rule Details

                  This rule enforces a maximum line length to increase code readability and maintainability. The length of a line is defined as the number of Unicode characters in the line.

                  Options

                  This rule has a number or object option:

                  • "code" (default 80) enforces a maximum line length
                  • "tabWidth" (default 4) specifies the character width for tab characters
                  • "comments" enforces a maximum line length for comments; defaults to value of code
                  • "ignorePattern" ignores lines matching a regular expression; can only match a single line and need to be double escaped when written in YAML or JSON
                  • "ignoreComments": true ignores all trailing comments and comments on their own line
                  • "ignoreTrailingComments": true ignores only trailing comments
                  • "ignoreUrls": true ignores lines that contain a URL
                  • "ignoreStrings": true ignores lines that contain a double-quoted or single-quoted string
                  • "ignoreTemplateLiterals": true ignores lines that contain a template literal
                  • "ignoreRegExpLiterals": true ignores lines that contain a RegExp literal

                  code

                  Examples of incorrect code for this rule with the default { "code": 80 } option:

                  /*eslint max-len: ["error", 80]*/
                  
                  var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" }, "difficult": "to read" };

                  Examples of correct code for this rule with the default { "code": 80 } option:

                  /*eslint max-len: ["error", 80]*/
                  
                  var foo = {
                    "bar": "This is a bar.",
                    "baz": { "qux": "This is a qux" },
                    "easier": "to read"
                  };

                  tabWidth

                  Examples of incorrect code for this rule with the default { "tabWidth": 4 } option:

                  /*eslint max-len: ["error", 80, 4]*/
                  
                  \t  \t  var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" } };

                  Examples of correct code for this rule with the default { "tabWidth": 4 } option:

                  /*eslint max-len: ["error", 80, 4]*/
                  
                  \t  \t  var foo = {
                  \t  \t  \t  \t  "bar": "This is a bar.",
                  \t  \t  \t  \t  "baz": { "qux": "This is a qux" }
                  \t  \t  };

                  comments

                  Examples of incorrect code for this rule with the { "comments": 65 } option:

                  /*eslint max-len: ["error", { "comments": 65 }]*/
                  
                  /**
                   * This is a comment that violates the maximum line length we have specified
                  **/

                  ignoreComments

                  Examples of correct code for this rule with the { "ignoreComments": true } option:

                  /*eslint max-len: ["error", { "ignoreComments": true }]*/
                  
                  /**
                   * This is a really really really really really really really really really long comment
                  **/

                  ignoreTrailingComments

                  Examples of correct code for this rule with the { "ignoreTrailingComments": true } option:

                  /*eslint max-len: ["error", { "ignoreTrailingComments": true }]*/
                  
                  var foo = 'bar'; // This is a really really really really really really really long comment

                  ignoreUrls

                  Examples of correct code for this rule with the { "ignoreUrls": true } option:

                  /*eslint max-len: ["error", { "ignoreUrls": true }]*/
                  
                  var url = 'https://www.example.com/really/really/really/really/really/really/really/long';

                  ignoreStrings

                  Examples of correct code for this rule with the { "ignoreStrings": true } option:

                  /*eslint max-len: ["error", { "ignoreStrings": true }]*/
                  
                  var longString = 'this is a really really really really really long string!';

                  ignoreTemplateLiterals

                  Examples of correct code for this rule with the { "ignoreTemplateLiterals": true } option:

                  /*eslint max-len: ["error", { "ignoreTemplateLiterals": true }]*/
                  
                  var longTemplateLiteral = `this is a really really really really really long template literal!`;

                  ignoreRegExpLiterals

                  Examples of correct code for this rule with the { "ignoreRegExpLiterals": true } option:

                  /*eslint max-len: ["error", { "ignoreRegExpLiterals": true }]*/
                  
                  var longRegExpLiteral = /this is a really really really really really long regular expression!/;

                  ignorePattern

                  Examples of correct code for this rule with the { "ignorePattern": true } option:

                  /*eslint max-len: ["error", { "ignorePattern": "^\\s*var\\s.+=\\s*require\\s*\\(/" }]*/
                  
                  var dep = require('really/really/really/really/really/really/really/really/long/module');

                  Related Rules

                  • [complexity](complexity.md)
                  • [max-depth](max-depth.md)
                  • [max-nested-callbacks](max-nested-callbacks.md)
                  • [max-params](max-params.md)
                  • [max-statements](max-statements.md) Source: http://eslint.org/docs/rules/

                  Line 272 exceeds the maximum line length of 100.
                  Open

                      hard=new Date(lab_conf.Labs[i].hard_year, lab_conf.Labs[i].hard_month -1 ,lab_conf.Labs[i].hard_date, lab_conf.Labs[i].hard_hour,lab_conf.Labs[i].hard_minute, 0,0);
                  Severity: Minor
                  Found in main_server/main_server.js by eslint

                  enforce a maximum line length (max-len)

                  Very long lines of code in any language can be difficult to read. In order to aid in readability and maintainability many coders have developed a convention to limit lines of code to X number of characters (traditionally 80 characters).

                  var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" }, "difficult": "to read" }; // very long

                  Rule Details

                  This rule enforces a maximum line length to increase code readability and maintainability. The length of a line is defined as the number of Unicode characters in the line.

                  Options

                  This rule has a number or object option:

                  • "code" (default 80) enforces a maximum line length
                  • "tabWidth" (default 4) specifies the character width for tab characters
                  • "comments" enforces a maximum line length for comments; defaults to value of code
                  • "ignorePattern" ignores lines matching a regular expression; can only match a single line and need to be double escaped when written in YAML or JSON
                  • "ignoreComments": true ignores all trailing comments and comments on their own line
                  • "ignoreTrailingComments": true ignores only trailing comments
                  • "ignoreUrls": true ignores lines that contain a URL
                  • "ignoreStrings": true ignores lines that contain a double-quoted or single-quoted string
                  • "ignoreTemplateLiterals": true ignores lines that contain a template literal
                  • "ignoreRegExpLiterals": true ignores lines that contain a RegExp literal

                  code

                  Examples of incorrect code for this rule with the default { "code": 80 } option:

                  /*eslint max-len: ["error", 80]*/
                  
                  var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" }, "difficult": "to read" };

                  Examples of correct code for this rule with the default { "code": 80 } option:

                  /*eslint max-len: ["error", 80]*/
                  
                  var foo = {
                    "bar": "This is a bar.",
                    "baz": { "qux": "This is a qux" },
                    "easier": "to read"
                  };

                  tabWidth

                  Examples of incorrect code for this rule with the default { "tabWidth": 4 } option:

                  /*eslint max-len: ["error", 80, 4]*/
                  
                  \t  \t  var foo = { "bar": "This is a bar.", "baz": { "qux": "This is a qux" } };

                  Examples of correct code for this rule with the default { "tabWidth": 4 } option:

                  /*eslint max-len: ["error", 80, 4]*/
                  
                  \t  \t  var foo = {
                  \t  \t  \t  \t  "bar": "This is a bar.",
                  \t  \t  \t  \t  "baz": { "qux": "This is a qux" }
                  \t  \t  };

                  comments

                  Examples of incorrect code for this rule with the { "comments": 65 } option:

                  /*eslint max-len: ["error", { "comments": 65 }]*/
                  
                  /**
                   * This is a comment that violates the maximum line length we have specified
                  **/

                  ignoreComments

                  Examples of correct code for this rule with the { "ignoreComments": true } option:

                  /*eslint max-len: ["error", { "ignoreComments": true }]*/
                  
                  /**
                   * This is a really really really really really really really really really long comment
                  **/

                  ignoreTrailingComments

                  Examples of correct code for this rule with the { "ignoreTrailingComments": true } option:

                  /*eslint max-len: ["error", { "ignoreTrailingComments": true }]*/
                  
                  var foo = 'bar'; // This is a really really really really really really really long comment

                  ignoreUrls

                  Examples of correct code for this rule with the { "ignoreUrls": true } option:

                  /*eslint max-len: ["error", { "ignoreUrls": true }]*/
                  
                  var url = 'https://www.example.com/really/really/really/really/really/really/really/long';

                  ignoreStrings

                  Examples of correct code for this rule with the { "ignoreStrings": true } option:

                  /*eslint max-len: ["error", { "ignoreStrings": true }]*/
                  
                  var longString = 'this is a really really really really really long string!';

                  ignoreTemplateLiterals

                  Examples of correct code for this rule with the { "ignoreTemplateLiterals": true } option:

                  /*eslint max-len: ["error", { "ignoreTemplateLiterals": true }]*/
                  
                  var longTemplateLiteral = `this is a really really really really really long template literal!`;

                  ignoreRegExpLiterals

                  Examples of correct code for this rule with the { "ignoreRegExpLiterals": true } option:

                  /*eslint max-len: ["error", { "ignoreRegExpLiterals": true }]*/
                  
                  var longRegExpLiteral = /this is a really really really really really long regular expression!/;

                  ignorePattern

                  Examples of correct code for this rule with the { "ignorePattern": true } option:

                  /*eslint max-len: ["error", { "ignorePattern": "^\\s*var\\s.+=\\s*require\\s*\\(/" }]*/
                  
                  var dep = require('really/really/really/really/really/really/really/really/long/module');

                  Related Rules

                  • [complexity](complexity.md)
                  • [max-depth](max-depth.md)
                  • [max-nested-callbacks](max-nested-callbacks.md)
                  • [max-params](max-params.md)
                  • [max-statements](max-statements.md) Source: http://eslint.org/docs/rules/
                  Severity
                  Category
                  Status
                  Source
                  Language