Skip to content

Various nitpicks #1507

@lennartq

Description

@lennartq

Formatter:

AlignSettingsSection - Long comments affect first column. IMO comments shouldn't matter

AlignTemplatedTestCases - [Tags] and [Template] affect columns. IMO shouldn't matter

IndentNestedKeywords - End of line comments are moved to before all lines

NormalizeSeparators.skip_sections=settings,variables

  • Test Tags setting seems to have extra whitespace trimmed when no other tags are touched

RenameKeywords - Set Yleis/erityisvakuus - linter complains, formatter doesn't fix. Same with :.
Workaround "wrong-case-in-keyword-name.pattern=[:/][a-zåäö]", - oddly didn't work with re.compile. Error in docs?

ReplaceWithVAR - Makes multi-line Catenate or Create List into too long lines
and this

        ${invalid_number}    Set Variable If
        ...    any('None' in str(result[0]) for result in ${query_result})    ${True}    ${False}

became

        IF    any('None' in str(result[0]) for result in ${query_result})
            VAR    ${invalid_number}    ${True}
        ELSE
            VAR    ${invalid_number}    ${False}
        END

Links from linter docs to formatting rules would be nice. "Can I fix this automatically?" comes up often.

Metadata

Metadata

Assignees

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