Skip to content

Commit 5a633ce

Browse files
committed
fix: correct indentation for YAML rules in README.template and readme.dart
1 parent 027cfa6 commit 5a633ce

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ To use the recommended lint rules drop the following into your `analysis_options
1010
plugins:
1111
grumpy_lints:
1212
diagnostics:
13-
{{yaml_rules(4)}}
13+
{{yaml_rules(3)}}
1414
```
1515

1616

bin/readme.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ void main(List<String> args) {
7171

7272
final yamlMatch = yamlRulesRegex.firstMatch(template)!;
7373

74-
final indent = ' ' * int.parse(match.group(1) ?? '0');
74+
final indent = ' ' * int.parse(yamlMatch.group(1) ?? '0');
7575

7676
final yamlRules = rules.map((r) => '$indent${r.name}: true').join('\n');
7777

0 commit comments

Comments
 (0)