You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
max_function_length complains if a function definition spans over a given number of lines (by default: 30)...
... but it's also taking into account the multiple function clauses. So 15 clauses with 1 line each, in the body, would count for 30 lines. Is this expected?
To Reproduce
16 function clauses with 2 line (definition) each, 1 line for head, 1 line for body.
Expected Behavior
? no warning, maybe?
rebar3 Logs
Not applicable.
Additional Context
Not relevant.
The text was updated successfully, but these errors were encountered:
Or similar, yes. For the time being I'm Ok with just adding an exception in my rules, ofc. This was mostly just me wondering if we got (from the parsing) the size of each clause or not...
Bug Description
Note: might not be a bug.
max_function_length
complains if a function definition spans over a given number of lines (by default: 30)...... but it's also taking into account the multiple function clauses. So 15 clauses with 1 line each, in the body, would count for 30 lines. Is this expected?
To Reproduce
16 function clauses with 2 line (definition) each, 1 line for head, 1 line for body.
Expected Behavior
? no warning, maybe?
rebar3
LogsNot applicable.
Additional Context
Not relevant.
The text was updated successfully, but these errors were encountered: