René's URL Explorer Experiment


Title: [RulePad] Incorrect violations are produced for a design rule. · Issue #28 · ourcodeinc/ActiveDocumentation-webapp · GitHub

Open Graph Title: [RulePad] Incorrect violations are produced for a design rule. · Issue #28 · ourcodeinc/ActiveDocumentation-webapp

X Title: [RulePad] Incorrect violations are produced for a design rule. · Issue #28 · ourcodeinc/ActiveDocumentation-webapp

Description: RulePad: Code: package io.hexlet.typoreporter.controller; import io.hexlet.typoreporter.domain.typo.TypoEvent; import io.hexlet.typoreporter.service.TypoService; import io.hexlet.typoreporter.service.WorkspaceService; import io.hexlet.ty...

Open Graph Description: RulePad: Code: package io.hexlet.typoreporter.controller; import io.hexlet.typoreporter.domain.typo.TypoEvent; import io.hexlet.typoreporter.service.TypoService; import io.hexlet.typoreporter.servi...

X Description: RulePad: Code: package io.hexlet.typoreporter.controller; import io.hexlet.typoreporter.domain.typo.TypoEvent; import io.hexlet.typoreporter.service.TypoService; import io.hexlet.typoreporter.servi...

Opengraph URL: https://github.com/ourcodeinc/ActiveDocumentation-webapp/issues/28

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[RulePad] Incorrect violations are produced for a design rule.","articleBody":"- RulePad:\r\n![Screenshot 2024-08-28 at 12 29 09 PM](https://github.com/user-attachments/assets/5a6daa84-d6ad-483d-8973-e52720be5a6a)\r\n![Screenshot 2024-08-28 at 12 29 51 PM](https://github.com/user-attachments/assets/92f64f35-6edc-43fa-b768-461bb9aa687e)\r\n\r\n- Code:\r\n```Java\r\npackage io.hexlet.typoreporter.controller;\r\n\r\nimport io.hexlet.typoreporter.domain.typo.TypoEvent;\r\nimport io.hexlet.typoreporter.service.TypoService;\r\nimport io.hexlet.typoreporter.service.WorkspaceService;\r\nimport io.hexlet.typoreporter.handler.exception.TypoNotFoundException;\r\nimport io.hexlet.typoreporter.handler.exception.WorkspaceNotFoundException;\r\nimport lombok.RequiredArgsConstructor;\r\nimport lombok.extern.slf4j.Slf4j;\r\nimport org.springframework.stereotype.Controller;\r\nimport org.springframework.web.bind.annotation.PatchMapping;\r\nimport org.springframework.web.bind.annotation.PathVariable;\r\nimport org.springframework.web.bind.annotation.RequestMapping;\r\nimport org.springframework.web.bind.annotation.RequestParam;\r\n\r\nimport java.util.Optional;\r\n\r\n//TODO add tests\r\n@Slf4j\r\n@Controller\r\n@RequestMapping(\"/typos\")\r\n@RequiredArgsConstructor\r\npublic class TypoController {\r\n\r\n    private final TypoService typoService;\r\n\r\n    private final WorkspaceService workspaceService;\r\n\r\n    @PatchMapping(\"/{id}/status\")\r\n    public String updateTypoStatus(@PathVariable Long id,\r\n                                   @RequestParam Optional\u003cLong\u003e wksId,\r\n                                   @RequestParam Optional\u003cTypoEvent\u003e event,\r\n                                   @RequestParam Optional\u003cString\u003e next) {\r\n        if (wksId.isEmpty() || !workspaceService.existsWorkspaceById(wksId.get())) {\r\n            //TODO send to error page\r\n            final var e = new WorkspaceNotFoundException(wksId.orElse(0L));\r\n            log.error(e.toString(), e);\r\n            return \"redirect:/workspaces\";\r\n        }\r\n        if (event.isEmpty()) {\r\n            //TODO send to error page\r\n            log.error(\"TypoEvent={} must not be null\", event.orElse(null));\r\n            return (\"redirect:/workspace/\") + wksId.get() + next.orElse(\"/typos\");\r\n        }\r\n        final var updatedTypo = typoService.updateTypoStatus(id, event.get());\r\n        if (updatedTypo.isEmpty()) {\r\n            //TODO send to error page\r\n            final var e = new TypoNotFoundException(id);\r\n            log.error(e.getMessage(), e);\r\n        }\r\n        return (\"redirect:/workspace/\") + wksId.get() + next.orElse(\"/typos\");\r\n    }\r\n\r\n}\r\n```\r\n- Authored DesignRule:\r\n```json\r\n[\r\n  {\r\n    \"index\": \"1724830895\",\r\n    \"title\": \"Controller class must have a service field\",\r\n    \"description\": \"Controller class must have service class field to handle business logic processing\",\r\n    \"tags\": [],\r\n    \"checkForFilesFoldersConstraints\": \"INCLUDE\",\r\n    \"checkForFilesFolders\": [\r\n      \"hexlet-correction/src/main/java/io/hexlet/typoreporter/controller\"\r\n    ],\r\n    \"processFilesFolders\": \"WITHIN\",\r\n    \"quantifierXPathQuery\": [\r\n      \"src:unit/src:class\"\r\n    ],\r\n    \"constraintXPathQuery\": [\r\n      \"src:unit/src:class[src:annotation/src:name[text()=\\\"Controller\\\"] and src:specifier[text()=\\\"public\\\"] and src:name[substring(text(),string-length(text())-string-length(\\\"Controller\\\")+1)=\\\"Controller\\\"] and descendant-or-self::src:decl_stmt/src:decl[(src:specifier[text()=\\\"private\\\"] and src:specifier[text()=\\\"final\\\"] and src:name[substring(text(),string-length(text())-string-length(\\\"Service\\\")+1)=\\\"Service\\\"])]]\"\r\n    ],\r\n    \"grammar\": \"class with declaration statement with ( visibility \\\"private\\\" and specifier \\\"final\\\" and name \\\"...Service\\\" ) must have annotation \\\"Controller\\\" and visibility \\\"public\\\" and name \\\"...Controller\\\" and declaration statement with ( visibility \\\"private\\\" and specifier \\\"final\\\" and name \\\"...Service\\\" )\"\r\n  }\r\n]\r\n```","author":{"url":"https://github.com/SaharMehrpour","@type":"Person","name":"SaharMehrpour"},"datePublished":"2024-08-28T16:32:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/28/ActiveDocumentation-webapp/issues/28"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:66637184-e562-929c-728d-8c336bc0d87f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCC76:10664E:E575E:12A110:698E6D45
html-safe-nonce89c87e749b8bccc905f6ba984dd8c277641a5faa8433ff079b600068c379bfc4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzc2OjEwNjY0RTpFNTc1RToxMkExMTA6Njk4RTZENDUiLCJ2aXNpdG9yX2lkIjoiMjA1NjcwNzI2OTcwMjA4NTk1NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac2208f062f6c49eea3c7bee6cf98bf240ef129975116482ddd791b49ec5c456d6
hovercard-subject-tagissue:2492545373
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ourcodeinc/ActiveDocumentation-webapp/28/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9ae6b706781e23e17757e30f83cf0d4dc33a38f80f21adf39d7037579ebf7a4a/ourcodeinc/ActiveDocumentation-webapp/issues/28
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9ae6b706781e23e17757e30f83cf0d4dc33a38f80f21adf39d7037579ebf7a4a/ourcodeinc/ActiveDocumentation-webapp/issues/28
og:image:altRulePad: Code: package io.hexlet.typoreporter.controller; import io.hexlet.typoreporter.domain.typo.TypoEvent; import io.hexlet.typoreporter.service.TypoService; import io.hexlet.typoreporter.servi...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameSaharMehrpour
hostnamegithub.com
expected-hostnamegithub.com
Nonef86603f0b4e9df9a462725324a8c84c98fc50866bdb6ae8ff026fabe56a60c57
turbo-cache-controlno-preview
go-importgithub.com/ourcodeinc/ActiveDocumentation-webapp git https://github.com/ourcodeinc/ActiveDocumentation-webapp.git
octolytics-dimension-user_id174141286
octolytics-dimension-user_loginourcodeinc
octolytics-dimension-repository_id824700748
octolytics-dimension-repository_nwoourcodeinc/ActiveDocumentation-webapp
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id824700748
octolytics-dimension-repository_network_root_nwoourcodeinc/ActiveDocumentation-webapp
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7eb8835f5978c5aa7a64336b39e0774a93a9a196
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/ourcodeinc/ActiveDocumentation-webapp/issues/28#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fourcodeinc%2FActiveDocumentation-webapp%2Fissues%2F28
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fourcodeinc%2FActiveDocumentation-webapp%2Fissues%2F28
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=ourcodeinc%2FActiveDocumentation-webapp
Reloadhttps://patch-diff.githubusercontent.com/ourcodeinc/ActiveDocumentation-webapp/issues/28
Reloadhttps://patch-diff.githubusercontent.com/ourcodeinc/ActiveDocumentation-webapp/issues/28
Reloadhttps://patch-diff.githubusercontent.com/ourcodeinc/ActiveDocumentation-webapp/issues/28
ourcodeinc https://patch-diff.githubusercontent.com/ourcodeinc
ActiveDocumentation-webapphttps://patch-diff.githubusercontent.com/ourcodeinc/ActiveDocumentation-webapp
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fourcodeinc%2FActiveDocumentation-webapp
Fork 8 https://patch-diff.githubusercontent.com/login?return_to=%2Fourcodeinc%2FActiveDocumentation-webapp
Star 2 https://patch-diff.githubusercontent.com/login?return_to=%2Fourcodeinc%2FActiveDocumentation-webapp
Code https://patch-diff.githubusercontent.com/ourcodeinc/ActiveDocumentation-webapp
Issues 15 https://patch-diff.githubusercontent.com/ourcodeinc/ActiveDocumentation-webapp/issues
Pull requests 2 https://patch-diff.githubusercontent.com/ourcodeinc/ActiveDocumentation-webapp/pulls
Actions https://patch-diff.githubusercontent.com/ourcodeinc/ActiveDocumentation-webapp/actions
Projects 0 https://patch-diff.githubusercontent.com/ourcodeinc/ActiveDocumentation-webapp/projects
Wiki https://patch-diff.githubusercontent.com/ourcodeinc/ActiveDocumentation-webapp/wiki
Security 0 https://patch-diff.githubusercontent.com/ourcodeinc/ActiveDocumentation-webapp/security
Insights https://patch-diff.githubusercontent.com/ourcodeinc/ActiveDocumentation-webapp/pulse
Code https://patch-diff.githubusercontent.com/ourcodeinc/ActiveDocumentation-webapp
Issues https://patch-diff.githubusercontent.com/ourcodeinc/ActiveDocumentation-webapp/issues
Pull requests https://patch-diff.githubusercontent.com/ourcodeinc/ActiveDocumentation-webapp/pulls
Actions https://patch-diff.githubusercontent.com/ourcodeinc/ActiveDocumentation-webapp/actions
Projects https://patch-diff.githubusercontent.com/ourcodeinc/ActiveDocumentation-webapp/projects
Wiki https://patch-diff.githubusercontent.com/ourcodeinc/ActiveDocumentation-webapp/wiki
Security https://patch-diff.githubusercontent.com/ourcodeinc/ActiveDocumentation-webapp/security
Insights https://patch-diff.githubusercontent.com/ourcodeinc/ActiveDocumentation-webapp/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/ourcodeinc/ActiveDocumentation-webapp/issues/28
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/ourcodeinc/ActiveDocumentation-webapp/issues/28
[RulePad] Incorrect violations are produced for a design rule.https://patch-diff.githubusercontent.com/ourcodeinc/ActiveDocumentation-webapp/issues/28#top
bugSomething isn't workinghttps://github.com/ourcodeinc/ActiveDocumentation-webapp/issues?q=state%3Aopen%20label%3A%22bug%22
v0.0.2https://github.com/ourcodeinc/ActiveDocumentation-webapp/milestone/1
https://github.com/SaharMehrpour
https://github.com/SaharMehrpour
SaharMehrpourhttps://github.com/SaharMehrpour
on Aug 28, 2024https://github.com/ourcodeinc/ActiveDocumentation-webapp/issues/28#issue-2492545373
https://private-user-images.githubusercontent.com/21271498/362374118-5a6daa84-d6ad-483d-8973-e52720be5a6a.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzA5NDIwNjYsIm5iZiI6MTc3MDk0MTc2NiwicGF0aCI6Ii8yMTI3MTQ5OC8zNjIzNzQxMTgtNWE2ZGFhODQtZDZhZC00ODNkLTg5NzMtZTUyNzIwYmU1YTZhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMjEzVDAwMTYwNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE0MzQ4NGRhZWVlOTlkN2Q3NGY5ZWZmMjhiZmQ4NzhjODRlMTdlMzQ3NTc5YzViNzEwYmMyNDZiOGY4OWJhNTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.HtX_WdIM0AnjlJlrYa7EUk0zUi6ssPpuXQHBMksGdb0
https://private-user-images.githubusercontent.com/21271498/362374244-92f64f35-6edc-43fa-b768-461bb9aa687e.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzA5NDIwNjYsIm5iZiI6MTc3MDk0MTc2NiwicGF0aCI6Ii8yMTI3MTQ5OC8zNjIzNzQyNDQtOTJmNjRmMzUtNmVkYy00M2ZhLWI3NjgtNDYxYmI5YWE2ODdlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMjEzVDAwMTYwNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE4N2U0OGI0MmVmZTg1MTNkYTczZDEwMzIyZTM2NGEzNjFkN2ViZTMxNDc5ZDE4YjFmY2E5ZDk1MDJkOTA2OGMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.cFMnV7LZZXeviWyZNNfM3I8TRAm1qmfWlpnlNFCIHIk
bugSomething isn't workinghttps://github.com/ourcodeinc/ActiveDocumentation-webapp/issues?q=state%3Aopen%20label%3A%22bug%22
v0.0.2No due datehttps://github.com/ourcodeinc/ActiveDocumentation-webapp/milestone/1
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.