Skip to content

Make ForbiddenMethodCall to support property getters/setters and method references#5078

Merged
BraisGabin merged 3 commits into
detekt:mainfrom
pinguinjkeke:forbidden-method-call-getter-setter
Jul 18, 2022
Merged

Make ForbiddenMethodCall to support property getters/setters and method references#5078
BraisGabin merged 3 commits into
detekt:mainfrom
pinguinjkeke:forbidden-method-call-getter-setter

Conversation

@pinguinjkeke

Copy link
Copy Markdown
Contributor

Closes #5015

@codecov

codecov Bot commented Jul 15, 2022

Copy link
Copy Markdown

Codecov Report

Merging #5078 (8654a96) into main (6bce28f) will increase coverage by 0.01%.
The diff coverage is 90.90%.

❗ Current head 8654a96 differs from pull request most recent head 501b516. Consider uploading reports for the commit 501b516 to get more accurate results

@@             Coverage Diff              @@
##               main    #5078      +/-   ##
============================================
+ Coverage     84.87%   84.88%   +0.01%     
- Complexity     3575     3581       +6     
============================================
  Files           500      500              
  Lines         11785    11795      +10     
  Branches       2197     2199       +2     
============================================
+ Hits          10002    10012      +10     
+ Misses          692      691       -1     
- Partials       1091     1092       +1     
Impacted Files Coverage Δ
...turbosch/detekt/rules/style/ForbiddenMethodCall.kt 91.11% <90.90%> (+2.53%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6bce28f...501b516. Read the comment docs.

@BraisGabin BraisGabin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@BraisGabin

Copy link
Copy Markdown
Member

You have code snippets that doesn't compile. More info about this here #4874

@BraisGabin BraisGabin added this to the 1.22.0 milestone Jul 18, 2022
@BraisGabin BraisGabin merged commit 2ac718f into detekt:main Jul 18, 2022
VitalyVPinchuk pushed a commit to VitalyVPinchuk/detekt that referenced this pull request Jul 25, 2022
…od references (detekt#5078)

* Make ForbiddenMethodCall to handle getters and setters.

* Make ForbiddenMethodCall to support callable references.

* Fix test snippets.

Co-authored-by: Alexander Avakov <alexander.avakov@nordigy.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ForbiddenMethodCall with Kotlin getters as property

2 participants