Skip to content

Detect likely-unintended IF statements with multiple clauses, no parentheses #42

@isc-tleavitt

Description

@isc-tleavitt

Reported internally within InterSystems:

It's a relatively common error to not include parenthesis in IF statements with multiple clauses. This almost always produces unexpected results.

I'd suggest two basic warnings:

|| - Any use of || where adjacent non-whitespace characters are not the appropriate parenthesis.
&& - Any use of && where adjacent non-whitespace characters are not the appropriate parenthesis.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions