A reply from the Listserver asked for a complete sample Java file, and a configuration file demonstrating the problem.
The request for the configuration file … revealed the cause of the problem. In the configuration file, there is an entry for RegexpMultiline. The “format”
is not adequate, and thus falsely reported an error. I made a bad assumption, that this configuration was a built-in check (and a built-in format) provided and initialized by the out-of-the-box Checkstyle configuration.
<propertyname="format"value="\? [^;,]* \?"/>
<propertyname="message"value="Nested inline conditionals are not permitted"/>
In short, this is a problem with our team’s configuration file, and it is not an issue/bug within the CheckStyle plugin.
// Mark Determan
From: Oliver Burn [mailto:[hidden email]]
Sent: Friday, August 16, 2013 5:32 PM To:[hidden email] Subject: Re: [Checkstyle-user] False report of AvoidInlineConditionals?
Can you provide a complete sample Java file and configuration file demonstrating the problem. That would be a great help