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

MERGE: PR 634 XML-hul code review fixes #724

Merged
merged 9 commits into from
Apr 8, 2022

Conversation

carlwilson
Copy link
Member

Integration merge for #634 submitted by @david-russo, many thanks.

david-russo and others added 9 commits June 26, 2020 19:15
The module now correctly handles schemaLocations that define multiple
namespace-to-location relationships, instead of lumping them all into
the first namespace's schema location.

This change also correctly reports noNamespaceSchemaLocation values as
the schema's location, instead of its namespace URI.
All parameter parsing has been moved to a single location, and we now
log warnings for unrecognized parameters, as well as parameter
argument which include invalid URI syntax or unresolvable file paths.

A misleading schema example was also removed from the default config
files, which could be better illustrated in module documentation.
This prevented processing of any XML files with local schema URIs.
Includes:
- Clarified, corrected and expanded documentation
- Modernized code constructs (e.g. loops, auto-boxing)
- Removal of unnecessary overrides and unused code
- Clearer code formatting
- Javadoc fixes
@carlwilson carlwilson added this to the JHOVE 1.26 milestone Apr 8, 2022
@codecov
Copy link

codecov bot commented Apr 8, 2022

Codecov Report

Merging #724 (aa788ec) into integration (d448eed) will decrease coverage by 0.05%.
The diff coverage is n/a.

@@                Coverage Diff                @@
##             integration     #724      +/-   ##
=================================================
- Coverage          45.75%   45.69%   -0.06%     
+ Complexity          1051     1049       -2     
=================================================
  Files                 57       57              
  Lines               9145     9145              
  Branches            1684     1684              
=================================================
- Hits                4184     4179       -5     
- Misses              4405     4408       +3     
- Partials             556      558       +2     
Impacted Files Coverage Δ
.../java/edu/harvard/hul/ois/jhove/ConfigHandler.java 58.26% <0.00%> (-1.74%) ⬇️
...ain/java/edu/harvard/hul/ois/jhove/ModuleBase.java 50.34% <0.00%> (-0.69%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 03e35a9...aa788ec. Read the comment docs.

@carlwilson carlwilson merged commit cb4c2e7 into integration Apr 8, 2022
@carlwilson carlwilson deleted the merge/bl-dpt/xml-fixes branch April 8, 2022 16:45
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.

None yet

2 participants