8000 [plugin-web-app-to-rest-api] Add jump links verifications by uarlouski · Pull Request #4367 · vividus-framework/vividus · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[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

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

uarlouski
Copy link
Member

No description provided.

@uarlouski uarlouski requested a review from a team as a code owner September 26, 2023 14:28
@github-actions
Copy link
github-actions bot commented Sep 26, 2023

Qodana Community for JVM

It 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
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at qodana-support@jetbrains.com

@uarlouski uarlouski force-pushed the feature/add-jump-links-verification branch from eed23b1 to 73a6c19 Compare September 26, 2023 14:50
@codecov
Copy link
codecov bot commented Sep 26, 2023

Codecov Report

Merging #4367 (17b3852) into master (cf45eda) will decrease coverage by 0.02%.
Report is 3 commits behind head on master.
The diff coverage is 100.00%.

@@             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     
Files Coverage Δ
.../vividus/steps/integration/ResourceCheckSteps.java 100.00% <100.00%> (ø)
...vidus/validator/model/ResourceValidationError.java 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@uarlouski uarlouski marked this pull request as draft September 27, 2023 05:45
@@ -198,7 +216,7 @@ private static String getElementUri(Element element)
String href = element.attr(HREF_ATTR);
if (!href.isEmpty())
{
if (URL_FRAGMENT.equals(href))
if (href.equals(URL_FRAGMENT) || isJumpLink(href))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
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",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
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");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
"Jump link by selector %s points to unexistent element with %s id");
"Jump link by selector %s points to missing element with %s id");

@uarlouski uarlouski force-pushed the feature/add-jump-links-verification branch from 73a6c19 to 3b8f968 Compare September 27, 2023 08:58
@uarlouski uarlouski requested a review from valfirst September 27, 2023 09:18
@uarlouski uarlouski marked this pull request as ready for review September 27, 2023 09:18
@uarlouski uarlouski force-pushed the feature/add-jump-links-verification branch from 3b8f968 to 17b3852 Compare September 27, 2023 09:21
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

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

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@valfirst valfirst merged commit 2bd35a5 into master Sep 27, 2023
@valfirst valfirst deleted the feature/add-jump-links-verification branch September 27, 2023 12:41
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
0