Showing 239 of 795 total issues

Method createButtonLink has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    protected static final void createButtonLink(final ResponsiveRow row,final String linkText,final Resource icon, final ClickListener command, final String description) {

    Method createPageEvent has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        void createPageEvent(ViewAction viewAction, ApplicationEventGroup applicationEventGroup, String page,
                String pageMode, String elementId);

      Method findOrderedByPropertyListByEmbeddedProperty has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          public <V> List<T> findOrderedByPropertyListByEmbeddedProperty(final SingularAttribute<T, V> property,
                  final Class<V> clazz2, final SingularAttribute<V, ? extends Object> property2, final Object value,
                  final SingularAttribute<T, ? extends Object> orderByProperty) {

        Method createMinistryRoleSummary has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            private void createMinistryRoleSummary(final Map<String, List<GovernmentBodyAnnualOutcomeSummary>> reportByMinistry, final Map<String, List<GovernmentBodyAnnualSummary>> governmentBodyMinistryMap,
                    final ViewRiksdagenGovermentRoleMember viewRiksdagenGovermentRoleMember,
                    final ViewRiksdagenPolitician viewRiksdagenPolitician, final CssLayout layout) {

          Method addNewDataSerie has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              private static void addNewDataSerie(final DataSeries dataSeries, final Series series,
                      final SimpleDateFormat simpleDateFormat, final SimpleDateFormat parseIncomingDateFormat,
                      final Entry<String, List<ViewRiksdagenOrgDocumentDailySummary>> entry) {

            Method createPageEvent has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                public void createPageEvent(final ViewAction viewAction,final ApplicationEventGroup applicationEventGroup,final String page, final String pageMode, final String elementId) {

              Method unmarshallXml has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  public Object unmarshallXml(final Unmarshaller unmarshaller, final String accessUrl, final String nameSpace,
                          final String replace, final String with) throws XmlAgentException {

                Method findListByEmbeddedProperty has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    public final <T, V> List<T> findListByEmbeddedProperty(final Class<T> clazz,
                            final SingularAttribute<T, V> property,
                            final Class<V> clazz2,
                            final SingularAttribute<V, ? extends Object> property2, final Object value) {

                  Method findOrderedByPropertyListByEmbeddedProperty has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      <V> List<T> findOrderedByPropertyListByEmbeddedProperty(final SingularAttribute<T, V> property,
                              final Class<V> clazz2, final SingularAttribute<V, ? extends Object> property2, final Object value,
                              final SingularAttribute<T, ? extends Object> orderByProperty);

                    Method addViolation has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        public final void addViolation(final Status status,final String ruleName,final String ruleGroup,final String ruleDescription,final String positive) {

                      Method findListByEmbeddedProperty has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          <T, V> List<T> findListByEmbeddedProperty(Class<T> clazz, SingularAttribute<T, V> property, Class<V> clazz2,
                                  SingularAttribute<V, ? extends Object> property2, Object value);
                      Severity: Minor
                      Found in service.api/src/main/java/com/hack23/cia/service/api/DataContainer.java - About 35 mins to fix

                        Method insertParty has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            private static void insertParty(final KieSession ksession, final ViewRiksdagenPartySummary partyData,
                                    final List<ViewRiksdagenVoteDataBallotPartySummaryAnnual> dailyList,
                                    final List<ViewRiksdagenVoteDataBallotPartySummaryMonthly> monthlyList,
                                    final List<ViewRiksdagenVoteDataBallotPartySummaryDaily> annualList) {

                          Method findListByEmbeddedProperty has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              public <T, V> List<T> findListByEmbeddedProperty(final Class<T> clazz,
                                      final SingularAttribute<T, V> property, final Class<V> clazz2,
                                      final SingularAttribute<V, ? extends Object> property2, final Object value) {

                            Method findByQueryProperty has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                <T,V> T findByQueryProperty(Class<T> clazz,
                                        SingularAttribute<T, ? extends Object> property,Class<V> clazz2,
                                        SingularAttribute<V, ? extends Object> property2, Object value);

                              Method insertPolitician has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                  private static void insertPolitician(final KieSession ksession, final ViewRiksdagenPolitician politicianData,
                                          final List<ViewRiksdagenVoteDataBallotPoliticianSummaryDaily> dailyList,
                                          final List<ViewRiksdagenVoteDataBallotPoliticianSummaryMonthly> monthlyList,
                                          final List<ViewRiksdagenVoteDataBallotPoliticianSummaryAnnual> annualList) {

                                Method findByQueryProperty has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                    <T, V> T findByQueryProperty(Class<T> clazz, SingularAttribute<T, ? extends Object> property, Class<V> clazz2,
                                            SingularAttribute<V, ? extends Object> property2, Object value);
                                Severity: Minor
                                Found in service.api/src/main/java/com/hack23/cia/service/api/DataContainer.java - About 35 mins to fix

                                  Method findByQueryProperty has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                      public <T, V> T findByQueryProperty(final Class<T> clazz,
                                              final SingularAttribute<T, ? extends Object> property, final Class<V> clazz2,
                                              final SingularAttribute<V, ? extends Object> property2, final Object value) {

                                    Method findByQueryProperty has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                        public final <T, V> T findByQueryProperty(final Class<T> clazz,
                                                final SingularAttribute<T, ? extends Object> property,
                                                final Class<V> clazz2,
                                                final SingularAttribute<V, ? extends Object> property2, final Object value) {

                                      Method findListByEmbeddedProperty has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                          <T,V> List<T> findListByEmbeddedProperty(Class<T> clazz,
                                                  SingularAttribute<T, V> property,Class<V> clazz2,
                                                  SingularAttribute<V, ? extends Object> property2, Object value);

                                        Method createContent has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                                        Open

                                            @Secured({ "ROLE_ADMIN" })
                                            @Override
                                            public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) {
                                                final VerticalLayout content = createPanelContent();
                                        
                                        

                                        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

                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language