Skip to content

Commit ac9b7a5

Browse files
committed
refactor(defaults): use node anchors for common line_length values
* To be reused for upcoming `rubocop` settings as well
1 parent 6d70da2 commit ac9b7a5

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

ssf/defaults.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
---
44
ssf_node_anchors:
55
defaults:
6+
common:
7+
lint:
8+
line_length:
9+
bugbear: &line_length_bugbear 88
10+
default: &line_length_default 80
611
formula: &formula_default
712
context: &context_default
813
git:
@@ -207,9 +212,9 @@ ssf_node_anchors:
207212
key-duplicates: {}
208213
# key-ordering: {}
209214
line-length:
210-
bugbear: 88
211-
default: 80
212-
max: 88
215+
bugbear: *line_length_bugbear
216+
default: *line_length_default
217+
max: *line_length_bugbear
213218
# new-line-at-end-of-file: {}
214219
# new-lines: {}
215220
octal-values:

0 commit comments

Comments
 (0)