-
-
Notifications
You must be signed in to change notification settings - Fork 88
[plugin-web-app-to-rest-api] Add jump links verifications #4367
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
Conversation
Qodana Community for JVMIt seems all right 👌 No new problems were found according to the checks applied 💡 Qodana analysis was run in the pull request mode: only the changed files were checked Contact Qodana teamContact us at qodana-support@jetbrains.com
|
eed23b1
to
73a6c19
Compare
Codecov Report
@@ Coverage Diff @@
## master #4367 +/- ##
============================================
- Coverage 97.31% 97.30% -0.02%
- Complexity 6383 6388 +5
============================================
Files 892 892
Lines 18393 18402 +9
Branches 1223 1225 +2
============================================
+ Hits 17900 17906 +6
- Misses 384 385 +1
- Partials 109 111 +2
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@@ -198,7 +216,7 @@ private static String getElementUri(Element element) | |||
String href = element.attr(HREF_ATTR); | |||
if (!href.isEmpty()) | |||
{ 8000 span> | |||
if (URL_FRAGMENT.equals(href)) | |||
if (href.equals(URL_FRAGMENT) || isJumpLink(href)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (href.equals(URL_FRAGMENT) || isJumpLink(href)) | |
if (URL_FRAGMENT.equals(href) || isJumpLink(href)) |
@@ -29,7 +29,9 @@ public enum ResourceValidationError | |||
EMPTY_HREF_SRC("Element doesn't contain href/src attributes", | |||
"Element by selector %s doesn't contain href/src attributes"), | |||
INVALID_HREF_SRC("Element has href/src attribute with invalid URL: %s", | |||
"Element by selector %s has href/src attribute with invalid URL: %s"); | |||
"Element by selector %s has href/src attribute with invalid URL: %s"), | |||
UNEXISTENT_JUMPLINK_TARGET("Jump link points to unexistent element with %s id", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UNEXISTENT_JUMPLINK_TARGET("Jump link points to unexistent element with %s id", | |
MISSING_JUMPLINK_TARGET("Jump link points to missing element with %s id", |
"Element by selector %s has href/src attribute with invalid URL: %s"); | ||
"Element by selector %s has href/src attribute with invalid URL: %s"), | ||
UNEXISTENT_JUMPLINK_TARGET("Jump link points to unexistent element with %s id", | ||
"Jump link by selector %s points to unexistent element with %s id"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Jump link by selector %s points to unexistent element with %s id"); | |
"Jump link by selector %s points to missing element with %s id"); |
73a6c19
to
3b8f968
Compare
3b8f968
to
17b3852
Compare
Kudos, SonarCloud Quality Gate passed! |
No description provided.