-
-
Notifications
You must be signed in to change notification settings - Fork 797
Add new rule: LibraryEntitiesCannotBePublic #2959
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
Conversation
...src/test/kotlin/io/gitlab/arturbosch/detekt/rules/style/LibraryEntitiesCannotBePublicTest.kt
Outdated
Show resolved
Hide resolved
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.
Thanks for the contribution.
What is your opinion on extending this rule for top level functions?
...yle/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/style/LibraryEntitiesCannotBePublic.kt
Outdated
Show resolved
Hide resolved
...yle/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/style/LibraryEntitiesCannotBePublic.kt
Outdated
Show resolved
Hide resolved
...yle/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/style/LibraryEntitiesCannotBePublic.kt
Outdated
Show resolved
Hide resolved
We don't use top level function in our case. But I think it great idea for detekt. Do you want to see this in the current PR? |
Sure, should be just a small change :), thanks! |
Codecov Report
@@ Coverage Diff @@
## master #2959 +/- ##
============================================
+ Coverage 80.24% 80.25% +0.01%
- Complexity 2455 2465 +10
============================================
Files 422 423 +1
Lines 7420 7440 +20
Branches 1357 1358 +1
============================================
+ Hits 5954 5971 +17
- Misses 762 763 +1
- Partials 704 706 +2
Continue to review full report at Codecov.
|
@arturbosch I added check for top level function. All checks are green now. I recommend to use squash for merge the PR. |
Thanks! We squash every PR :). |
Close issue #2943