Showing 172 of 2,280 total issues
Method getNextArrayNumberForName
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
@Override
public int getNextArrayNumberForName(
final String name,
final IWidget widget) {
- 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"
Further reading
Method equals
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
@Override
public boolean equals(final Object o) {
if (o instanceof FontProperties) {
final FontProperties that = (FontProperties) o;
return Objects.equals(valueFontName, that.valueFontName)
- 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"
Further reading
Method removeEmptyGroupFromParent
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
private void removeEmptyGroupFromParent(
final Object[] sourceObjectPath,
final List<IWidget> sourceWidgetList,
final List<IWidget> targetWidgetList) {
/*
- 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"
Further reading
Method addPushButton
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
final int pageHeight,
final int cropHeight,
final int cropX,
final int cropY,
final List<IWidget> widgetsOnPage,
Method getTreeCellEditorComponent
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
final JTree tree,
final Object value,
final boolean isSelected,
final boolean expanded,
final boolean leaf,
Method autoscroll
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
@Override
public void autoscroll(final Point pt) {
// Figure out which row we're on.
int nRow = getRowForLocation(pt.x, pt.y);
- 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"
Further reading
Method addChoice
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
final int pageHeight,
final int cropHeight,
final int cropX,
final int cropY,
final List<IWidget> widgetsOnPage,
Method equals
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
@Override
public boolean equals(final Object o) {
if (o instanceof Properties) {
final Properties that = (Properties) o;
return Objects.equals(font, that.font)
- 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"
Further reading
Method addComboBox
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
final int pageHeight,
final int cropHeight,
final int cropX,
final int cropY,
final List<IWidget> widgetsOnPage,
Method handleChoiceField
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
private void handleChoiceField(
final FormObject formObject,
final IWidget widget) {
final ObjectProperties objectProperties = widget.getWidgetModel().getProperties().getObject();
- 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"
Further reading
Consider simplifying this complex logical expression. Open
if (o instanceof FontProperties) {
final FontProperties that = (FontProperties) o;
return Objects.equals(valueFontName, that.valueFontName)
&& Objects.equals(valueFontSize, that.valueFontSize)
&& Objects.equals(valueFontStyle, that.valueFontStyle)
Consider simplifying this complex logical expression. Open
if (o instanceof Properties) {
final Properties that = (Properties) o;
return Objects.equals(font, that.font)
&& Objects.equals(object, that.object)
&& Objects.equals(layout, that.layout)
Method resizeWidgets
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
final Set<IWidget> selectedWidgets,
final IDesigner designerPanel,
final int mouseX,
final int mouseY,
final int resizeType) {
Method write
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
final IWidget widget,
final Rectangle pageSize,
final int currentPage,
final PdfWriter writer,
final GlobalPdfWriter globalPdfWriter) throws IOException, DocumentException {
Method write
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
final IWidget widget,
final Rectangle pageSize,
final int currentPage,
final PdfWriter writer,
final GlobalPdfWriter globalPdfWriter) {
Method write
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
IWidget widget,
Rectangle pageSize,
int currentPage,
PdfWriter writer,
GlobalPdfWriter globalPdfWriter) throws IOException, DocumentException;
Method getListCellRendererComponent
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
final JList<? extends String> list,
final String value,
final int index,
final boolean isSelected,
final boolean cellHasFocus) {
Method write
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
final IWidget widget,
final Rectangle pageSize,
final int currentPage,
final PdfWriter writer,
final GlobalPdfWriter globalPdfWriter) throws IOException, DocumentException {
Method addWidgets
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
final PdfWriter writer,
final List<IWidget> widgets,
final Rectangle pageSize,
final int currentPage,
final GlobalPdfWriter globalPdfWriter) throws IOException, DocumentException {
Method getBounds
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
final FormObject formObject,
final int pageHeight,
final int cropHeight,
final int cropX,
final int cropY) {