-
-
Notifications
You must be signed in to change notification settings - Fork 794
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
Use list config for FunctionOnlyReturningConstant>excludedFunctions
#5120
Use list config for FunctionOnlyReturningConstant>excludedFunctions
#5120
Conversation
9206311
to
f997f62
Compare
Codecov Report
@@ Coverage Diff @@
## main #5120 +/- ##
============================================
- Coverage 84.97% 84.96% -0.01%
Complexity 3638 3638
============================================
Files 502 502
Lines 11971 11972 +1
Branches 2258 2259 +1
============================================
Hits 10172 10172
Misses 689 689
- Partials 1110 1111 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
f997f62
to
21ea124
Compare
val code = "fun f() = 1" | ||
val config = TestConfig(mapOf(EXCLUDED_FUNCTIONS to listOf("f"))) |
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.
Should this be something utilizing wildcards?
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 added a new test for that.
...yle/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/style/FunctionOnlyReturningConstant.kt
Outdated
Show resolved
Hide resolved
21ea124
to
c8830e0
Compare
…/rules/style/FunctionOnlyReturningConstant.kt Co-authored-by: marschwar <marschwar@users.noreply.github.com>
I won't mention this in the notable changes as the list is getting quite long. Should I add a paragraph in the migration section of the changelog? |
Follow up for @arturbosch here: it seems we need this info in the changelog then 😁 |
No description provided.