Search code examples
scalaintellij-idea

how to turn off IntelliJ warning for scala "method with accessor like name is empty-paren"


How do I turn off this warning? I like most of the Intellij warnings but not this one.

method with accessor like name is empty-paren

accessor-like-name


Solution

  • This inspection is warning you the method is not following the recommended convention to use parameterless methods whenever there are no parameters and the method have no side effects.

    enter image description here

    To disable it in IntelliJ IDEA, go to: Settings... -> Editor -> Code Style -> Inspections -> Scala -> Method Signature and uncheck Method with accessor-like name is empty paren