about summary refs log tree commit diff
path: root/src/docs/suspicious_else_formatting.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/docs/suspicious_else_formatting.txt')
-rw-r--r--src/docs/suspicious_else_formatting.txt30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/docs/suspicious_else_formatting.txt b/src/docs/suspicious_else_formatting.txt
deleted file mode 100644
index 3cf2f74868e..00000000000
--- a/src/docs/suspicious_else_formatting.txt
+++ /dev/null
@@ -1,30 +0,0 @@
-### What it does
-Checks for formatting of `else`. It lints if the `else`
-is followed immediately by a newline or the `else` seems to be missing.
-
-### Why is this bad?
-This is probably some refactoring remnant, even if the
-code is correct, it might look confusing.
-
-### Example
-```
-if foo {
-} { // looks like an `else` is missing here
-}
-
-if foo {
-} if bar { // looks like an `else` is missing here
-}
-
-if foo {
-} else
-
-{ // this is the `else` block of the previous `if`, but should it be?
-}
-
-if foo {
-} else
-
-if bar { // this is the `else` block of the previous `if`, but should it be?
-}
-```
\ No newline at end of file