|
19 | 19 |
|
20 | 20 | <!DOCTYPE suppressions PUBLIC |
21 | 21 | "-//Puppy Crawl//DTD Suppressions 1.1//EN" |
22 | | - "http://checkstyle.sourceforge.net/dtds/suppressions_1_1.dtd"> |
| 22 | + "https://checkstyle.sourceforge.net/dtds/suppressions_1_1.dtd"> |
23 | 23 |
|
| 24 | +<!-- |
| 25 | +Use in Helidon: |
| 26 | +This file is used when running the aggregate report (and configuration in modules is ignored in that case). |
| 27 | +This file SHOULD ONLY contain exclusions for whole modules where appropriate. |
| 28 | +Single check exclusions should be handled through @SuppressWarning("checkstyle:....") annotation. |
| 29 | +
|
| 30 | +Only exceptional cases that cannot be handled through annotations may be provided here. |
| 31 | +This is to keep the checkstyle exclusions co-located with the code, so if the code changes, we do not leave an outdated |
| 32 | +record here. |
| 33 | +--> |
24 | 34 | <suppressions> |
25 | | - <!-- to do comment suppression for to do project --> |
26 | | - <suppress checks="TodoComment" |
27 | | - files="examples/todo-app/.*"/> |
28 | | - |
29 | | - <suppress checks="FileLength" |
30 | | - files="config/config/src/main/java/io/helidon/config/Config.java|integrations/cdi/jpa-cdi/src/main/java/io/helidon/integrations/cdi/jpa/JpaExtension\.java|security/providers/oidc-common/src/main/java/io/helidon/security/providers/oidc/common/OidcConfig\.java" |
31 | | - lines="1"/> |
32 | | - |
33 | | - <!-- Java comments with AsciiDoc tag:: and end:: in import section incorrectly flagged |
34 | | - as unacceptable blank lines within a package's imports. --> |
35 | | - <suppress checks="ImportOrder" |
36 | | - files="examples/guides/se-restful-webservice/src/main/java/io/helidon/guides/se/restfulwebservice/Main.java"/> |
37 | | - <suppress checks="ImportOrder" |
38 | | - files="examples/guides/se-restful-webservice/src/main/java/io/helidon/guides/se/restfulwebservice/GreetService.java"/> |
39 | | - <suppress checks="NoWhitespaceBefore|SeparatorWrap" |
40 | | - files="examples/guides/mp-restful-webservice/src/main/java/io/helidon/guides/mp/restfulwebservice/GreetApplication.java"/> |
41 | 35 | <!-- |
42 | | - The following files are work taken over from other projects, |
43 | | - where we want to keep the author tag untouched |
| 36 | + - File exclusions (exceptions) |
| 37 | + - FileLength cannot be excluded using a @SuppressWarnings |
44 | 38 | --> |
45 | | - <!-- Common HTTP project --> |
46 | | - <suppress id="Javadoc.javadocNoAuthor" |
47 | | - files="common/http/Preconditions\.java|common/http/Ascii\.java|common/http/CharMatcher\.java"/> |
48 | | - <!-- Webserver project --> |
49 | | - <suppress id="Javadoc.javadocNoAuthor" |
50 | | - files="webserver/UriComponent\.java"/> |
51 | | - |
52 | | - <!-- Building a Graph involves a lot of instanceof checks and state manipulation. --> |
53 | | - <suppress checks="MethodLength" |
54 | | - files="HelidonReactiveStreamsEngine\.java"/> |
55 | | - |
56 | | - <!-- PKCS#1 private keys - required for OCI Instance Principal Authentication --> |
57 | | - <suppress checks="IllegalImport" |
58 | | - files="DerUtils\.java"/> |
59 | | - |
60 | | - <!-- this is a record style, all parameters are always needed, no benefit of changing to builder --> |
61 | | - <suppress files="webserver/http2/src/main/java/io/helidon/webserver/http2/spi/Http2SubProtocolSelector.java" |
62 | | - checks="ParameterNumber"/> |
63 | | - |
64 | | - <!-- this is a record style, all parameters are always needed, no benefit of changing to builder --> |
65 | | - <suppress files="webserver/webserver/src/main/java/io/helidon/webserver/ConnectionContext.java" |
66 | | - checks="ParameterNumber"/> |
67 | | - |
68 | | - <!-- this is a record style, all parameters are always needed, no benefit of changing to builder --> |
69 | | - <suppress files="webserver/webserver/src/main/java/io/helidon/webserver/http1/Http1ServerRequest.java" |
70 | | - checks="ParameterNumber"/> |
71 | | - |
72 | 39 | <!-- the huffman constants are long, but this is not actual code, just a set of constants --> |
73 | | - <suppress files="http/http2/src/main/java/io/helidon/http/http2/Http2HuffmanConstants.java" |
| 40 | + <suppress files="http/http2/src/main/java/io/helidon/http/http2/Http2HuffmanConstants\.java" |
74 | 41 | checks="FileLength"/> |
75 | 42 |
|
76 | | - <suppress files="webserver/benchmark/" |
77 | | - checks=".*"/> |
78 | | - |
79 | | - <!-- builder brings no benefit, all parameters always needed --> |
80 | | - <suppress files="webserver/http2/webserver/src/main/java/io/helidon/webserver/http2/spi/Http2SubProtocolProvider.java" |
81 | | - checks="ParameterNumber"/> |
82 | | - |
83 | | - <!-- builder brings no benefit, all parameters always needed, and a private method --> |
84 | | - <suppress files="src/main/java/io/helidon/metrics/serviceapi/PrometheusFormat.java" |
85 | | - checks="ParameterNumber"/> |
| 43 | + <suppress files="integrations/cdi/jpa-cdi/src/main/java/io/helidon/integrations/cdi/jpa/JpaExtension\.java" |
| 44 | + checks="FileLength"/> |
86 | 45 |
|
87 | | - <!-- builder brings no benefit, all parameters always needed, and a private method --> |
88 | | - <suppress files="microprofile/lra/jax-rs/src/main/java/io/helidon/microprofile/lra/NonJaxRsResource.java" |
89 | | - checks="ParameterNumber"/> |
| 46 | + <!-- |
| 47 | + - Module exclusions |
| 48 | + --> |
90 | 49 |
|
91 | | - <!-- builder exclusions --> |
92 | | - <suppress files="builder/tests/builder/src/main/java/io/helidon/builder/test/testsubjects/.*" |
| 50 | + <!-- JMH benchmark is not required to follow code style --> |
| 51 | + <suppress files="webserver/benchmark/" |
93 | 52 | checks=".*"/> |
94 | 53 |
|
95 | | - <!-- interfaces implemented by generated code, ensuring methods don't interfere with the interlaced methods from the user --> |
96 | | - <suppress files="builder/builder-config/src/main/java/io/helidon/builder/config/spi/GeneratedConfig.*.java" |
97 | | - checks="MethodName"/> |
98 | | - <suppress files="builder/builder-config/src/main/java/io/helidon/builder/config/spi/ConfigProvider.java" |
99 | | - checks="MethodName"/> |
100 | | - |
101 | 54 | <!-- injection tests need to violate to check different user scenarios --> |
102 | 55 | <suppress files="builder/tests/" |
103 | 56 | checks=".*"/> |
|
0 commit comments