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

CompactInitializationRule builds incorrect tree #599

Closed
aktsay6 opened this issue Dec 1, 2020 · 0 comments · Fixed by #600
Closed

CompactInitializationRule builds incorrect tree #599

aktsay6 opened this issue Dec 1, 2020 · 0 comments · Fixed by #600
Assignees
Labels
bug Something isn't working

Comments

@aktsay6
Copy link
Collaborator

aktsay6 commented Dec 1, 2020

Describe the bug

fun foo() {
    val diktatExtension = project.extensions.create(DIKTAT_EXTENSION, DiktatExtension::class.java)
    diktatExtension.inputs = project.fileTree("src").apply {
        include("**/*.kt")
    }
    diktatExtension.reporter = PlainReporter(System.out)
}

This rule builds incorrect tree. In FUNCTION_LITERAL there is no WHITE_SPACE after LBRACE

Environment information

  • diktat version: 0.1.4(same for 0.1.5)
@aktsay6 aktsay6 added the bug Something isn't working label Dec 1, 2020
@aktsay6 aktsay6 self-assigned this Dec 1, 2020
aktsay6 added a commit that referenced this issue Dec 1, 2020
### What's done:
  * Fixed bug
aktsay6 added a commit that referenced this issue Dec 7, 2020
# Conflicts:
#	diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/classes/CompactInitialization.kt
aktsay6 added a commit that referenced this issue Dec 7, 2020
### What's done:
  * Fixed bugs
aktsay6 added a commit that referenced this issue Dec 7, 2020
### What's done:
  * Added test to smoke tests
aktsay6 added a commit that referenced this issue Dec 7, 2020
### What's done:
  * Added test to smoke tests
aktsay6 added a commit that referenced this issue Dec 8, 2020
### What's done:
  * Fixed bugs
aktsay6 added a commit that referenced this issue Dec 8, 2020
### What's done:
  * Fixed bugs
aktsay6 added a commit that referenced this issue Dec 8, 2020
### What's done:
  * Fixed bugs
aktsay6 added a commit that referenced this issue Dec 8, 2020
### What's done:
  * Fixed bugs
aktsay6 added a commit that referenced this issue Dec 8, 2020
### What's done:
  * Fixed bugs
aktsay6 added a commit that referenced this issue Dec 8, 2020
### What's done:
  * Fixed bugs
aktsay6 added a commit that referenced this issue Dec 8, 2020
aktsay6 added a commit that referenced this issue Dec 8, 2020
### What's done:
  * Fixed bugs
aktsay6 added a commit that referenced this issue Dec 8, 2020
### What's done:
  * Fixed bugs
aktsay6 added a commit that referenced this issue Dec 8, 2020
### What's done:
  * Fixed bugs
aktsay6 added a commit that referenced this issue Dec 8, 2020
### What's done:
  * Fixed bugs
aktsay6 added a commit that referenced this issue Dec 8, 2020
### What's done:
  * Fixed bugs
aktsay6 added a commit that referenced this issue Dec 8, 2020
* bugfix/compact-incorrect-tree(#599)

### What's done:
  * Fixed bug
  * Added test to smoke tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant