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

configure codeStyles for intellij import #2015

Merged
merged 3 commits into from
Dec 10, 2021

Conversation

carterkozak
Copy link
Contributor

Based in part upon #1231 (Thanks @dansanduleac!)

Before this PR

Import .ipr, then migrate to gradle integration

After this PR

==COMMIT_MSG==
It's no longer necessary to import an ipr before using gradle integration, code styles are imported correctly out of the box.
==COMMIT_MSG==

Possible downsides?

Maybe I messed up?

@changelog-app
Copy link

changelog-app bot commented Dec 9, 2021

Generate changelog in changelog/@unreleased

Type

  • Feature
  • Improvement
  • Fix
  • Break
  • Deprecation
  • Manual task
  • Migration

Description

It's no longer necessary to import an ipr before using gradle integration, code styles are imported correctly out of the box.

Check the box to generate changelog(s)

  • Generate changelog entry

@policy-bot policy-bot bot requested a review from tpetracca December 9, 2021 17:59
Comment on lines -179 to -182
// Just add the default configuration nodes on top of whatever nodes already exist
// We could be better about this, but IDEA will mostly resolve the duplicates here for us
ideaStyleSettings.value.option.forEach {
codeScheme.append(it)
Copy link
Contributor Author

@carterkozak carterkozak Dec 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Turns out Project.xml used to grow indefinitely over time....

// We could be better about this, but IDEA will mostly resolve the duplicates here for us
ideaStyleSettings.value.option.forEach {
codeScheme.append(it)
codeScheme.attributes().putIfAbsent("version", 173)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to keep this version updated going forwards?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not entirely sure, but the property names may not work correctly on other versions

Copy link
Contributor

@fawind fawind left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's test it out!

@bulldozer-bot bulldozer-bot bot merged commit 382f478 into develop Dec 10, 2021
@bulldozer-bot bulldozer-bot bot deleted the ckozak/idea_integration branch December 10, 2021 12:28
@svc-autorelease
Copy link
Collaborator

Released 4.52.0

bulldozer-bot bot pushed a commit to palantir/witchcraft-api that referenced this pull request Dec 10, 2021
###### _excavator_ is a bot for automating changes across repositories.

Changes produced by the roomba/latest-baseline-oss check.

# Release Notes
## 4.51.0
| Type | Description | Link |
| ---- | ----------- | ---- |
| Fix | Idea integration results in correct copyright xml files without duplicate entries | palantir/gradle-baseline#2016 |


## 4.52.0
| Type | Description | Link |
| ---- | ----------- | ---- |
| Improvement | It's no longer necessary to import an ipr before using gradle integration, code styles are imported correctly out of the box. | palantir/gradle-baseline#2015 |



To enable or disable this check, please contact the maintainers of Excavator.
This was referenced Dec 10, 2021
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