Skip to content

Google style false positive for internal block of code #9326

@oliviercailloux

Description

@oliviercailloux

When using the google style, Checkstyle reports: src/main/java/io/github/oliviercailloux/jaris/credentials/CredsReader.java:[186,5] (indentation) Indentation: 'block lcurly'. It wants that block to be indented. That is because of the Indentation module configuration, which comes straight from the original google check corresponding configuration.

(The example project uses a local variant of Google style, but I verified that using the original also exhibit the problem.)

I do not think that Google Java Style Guide really mandates the (IMHO odd) indentation that Checkstyle wants to enforce.

Is it possible to fix the checkstyle google style implementation, by changing the Indentation configuration or otherwise, so that those blocks can be left indented as I like them to be?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions