Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FLINK-8126] [build] Fix and update checkstyle #5044

Closed

Conversation

greghogan
Copy link
Contributor

What is the purpose of the change

Update to the latest checkstyle version and fix the errors not previously detected.

Brief change log

  • update checkstyle to version 8.4 from version 6.19
  • in checkstyle.xml move SuppressionCommentFilter under TreeWalker and remove FileContentsHolder (see checkstyle/checkstyle pr4714)
  • correct latent checkstyle errors

Verifying this change

This change is a trivial rework / code cleanup without any test coverage.

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): (yes / no)
  • The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
  • The serializers: (yes / no / don't know)
  • The runtime per-record code paths (performance sensitive): (yes / no / don't know)
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (yes / no / don't know)
  • The S3 file system connector: (yes / no / don't know)

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

Update to the latest checkstyle version and fix the errors not
previously detected.
@zentol
Copy link
Contributor

zentol commented Nov 21, 2017

+1

@zentol
Copy link
Contributor

zentol commented Nov 22, 2017

merging,

@asfgit asfgit closed this in c6879cd Nov 22, 2017
@StephanEwen
Copy link
Contributor

StephanEwen commented Nov 22, 2017

I am now seeing some problem in IntelliJ with the checkstyle plugin (seems to not be able to parse the checkstyle config).

Anyone else seeing this issue? I am on an older IntelliJ version, so might be that (reluctant to update because switching Scala versions works less well in newer IntelliJ versions).

@zentol
Copy link
Contributor

zentol commented Nov 22, 2017

Which checkstyle version is configured in IntelliJ @StephanEwen ? Could be that we have to upgrade it there as well. IIRC we set recommend setting it to 6.X in the IDE setup guide because of some parsing errors in 8.X, which now may be resolved.

@zentol
Copy link
Contributor

zentol commented Nov 22, 2017

Setting the version in IntelliJ to 8.4 seems to work.

Settings -> Other Settings -> Checkstyle -> Checkstyle version drop-down menu

asfgit pushed a commit that referenced this pull request Nov 27, 2017
Update to the latest checkstyle version and fix the errors not
previously detected.

This closes #5044.
glaksh100 pushed a commit to lyft/flink that referenced this pull request Jun 6, 2018
Update to the latest checkstyle version and fix the errors not
previously detected.

This closes apache#5044.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants