We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3843d07 commit 34a1343Copy full SHA for 34a1343
1 file changed
internal/lint/metadata.go
@@ -19,12 +19,12 @@ func (l Linter) lintMetadata(f *core.File) error {
19
if errors.Is(err, frontmatter.ErrNotFound) {
20
return nil
21
} else if err != nil {
22
- return err
+ return core.NewE201FromPosition(err.Error(), f.Path, 1)
23
}
24
25
frontmatter, fmErr := extractFrontMatter(f.Content, string(body))
26
if fmErr != nil {
27
- return fmErr
+ return core.NewE201FromPosition(fmErr.Error(), f.Path, 1)
28
29
30
ignored := check.NewScope(l.Manager.Config.IgnoredScopes)
0 commit comments