Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#533 Allow check violations when overriding methods

open
nobody
Check (274)
5
2012-10-10
2010-02-16
Paul Holser
No

This is related to 2792291.

The idea is this: If I'm writing a method, and I'm overriding (superclass) or implementing (interface) a method from a class that is not subject to the Checkstyle check being performed (e.g. the superclass/interface is in a jar file), then that method should be exempt from checks that would normally apply. For example:

-- If I'm overriding a method that advertises an exception mentioned in IllegalThrows
-- If I'm overriding a method that accepts more parameters than are allowed by ParameterNumber
-- If I'm overriding a method whose name would violate a naming convention

I shouldn't have to suppress Checkstyle checks in these cases. There are likely others.

Discussion