Skip to content

indentWithSpaces doesn't check the number of spaces used #117

Closed
@boris-petrov

Description

@boris-petrov

I have something like:

spotless {
    format 'xml', {
        target 'src/**/*.xml'
 
        trimTrailingWhitespace()
        indentWithSpaces()
        endWithNewline()
    }
}

And an XML file. indentWithSpaces works in the sense that it checks for spaces - i.e. if I have tabs in an XML file, it will catch that. However, it doesn't catch if I indent with a wrong amount of spaces - e.g. 2 - even if I put an explicit count (indentWithSpaces(4)). I am missing something or is this a known limitation? Or perhaps a bug?

P.S. I guess this is related to #58. I guess this won't be "fixed"?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions