checkstyle插件忽略//@@formatterblocks

问题描述 投票:0回答:1
I使用CheckStyle插件与3.6.0版和Chekcstyle版本9.3使用。我正在尝试实现一种忽略以//@formatter开头的块中的线长度的方法:OFF:OFF并以//@formatter:on结束。我尝试了许多抑制和言论,但似乎没有任何作用。你有一些想法吗?

suppressionxpathfilter-不工作原因线元素不在树沃克(Walker)之外 抑制作用 - 与上述相同

@SuppressWarnings("checkstyle:LineLegth") - not an option

	
java plugins checkstyle maven-checkstyle-plugin
1个回答
0
投票
与线节检查器模块一起使用。

根据您的需要(例如offCommentFormat

onCommentFormat

设置
"//@formatter:off"
"//@formatter:on"
属性
    

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.