English 中文(简体)
你们怎么能够只为具体规则制止在法典范围内进行的检查? [复制]
原标题:How can you suppress checkstyle checks within a block of code only for specific rules? [duplicate]
This question already has answers here:
Closed 10 years ago.

Possible Duplicate:
How to disable a particular checkstyle rule for a particular line of code?

转折 部分守则的检查方式是,只有一yn才能抑制具体检查。

而不仅仅是

// CHECKSTYLE:OFF
code
// CHECKSTYLE:ON

你可能拥有这样的东西。

// CHECKSTYLE:OFF:RequireThis,
code
// CHECKSTYLE:ON

如果我们有意对风格作出例外规定,就应当更明确地说明例外情形。

最佳回答
问题回答

暂无回答




相关问题
Checkstyle for C#?

I m looking to find something along the lines of Checkstyle for Visual Studio. I ve recently started a new gig doing .NET work and realized that coding standards here are a bit lacking. While I m ...

Excluding classes in Maven Checkstyle plugin reports

I have a Maven 2 project and I want to configure my Checkstyle report plugin so that only some of my classes are analysed. I have found the maven.checkstyle.excludes property, but despite passing ...

StackOverflowError with Checkstyle 4.4 RegExp check

Hello, Background: I m using Checkstyle 4.4.2 with a RegExp checker module to detect when the file name in out java source headers do not match the file name of the class or interface in which they ...

Should the RequireThis check in Checkstyle be enabled?

One of the built-in Checkstyle checks is RequireThis, which will go off whenever you don t prepend this. to local field or method invocations. For example, public final class ExampleClass { ...

热门标签