Skip to content

Commit

Permalink
fix: ignore LT in missing style check
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkato committed Nov 15, 2020
1 parent 2f1bdc2 commit ecb011a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion check/manager.go
Expand Up @@ -201,7 +201,11 @@ func (mgr *Manager) loadStyles(styles []string) error {
// We've already loaded this style.
continue
} else if has, _ := mgr.Config.FsWrapper.DirExists(p); !has {
return errors.New("missing style: '" + style + "'")
if style != "LanguageTool" {
return core.NewE100(
"loadStyles",
errors.New("style '"+style+"' does not exist on StylesPath"))
}
}
if err := mgr.addStyle(p); err != nil {
return err
Expand Down

0 comments on commit ecb011a

Please sign in to comment.