chore(deps): update dependency com.github.liancheng:organize-imports to v0.6.0 #100
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
Test plan: CI should pass with updated dependencies. No review required: this is an automated dependency update PR.
Release Notes
liancheng/scalafix-organize-imports (com.github.liancheng:organize-imports)
v0.6.0
Compare Source
v0.5.0
: OrganizeImports v0.5.0Compare Source
This release features better compatibility with IntelliJ Scala plugin 2020.3 and contains breaking changes.
Changes
Breaking changes
groups
option is changed to["*", "re:(javax?|scala)\\."]
to align with IntelliJ Scala plugin 2020.3Features
Add preset styles, including one for IntelliJ IDEA 2020.3 (#154)
Two preset styles are added:
DEFAULT
An opinionated style recommended for new projects. The
OrganizeImports
rule tries its best to ensure correctness in all cases when possible. This default style aligns with this principal. In addition, by settinggroupedImports
toExplode
, this style is also more friendly to version control and less likely to create annoying merge conflicts caused by trivial import changes.INTELLIJ_2020_3
A style that is compatible with the default configuration of IntelliJ Scala plugin 2020.3. It is mostly useful for adding
OrganizeImports
to existing projects developed using the IntelliJ Scala plugin. However, this configuration may introduce subtle correctness issues (so does the default configuration of the IntelliJ Scala plugin). Please see thecoalesceToWildcardImportThreshold
option for more details.Allow customizing blank lines between organized import groups (#142)
The IntelliJ Scala import optimizer not only allows you group imports but also allows you to decide whether a blank line should be inserted between two adjacent import groups. This feature introduces a new configuration option
blankLines
. When it's set toManual
, you may configure blank lines by adding"---"
to thegroups
option. For example, now you can have the following configuration to groupjava
,javax
, andscala
imports together without blank lines:By default,
blankLines
is set toAuto
, which preserves the original behavior, i.e., a blank line is automatically inserted between adjacent import groups.This makes migrating IntelliJ Scala import optimizer configurations of existing projects to
OrganizeImports
easier.Bug fixes
Acknowledgement
Many thanks to the following users and contributors for their valuable feedback and contributions!
Configuration
📅 Schedule: Branch creation - "on the 1st through 7th day of the month" in timezone America/Los_Angeles, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.