(t *testing.T)
| 274 | } |
| 275 | |
| 276 | func TestLint_BodyMultiLineAllWithin(t *testing.T) { |
| 277 | linter := newDefaultLinter(t) |
| 278 | result, err := linter.ParseAndLint("feat: add feature\n\nLine one.\nLine two.\nLine three.") |
| 279 | if err != nil { |
| 280 | t.Fatal(err) |
| 281 | } |
| 282 | for _, iss := range result.Issues() { |
| 283 | if iss.RuleName() == "body-max-line-length" { |
| 284 | t.Error("all body lines <= 72 should not trigger body-max-line-length") |
| 285 | } |
| 286 | } |
| 287 | } |
| 288 | |
| 289 | func TestLint_EmptyBodyAllowed(t *testing.T) { |
| 290 | linter := newDefaultLinter(t) |
nothing calls this directly
no test coverage detected