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

Export Checkstyle Config To Project #410

Open
opticyclic opened this issue Sep 11, 2018 · 1 comment
Open

Export Checkstyle Config To Project #410

opticyclic opened this issue Sep 11, 2018 · 1 comment
Labels
enhancement Request for new functionality

Comments

@opticyclic
Copy link

I am currently using the Bundled Google Checks and I want to import it into IDEA for formatting (#126) and also be able to run checkstyle from Gradle.

There doesn't seem to be an obvious way to export or save the checkstyle config to a file to do this.

I could just download it manually (https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml) but it would be nicer to have the option built into the plugin.

@tsjensen
Copy link
Contributor

Until we have a button for this, you can either:

  • Download from GitHub (but be sure to add the Checkstyle version number!), e.g.
    https://raw.githubusercontent.com/checkstyle/checkstyle/checkstyle-8.12/src/main/resources/google_checks.xml
  • Copy from the installed Checkstyle-IDEA plugin. Again note the Checkstyle version that you are using and open the corresponding Checkstyle JAR. The google_checks.xml is in its root.
    On Windows, the JAR would be at %HOME%\.IntelliJIdea2018.2\config\plugins\CheckStyle-IDEA\checkstyle\lib\checkstyle-8.12.jar (for version 8.12).

The Checkstyle version is important because the config file syntax changes frequently, options are added and removed etc.

@jshiell jshiell added the enhancement Request for new functionality label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Request for new functionality
Projects
None yet
Development

No branches or pull requests

3 participants