format: uniform rule style

This commit is contained in:
iff 2023-08-04 02:42:16 +02:00
parent 0646317abc
commit 9be1d040c4
5 changed files with 21 additions and 9 deletions

View file

@ -61,10 +61,12 @@ command = "world"
# note that the error is formatted to lowercase without extra spaces
pattern = [
"pattern 1",
"pattern 2",
"pattern 2"
]
# this will change the first argument to `fix`, while keeping the rest intact
suggest = [ "{{command[0]}} fix {{command[2:]}}" ]
suggest = [
"{{command[0]}} fix {{command[2:]}}",
]
[[match_err]]
pattern = [
@ -76,7 +78,8 @@ pattern = [
suggest = [
'''
#[executable(sudo), !cmd_contains(sudo)]
sudo {{command}}'''
sudo {{command}}
'''
]
```