Hi,
is there another way to use the checkstyle.xml with IntelliJ IDEA that is different from the official documentation [1]? I imported flink source code and I developed my own function on the code. After that, I run the check style feature on Intellij IDEA 2019 and it points a lot of errors regarding the checkstyle on the original code. In my code, for instance, I even cannot use "import com.google.common.base.Strings;" and I don't have a clue how to import it correctly. [1] https://ci.apache.org/projects/flink/flink-docs-stable/flinkDev/ide_setup.html#checkstyle-for-java Thanks, Felipe *--* *-- Felipe Gutierrez* *-- skype: felipe.o.gutierrez* *--* *https://felipeogutierrez.blogspot.com <https://felipeogutierrez.blogspot.com>* |
Hi Felipe,
Flink's checkstyle prohibits the direct usage of Guava. Please import the shaded Guava version `import org.apache.flink.shaded.guava18.com.google.common.base.Strings;`. Cheers, Till On Wed, Sep 25, 2019 at 9:31 AM Felipe Gutierrez < [hidden email]> wrote: > Hi, > > is there another way to use the checkstyle.xml with IntelliJ IDEA that is > different from the official documentation [1]? > > I imported flink source code and I developed my own function on the code. > After that, I run the check style feature on Intellij IDEA 2019 and it > points a lot of errors regarding the checkstyle on the original code. > > In my code, for instance, I even cannot use "import > com.google.common.base.Strings;" and I don't have a clue how to import it > correctly. > > [1] > > https://ci.apache.org/projects/flink/flink-docs-stable/flinkDev/ide_setup.html#checkstyle-for-java > > Thanks, > Felipe > > *--* > *-- Felipe Gutierrez* > > *-- skype: felipe.o.gutierrez* > *--* *https://felipeogutierrez.blogspot.com > <https://felipeogutierrez.blogspot.com>* > |
Hi Felipe,
If you must use guava directly, you can modify the config of /tools/maven/suppressions.xml like the Cassandra connectors’s config. As for checkStyle plugin not worked well your dev-environment, you should solve the errors line by line according to the error msg . Hope it helps you~ Best, Terry Wang > 在 2019年9月25日,下午4:00,Till Rohrmann <[hidden email]> 写道: > > Hi Felipe, > > Flink's checkstyle prohibits the direct usage of Guava. Please import the > shaded Guava version `import > org.apache.flink.shaded.guava18.com.google.common.base.Strings;`. > > Cheers, > Till > > On Wed, Sep 25, 2019 at 9:31 AM Felipe Gutierrez < > [hidden email]> wrote: > >> Hi, >> >> is there another way to use the checkstyle.xml with IntelliJ IDEA that is >> different from the official documentation [1]? >> >> I imported flink source code and I developed my own function on the code. >> After that, I run the check style feature on Intellij IDEA 2019 and it >> points a lot of errors regarding the checkstyle on the original code. >> >> In my code, for instance, I even cannot use "import >> com.google.common.base.Strings;" and I don't have a clue how to import it >> correctly. >> >> [1] >> >> https://ci.apache.org/projects/flink/flink-docs-stable/flinkDev/ide_setup.html#checkstyle-for-java >> >> Thanks, >> Felipe >> >> *--* >> *-- Felipe Gutierrez* >> >> *-- skype: felipe.o.gutierrez* >> *--* *https://felipeogutierrez.blogspot.com >> <https://felipeogutierrez.blogspot.com>* >> |
Free forum by Nabble | Edit this page |