liangyepianzhou commented on code in PR #2: URL: https://github.com/apache/pulsar-java-contrib/pull/2#discussion_r1725312458
########## src/main/resources/suppressions.xml: ########## @@ -0,0 +1,82 @@ +<?xml version="1.0"?> +<!-- + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +--> +<!DOCTYPE suppressions PUBLIC + "-//Puppy Crawl//DTD Suppressions 1.1//EN" + "http://www.puppycrawl.com/dtds/suppressions_1_1.dtd"> + +<suppressions> + <suppress checks="JavadocPackage" files=".*[\\/]src[\\/]test[\\/].*"/> + <suppress checks="JavadocPackage" files=".*[\\/]maven-archetypes[\\/].*"/> + <suppress checks="JavadocPackage" files=".*[\\/]examples[\\/].*"/> + + <!-- suppress javadoc check for impl classes and package-info.java --> + <suppress checks="JavadocType" files=".*Impl\.java$" /> + <suppress checks="JavadocStyle" files=".+[\\/]package-info\.java$" /> + + <!-- suppress all checks in the generated directories --> + <suppress checks=".*" files=".+[\\/]generated[\\/].+\.java"/> + <suppress checks=".*" files=".+[\\/]generated-sources[\\/].+\.java"/> + <suppress checks=".*" files=".+[\\/]generated-test-sources[\\/].+\.java"/> + + <!-- suppress most all checks expect below--> + <suppress checks="^(?!.*(UnusedImports|IllegalImport)).*$" files=".*[\\/]src[\\/]test[\\/].*"/> + + <suppress checks="IllegalImport" files="ProxyServiceStarter.java"/> + + <!-- suppress all checks in the copied code --> + <suppress checks=".*" files=".+[\\/]com[\\/]scurrilous[\\/]circe[\\/].+\.java"/> + + <suppress checks=".*" files="MLDataFormats.java"/> + <suppress checks=".*" files="BitSetRecyclable.java"/> + <!-- pulsar io --> + <suppress checks="RegexpSinglelineJava" files="KafkaConnectData.java"/> + <suppress checks="LineLength" files="KafkaConnectData.java"/> + <suppress checks="RegexpSinglelineJava" files="KafkaConnectSink.java"/> + <!-- pulsar io es --> + <suppress checks="LineLength" files="ElasticSearchConfig.java"/> + <suppress checks="LineLength" files="ElasticSearchClient.java"/> + <!-- pulsar io flume --> + <suppress checks="RegexpSingleline" files="Application.java"/> + <suppress checks="RegexpSinglelineJava" files="AbstractConfigurationProvider.java"/> + <suppress checks="RegexpSinglelineJava" files="AbstractZooKeeperConfigurationProvider.java"/> + <suppress checks="RegexpSinglelineJava" files="PollingPropertiesFileConfigurationProvider.java"/> + <suppress checks="RegexpSinglelineJava" files="EnvVarResolverProperties.java"/> + <!-- pulsar io hbase --> + <suppress checks="RegexpSinglelineJava" files="HbaseAbstractSink.java"/> + <suppress checks="RegexpSinglelineJava" files="HbaseAbstractConfig.java"/> + <suppress checks="RegexpSinglelineJava" files="HbaseSinkConfig.java"/> + <!-- pulsar io kafka --> + <suppress checks="FallThrough" files="KafkaConnectData.java"/> + <!-- pulsar io influxdb --> + <suppress checks="RegexpSinglelineJava" files="InfluxDBSinkConfig.java"/> + <!-- pulsar io kinesis --> + <suppress checks="LineLength" files="KinesisSinkConfig.java"/> + <suppress checks="LineLength" files="KinesisSink.java"/> + <suppress checks=".*" files=".+[\\/]org[\\/]apache[\\/]pulsar[\\/]io[\\/]kinesis[\\/]fbs[\\/].+.java"/> + <!-- pulsar io mongo --> + <suppress checks="RegexpSinglelineJava" files="MongoSink.java"/> + <suppress checks="RegexpSinglelineJava" files="MongoConfig.java"/> + <!-- pulsar io rabbitmq --> + <suppress checks="RegexpSinglelineJava" files="RabbitMQAbstractConfig.java"/> Review Comment: The suppressions.xml file is used to specify the check style configuration for the repository[0], and it is consistent with the content in Pulsar[1]. [0]https://github.com/apache/pulsar-java-contrib/pull/2/files#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8R162 [1]https://github.com/apache/pulsar/blob/66e1a06b247cd032872e5ab454ff8c8c6cd98550/pom.xml#L2170 ########## pom.xml: ########## Review Comment: The `suppressions.xml` file is used to specify the check style configuration for the repository[0], and it is consistent with the content in Pulsar[1]. [0]https://github.com/apache/pulsar-java-contrib/pull/2/files#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8R162 [1]https://github.com/apache/pulsar/blob/66e1a06b247cd032872e5ab454ff8c8c6cd98550/pom.xml#L2170 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
