ome / ome-model

OME model (specification, code generator, implementation)
Other
13 stars 26 forks source link

Static analysis code remediation: ome-xml and specification Java sources #136

Closed rleigh-codelibre closed 1 year ago

rleigh-codelibre commented 3 years ago

Following static analysis of the ome-model source tree, the following remediation of the ome-xml and specification Java components has been performed:

Both ome-xml and specification:

ome-xml:

specification:

No generated source changes.

Total static analysis warnings fixed: 702 (3261 before, 2559 after)

Testing:

The refactoring should not result in any behavioural changes. All unit tests and integration tests should continue to pass. There should be no compatibility changes for downstream consumers.

If you would prefer to review these changes in a more fine-grained way, it can be split out into multiple PRs without any trouble. Few of the commits depend upon each other, so can be freely cherry-picked.

snoopycrimecop commented 3 years ago

Conflicting PR. Removed from build BIOFORMATS-push#659. See the console output for more details. Possible conflicts:

--conflicts Conflict resolved in build BIOFORMATS-push#664. See the console output for more details.

rleigh-codelibre commented 3 years ago

Update pushed which fixes up some cosmetic formatting in MetadataConverter.

snoopy is correct that #125 does conflict. As and when that fix is merged, I'll update this PR to remove the conflict.

imagesc-bot commented 3 years ago

This pull request has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/static-analysis-and-ome-model-bugfixes/45977/1

rleigh-codelibre commented 3 years ago

Rebased to run with GitHub Actions.