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

VDYP-168 Validate FIPStart input data #19

Merged
merged 111 commits into from
Jan 10, 2024
Merged

VDYP-168 Validate FIPStart input data #19

merged 111 commits into from
Jan 10, 2024

Conversation

smithkm
Copy link
Collaborator

@smithkm smithkm commented Jul 21, 2023

No description provided.

@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 236 Code Smells

79.1% 79.1% Coverage
0.6% 0.6% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

.reduce(0.0f, (x, y) -> x + y);
if (Math.abs(percentTotal - 100f) > 0.01f) {
throw validationError(
"Polygon %s has %s layer where species entries have a percentage total that does not sum to 100%%.",
Copy link
Collaborator

Choose a reason for hiding this comment

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

In theory, this test is actually testing that the percentage is greater than 100 and thus the Validation Error should state that the sum > 100%.

"message",
is(
"Polygon " + polygonId
+ " has PRIMARY layer where species entries have a percentage total that does not sum to 100%."
Copy link
Collaborator

Choose a reason for hiding this comment

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

percentage total > 100%

Copy link
Collaborator

@eddeen eddeen left a comment

Choose a reason for hiding this comment

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

I just put a couple of notes in that perhaps the error messages should be changed when checking for > 100% (error states sum not equal to 100). Mind you, if that is what is in the original Fortran and we are doing "like for like" ... perhaps the error messages should stay the same. We can update them in VDYP8. Other than that ... from what I can see ... looks good.

Copy link

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

64 New issues
0 Security Hotspots
80.6% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

@smithkm smithkm merged commit 8a4ddf6 into main Jan 10, 2024
2 checks passed
@smithkm smithkm deleted the feature/VDYP-168 branch January 10, 2024 21:09
vividroyjeong added a commit that referenced this pull request Sep 11, 2024
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.

2 participants