Skip to content

tools: lint for function argument alignment

Rodrigo Muino Tomonari requested to merge github/fork/Trott/align-again into master
Checklist
  • tests and code linting passes
  • the commit message follows commit guidelines
Affected core subsystem(s)

tools test

Description of change

In function calls that span multiple lines, apply a custom lint rule to enforce argument alignment.

With this rule, the following code will be flagged as an error by the linter because the arguments on the second line start in a different column than on the first line:

myFunction(a, b,
  c, d);

The following code will not be flagged as an error by the linter:

myFunction(a, b,
           c, d);

Merge request reports

Loading