bastienrobert/la-ferme

View on GitHub
packages/components/src/icons/web/Brigade.tsx

Summary

Maintainability
A
0 mins
Test Coverage

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

const Camera: FC<IconProps> = ({ color = 'yellow' }) => {
  return (
    <SVG viewBox="0 0 27 31">
      <path
        d="M17.1654 27.8472C21.6628 27.397 22.221 26.9468 23.4954 26.0044C28.3719 22.4339 26.771 16.9577 26.6657 16.6122C26.6657 16.6017 26.6551 16.5912 26.6551 16.5808C26.5182 16.2352 24.0115 9.96331 23.6639 8.40317C23.4112 7.26187 24.4433 6.04727 25.0647 5.45044C25.2859 5.23056 25.2754 4.86408 25.0437 4.66514L21.3889 1.5344C21.2099 1.38781 20.9571 1.36687 20.757 1.48205C20.2409 1.7857 19.0929 2.23594 17.1654 2.08935C16.0279 2.00558 15.2064 1.52393 14.6903 1.09463C14.3217 0.790984 13.7951 0.801455 13.437 1.11558C12.468 1.95323 10.846 2.08935 10.846 2.08935C8.91856 2.28829 7.75999 1.7857 7.25444 1.48205C7.05432 1.36687 6.80154 1.38781 6.63302 1.5344L2.95721 4.6442C2.71497 4.85361 2.70443 5.20961 2.93615 5.4295C3.55756 6.0368 4.60027 7.24093 4.33696 8.38223C3.98939 9.94236 1.49321 16.2143 1.34575 16.5598C1.34575 16.5703 1.33522 16.5808 1.33522 16.5913C1.2299 16.9368 -0.381564 22.4234 4.50548 25.9835C5.79043 26.9363 7.10698 27.1248 10.8671 28.0252C11.678 28.2242 12.6365 28.8629 13.5107 29.8681C13.8056 30.2031 14.3322 30.1822 14.5955 29.8157C15.08 29.1561 15.9015 27.9729 17.1654 27.8472Z"
Severity: Major
Found in packages/components/src/icons/web/Brigade.tsx and 1 other location - About 3 hrs to fix
packages/components/src/icons/native/Brigade.tsx on lines 8..21

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

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

There are no issues that match your filters.

Category
Status