ezpaarse-project/ezpaarse

View on GitHub

Showing 274 of 274 total issues

Avoid too many return statements within this function.
Open

    return this;
Severity: Major
Found in lib/ecmake.js - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

          if (!stat.isDirectory()) { return resolve(); }
    Severity: Major
    Found in routes/admin.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

        return format;
      Severity: Major
      Found in lib/proxyformats/squid.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

            if (y.hasOwnProperty(p) && !x.hasOwnProperty(p)) { return false; }
        Severity: Major
        Found in test/helpers.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

              return next(null);
          Severity: Major
          Found in lib/init/init-writer.js - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

              return format;
            Severity: Major
            Found in lib/proxyformats/apache.js - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                if (!req.body.jobID) { return sendMail(); }
              Severity: Major
              Found in routes/feedback.js - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                      return {
                        valid: false,
                        reason: `Ignored HTTP status code: ${ec.status}`
                      };
                Severity: Major
                Found in lib/ecfilter.js - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                            return reject(err);
                  Severity: Major
                  Found in routes/admin.js - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                        if (!exports.equals(x[p], y[p], datify)) { return false; }
                    Severity: Major
                    Found in test/helpers.js - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                return next(Boom.badRequest('wrongPassword'));
                      Severity: Major
                      Found in routes/admin.js - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                            if (typeof(x[p]) !== 'object') { return false; }
                        Severity: Major
                        Found in test/helpers.js - About 30 mins to fix

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

                            if (argv.output) {
                              resultStream = fs.createWriteStream(argv.output);
                            } else {
                              resultStream = process.stdout;
                            }
                          Severity: Major
                          Found in lib/bin/logextractor.js and 5 other locations - About 30 mins to fix
                          lib/bin/loganonymizer.js on lines 45..49
                          lib/bin/loganonymizer.js on lines 50..54
                          lib/bin/logextractor.js on lines 48..52
                          lib/bin/loginjector.js on lines 46..50
                          lib/bin/loginjector.js on lines 51..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 45.

                          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

                              if (config[argv.key] instanceof Array) {
                                process.stdout.write(config[argv.key].join('\n'));
                                process.exit(0);
                              } else {
                                process.stdout.write(config[argv.key].toString());
                          Severity: Minor
                          Found in lib/bin/readconfig.js and 1 other location - About 30 mins to fix
                          lib/bin/readconfig.js on lines 38..44

                          Duplicated Code

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

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

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

                          Tuning

                          This issue has a mass of 45.

                          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

                                if (pkg[argv.key] instanceof Object) {
                                  process.stderr.write('key not handled: ' + argv.key + '\n');
                                  process.exit(1);
                                } else {
                                  process.stdout.write(pkg[argv.key].toString());
                          Severity: Minor
                          Found in lib/bin/readconfig.js and 1 other location - About 30 mins to fix
                          lib/bin/readconfig.js on lines 28..34

                          Duplicated Code

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

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

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

                          Tuning

                          This issue has a mass of 45.

                          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

                              child.stdout.on('data', data => {
                                io().in('admin').emit('update-logs', data);
                              });
                          Severity: Minor
                          Found in routes/admin.js and 1 other location - About 30 mins to fix
                          routes/admin.js on lines 117..119

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

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

                            if (argv.output) {
                              resultStream = fs.createWriteStream(argv.output);
                            } else {
                              resultStream = process.stdout;
                            }
                          Severity: Major
                          Found in lib/bin/loganonymizer.js and 5 other locations - About 30 mins to fix
                          lib/bin/loganonymizer.js on lines 50..54
                          lib/bin/logextractor.js on lines 43..47
                          lib/bin/logextractor.js on lines 48..52
                          lib/bin/loginjector.js on lines 46..50
                          lib/bin/loginjector.js on lines 51..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 45.

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

                            if (argv.input) {
                              logStream = fs.createReadStream(argv.input);
                            } else {
                              logStream = process.stdin;
                            }
                          Severity: Major
                          Found in lib/bin/logextractor.js and 5 other locations - About 30 mins to fix
                          lib/bin/loganonymizer.js on lines 45..49
                          lib/bin/loganonymizer.js on lines 50..54
                          lib/bin/logextractor.js on lines 43..47
                          lib/bin/loginjector.js on lines 46..50
                          lib/bin/loginjector.js on lines 51..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 45.

                          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

                                  if (result.control === result.calculatedKey) { result.isValid = true; }
                                  else { result.isValid = false; }
                          Severity: Minor
                          Found in lib/rid-syntax-checker.js and 2 other locations - About 30 mins to fix
                          lib/rid-syntax-checker.js on lines 66..70
                          lib/rid-syntax-checker.js on lines 115..116

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

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

                            if (argv.output) {
                              resultStream = fs.createWriteStream(argv.output);
                            } else {
                              resultStream = process.stdout;
                            }
                          Severity: Major
                          Found in lib/bin/loginjector.js and 5 other locations - About 30 mins to fix
                          lib/bin/loganonymizer.js on lines 45..49
                          lib/bin/loganonymizer.js on lines 50..54
                          lib/bin/logextractor.js on lines 43..47
                          lib/bin/logextractor.js on lines 48..52
                          lib/bin/loginjector.js on lines 51..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 45.

                          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

                          Severity
                          Category
                          Status
                          Source
                          Language