nelsonic/este

View on GitHub

Showing 94 of 94 total issues

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

export default [
  {
    "id": "app.buttons.signIn",
    "defaultMessage": "Usuário"
  },
Severity: Major
Found in messages/pt.js and 4 other locations - About 4 days to fix
messages/de.js on lines 2..239
messages/es.js on lines 2..239
messages/fr.js on lines 2..239
messages/ro.js on lines 2..239

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

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

export default [
  {
    "id": "app.buttons.add",
    "defaultMessage": "Hinzufügen"
  },
Severity: Major
Found in messages/de.js and 4 other locations - About 4 days to fix
messages/es.js on lines 2..239
messages/fr.js on lines 2..239
messages/pt.js on lines 2..239
messages/ro.js on lines 2..239

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

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

export default [
  {
    "id": "app.buttons.signIn",
    "defaultMessage": "Iniciar Sesión"
  },
Severity: Major
Found in messages/es.js and 4 other locations - About 4 days to fix
messages/de.js on lines 2..239
messages/fr.js on lines 2..239
messages/pt.js on lines 2..239
messages/ro.js on lines 2..239

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

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

export default [
  {
    "id": "app.buttons.signIn",
    "defaultMessage": "Autentificare"
  },
Severity: Major
Found in messages/ro.js and 4 other locations - About 4 days to fix
messages/de.js on lines 2..239
messages/es.js on lines 2..239
messages/fr.js on lines 2..239
messages/pt.js on lines 2..239

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

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

export default [
  {
    "id": "app.buttons.add",
    "defaultMessage": "Ajouter"
  },
Severity: Major
Found in messages/fr.js and 4 other locations - About 4 days to fix
messages/de.js on lines 2..239
messages/es.js on lines 2..239
messages/pt.js on lines 2..239
messages/ro.js on lines 2..239

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Function makeConfig has 132 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function makeConfig(options) {
  const {
    isDevelopment
  } = options;

Severity: Major
Found in webpack/makeConfig.js - About 5 hrs to fix

    Function queryFirebase has 114 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export default function queryFirebase(Wrapped, mapPropsToOptions) {
      return class FirebaseQuery extends Component {
    
        static contextTypes = {
          store: PropTypes.object // Redux store.
    Severity: Major
    Found in src/common/lib/redux-firebase/queryFirebase.js - About 4 hrs to fix

      Function fields has 111 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      export default function fields(Wrapped, options) {
        const {
          path = '',
          fields = [],
          getInitialState
      Severity: Major
      Found in src/common/lib/redux-fields/fields.js - About 4 hrs to fix

        Function render has 97 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          render() {
            const { fields, fieldsPageModel } = this.props;
            const { disabled, error } = this.state;
        
            return (
        Severity: Major
        Found in src/browser/fields/FieldsPage.react.js - About 3 hrs to fix

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

          export default class CenteredView extends Component {
          
            static propTypes = {
              children: PropTypes.node.isRequired,
              style: View.propTypes.style,
          Severity: Major
          Found in src/native/app/components/CenteredView.react.js and 1 other location - About 3 hrs to fix
          src/native/app/components/Container.react.js on lines 6..22

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

          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

          export default class Container extends Component {
          
            static propTypes = {
              children: PropTypes.node.isRequired,
              style: View.propTypes.style,
          Severity: Major
          Found in src/native/app/components/Container.react.js and 1 other location - About 3 hrs to fix
          src/native/app/components/CenteredView.react.js on lines 6..22

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

          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

          export default class SettingsPage extends Component {
          
            render() {
              return (
                <div className="settings-page">
          Severity: Major
          Found in src/browser/me/SettingsPage.react.js and 1 other location - About 3 hrs to fix
          src/browser/me/ProfilePage.react.js on lines 13..28

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

          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

          export default class ProfilePage extends Component {
          
            render() {
              return (
                <div className="profile-page">
          Severity: Major
          Found in src/browser/me/ProfilePage.react.js and 1 other location - About 3 hrs to fix
          src/browser/me/SettingsPage.react.js on lines 13..28

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

          We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

          The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

          If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

          See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

          Refactorings

          Further Reading

          Function fields has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
          Open

          export default function fields(Wrapped, options) {
            const {
              path = '',
              fields = [],
              getInitialState
          Severity: Minor
          Found in src/common/lib/redux-fields/fields.js - About 2 hrs to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Function render has 62 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            render() {
              const { disabled, fields } = this.props;
              const { forgetPasswordIsShown, recoveryEmailSent } = this.state;
              const legendMessage = forgetPasswordIsShown
                ? messages.passwordRecoveryLegend
          Severity: Major
          Found in src/browser/auth/Email.react.js - About 2 hrs to fix

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

              async signInViaPassword() {
                const { fields, signIn } = this.props;
                try {
                  await signIn('password', fields.$values());
                } catch (error) {
            Severity: Major
            Found in src/browser/auth/Email.react.js and 1 other location - About 2 hrs to fix
            src/browser/auth/Email.react.js on lines 74..85

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

            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

              async onSignUpClick() {
                const { fields, signUp } = this.props;
                try {
                  await signUp('password', fields.$values());
                } catch (error) {
            Severity: Major
            Found in src/browser/auth/Email.react.js and 1 other location - About 2 hrs to fix
            src/browser/auth/Email.react.js on lines 110..121

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

            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

                    <h2>
                      <a href="https://firebase.google.com/" target="_blank">
                        <img
                          role="presentation"
                          src={require('./logo.png')}
            Severity: Major
            Found in src/browser/firebase/FirebasePage.react.js and 1 other location - About 2 hrs to fix
            src/browser/auth/SignInPage.react.js on lines 23..31

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

            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

                    <h2>
                      <a href="https://www.firebase.com/" target="_blank">
                        <img
                          role="presentation"
                          src={require('../firebase/logo.png')}
            Severity: Major
            Found in src/browser/auth/SignInPage.react.js and 1 other location - About 2 hrs to fix
            src/browser/firebase/FirebasePage.react.js on lines 16..24

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

            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

            Refactorings

            Further Reading

            File cs.js has 252 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            /* eslint-disable max-len, quote-props, quotes */
            export default [
              {
                "id": "app.buttons.add",
                "defaultMessage": "Přidat"
            Severity: Minor
            Found in messages/cs.js - About 2 hrs to fix
              Severity
              Category
              Status
              Source
              Language