Skip to content

Incorrect instance of ImplicitReturnStatement #725

@lowrider59

Description

@lowrider59

When we have a method like:

public someType someMethod() {
  synchronized (someObject) {
    doSomething();
    return something;
  }
}

we get a msg like:

"The method someMethod in class SomeClass is missing an explicit return ImplicitReturnStatement"

which I consider incorrect in this specific construct.

I reported this issue on npm-groovy-lint, but the response I got was, "this is a CodeNarc issue".
See:
nvuillam/npm-groovy-lint#264

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions