Below is my code around the validation style - but it doesn't seem to suppress audits between lines of suppression comments. I also tried with inline comment // instead of / * * /
Please, help. I tried many ways - permutations / combinations of those who fixed it. Thanks. Please let me know if you need more information.
/* CHECKSTYLE:OFF */ private abc createTimerChart(String title, String yAxisLabel, XYDataset dataset) { final abc chart = ChartFactory.createXYLineChart(title, // chart title "Time Elapsed (" + pollUnit.toString() + ")", // x axis label yAxisLabel, // y axis label dataset, // data PlotOrientation.VERTICAL, true, // include legend true, // tooltips false // urls ); /* CHECKSTYLE:ON */
CONFIG.XML reads:
<module name="FileContentsHolder"> <module name="SuppressionCommentFilter"> <property name="checkFormat" value="IndentationCheck"/> </module> </module>
AFTER MOVING SuppressionCommentFilter UNDER CHECKER:
<module name="Checker"> <property name="severity" value="warning" /> <module name="SuppressionCommentFilter"> <property name="checkFormat" value="Indentation"/> </module> <module name="FileTabCharacter" /> <module name="SuppressionFilter"> <property name="file" value="checkstyle/kepler-checkstyle-suppressions.xml"/> </module> <module name="TreeWalker"> .. .. ..
source share