davidvarga / davidvarga/MBeautifier

Add a setting to add (or remove) parens in if/elseif/switch/case/while/for statements

Open
#73 1 comment 0 reactions 1 assignee Claimed by @davidvarga View on GitHub
new rule
Dominant language
MATLAB
Stars
519
Forks
80
PR merge metrics
No merged PRs in 30d

Description

You can write keyword blocks with or without parentheses:

```
if (true)
end
```
vs.
```
if true
end
```

A nice feature would be to control whether or not to add parentheses to these expressions and also independently set this for each possible keyword that supports this (`if`, `elseif`, `switch`, `case`, `while`, `for`, etc.)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.