com.puppycrawl.tools.checkstyle.checks
public class RequiredRegexpCheck extends AbstractFormatCheck
A check that makes sure that a specified pattern exists in the code.
An example of how to configure the check to make sure a copyright statement is included in the file (but without requirements on where in the file it should be):
<module name="RequiredRegexp"> <property name="format" value="This code is copyrighted"/> </module>
Constructor Summary | |
---|---|
RequiredRegexpCheck()
Instantiates an new GenericIllegalRegexpCheck. |
Method Summary | |
---|---|
void | beginTree(DetailAST aRootAST) {@inheritDoc} |
int[] | getDefaultTokens() {@inheritDoc} |