Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/pmd integrations #208

Merged
merged 47 commits into from
Nov 8, 2024
Merged

Feature/pmd integrations #208

merged 47 commits into from
Nov 8, 2024

Conversation

simonhir
Copy link
Member

Description

Setup pmd for integrations and fix warnings.

Reference

Issues closes #57

# Conflicts:
#	refarch-integrations/refarch-s3-integration/refarch-s3-integration-core/src/test/java/de/muenchen/refarch/integration/s3/application/usecase/FileOperationsPresignedUrlUseCaseTest.java
#	refarch-integrations/refarch-s3-integration/refarch-s3-integration-rest/refarch-s3-integration-rest-client/src/test/java/de/muenchen/refarch/integration/s3/client/repository/presignedurl/PresignedUrlRestRepositoryTest.java
#	shared-files/pmd-ruleset.xml
@simonhir simonhir self-assigned this Oct 15, 2024
@simonhir simonhir requested a review from a team as a code owner October 15, 2024 10:30
@github-actions github-actions bot added Component: Integrations Issues regarding the Integrations Type: Feature The issue is a feature labels Oct 15, 2024

val procedureResponse = fabasoftAdapter.createFile(file, "user");
final String procedureResponse = fabasoftAdapter.createFile(file, USER);

Check notice

Code scanning / CodeQL

Unread local variable

Variable 'String procedureResponse' is never read.

val procedureResponse = fabasoftAdapter.createProcedure(procedure, "user");
final Procedure procedureResponse = fabasoftAdapter.createProcedure(procedure, USER);

Check notice

Code scanning / CodeQL

Unread local variable

Variable 'Procedure procedureResponse' is never read.
Comment on lines +140 to +141
final String documentResponse = fabasoftAdapter
.createDocument(new Document("procedureCOO", "title", LocalDate.parse("2023-12-31"), DocumentType.EINGEHEND, List.of(content)), USER);

Check notice

Code scanning / CodeQL

Unread local variable

Variable 'String documentResponse' is never read.
Comment on lines +158 to +159
final String documentResponse = fabasoftAdapter
.createDocument(new Document("procedureCOO", "title", LocalDate.parse("2023-12-31"), DocumentType.AUSGEHEND, List.of(content)), USER);

Check notice

Code scanning / CodeQL

Unread local variable

Variable 'String documentResponse' is never read.
Comment on lines +176 to +177
final String documentResponse = fabasoftAdapter
.createDocument(new Document("procedureCOO", "title", LocalDate.parse("2023-12-31"), DocumentType.INTERN, List.of(content)), USER);

Check notice

Code scanning / CodeQL

Unread local variable

Variable 'String documentResponse' is never read.

val expectedFile = new Content("extension", "filename", "content".getBytes());
final Content expectedFile = new Content(EXTENSION, "filename", CONTENT);

Check notice

Code scanning / CodeQL

Unread local variable

Variable 'Content expectedFile' is never read.
@@ -314,22 +323,22 @@
SearchObjNameGI.class, (u) -> u.getObjclass().equals(DMSObjectClass.Aktenplaneintrag.getName()),
response);

val files = fabasoftAdapter.searchSubjectArea("searchString", "user");
final List<String> files = fabasoftAdapter.searchSubjectArea("searchString", USER);

Check notice

Code scanning / CodeQL

Unread local variable

Variable 'List<String> files' is never read.
@@ -338,45 +347,48 @@
SearchObjNameGI.class, (u) -> u.getObjclass().equals(dmsObjectClass.getName()) && validateBusinessData(u),
response);

val files = fabasoftAdapter.searchFile(searchString, user, reference, value);
final List<String> files = fabasoftAdapter.searchFile(searchString, user, reference, value);

Check notice

Code scanning / CodeQL

Unread local variable

Variable 'List<String> files' is never read.

WiremockWsdlUtility.stubOperation(
"ReadMetadataObjectGI",
ReadMetadataObjectGI.class, (u) -> true,
response);

val metadata = fabasoftAdapter.readMetadata("coo", "user");
final Metadata metadata = fabasoftAdapter.readMetadata("coo", USER);

Check notice

Code scanning / CodeQL

Unread local variable

Variable 'Metadata metadata' is never read.
@@ -385,9 +397,9 @@
ReadContentObjectMetaDataGI.class, (u) -> true,
response);

val metadata = fabasoftAdapter.readContentMetadata("coo", "user");
final Metadata metadata = fabasoftAdapter.readContentMetadata("coo", USER);

Check notice

Code scanning / CodeQL

Unread local variable

Variable 'Metadata metadata' is never read.
@github-actions github-actions bot added the Component: Tools Issues regarding the dev tools label Nov 4, 2024
@simonhir
Copy link
Member Author

simonhir commented Nov 4, 2024

Waiting for #248

@simonhir simonhir marked this pull request as ready for review November 5, 2024 09:30
@simonhir
Copy link
Member Author

simonhir commented Nov 5, 2024

The lint warnings should disappear after merge, as the new autobuild mode fixes them.

@devtobi devtobi self-requested a review November 6, 2024 12:02
@github-actions github-actions bot added the Component: API-Gateway Issues regarding the API Gateway label Nov 8, 2024
Copy link
Member

@devtobi devtobi left a comment

Choose a reason for hiding this comment

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

LGTM

@simonhir simonhir merged commit ce13f94 into main Nov 8, 2024
13 of 14 checks passed
@simonhir simonhir deleted the feature/pmd-integrations branch November 8, 2024 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: API-Gateway Issues regarding the API Gateway Component: Integrations Issues regarding the Integrations Component: Tools Issues regarding the dev tools Type: Feature The issue is a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integrate PMD Linter
2 participants