Skip to content

Commit

Permalink
fix: show all alerts by default
Browse files Browse the repository at this point in the history
This was confusing for new users when some of their rules appear to not be working.
  • Loading branch information
jdkato committed Nov 20, 2024
1 parent 67b6585 commit 25e5d78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion internal/core/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func NewConfig(flags *CLIFlags) (*Config, error) {
cfg.Formats = make(map[string]string)
cfg.Asciidoctor = make(map[string]string)
cfg.GChecks = make(map[string]bool)
cfg.MinAlertLevel = 1
cfg.MinAlertLevel = 0
cfg.RuleToLevel = make(map[string]string)
cfg.SBaseStyles = make(map[string][]string)
cfg.SChecks = make(map[string]map[string]bool)
Expand Down
3 changes: 3 additions & 0 deletions testdata/features/checks.feature
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ Feature: Checks
When I test "checks/Existence"
Then the output should contain exactly:
"""
test.md:3:6:write-good.E-Prime:Avoid using "is"
test.md:7:4:write-good.E-Prime:Avoid using "Here's"
test.md:9:6:write-good.E-Prime:Avoid using "is"
test.md:9:28:vale.Spacing:Use exactly one space between sentences and clauses. Check 'e.A' for spacing problems.
"""

Expand Down

0 comments on commit 25e5d78

Please sign in to comment.