saveourtool / diktat

Strict coding standard for Kotlin and a custom set of rules for detecting code smells, code style issues and bugs
https://diktat.saveourtool.com
MIT License
521 stars 39 forks source link

[`WRONG_OVERLOADING_FUNCTION_ARGUMENTS`] False positives matches #1638

Open nulls opened 1 year ago

nulls commented 1 year ago

Describe the bug

WRONG_OVERLOADING_FUNCTION_ARGUMENTS finds a lot of errors, which are false positive:

Expected behavior

Do not mark described cases as error

Observed behavior

Diktat issues

Steps to Reproduce

https://github.com/saveourtool/save-cloud/pull/2003

Environment information

nulls commented 1 year ago

Thanks to @0x6675636b796f75676974687562 it was resolved by updating diktat-analysis.yml:

- name: WRONG_OVERLOADING_FUNCTION_ARGUMENTS
  ignoreAnnotated:
    - GetMapping
    - PostMapping
    - Repository

But I think it should be applied automatically (at least for @Repository)