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

baseline-idea: Gradle IntelliJ integration results in infinite growth of .idea/checkstyle.xml file #2323

Open
iamdanfox opened this issue Jul 14, 2022 · 0 comments

Comments

@iamdanfox
Copy link
Contributor

What happened?

I'm trying to improve the IntelliJ integration and I just noticed this weird behaviour. A bulletproof way to reproduce it is:

  1. pick a repo that uses baseline-idea, and temporarily edit the .gitignore file so that git tracks IntelliJ's files:
# IntelliJ
# *.iml
# *.ipr
# *.iws
# .idea/
out/
  1. run git clean -xdf and then commit everything.
  2. Run ./gradlew idea, and import into IntelliJ as normal (using "Import Gradle project)
  3. Hit the Reload All Gradle Projects button as much as you like:

image

If you look at your git diff, you'll see the .idea/checkstyle-idea.xml file is just growing and growing:

image

  <component name="CheckStyle-IDEA">
    <option name="configuration">
      <map>
        <entry key="active-configuration" value="LOCAL_FILE:$PROJECT_DIR$/.baseline/checkstyle/checkstyle.xml:Baseline Checkstyle"/>
        <entry key="checkstyle-version" value="10.3.1"/>
        <entry key="check-nonjava-files" value="false"/>
        <entry key="check-test-classes" value="true"/>
        <entry key="location-0" value="LOCAL_FILE:$PROJECT_DIR$/.baseline/checkstyle/checkstyle.xml:Baseline Checkstyle"/>
        <entry key="suppress-errors" value="false"/>
        <entry key="thirdparty-classpath" value=""/>
        <entry key="property-0.samedir" value="$PROJECT_DIR$/.baseline/checkstyle/"/>
      </map>
    </option>
  </component>

What did you want to happen?

Ideally repeatedly importing a project into intellij wouldn't result in any unbounded growth / minimal modifications. I don't really know if this is causing any problems per-se, just thought it was weird and wanted to write it down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant