Katello/katello

View on GitHub

Showing 1,685 of 2,623 total issues

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

 locales['katello'] = locales['katello'] || {}; locales['katello']['ja'] = {
  "domain": "katello",
  "locale_data": {
    "katello": {
      "": {
Severity: Major
Found in app/assets/javascripts/katello/locale/ja/katello.js and 1 other location - About 4 mos to fix
app/assets/javascripts/katello/locale/zh_CN/katello.js on lines 1..9022

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

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

 locales['katello'] = locales['katello'] || {}; locales['katello']['zh_CN'] = {
  "domain": "katello",
  "locale_data": {
    "katello": {
      "": {
Severity: Major
Found in app/assets/javascripts/katello/locale/zh_CN/katello.js and 1 other location - About 4 mos to fix
app/assets/javascripts/katello/locale/ja/katello.js on lines 1..9022

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

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

 locales['katello'] = locales['katello'] || {}; locales['katello']['pt_BR'] = {
  "domain": "katello",
  "locale_data": {
    "katello": {
      "": {
Severity: Major
Found in app/assets/javascripts/katello/locale/pt_BR/katello.js and 1 other location - About 4 mos to fix
app/assets/javascripts/katello/locale/es/katello.js on lines 1..9023

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

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

 locales['katello'] = locales['katello'] || {}; locales['katello']['es'] = {
  "domain": "katello",
  "locale_data": {
    "katello": {
      "": {
Severity: Major
Found in app/assets/javascripts/katello/locale/es/katello.js and 1 other location - About 4 mos to fix
app/assets/javascripts/katello/locale/pt_BR/katello.js on lines 1..9023

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

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

 locales['katello'] = locales['katello'] || {}; locales['katello']['ru'] = {
  "domain": "katello",
  "locale_data": {
    "katello": {
      "": {
Severity: Major
Found in app/assets/javascripts/katello/locale/ru/katello.js and 1 other location - About 4 mos to fix
app/assets/javascripts/katello/locale/ka/katello.js on lines 1..9018

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

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

 locales['katello'] = locales['katello'] || {}; locales['katello']['ka'] = {
  "domain": "katello",
  "locale_data": {
    "katello": {
      "": {
Severity: Major
Found in app/assets/javascripts/katello/locale/ka/katello.js and 1 other location - About 4 mos to fix
app/assets/javascripts/katello/locale/ru/katello.js on lines 1..9018

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

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

 locales['katello'] = locales['katello'] || {}; locales['katello']['ko'] = {
  "domain": "katello",
  "locale_data": {
    "katello": {
      "": {
Severity: Major
Found in app/assets/javascripts/katello/locale/ko/katello.js and 1 other location - About 4 mos to fix
app/assets/javascripts/katello/locale/zh_TW/katello.js on lines 1..9017

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

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

 locales['katello'] = locales['katello'] || {}; locales['katello']['zh_TW'] = {
  "domain": "katello",
  "locale_data": {
    "katello": {
      "": {
Severity: Major
Found in app/assets/javascripts/katello/locale/zh_TW/katello.js and 1 other location - About 4 mos to fix
app/assets/javascripts/katello/locale/ko/katello.js on lines 1..9017

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

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

 locales['katello'] = locales['katello'] || {}; locales['katello']['gl'] = {
  "domain": "katello",
  "locale_data": {
    "katello": {
      "": {
Severity: Major
Found in app/assets/javascripts/katello/locale/gl/katello.js and 3 other locations - About 4 mos to fix
app/assets/javascripts/katello/locale/ca/katello.js on lines 1..9003
app/assets/javascripts/katello/locale/cs/katello.js on lines 1..9003
app/assets/javascripts/katello/locale/sv_SE/katello.js on lines 1..9003

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

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

 locales['katello'] = locales['katello'] || {}; locales['katello']['cs'] = {
  "domain": "katello",
  "locale_data": {
    "katello": {
      "": {
Severity: Major
Found in app/assets/javascripts/katello/locale/cs/katello.js and 3 other locations - About 4 mos to fix
app/assets/javascripts/katello/locale/ca/katello.js on lines 1..9003
app/assets/javascripts/katello/locale/gl/katello.js on lines 1..9003
app/assets/javascripts/katello/locale/sv_SE/katello.js on lines 1..9003

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

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

 locales['katello'] = locales['katello'] || {}; locales['katello']['ca'] = {
  "domain": "katello",
  "locale_data": {
    "katello": {
      "": {
Severity: Major
Found in app/assets/javascripts/katello/locale/ca/katello.js and 3 other locations - About 4 mos to fix
app/assets/javascripts/katello/locale/cs/katello.js on lines 1..9003
app/assets/javascripts/katello/locale/gl/katello.js on lines 1..9003
app/assets/javascripts/katello/locale/sv_SE/katello.js on lines 1..9003

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

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

 locales['katello'] = locales['katello'] || {}; locales['katello']['sv_SE'] = {
  "domain": "katello",
  "locale_data": {
    "katello": {
      "": {
Severity: Major
Found in app/assets/javascripts/katello/locale/sv_SE/katello.js and 3 other locations - About 4 mos to fix
app/assets/javascripts/katello/locale/ca/katello.js on lines 1..9003
app/assets/javascripts/katello/locale/cs/katello.js on lines 1..9003
app/assets/javascripts/katello/locale/gl/katello.js on lines 1..9003

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

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

 locales['katello'] = locales['katello'] || {}; locales['katello']['he_IL'] = {
  "domain": "katello",
  "locale_data": {
    "katello": {
      "": {
Severity: Major
Found in app/assets/javascripts/katello/locale/he_IL/katello.js and 18 other locations - About 4 mos to fix
app/assets/javascripts/katello/locale/bn/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/bn_IN/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/de_DE/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/en/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/gu/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/hi/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/kn/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/mr/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/nl_NL/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/or/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/pa/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/pl/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/pt/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/sl/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/ta/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/ta_IN/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/te/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/tr/katello.js on lines 1..9000

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

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

 locales['katello'] = locales['katello'] || {}; locales['katello']['pl'] = {
  "domain": "katello",
  "locale_data": {
    "katello": {
      "": {
Severity: Major
Found in app/assets/javascripts/katello/locale/pl/katello.js and 18 other locations - About 4 mos to fix
app/assets/javascripts/katello/locale/bn/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/bn_IN/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/de_DE/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/en/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/gu/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/he_IL/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/hi/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/kn/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/mr/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/nl_NL/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/or/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/pa/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/pt/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/sl/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/ta/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/ta_IN/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/te/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/tr/katello.js on lines 1..9000

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

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

 locales['katello'] = locales['katello'] || {}; locales['katello']['en'] = {
  "domain": "katello",
  "locale_data": {
    "katello": {
      "": {
Severity: Major
Found in app/assets/javascripts/katello/locale/en/katello.js and 18 other locations - About 4 mos to fix
app/assets/javascripts/katello/locale/bn/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/bn_IN/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/de_DE/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/gu/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/he_IL/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/hi/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/kn/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/mr/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/nl_NL/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/or/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/pa/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/pl/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/pt/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/sl/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/ta/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/ta_IN/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/te/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/tr/katello.js on lines 1..9000

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

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

 locales['katello'] = locales['katello'] || {}; locales['katello']['mr'] = {
  "domain": "katello",
  "locale_data": {
    "katello": {
      "": {
Severity: Major
Found in app/assets/javascripts/katello/locale/mr/katello.js and 18 other locations - About 4 mos to fix
app/assets/javascripts/katello/locale/bn/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/bn_IN/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/de_DE/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/en/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/gu/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/he_IL/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/hi/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/kn/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/nl_NL/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/or/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/pa/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/pl/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/pt/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/sl/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/ta/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/ta_IN/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/te/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/tr/katello.js on lines 1..9000

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

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

 locales['katello'] = locales['katello'] || {}; locales['katello']['pt'] = {
  "domain": "katello",
  "locale_data": {
    "katello": {
      "": {
Severity: Major
Found in app/assets/javascripts/katello/locale/pt/katello.js and 18 other locations - About 4 mos to fix
app/assets/javascripts/katello/locale/bn/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/bn_IN/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/de_DE/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/en/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/gu/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/he_IL/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/hi/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/kn/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/mr/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/nl_NL/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/or/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/pa/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/pl/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/sl/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/ta/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/ta_IN/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/te/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/tr/katello.js on lines 1..9000

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

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

 locales['katello'] = locales['katello'] || {}; locales['katello']['pa'] = {
  "domain": "katello",
  "locale_data": {
    "katello": {
      "": {
Severity: Major
Found in app/assets/javascripts/katello/locale/pa/katello.js and 18 other locations - About 4 mos to fix
app/assets/javascripts/katello/locale/bn/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/bn_IN/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/de_DE/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/en/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/gu/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/he_IL/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/hi/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/kn/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/mr/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/nl_NL/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/or/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/pl/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/pt/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/sl/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/ta/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/ta_IN/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/te/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/tr/katello.js on lines 1..9000

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

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

 locales['katello'] = locales['katello'] || {}; locales['katello']['sl'] = {
  "domain": "katello",
  "locale_data": {
    "katello": {
      "": {
Severity: Major
Found in app/assets/javascripts/katello/locale/sl/katello.js and 18 other locations - About 4 mos to fix
app/assets/javascripts/katello/locale/bn/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/bn_IN/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/de_DE/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/en/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/gu/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/he_IL/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/hi/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/kn/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/mr/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/nl_NL/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/or/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/pa/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/pl/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/pt/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/ta/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/ta_IN/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/te/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/tr/katello.js on lines 1..9000

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

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

 locales['katello'] = locales['katello'] || {}; locales['katello']['kn'] = {
  "domain": "katello",
  "locale_data": {
    "katello": {
      "": {
Severity: Major
Found in app/assets/javascripts/katello/locale/kn/katello.js and 18 other locations - About 4 mos to fix
app/assets/javascripts/katello/locale/bn/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/bn_IN/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/de_DE/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/en/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/gu/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/he_IL/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/hi/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/mr/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/nl_NL/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/or/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/pa/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/pl/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/pt/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/sl/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/ta/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/ta_IN/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/te/katello.js on lines 1..9000
app/assets/javascripts/katello/locale/tr/katello.js on lines 1..9000

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

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