-
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
Wrapper in kts file #735
Wrapper in kts file #735
Conversation
### What's done: Created new rule, added tests
### What's done: Fixed according our checkers
Codecov Report
@@ Coverage Diff @@
## master #735 +/- ##
============================================
- Coverage 81.30% 81.28% -0.02%
- Complexity 2133 2148 +15
============================================
Files 96 97 +1
Lines 5510 5542 +32
Branches 1700 1706 +6
============================================
+ Hits 4480 4505 +25
- Misses 265 271 +6
- Partials 765 766 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
Also need to add this rule to TOC
# Conflicts: # diktat-analysis.yml # diktat-rules/src/main/kotlin/generated/WarningNames.kt # diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/constants/Warnings.kt # diktat-rules/src/main/resources/diktat-analysis-huawei.yml # diktat-rules/src/main/resources/diktat-analysis.yml # info/available-rules.md
### What's done: Fixed according our code style
### What's done: Fixed according our code style
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter6/RunInScript.kt
Outdated
Show resolved
Hide resolved
### What's done: Fixed after review
### What's done: Fixed according to our code style
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.
I think we should reconsider this rule text. We can add a condition for *.gradle.kts
files and jsut *.kts
files: gradle files should have more things allowed on top level. Please try your rule on build.gradle.kts
files we have available (in diktat-gradle-plugin, in docs, probably from other our projects) to see if they yield sane results.
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter6/RunInScript.kt
Show resolved
Hide resolved
diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter6/RunInScriptWarnTest.kt
Show resolved
Hide resolved
### What's done: Added new logic to gradle plugin
diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter6/RunInScript.kt
Outdated
Show resolved
Hide resolved
### What's done: Fixed after review
### What's done: Fixed bug with file path
### What's done: Fixed according to our code style
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.
LGTM, let's try
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.
lgtm
What's done:
Created new rule, added tests
Actions checklist
run
in kotlin scripts #732