Java Rules
JDK tools and runtime commands. Compile, run, package, and debug Java applications from the command line.
3 rules
Java Code Style Standards
Beginner
Enforce consistent Java code style — Google Java Style guide for formatting, naming conventions for classes, methods, and constants, and package organization standards.
globs: **/*.java, **/pom.xml, **/build.gradle*, **/checkstyle.xml
code-style, naming-conventions, google-style, formatting
View Rule
Spring Boot Project Patterns
Intermediate
Follow standard Spring Boot patterns — constructor injection over field injection, proper layer separation, configuration externalization, and annotation best practices.
globs: **/*.java, **/application*.yml, **/pom.xml, **/build.gradle*
spring-boot, dependency-injection, constructor-injection, layered-architecture
View Rule
Java Testing Standards
Intermediate
Write effective Java tests with JUnit 5 — descriptive test names, AAA pattern, proper mocking with Mockito, test isolation, and meaningful assertions over trivial checks.
globs: **/*Test.java, **/*Tests.java, **/*Spec.java, **/pom.xml
testing, junit5, mockito, unit-tests
View Rule