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~
B
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 <
felipe.o.gutier...@gmail.com> wrote:
> Hi,
>
> is t
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 rega
Hi. IntelliJ IDEA can reformat only changed code.
In Reformat File dialog (you can open this by pressing Alt + Cmd + L in OS X),
you can choose scope to reformat style.
After the scope is changed, you can reformat only changed code without opening
the dialog.
Following links will be helpful.
ht
On side comment:
Eclipse allows to auto format on save and apply the formating rules to
changed lines only. Using this feature, it is possible to be style
compatible without reformatting unchanged code. Having a format.xml for
Eclipse, would help a lot to get a unique code style. The change would
But then we should also provide a code style profile for Eclipse and have
to keep them in sync.
On Tue, Jun 9, 2015 at 12:33 PM Aljoscha Krettek
wrote:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> This is the contents of Flink.xml in ~/Libra
This is the contents of Flink.xml in ~/Library/Preferences/IdeaIC14/
codestyles which is the folder for codestyles on OS X. It is pretty much
the standard IntelliJ code style except that I changed it not to align in
parameter lists. S
Hi Aljoscha,
Yes, I get the style errors in my IDE (although I set the level to
warning rather than error). I try to pay close attention to writing my
code without checkstyle errors but I simply cannot resist pressing
auto format shortkey every now and then. That way all my effort into
writing pro
By the way, do you have the Flink checkstyle and scalastyle profiles
set in IntelliJ? This way you at least get red errors directly in the
IDE. For checkstyle there is Checkstyle-IDEA and for scalastyle you
can put the scalastyle config of Flink into the .idea directory to
have it recognised:
cp t
Hi Pieter-Jan,
It would be great to have a plugin for IntelliJ/Eclipse to make new code
stylecheck-compliant. However, as Till mentioned, the problem is that most
such plugins touch more lines than necessary. We try to only commit changes
to the Git repository which are related to the feature/pull
Hi Till,
If I recall correctly, there is a possibility to import checkstyle
XML's into Eclipse so that the auto format feature would result in
style compliant code. This imported Eclipse config could then be
exported and reimported into IntelliJ but you can imagine that is not
a reason for me to i
Hi Pieter-Jan,
I'm not aware of an Eclipse or IntellJ auto format profile. I think that
all Flink contributors apply their style changes manually. The maven output
should tell you quite precisely what's wrong and in which file the
checkstyle errors occur. Moreover, applying an IDE auto format is i
Hi Flink Community,
I would like to contribute to the code base of Flink but I find myself
unable to built my changed project due to errors in my "code style".
My IDE of choice is IntelliJ and unfortunately, I can not import
"tools/maven/checkstyle.xml" nor "tools/maven/scalastyle-config.xml".
>F
13 matches
Mail list logo