Showing 239 of 795 total issues
Method addBallotData
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private void addBallotData(final DataValueCalculator dataValueCalculator, final DataSeries dataSeries,
final SimpleDateFormat simpleDateFormat, final Series series,
final Entry<String, List<ViewRiksdagenVoteDataBallotPartySummaryDaily>> 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 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
void createPageEvent(ViewAction viewAction, ApplicationEventGroup applicationEventGroup, String page,
String pageMode, String elementId);
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 addPagingLink
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private void addPagingLink(final String label, final String name, final String pageId, final long maxPages, final HorizontalLayout pagingControls) {
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 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 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 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 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 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 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 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 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 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 createDisplayPropertyConverters
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
Open
private static <T extends Serializable> void createDisplayPropertyConverters(final List<String> displayProperties,
final ComponentContainer formContent, final Binder<T> binder, final PropertyDescriptor[] propertyDescriptors) {
for (final String property : displayProperties) {
final Class<?> typeOfProperty = getTypeOfProperty(propertyDescriptors, property);
- 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"