Skip to content

Fix typo's, code analysis, code quality and formatting#465

Merged
evandongen merged 12 commits intomasterfrom
chore/fix-problems
Feb 13, 2026
Merged

Fix typo's, code analysis, code quality and formatting#465
evandongen merged 12 commits intomasterfrom
chore/fix-problems

Conversation

@evandongen
Copy link
Contributor

@evandongen evandongen commented Feb 12, 2026

Bug Fixes

  • Typo corrections across multiple files
  • Code analysis issues resolved
  • SonarQube violations addressed

Code Quality

  • Consistent formatting
  • Reduced technical debt
  • Improved maintainability

LCM

  • Updated some dependencies
  • Migrated from javax.json to jakarta.json

@evandongen evandongen requested a review from tnleeuw February 12, 2026 13:15
Copy link
Contributor

@tnleeuw tnleeuw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems we use different settings for import-order. Perhaps best to synchronise them so we do not get rearranged imports on every PR made my a different developer.

Perhaps we can copy those settings from the Frank!Framework project?

this.roleName = roleName;
this.elementType = elementType;
}
import org.jspecify.annotations.NonNull;public record ConfigChildKey(String roleName, ElementType elementType) implements ElementChild.AbstractKey {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please check the formatting of this line? 😳

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ohh that's a strange one. Fixed

// We also apply this method on config child collections where the config children
// can have different owning elements. This applies when the generic element option
// is being analysed. Therefore we allow multiple config children that are all
// is being analyzed. Therefore, we allow multiple config children that are all
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer British English spelling... 😬

Copy link
Contributor Author

@evandongen evandongen Feb 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a setting in intellij:
image

Fixed

Comment on lines +82 to +84
b.append(String.format("%s: (abstract)%n", StringUtils.leftPad(label, maxLabelWidth)));
} else {
b.append(String.format("%s: %s\n", StringUtils.leftPad(label, maxLabelWidth), e.xmlElements));
b.append(String.format("%s: %s%n", StringUtils.leftPad(label, maxLabelWidth), e.xmlElements));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The %n instead of \n caused some issues with some of the tests for me, I remember. Because the %s is platform-dependent and thus caused me some tests to fail on Windows.

That's why I had not yet changed this earlier 😬

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, with the change in the test it works

Comment on lines +17 to +20
private static final String EXPECTED = String.format(" Master: Master%n"
+ " Object: %n"
+ " Other (from sub): %n"
+ "Other (from summary): %n");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could perhaps write this as a tripple-quoted string?

Comment on lines -31 to -33
trim_trailing_whitespace = false
indent_style = space
indent_size = 2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why these changes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

custom xml settings with 2 spaces made a mess of the pom.xml

@evandongen
Copy link
Contributor Author

It seems we use different settings for import-order. Perhaps best to synchronise them so we do not get rearranged imports on every PR made my a different developer.

Perhaps we can copy those settings from the Frank!Framework project?

I used the frank framework formatting

@github-project-automation github-project-automation bot moved this to In Progress in Frank!Framework Feb 13, 2026
@evandongen evandongen moved this from In Progress to Review in Frank!Framework Feb 13, 2026
@evandongen evandongen self-assigned this Feb 13, 2026
@evandongen evandongen requested a review from tnleeuw February 13, 2026 09:16
@evandongen evandongen merged commit f44ba7e into master Feb 13, 2026
3 checks passed
@evandongen evandongen deleted the chore/fix-problems branch February 13, 2026 11:50
@github-project-automation github-project-automation bot moved this from Review to Done in Frank!Framework Feb 13, 2026
@evandongen evandongen changed the title Chore/fix problems Fix typo's, code analysis, code quality and formatting Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants