Skip to content

Commit 2a19201

Browse files
committed
code style
1 parent ea78062 commit 2a19201

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.junie/guidelines.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,18 @@
55
- `DbcImageTool` renders time series of CANPacket into image
66
- `ChartImage` encapsulates a BufferedImage for rendering charts
77
- `AutoFormatReader` universal trace reader
8+
9+
### Code Style
10+
Always use curly braces for `if` statements.
11+
12+
Correct:
13+
```java
14+
if (customStartBit == -1 || customLength <= 0) {
15+
return false;
16+
}
17+
```
18+
19+
Incorrect:
20+
```java
21+
if (customStartBit == -1 || customLength <= 0) return false;
22+
```

0 commit comments

Comments
 (0)