Skip to content

Commit

Permalink
refactor: exlude code from summary
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkato committed Sep 7, 2020
1 parent d34ebbf commit 0fd0e35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion features/styles.feature
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Feature: Styles
test.html:10:35:demo.Hyphen:' Randomly-' doesn't need a hyphen
test.html:12:12:demo.SentenceLength:Sentences should be less than 25 words
test.html:32:17:demo.ScopedHeading:'this is a heading' should be in title case
test.md:1:1:demo.Reading:Grade level (8.30) too high!
test.md:1:1:demo.Reading:Grade level (8.20) too high!
test.md:1:3:demo.HeadingStartsWithCapital:'this is a heading' should be capitalized
test.md:7:1:demo.HeadingStartsWithCapital:'this is another heading!' should be capitalized
test.md:12:1:demo.SentenceLength:Sentences should be less than 25 words
Expand Down
2 changes: 1 addition & 1 deletion lint/markup.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ func (l Linter) lintScope(f *core.File, ctx, txt, raw string, tags []string, lin

// NOTE: We don't include headings, list items, or table cells (which are
// processed above) in our Summary content.
f.Summary.WriteString(raw + " ")
f.Summary.WriteString(txt + " ")
l.lintProse(f, ctx, txt, raw, lines, 0)
}

Expand Down

0 comments on commit 0fd0e35

Please sign in to comment.