java checkstyle rules debugging [closed]

17 hours ago 1
ARTICLE AD BOX

How do I validate this java checkstyle rule. I am trying to match a copyright footer but couldn't. How do I rewite this rule?

<module name="RegexpMultiline"> <property name="id" value="footerCopyright"/> <property name="format" value="(?s)\s*/\*\s*Copyright \(c\) company name \s+\d{4}\s+ALL RIGHTS RESERVED\s*\*/\r?\n?\s*\z"/> <property name="message" value="File must end with exact copyright footer."/> <property name="fileExtensions" value="java"/> <property name="minimum" value="1"/> </module>

Mark Rotteveel's user avatar

Mark Rotteveel

110k242 gold badges161 silver badges234 bronze badges

shridhar jm's user avatar

New contributor

shridhar jm is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

2

Welcome to Stack Overflow! What do you mean by "validate"? Can you please edit your question to explain precisely what you're looking for?

2026-02-06 06:02:04 +00:00

Commented 58 mins ago

While you are editing your question, please provide examples of copyright footers you like to match.

2026-02-06 06:29:06 +00:00

Commented 31 mins ago

Read Entire Article