以下はチェックスタイルに関する私のコードですが、抑制コメント行の間の監査を抑制していないようです。/* */ の代わりにインラインコメント // も試しました
助けてください。私は多くの方法を試しました-これを修正するための順列/組み合わせ。ありがとうございました。さらに情報が必要な場合はお知らせください。
/* 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 の読み取り:
<module name="FileContentsHolder">
<module name="SuppressionCommentFilter">
<property name="checkFormat" value="IndentationCheck"/>
</module>
</module>
SuppressionCommentFilter をチェッカーの下に移動した後:
<module name="Checker">
<!-- setting the default severity to warning -->
<property name="severity" value="warning" />
<module name="SuppressionCommentFilter">
<property name="checkFormat" value="Indentation"/>
</module>
<!-- No TAB characters in the source code -->
<module name="FileTabCharacter" />
<!-- List of files to ignore . -->
<!-- TODO Add all auto-generated files to this file -->
<module name="SuppressionFilter">
<property name="file" value="checkstyle/kepler-checkstyle-suppressions.xml"/>
</module>
<module name="TreeWalker">
..
..
..