... | @@ -52,3 +52,9 @@ exit 0 |
... | @@ -52,3 +52,9 @@ exit 0 |
|
```
|
|
```
|
|
|
|
|
|
Similarly, you can create a script at `.git/hooks/pre-commit` to check the coding conventions on every commit.
|
|
Similarly, you can create a script at `.git/hooks/pre-commit` to check the coding conventions on every commit.
|
|
|
|
|
|
|
|
## Files not ending with line breaks
|
|
|
|
|
|
|
|
The linter requires every file to end with a line break. IntelliJ doesn't add those by default, so to force it to do that, enable the following setting:
|
|
|
|
|
|
|
|
`Settings` → `Editor` → `General` → `On Save` → `Ensure every saved file ends with a line break` |
|
|
|
\ No newline at end of file |