
org.sonar.l10n.java.rules.squid.S00118.html Maven / Gradle / Ivy
Sharing some naming conventions is a key point to make it possible for a team to efficiently collaborate.
This rule allows to check that all abstract class names match a provided regular expression and non-abstract classes not match.
The following code snippet illustrates this rule when the regular expression value is "^Abstract[A-Z][a-zA-Z0-9]*$":
abstract class MyClass { // Non-Compliant
}
class AbstractLikeClass { // Non-Compliant
}
abstract class AbstractClass { // Compliant
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy