-
Notifications
You must be signed in to change notification settings - Fork 39
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
Update ktlint.version from 0.39.0 to 0.43.0 #816
Conversation
0aa17be
to
b1ebfeb
Compare
### What's done: * Updates ktlint.version from 0.39.0 to 0.41.0
b1ebfeb
to
90beb06
Compare
Looking at the tests, it seems that since gradle metadata has seen its first stable release in 5.3, we should increase a minimum required gradle version and increase the version in tests. 5.0, which we have now, is pretty outdated now anyway. |
@@ -27,6 +27,7 @@ import sun.reflect.ReflectionFactory | |||
/** | |||
* A class that wraps kotlin compiler's code parser and converts source code into AST | |||
*/ | |||
@Suppress("EMPTY_BLOCK_STRUCTURE_ERROR") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why? It should be fine with current snapshot
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, the project failed on this error
### What's done: * Updates ktlint.version from 0.39.0 to 0.41.0
4271158
to
5b70a0f
Compare
Codecov Report
@@ Coverage Diff @@
## master #816 +/- ##
============================================
+ Coverage 83.74% 83.75% +0.01%
Complexity 2433 2433
============================================
Files 102 102
Lines 6126 6132 +6
Branches 1820 1820
============================================
+ Hits 5130 5136 +6
Misses 273 273
Partials 723 723
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
bccbe07
to
e5f9fb8
Compare
### What's done: * Updates ktlint.version from 0.39.0 to 0.41.0
e5f9fb8
to
a847269
Compare
8db36b6
to
df40d26
Compare
### What's done: * Updates ktlint.version from 0.39.0 to 0.41.0
df40d26
to
e0ce704
Compare
Now userData["file_path"] in Ktlint contains only file name. This makes full path not available for rules. Some tests also crashed issue pinterest/ktlint#1133 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like we need to think about the move to the newest version of ktlint or some other framework, because diktat cli is working incorectly with ktlint 0.39 (not able to disable standard ruleset)
@Cheshiriks ktlint 0.42.0 is out. Please update this PR, bump version and see, if any of our problems are solved in the new version (IIRC, file patterns should work better now) |
# Conflicts: # diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/generation/Generation.kt # diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter2/kdoc/KdocMethods.kt # pom.xml
### What's done: * Update ktlint version
We should also disable standard rulesetes in our test for CLI execution |
### What's done: * Debug logging * Cleanup
### What's done: * Fix in maven plugin
### What's done: * Use snapshot version * Enable content filtering of gradle repos
### What's done: * Use snapshot version * Enable content filtering of gradle repos
### What's done: * Disable gradle tests with absolute paths on Windows * Add CLI tests with absolute paths
0073239
to
d0e25da
Compare
### What's done: * Disable gradle tests with absolute paths on Windows * Add CLI tests with absolute paths
9211cec
to
b615080
Compare
### What's done: * Disable gradle tests with absolute paths on Windows * Add CLI tests with absolute paths
### What's done: * Revert changes related to snapshot ktlint * Update gradle to 7.2
### What's done: * Align version of kotlin plugin for gradle plugin with embedded kotlin into gradle * Code style
…ure/ktlint-0.41.0
### What's done: * Remove -Werror from diktat-gradle-plugin
### What's done: * Forbid usage of absolute paths in diktat-gradle-plugin
16acb24
to
18860c3
Compare
### What's done: * Forbid usage of absolute paths in diktat-gradle-plugin
# Conflicts: # pom.xml
Codecov Report
@@ Coverage Diff @@
## master #816 +/- ##
============================================
- Coverage 83.41% 83.40% -0.02%
Complexity 2453 2453
============================================
Files 102 102
Lines 6137 6139 +2
Branches 1838 1839 +1
============================================
+ Hits 5119 5120 +1
Misses 274 274
- Partials 744 745 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
### What's done: * Use ktlint fat jar from maven central, because the one at GH releases is broken
### What's done: * Use ktlint fat jar from maven central, because the one at GH releases is broken
What's done:
C:\Users\MYUSER~1\...
that can't be properly resolved in Java) - so forbid absolute path in gradle plugin