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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,8 @@
5
5
# Change Log
6
6
7
7
# 0.9.15
8
-
8
+
- Added support for line length and breaking rules regarding line-breaks after opening parentheses, method output arguments, conditional expressions and binary operands.
9
+
- Added support for indendation rule indent_continuation_line.
9
10
10
11
## 0.9.14
11
12
- Slight optimization to the memory usage of device-level analysis which
Copy file name to clipboardExpand all lines: src/lint/features.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,5 +51,24 @@ Below are listed the currently supported rules for linting:
51
51
52
52
## Line Length
53
53
-**LL1**, `long_lines`: Lines should be kept shorter than 80 characters. This limit can be set to a custom value
54
+
-**LL2**, `break_before_binary_op`: Break long lines before binary operators, not after
55
+
```
56
+
x = (a_very_long_expression
57
+
+ another_very_long_expression)
58
+
* a_third_long_expression;
59
+
```
60
+
-**LL3**, `break_conditional_expression`: Break conditional expressions before the ?, or both before the ? and before the :.
61
+
-**LL5**, `break_method_output`: Break long method declarations with output parameters before the arrow.
62
+
```
63
+
method inquiry_status(uint64 physical_address)
64
+
-> (uint16 status) {
65
+
...
66
+
}
67
+
```
68
+
-**LL6**, `break_func_call_open_paren`: Function and method invocations can be broken after the opening parenthesis, with the continuation lines indented one level.
0 commit comments