{"id":18562358,"url":"https://github.com/born2snipe/spring-mvc-checkstyle-rules","last_synced_at":"2025-08-03T12:15:41.534Z","repository":{"id":66551685,"uuid":"47796054","full_name":"born2snipe/spring-mvc-checkstyle-rules","owner":"born2snipe","description":"Checkstyle rules specific to Spring MVC","archived":false,"fork":false,"pushed_at":"2015-12-11T03:26:36.000Z","size":24,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-15T17:50:55.376Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/born2snipe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-11T00:44:29.000Z","updated_at":"2015-12-11T00:45:10.000Z","dependencies_parsed_at":"2023-06-19T00:28:56.981Z","dependency_job_id":null,"html_url":"https://github.com/born2snipe/spring-mvc-checkstyle-rules","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/born2snipe/spring-mvc-checkstyle-rules","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/born2snipe%2Fspring-mvc-checkstyle-rules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/born2snipe%2Fspring-mvc-checkstyle-rules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/born2snipe%2Fspring-mvc-checkstyle-rules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/born2snipe%2Fspring-mvc-checkstyle-rules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/born2snipe","download_url":"https://codeload.github.com/born2snipe/spring-mvc-checkstyle-rules/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/born2snipe%2Fspring-mvc-checkstyle-rules/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268543809,"owners_count":24267138,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-03T02:00:12.545Z","response_time":2577,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T22:09:23.629Z","updated_at":"2025-08-03T12:15:41.465Z","avatar_url":"https://github.com/born2snipe.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring MVC Checkstyle Rules\n\n## Rules Available\n- `AlwaysRequireRequestParamWithAValueCheck` : this enforces when you define a `@RequestParam` annotation on a controller method you MUST provide a non-blank value/name \n- `AlwaysRequirePathVariablesWithAValueCheck` : this enforces when you define a `@PathVariable` annotation on a controller method you MUST provide a non-blank value\n\n**Note: all the above rules provide a property `additionalMessageOnViolation` that will allow you to provide a message that gives a better reason of why YOU require this rule and the said message will be displayed when the rule fails.**\n\n## FAQ\n- **How do I use these custom rules in my checkstyle configuration file?**\n    - See one of the configuration files [here][1]\n\n\n- **How do I integrate these custom rules into maven?**\n\n```\n\u003cproject\u003e\n   \u003cbuild\u003e\n     \u003cplugins\u003e\n       \u003cplugin\u003e\n         \u003cgroupId\u003eorg.apache.maven.plugins\u003c/groupId\u003e\n         \u003cartifactId\u003emaven-checkstyle-plugin\u003c/artifactId\u003e\n         \u003cversion\u003e2.17\u003c/version\u003e\n         \u003cdependencies\u003e\n           \u003cdependency\u003e\n             \u003cgroupId\u003ecom.github.born2snipe\u003c/groupId\u003e\n             \u003cartifactId\u003espring-mvc-checkstyle-rules\u003c/artifactId\u003e\n             \u003cversion\u003e${latest.version}\u003c/version\u003e\n           \u003c/dependency\u003e\n         \u003c/dependencies\u003e\n       \u003c/plugin\u003e\n     \u003c/plugins\u003e\n   \u003c/build\u003e\n \u003c/project\u003e\n```\n\n[1]: https://github.com/born2snipe/spring-mvc-checkstyle-rules/blob/master/src/test/resources/config/spring/mvc\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborn2snipe%2Fspring-mvc-checkstyle-rules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fborn2snipe%2Fspring-mvc-checkstyle-rules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborn2snipe%2Fspring-mvc-checkstyle-rules/lists"}