zalando/zappr

View on GitHub

Showing 60 of 190 total issues

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

export class GithubBranchProtectedError extends Error {
  /**
   * @param {Object} response - HTTP response
   */
  constructor(response) {
Severity: Minor
Found in server/service/GithubServiceError.js and 1 other location - About 55 mins to fix
server/service/GithubServiceError.js on lines 20..29

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

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 (badCommits.length === 0) {
        // all commits are fine
        this.github.setCommitStatus(owner.login, name, sha, createStatePayload('All commit messages match at least one configured pattern.'), token)
        info(`${full_name}#${number}: Set status to success (all commit messages match at least one pattern).`)
      } else {
Severity: Minor
Found in server/checks/CommitMessage.js and 1 other location - About 50 mins to fix
server/checks/CommitMessage.js on lines 83..87

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

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

          try {
            // block when not in prod
            // => so we can test the API calls
            await checkRunner.release(repo, type, user.accessToken)
            await githubService.removeRequiredStatusCheck(repo.json.owner.login, repo.json.name, repo.json.default_branch, checkContext, user.accessToken)
Severity: Minor
Found in server/routes/api.js and 1 other location - About 50 mins to fix
server/routes/api.js on lines 196..203

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

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

          try {
            checkRunner.release(repo, type, user.accessToken)
              .catch(e => error(`${repo.json.full_name} [${type}]: Could not release pull requests. ${e.message}`))
            await githubService.removeRequiredStatusCheck(repo.json.owner.login, repo.json.name, repo.json.default_branch, checkContext, user.accessToken)
          } catch (e) {
Severity: Minor
Found in server/routes/api.js and 1 other location - About 50 mins to fix
server/routes/api.js on lines 183..191

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

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

    } else {
      // no patterns were configured
      this.github.setCommitStatus(owner.login, name, sha, createStatePayload('No patterns configured to match commit messages against.'), token)
      info(`${full_name}#${number}: Set status to success (no patterns configured).`)
    }
Severity: Minor
Found in server/checks/CommitMessage.js and 1 other location - About 50 mins to fix
server/checks/CommitMessage.js on lines 72..76

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

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

        if (matchesTotal) {
          info(`${repository.full_name}: Counting ${comment.user}'s comment`)
          stats.total.push(comment.user)
        }
Severity: Minor
Found in server/checks/Approval.js and 1 other location - About 50 mins to fix
server/checks/Approval.js on lines 190..193

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

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

            if (!matchesTotal) {
              info(`${repository.full_name}: Counting ${comment.user}'s comment`)
              stats.total.push(comment.user)
            }
Severity: Minor
Found in server/checks/Approval.js and 1 other location - About 50 mins to fix
server/checks/Approval.js on lines 172..175

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

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

            await githubService.removeRequiredStatusCheck(repo.json.owner.login, repo.json.name, repo.json.default_branch, checkContext, user.accessToken)
Severity: Minor
Found in server/routes/api.js and 1 other location - About 40 mins to fix
server/routes/api.js on lines 187..187

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

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

            await githubService.removeRequiredStatusCheck(repo.json.owner.login, repo.json.name, repo.json.default_branch, checkContext, user.accessToken)
Severity: Minor
Found in server/routes/api.js and 1 other location - About 40 mins to fix
server/routes/api.js on lines 199..199

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

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

      <ellipse ry="25"
               rx="25"
               id="svg_4"
               cy="92.5"
               cx="190.506577"
Severity: Major
Found in client/components/AutobranchAnimation.jsx and 10 other locations - About 35 mins to fix
client/components/ApprovalAnimation.jsx on lines 40..47
client/components/ApprovalAnimation.jsx on lines 48..55
client/components/ApprovalAnimation.jsx on lines 56..63
client/components/AutobranchAnimation.jsx on lines 14..21
client/components/AutobranchAnimation.jsx on lines 22..29
client/components/AutobranchAnimation.jsx on lines 30..37
client/components/CommitMessageAnimation.jsx on lines 14..21
client/components/CommitMessageAnimation.jsx on lines 22..29
client/components/CommitMessageAnimation.jsx on lines 30..37
client/components/CommitMessageAnimation.jsx on lines 38..45

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

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

      <ellipse ry="25"
               rx="25"
               id="svg_2"
               cy="92.5"
               cx="89.5"
Severity: Major
Found in client/components/CommitMessageAnimation.jsx and 10 other locations - About 35 mins to fix
client/components/ApprovalAnimation.jsx on lines 40..47
client/components/ApprovalAnimation.jsx on lines 48..55
client/components/ApprovalAnimation.jsx on lines 56..63
client/components/AutobranchAnimation.jsx on lines 14..21
client/components/AutobranchAnimation.jsx on lines 22..29
client/components/AutobranchAnimation.jsx on lines 30..37
client/components/AutobranchAnimation.jsx on lines 38..45
client/components/CommitMessageAnimation.jsx on lines 14..21
client/components/CommitMessageAnimation.jsx on lines 22..29
client/components/CommitMessageAnimation.jsx on lines 38..45

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

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

      <ellipse ry="25"
               rx="25"
               id="svg_4"
               cy="92.5"
               cx="190.506577"
Severity: Major
Found in client/components/ApprovalAnimation.jsx and 10 other locations - About 35 mins to fix
client/components/ApprovalAnimation.jsx on lines 40..47
client/components/ApprovalAnimation.jsx on lines 48..55
client/components/AutobranchAnimation.jsx on lines 14..21
client/components/AutobranchAnimation.jsx on lines 22..29
client/components/AutobranchAnimation.jsx on lines 30..37
client/components/AutobranchAnimation.jsx on lines 38..45
client/components/CommitMessageAnimation.jsx on lines 14..21
client/components/CommitMessageAnimation.jsx on lines 22..29
client/components/CommitMessageAnimation.jsx on lines 30..37
client/components/CommitMessageAnimation.jsx on lines 38..45

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

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

      <ellipse ry="25"
               rx="25"
               id="svg_1"
               cy="92.5"
               cx="89.5"
Severity: Major
Found in client/components/ApprovalAnimation.jsx and 10 other locations - About 35 mins to fix
client/components/ApprovalAnimation.jsx on lines 48..55
client/components/ApprovalAnimation.jsx on lines 56..63
client/components/AutobranchAnimation.jsx on lines 14..21
client/components/AutobranchAnimation.jsx on lines 22..29
client/components/AutobranchAnimation.jsx on lines 30..37
client/components/AutobranchAnimation.jsx on lines 38..45
client/components/CommitMessageAnimation.jsx on lines 14..21
client/components/CommitMessageAnimation.jsx on lines 22..29
client/components/CommitMessageAnimation.jsx on lines 30..37
client/components/CommitMessageAnimation.jsx on lines 38..45

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

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

      <line id="svg_6"
            y2="94"
            x2="190.5"
            y1="94"
            x1="76.5"
Severity: Major
Found in client/components/CommitMessageAnimation.jsx and 10 other locations - About 35 mins to fix
client/components/ApprovalAnimation.jsx on lines 40..47
client/components/ApprovalAnimation.jsx on lines 48..55
client/components/ApprovalAnimation.jsx on lines 56..63
client/components/AutobranchAnimation.jsx on lines 14..21
client/components/AutobranchAnimation.jsx on lines 22..29
client/components/AutobranchAnimation.jsx on lines 30..37
client/components/AutobranchAnimation.jsx on lines 38..45
client/components/CommitMessageAnimation.jsx on lines 22..29
client/components/CommitMessageAnimation.jsx on lines 30..37
client/components/CommitMessageAnimation.jsx on lines 38..45

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

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

      <line id="svg_6"
            y2="94"
            x2="190.5"
            y1="94"
            x1="76.5"
Severity: Major
Found in client/components/AutobranchAnimation.jsx and 10 other locations - About 35 mins to fix
client/components/ApprovalAnimation.jsx on lines 40..47
client/components/ApprovalAnimation.jsx on lines 48..55
client/components/ApprovalAnimation.jsx on lines 56..63
client/components/AutobranchAnimation.jsx on lines 22..29
client/components/AutobranchAnimation.jsx on lines 30..37
client/components/AutobranchAnimation.jsx on lines 38..45
client/components/CommitMessageAnimation.jsx on lines 14..21
client/components/CommitMessageAnimation.jsx on lines 22..29
client/components/CommitMessageAnimation.jsx on lines 30..37
client/components/CommitMessageAnimation.jsx on lines 38..45

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

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

      <ellipse ry="25"
               rx="25"
               id="svg_2"
               cy="92.5"
               cx="89.5"
Severity: Major
Found in client/components/ApprovalAnimation.jsx and 10 other locations - About 35 mins to fix
client/components/ApprovalAnimation.jsx on lines 40..47
client/components/ApprovalAnimation.jsx on lines 56..63
client/components/AutobranchAnimation.jsx on lines 14..21
client/components/AutobranchAnimation.jsx on lines 22..29
client/components/AutobranchAnimation.jsx on lines 30..37
client/components/AutobranchAnimation.jsx on lines 38..45
client/components/CommitMessageAnimation.jsx on lines 14..21
client/components/CommitMessageAnimation.jsx on lines 22..29
client/components/CommitMessageAnimation.jsx on lines 30..37
client/components/CommitMessageAnimation.jsx on lines 38..45

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

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

      <ellipse ry="25"
               rx="25"
               id="svg_1"
               cy="92.5"
               cx="89.5"
Severity: Major
Found in client/components/AutobranchAnimation.jsx and 10 other locations - About 35 mins to fix
client/components/ApprovalAnimation.jsx on lines 40..47
client/components/ApprovalAnimation.jsx on lines 48..55
client/components/ApprovalAnimation.jsx on lines 56..63
client/components/AutobranchAnimation.jsx on lines 14..21
client/components/AutobranchAnimation.jsx on lines 30..37
client/components/AutobranchAnimation.jsx on lines 38..45
client/components/CommitMessageAnimation.jsx on lines 14..21
client/components/CommitMessageAnimation.jsx on lines 22..29
client/components/CommitMessageAnimation.jsx on lines 30..37
client/components/CommitMessageAnimation.jsx on lines 38..45

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

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

      <ellipse ry="25"
               rx="25"
               id="svg_4"
               cy="92.5"
               cx="190.506577"
Severity: Major
Found in client/components/CommitMessageAnimation.jsx and 10 other locations - About 35 mins to fix
client/components/ApprovalAnimation.jsx on lines 40..47
client/components/ApprovalAnimation.jsx on lines 48..55
client/components/ApprovalAnimation.jsx on lines 56..63
client/components/AutobranchAnimation.jsx on lines 14..21
client/components/AutobranchAnimation.jsx on lines 22..29
client/components/AutobranchAnimation.jsx on lines 30..37
client/components/AutobranchAnimation.jsx on lines 38..45
client/components/CommitMessageAnimation.jsx on lines 14..21
client/components/CommitMessageAnimation.jsx on lines 22..29
client/components/CommitMessageAnimation.jsx on lines 30..37

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

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

      <ellipse ry="25"
               rx="25"
               id="svg_1"
               cy="92.5"
               cx="89.5"
Severity: Major
Found in client/components/CommitMessageAnimation.jsx and 10 other locations - About 35 mins to fix
client/components/ApprovalAnimation.jsx on lines 40..47
client/components/ApprovalAnimation.jsx on lines 48..55
client/components/ApprovalAnimation.jsx on lines 56..63
client/components/AutobranchAnimation.jsx on lines 14..21
client/components/AutobranchAnimation.jsx on lines 22..29
client/components/AutobranchAnimation.jsx on lines 30..37
client/components/AutobranchAnimation.jsx on lines 38..45
client/components/CommitMessageAnimation.jsx on lines 14..21
client/components/CommitMessageAnimation.jsx on lines 30..37
client/components/CommitMessageAnimation.jsx on lines 38..45

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

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

      <ellipse ry="25"
               rx="25"
               id="svg_2"
               cy="92.5"
               cx="89.5"
Severity: Major
Found in client/components/AutobranchAnimation.jsx and 10 other locations - About 35 mins to fix
client/components/ApprovalAnimation.jsx on lines 40..47
client/components/ApprovalAnimation.jsx on lines 48..55
client/components/ApprovalAnimation.jsx on lines 56..63
client/components/AutobranchAnimation.jsx on lines 14..21
client/components/AutobranchAnimation.jsx on lines 22..29
client/components/AutobranchAnimation.jsx on lines 38..45
client/components/CommitMessageAnimation.jsx on lines 14..21
client/components/CommitMessageAnimation.jsx on lines 22..29
client/components/CommitMessageAnimation.jsx on lines 30..37
client/components/CommitMessageAnimation.jsx on lines 38..45

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

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