Skip to content

Proposal: SA1027 should still reports tabs after non-whitespace with useTabs #2035

@sharwell

Description

@sharwell

Blocked on the acceptance of #2039, which adds the option described here.
#2039 Adds a new useTabs option which defaults to false. When this value is set to true, SA1027 (TabsMustNotBeUsed) is automatically disabled.

I propose updating the implementation when useTabs is true to only disable analysis of tabs used for indentation. In other words, tabs placed after the first non-whitespace character on a line would still be reported.

This is related to the OneTabIndent option described in #730, but not quite the same. This proposal only covers a specific case where the use of tab characters always produces strange behavior when the tab width changes.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions