How to add rule to checkstyle config

44 views
Skip to first unread message

Dawid Bielecki

unread,
Sep 14, 2023, 10:56:10 PM9/14/23
to checkstyle
How to add a rule to CheckStyle config file (IntelliJ IDEA plugin) to suppress all MagicNumber warnings?

I don't wanna suppress this warning in Java code.

Roman Ivanov

unread,
Nov 12, 2023, 8:07:28 PM11/12/23
to Dawid Bielecki, checkstyle
You can add filter to your config and keep all your suppressions in separate files.


We use suppression model outside of main code heavily, you can find a lot of examples here.

Docs for different filters https://checkstyle.org/filters/index.html

On Thu, Sep 14, 2023, 19:56 Dawid Bielecki <dawci...@gmail.com> wrote:
How to add a rule to CheckStyle config file (IntelliJ IDEA plugin) to suppress all MagicNumber warnings?

I don't wanna suppress this warning in Java code.

--
You received this message because you are subscribed to the Google Groups "checkstyle" group.
To unsubscribe from this group and stop receiving emails from it, send an email to checkstyle+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/checkstyle/6f9cc730-f9ce-450e-b11d-3a99418d81b2n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages