-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch fixes formatting of <: and >: when used without LHS. This is again an inconsistency compared to other operators.
- Loading branch information
1 parent
a0b7eb2
commit a181b65
Showing
4 changed files
with
45 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# TODOs, notes, and various thoughts | ||
|
||
## Inconsistencies | ||
|
||
- The `spaces_around_operators` rule have the following inconsistencies. | ||
|
||
- `:`, `^`, and `::` instead fall under `no_spaces_around_colon_etc`: | ||
```julia | ||
# current formatting # "consistent" formatting | ||
a:b a : b ✖ | ||
a^b a ^ b ✖ | ||
a::b a :: b ✖ | ||
``` | ||
|
||
- `<:` and `<:` fall under `no_spaces_around_colon_etc` if they have no LHS: | ||
```julia | ||
# current formatting # "consistent" formatting | ||
a <: b a <: b ✔ | ||
a >: b a >: b ✔ | ||
a{c <: b} a{c <: b} ✔ | ||
a{c >: b} a{c >: b} ✔ | ||
a{<:b} a{<: b} ✖ | ||
a{>:b} a{>: b} ✖ | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters