jsperf/jsperf.com

View on GitHub

Showing 232 of 232 total issues

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

  lab.experiment('url', function () {
    lab.test('is a string', function (done) {
      Code.expect(regex.url).to.be.a.string();

      done();
Severity: Major
Found in test/unit/server/lib/regex.js and 2 other locations - About 1 day to fix
test/unit/server/lib/regex.js on lines 33..55
test/unit/server/lib/regex.js on lines 57..79

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 221.

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 3 locations. Consider refactoring.
Open

  lab.experiment('slug', function () {
    lab.test('is a string', function (done) {
      Code.expect(regex.slug).to.be.a.string();

      done();
Severity: Major
Found in test/unit/server/lib/regex.js and 2 other locations - About 1 day to fix
test/unit/server/lib/regex.js on lines 9..31
test/unit/server/lib/regex.js on lines 57..79

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 221.

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 3 locations. Consider refactoring.
Open

  lab.experiment('script', function () {
    lab.test('is a string', function (done) {
      Code.expect(regex.script).to.be.a.string();

      done();
Severity: Major
Found in test/unit/server/lib/regex.js and 2 other locations - About 1 day to fix
test/unit/server/lib/regex.js on lines 9..31
test/unit/server/lib/regex.js on lines 33..55

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 221.

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

File index.js has 534 lines of code (exceeds 250 allowed). Consider refactoring.
Open

const path = require('path');
const Lab = require('lab');
const sinon = require('sinon');
const Code = require('code');
const Hoek = require('hoek');
Severity: Major
Found in test/unit/server/web/edit/index.js - About 1 day to fix

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

        lab.test('returns error if page fails to create', function (done) {
          var testErrMsg = 'testing';
          var testErr = new Error(testErrMsg);
    
          bsRepoStub.addTest.returns(Promise.resolve());
    Severity: Major
    Found in test/unit/server/services/pages.js and 1 other location - About 1 day to fix
    test/unit/server/services/pages.js on lines 305..320

    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 200.

    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

        lab.test('returns error if page fails to create', function (done) {
          var testErrMsg = 'testing';
          var testErr = new Error(testErrMsg);
    
          bsRepoStub.addTest.returns(Promise.resolve());
    Severity: Major
    Found in test/unit/server/services/pages.js and 1 other location - About 1 day to fix
    test/unit/server/services/pages.js on lines 238..254

    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 200.

    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

        lab.test('returns error if tests fail to create', function (done) {
          var testErrMsg = 'testing';
          var testErr = new Error(testErrMsg);
    
          bsRepoStub.addTest.returns(Promise.resolve());
    Severity: Major
    Found in test/unit/server/services/pages.js and 1 other location - About 7 hrs to fix
    test/unit/server/services/pages.js on lines 339..354

    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 188.

    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

        lab.test('returns error if tests fail to update', function (done) {
          var testErrMsg = 'testing';
          var testErr = new Error(testErrMsg);
    
          bsRepoStub.addTest.returns(Promise.resolve());
    Severity: Major
    Found in test/unit/server/services/pages.js and 1 other location - About 7 hrs to fix
    test/unit/server/services/pages.js on lines 256..271

    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 188.

    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

        lab.test('doesn\'t allow dashes at beginning or end of github name, nor allows for more than one consecutive dash', function (done) {
          var re = new RegExp(regex.github);
    
          Code.expect(re.test('-agithubname5000')).to.be.false();
          Code.expect(re.test('agithubname5000-')).to.be.false();
    Severity: Major
    Found in test/unit/server/lib/regex.js and 1 other location - About 7 hrs to fix
    test/unit/server/lib/regex.js on lines 88..97

    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 183.

    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

          tests.bulkUpdate(pageID, tClone, true)
            .then(results => {
              const call1 = genericQueryStub.getCall(0).args;
              const call2 = genericQueryStub.getCall(1).args;
    
    
    Severity: Major
    Found in test/unit/server/repositories/tests.js and 1 other location - About 7 hrs to fix
    test/unit/server/repositories/tests.js on lines 217..228

    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 183.

    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

          tests.bulkUpdate(pageID, tClone, true)
            .then(results => {
              let call1 = genericQueryStub.getCall(0).args;
              let call2 = genericQueryStub.getCall(1).args;
    
    
    Severity: Major
    Found in test/unit/server/repositories/tests.js and 1 other location - About 7 hrs to fix
    test/unit/server/repositories/tests.js on lines 176..186

    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 183.

    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

        lab.test('matches valid github name', function (done) {
          var re = new RegExp(regex.github);
    
          Code.expect(re.test('agithubname5000')).to.be.true();
          Code.expect(re.test('agit-hubname5000')).to.be.true();
    Severity: Major
    Found in test/unit/server/lib/regex.js and 1 other location - About 7 hrs to fix
    test/unit/server/lib/regex.js on lines 99..108

    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 183.

    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 register has 179 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    exports.register = function (server, options, next) {
      const pagesService = server.plugins['services/pages'];
      const commentsService = server.plugins['services/comments'];
    
      const getTestPage = (request) => {
    Severity: Major
    Found in server/web/test/index.js - About 7 hrs to fix

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

            lab.test('test title required if code present', function (done) {
              // code present in defaults above
              Code.expect(request.payload.test[0].code).to.not.be.empty();
              request.payload.test[0].title = '';
      
      
      Severity: Major
      Found in test/unit/server/web/home/index.js and 3 other locations - About 7 hrs to fix
      test/unit/server/web/edit/index.js on lines 421..433
      test/unit/server/web/edit/index.js on lines 435..447
      test/unit/server/web/home/index.js on lines 186..198

      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 175.

      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 4 locations. Consider refactoring.
      Open

          lab.test('test title required if code present', function (done) {
            // code present in defaults above
            Code.expect(request.payload.test[0].code).to.not.be.empty();
            request.payload.test[0].title = '';
      
      
      Severity: Major
      Found in test/unit/server/web/edit/index.js and 3 other locations - About 7 hrs to fix
      test/unit/server/web/edit/index.js on lines 435..447
      test/unit/server/web/home/index.js on lines 172..184
      test/unit/server/web/home/index.js on lines 186..198

      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 175.

      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 4 locations. Consider refactoring.
      Open

          lab.test('test code required if title present', function (done) {
            // title present in defaults above
            Code.expect(request.payload.test[0].title).to.not.be.empty();
            request.payload.test[0].code = '';
      
      
      Severity: Major
      Found in test/unit/server/web/edit/index.js and 3 other locations - About 7 hrs to fix
      test/unit/server/web/edit/index.js on lines 421..433
      test/unit/server/web/home/index.js on lines 172..184
      test/unit/server/web/home/index.js on lines 186..198

      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 175.

      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 4 locations. Consider refactoring.
      Open

            lab.test('test code required if title present', function (done) {
              // title present in defaults above
              Code.expect(request.payload.test[0].title).to.not.be.empty();
              request.payload.test[0].code = '';
      
      
      Severity: Major
      Found in test/unit/server/web/home/index.js and 3 other locations - About 7 hrs to fix
      test/unit/server/web/edit/index.js on lines 421..433
      test/unit/server/web/edit/index.js on lines 435..447
      test/unit/server/web/home/index.js on lines 172..184

      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 175.

      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

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

                pageWithTests.test.forEach((t, idx) => {
                  const missingTitle = t.title === defaults.deleteMe;
                  const missingCode = t.code === defaults.deleteMe;
      
                  if (missingTitle && !missingCode) {
      Severity: Major
      Found in server/web/home/index.js and 1 other location - About 6 hrs to fix
      server/web/edit/index.js on lines 101..114

      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 162.

      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

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

                pageWithTests.test.forEach((t, idx) => {
                  const missingTitle = t.title === defaults.deleteMe;
                  const missingCode = t.code === defaults.deleteMe;
      
                  if (missingTitle && !missingCode) {
      Severity: Major
      Found in server/web/edit/index.js and 1 other location - About 6 hrs to fix
      server/web/home/index.js on lines 79..92

      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 162.

      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 register has 158 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      exports.register = function (server, options, next) {
        const pagesRepo = server.plugins['repositories/pages'];
        const testsRepo = server.plugins['repositories/tests'];
        const browserscopeRepo = server.plugins['repositories/browserscope'];
        const commentsRepo = server.plugins['repositories/comments'];
      Severity: Major
      Found in server/services/pages.js - About 6 hrs to fix
        Severity
        Category
        Status
        Source
        Language