Skip to content

[Lint] Fix TupleConvention wrong spacing #303

@gnrkr789

Description

@gnrkr789

TupleConvention rule fails to detect invalid tuple spacing in some cases.

Example of invalid spacing that should be reported:

| 12UL, _ , 0u -> ...

Correct form:

| 12UL, _, 0u -> ...

Previously, cases involving comments could cause false negatives.
This update ensures _ , is properly detected even when comments are present.

For comment cases such as:

match foo with
| 42 (* comment *), 2 -> ()

spacing around the comment itself is handled more loosely, while tuple comma rules remain strictly enforced.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions