Showing 795 of 795 total issues

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

/*
 * Copyright 2010 James Pether Sörling
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
model.external.worldbank.indicators.impl/src/main/java/com/hack23/cia/model/external/worldbank/indicators/impl/IndicatorsElement.java on lines 1..311
model.external.worldbank.topic.impl/src/main/java/com/hack23/cia/model/external/worldbank/topic/impl/TopicsElement.java on lines 1..312

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

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

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

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

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

Refactorings

Further Reading

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

/*
 * Copyright 2010 James Pether Sörling
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
model.external.worldbank.data.impl/src/main/java/com/hack23/cia/model/external/worldbank/data/impl/DataElement.java on lines 1..311
model.external.worldbank.topic.impl/src/main/java/com/hack23/cia/model/external/worldbank/topic/impl/TopicsElement.java on lines 1..312

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

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 ViewRiksdagenPartyMember.java has 452 lines of code (exceeds 250 allowed). Consider refactoring.
Open

//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2019.02.25 at 12:05:09 AM CET

    ViewRiksdagenCommitteeDecisions has 48 methods (exceeds 20 allowed). Consider refactoring.
    Open

    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "ViewRiksdagenCommitteeDecisions", propOrder = {
        "embeddedId",
        "title",
        "header",

      UserAccount has 47 methods (exceeds 20 allowed). Consider refactoring.
      Open

      @XmlAccessorType(XmlAccessType.FIELD)
      @XmlType(name = "UserAccount", propOrder = {
          "modelObjectId",
          "modelObjectVersion",
          "country",

        ApplicationSession has 47 methods (exceeds 20 allowed). Consider refactoring.
        Open

        @XmlAccessorType(XmlAccessType.FIELD)
        @XmlType(name = "ApplicationSession", propOrder = {
            "modelObjectId",
            "modelObjectVersion",
            "createdDate",

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

          /*
           * Copyright 2010 James Pether Sörling
           *
           * Licensed under the Apache License, Version 2.0 (the "License");
           * you may not use this file except in compliance with the License.
          model.external.val.kommunvalkrets.impl/src/main/java/com/hack23/cia/model/external/val/kommunvalkrets/impl/SwedenMunicipalityElectionRegionData.java on lines 1..286

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

          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

          /*
           * Copyright 2010 James Pether Sörling
           *
           * Licensed under the Apache License, Version 2.0 (the "License");
           * you may not use this file except in compliance with the License.
          model.external.val.landstingvalkrets.impl/src/main/java/com/hack23/cia/model/external/val/landstingvalkrets/impl/SwedenCountyElectoralArea.java on lines 1..286

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

          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

          /*
           * Copyright 2010 James Pether Sörling
           *
           * Licensed under the Apache License, Version 2.0 (the "License");
           * you may not use this file except in compliance with the License.
          model.external.riksdagen.dokumentstatus.impl/src/main/java/com/hack23/cia/model/external/riksdagen/dokumentstatus/impl/DocumentType.java on lines 1..200

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

          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

          /*
           * Copyright 2010 James Pether Sörling
           *
           * Licensed under the Apache License, Version 2.0 (the "License");
           * you may not use this file except in compliance with the License.
          model.external.riksdagen.dokumentlista.impl/src/main/java/com/hack23/cia/model/external/riksdagen/dokumentlista/impl/DocumentType.java on lines 1..200

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

          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 BallotDocumentElement.java has 425 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /*
           * Copyright 2010 James Pether Sörling
           *
           * Licensed under the Apache License, Version 2.0 (the "License");
           * you may not use this file except in compliance with the License.

            ApplicationActionEvent has 44 methods (exceeds 20 allowed). Consider refactoring.
            Open

            @XmlAccessorType(XmlAccessType.FIELD)
            @XmlType(name = "ApplicationActionEvent", propOrder = {
                "modelObjectId",
                "modelObjectVersion",
                "applicationOperation",

              File ViewRiksdagenVoteDataBallotSummaryDaily.java has 410 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              //
              // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
              // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
              // Any modifications to this file will be lost upon recompilation of the source schema.
              // Generated on: 2019.02.25 at 12:05:09 AM CET

                CommitteeProposalData has 43 methods (exceeds 20 allowed). Consider refactoring.
                Open

                @XmlAccessorType(XmlAccessType.FIELD)
                @XmlType(name = "CommitteeProposalData", propOrder = {
                    "header",
                    "issueNumber",
                    "proposal",

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

                  /*
                   * Copyright 2010 James Pether Sörling
                   *
                   * Licensed under the Apache License, Version 2.0 (the "License");
                   * you may not use this file except in compliance with the License.
                  model.external.riksdagen.personlista.impl/src/main/java/com/hack23/cia/model/external/riksdagen/personlista/impl/DetailElement.java on lines 1..264

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

                  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

                  /*
                   * Copyright 2010 James Pether Sörling
                   *
                   * Licensed under the Apache License, Version 2.0 (the "License");
                   * you may not use this file except in compliance with the License.
                  model.external.riksdagen.person.impl/src/main/java/com/hack23/cia/model/external/riksdagen/person/impl/DetailData.java on lines 1..263

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

                  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

                  ApplicationConfiguration has 41 methods (exceeds 20 allowed). Consider refactoring.
                  Open

                  @XmlAccessorType(XmlAccessType.FIELD)
                  @XmlType(name = "ApplicationConfiguration", propOrder = {
                      "modelObjectId",
                      "modelObjectVersion",
                      "configTitle",

                    DocumentContainerElement has 41 methods (exceeds 20 allowed). Consider refactoring.
                    Open

                    @XmlAccessorType(XmlAccessType.FIELD)
                    @XmlType(name = "DocumentContainerElement", propOrder = {
                        "dokument"
                    })
                    @Entity(name = "DocumentContainerElement")

                      LanguageContentData has 38 methods (exceeds 20 allowed). Consider refactoring.
                      Open

                      @XmlAccessorType(XmlAccessType.FIELD)
                      @XmlType(name = "LanguageContentData", propOrder = {
                          "modelObjectId",
                          "modelObjectVersion",
                          "fromLanguage",

                        ViewRiksdagenPartyRoleMember has 36 methods (exceeds 20 allowed). Consider refactoring.
                        Open

                        @XmlAccessorType(XmlAccessType.FIELD)
                        @XmlType(name = "ViewRiksdagenPartyRoleMember", propOrder = {
                            "roleId",
                            "detail",
                            "roleCode",
                          Severity
                          Category
                          Status
                          Source
                          Language