Showing 239 of 782 total issues
Method createPageEvent
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
void createPageEvent(ViewAction viewAction, ApplicationEventGroup applicationEventGroup, String page,
String pageMode, String elementId);
Method addNewDataSerie
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
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
Open
public void createPageEvent(final ViewAction viewAction,final ApplicationEventGroup applicationEventGroup,final String page, final String pageMode, final String elementId) {
Method createMinistryRoleSummary
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
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 unmarshallXml
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
Object unmarshallXml(Unmarshaller unmarshaller, String accessUrl,
String nameSpace, String replace, String with) throws XmlAgentException;
Method findOrderedByPropertyListByEmbeddedProperty
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
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 createButtonLink
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
protected static final void createButtonLink(final ResponsiveRow row,final String linkText,final Resource icon, final ClickListener command, final String description) {
Method findByQueryProperty
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
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 insertParty
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private static void insertParty(final KieSession ksession, final ViewRiksdagenPartySummary partyData,
final List<ViewRiksdagenVoteDataBallotPartySummaryAnnual> dailyList,
final List<ViewRiksdagenVoteDataBallotPartySummaryMonthly> monthlyList,
final List<ViewRiksdagenVoteDataBallotPartySummaryDaily> annualList) {
Method insertPolitician
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
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
Open
<T,V> T findByQueryProperty(Class<T> clazz,
SingularAttribute<T, ? extends Object> property,Class<V> clazz2,
SingularAttribute<V, ? extends Object> property2, Object value);
Method findListByEmbeddedProperty
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
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 findListByEmbeddedProperty
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
<T, V> List<T> findListByEmbeddedProperty(Class<T> clazz, SingularAttribute<T, V> property, Class<V> clazz2,
SingularAttribute<V, ? extends Object> property2, Object value);
Method findListByEmbeddedProperty
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
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 findOrderedByPropertyListByEmbeddedProperty
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
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 findByQueryProperty
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
<T, V> T findByQueryProperty(Class<T> clazz, SingularAttribute<T, ? extends Object> property, Class<V> clazz2,
SingularAttribute<V, ? extends Object> property2, Object value);
Method findListByEmbeddedProperty
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
<T,V> List<T> findListByEmbeddedProperty(Class<T> clazz,
SingularAttribute<T, V> property,Class<V> clazz2,
SingularAttribute<V, ? extends Object> property2, Object value);
Method addViolation
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public final void addViolation(final Status status,final String ruleName,final String ruleGroup,final String ruleDescription,final String positive) {
Method findByQueryProperty
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
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 addEntryData
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
private static void addEntryData(final DataSeries dataSeries, final SimpleDateFormat simpleDateFormat,
final Entry<String, List<GovernmentBodyAnnualOutcomeSummary>> entry) {
for (final GovernmentBodyAnnualOutcomeSummary data : entry.getValue()) {
final Map<Date, Double> valueMap = data.getValueMap();
- Read upRead up
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"