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

Development #246

Merged
merged 9 commits into from
Feb 2, 2024
Merged

Development #246

merged 9 commits into from
Feb 2, 2024

Conversation

hmiguim
Copy link
Member

@hmiguim hmiguim commented Feb 2, 2024

No description provided.

@hmiguim hmiguim requested a review from 006627 February 2, 2024 11:47
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

checkstyle

src/main/java/org/roda_project/commons_ip2/cli/Validate.java|81 col 17| Variable 'cmd' should be declared final.
src/main/java/org/roda_project/commons_ip2/cli/Validate.java|82 col 12| Variable 'commandLineString' should be declared final.
src/main/java/org/roda_project/commons_ip2/cli/model/enums/ReportType.java|7 col 3| Missing a Javadoc comment.
src/main/java/org/roda_project/commons_ip2/cli/model/enums/ReportType.java|7 col 29| Missing a Javadoc comment.
src/main/java/org/roda_project/commons_ip2/cli/model/exception/handlers/PrintExceptionMessageHandler.java|15 col 3| Missing a Javadoc comment.
src/main/java/org/roda_project/commons_ip2/cli/model/exception/handlers/ShortErrorMessageHandler.java|15 col 3| Missing a Javadoc comment.
src/main/java/org/roda_project/commons_ip2/cli/Create.java|30 col 3| Missing a Javadoc comment.
src/main/java/org/roda_project/commons_ip2/cli/Create.java|31 col 3| Missing a Javadoc comment.
src/main/java/org/roda_project/commons_ip2/cli/Create.java|32 col 33| Variable 'spec' must be private and have accessor methods.
src/main/java/org/roda_project/commons_ip2/cli/Create.java|69| Line is longer than 120 characters (found 127).
src/main/java/org/roda_project/commons_ip2/cli/Create.java|98 col 17| Variable 'cmd' should be declared final.
src/main/java/org/roda_project/commons_ip2/cli/Create.java|99 col 12| Variable 'commandLineString' should be declared final.
src/main/resources/logback.xml|4 col 1| File contains tab characters (this is the first instance).
src/main/resources/schemas2/mets1_12.xjb|3 col 1| File contains tab characters (this is the first instance).
src/main/resources/schemas/mets1_11.xjb|3 col 1| File contains tab characters (this is the first instance).

</schemaIncludes>
<cleanPackageDirectories>true</cleanPackageDirectories>
<generatePackage>org.roda_project.commons_ip.mets_v1_11.beans</generatePackage>
<generateDirectory>${project.build.directory}/generated-sources/xjc1</generateDirectory>
Copy link

Choose a reason for hiding this comment

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

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck> reported by reviewdog 🐶
Line is longer than 120 characters (found 124).

</schemaIncludes>
<cleanPackageDirectories>true</cleanPackageDirectories>
<generatePackage>org.roda_project.commons_ip2.mets_v1_12.beans</generatePackage>
<generateDirectory>${project.build.directory}/generated-sources/xjc2</generateDirectory>
Copy link

Choose a reason for hiding this comment

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

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck> reported by reviewdog 🐶
Line is longer than 120 characters (found 124).

</schemaIncludes>
<cleanPackageDirectories>true</cleanPackageDirectories>
<generatePackage>org.roda_project.commons_ip.mets_v1_11.beans</generatePackage>
<generateDirectory>${project.build.directory}/generated-sources/xjc1</generateDirectory>
Copy link

Choose a reason for hiding this comment

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

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck> reported by reviewdog 🐶
Line is longer than 120 characters (found 124).

</schemaIncludes>
<cleanPackageDirectories>true</cleanPackageDirectories>
<generatePackage>org.roda_project.commons_ip2.mets_v1_12.beans</generatePackage>
<generateDirectory>${project.build.directory}/generated-sources/xjc2</generateDirectory>
Copy link

Choose a reason for hiding this comment

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

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck> reported by reviewdog 🐶
Line is longer than 120 characters (found 124).

@@ -28,6 +26,8 @@
import org.roda_project.commons_ip.utils.IPException;
import org.roda_project.commons_ip.utils.ZipEntryInfo;

import javax.xml.datatype.XMLGregorianCalendar;
Copy link

Choose a reason for hiding this comment

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

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.imports.ImportOrderCheck> reported by reviewdog 🐶
Wrong order for 'javax.xml.datatype.XMLGregorianCalendar' import.


public static final String ISSUES_LINK = "https://github.com/keeps/commons-ip/issues";

public static final String LOGGER_FILE = "commons-ip.log.txt";
Copy link

Choose a reason for hiding this comment

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

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocVariableCheck> reported by reviewdog 🐶
Missing a Javadoc comment.

@@ -412,7 +412,12 @@ protected ReporterDetails validateCSIP91(final MetsValidatorState metsValidatorS
final List<Object> admids = d.getADMID();
if (admids != null && !admids.isEmpty()) {
for (Object o : admids) {
final String admid = ((MdSecType) o).getID();
String admid;
Copy link

Choose a reason for hiding this comment

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

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck> reported by reviewdog 🐶
Variable 'admid' should be declared final.

@@ -29,6 +32,9 @@
*/
@CommandLine.Command(name = "validate", showDefaultValues = true, description = "Validates E-ARK IP packages against the specification")
public class Validate implements Callable<Integer> {
private static final Logger LOGGER = LoggerFactory.getLogger(Validate.class);
Copy link

Choose a reason for hiding this comment

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

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocVariableCheck> reported by reviewdog 🐶
Missing a Javadoc comment.

@@ -29,6 +32,9 @@
*/
@CommandLine.Command(name = "validate", showDefaultValues = true, description = "Validates E-ARK IP packages against the specification")
public class Validate implements Callable<Integer> {
private static final Logger LOGGER = LoggerFactory.getLogger(Validate.class);
@CommandLine.Spec
Copy link

Choose a reason for hiding this comment

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

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocVariableCheck> reported by reviewdog 🐶
Missing a Javadoc comment.

@@ -29,6 +32,9 @@
*/
@CommandLine.Command(name = "validate", showDefaultValues = true, description = "Validates E-ARK IP packages against the specification")
public class Validate implements Callable<Integer> {
private static final Logger LOGGER = LoggerFactory.getLogger(Validate.class);
@CommandLine.Spec
CommandLine.Model.CommandSpec spec;
Copy link

Choose a reason for hiding this comment

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

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.design.VisibilityModifierCheck> reported by reviewdog 🐶
Variable 'spec' must be private and have accessor methods.

@006627 006627 merged commit 2dd81b3 into master Feb 2, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants