@@ -34,14 +34,14 @@ var (
3434 // PipeDir is the default location for Vale's configuration pipeline.
3535 PipeDir = ".vale-config"
3636
37- VocabDir = filepath .Join (ConfigDir , "vocabularies" )
38- DictDir = filepath .Join (ConfigDir , "dictionaries" )
39- TmplDir = filepath .Join (ConfigDir , "templates" )
40- IgnoreDir = filepath .Join (ConfigDir , "ignore" )
41- ActionDir = filepath .Join (ConfigDir , "actions" )
42- FilterDir = filepath .Join (ConfigDir , "filters" )
43- ScriptDir = filepath .Join (ConfigDir , "scripts" )
44- BlueprintsDir = filepath .Join (ConfigDir , "blueprints " )
37+ VocabDir = filepath .Join (ConfigDir , "vocabularies" )
38+ DictDir = filepath .Join (ConfigDir , "dictionaries" )
39+ TmplDir = filepath .Join (ConfigDir , "templates" )
40+ IgnoreDir = filepath .Join (ConfigDir , "ignore" )
41+ ActionDir = filepath .Join (ConfigDir , "actions" )
42+ FilterDir = filepath .Join (ConfigDir , "filters" )
43+ ScriptDir = filepath .Join (ConfigDir , "scripts" )
44+ ViewDir = filepath .Join (ConfigDir , "views " )
4545)
4646
4747// ConfigDirs is a list of all directories that contain user-defined, non-style
@@ -54,7 +54,7 @@ var ConfigDirs = []string{
5454 ActionDir ,
5555 ScriptDir ,
5656 FilterDir ,
57- BlueprintsDir ,
57+ ViewDir ,
5858}
5959
6060// ConfigVars is a list of all supported environment variables.
@@ -213,10 +213,10 @@ type Config struct {
213213 AcceptedTokens []string `json:"-"` // Project-specific vocabulary (okay)
214214 RejectedTokens []string `json:"-"` // Project-specific vocabulary (avoid)
215215
216- FallbackPath string `json:"-"`
217- SecToPat map [string ]glob.Glob `json:"-"`
218- Styles []string `json:"-"`
219- Blueprints map [string ]* Blueprint `json:"-"`
216+ FallbackPath string `json:"-"`
217+ SecToPat map [string ]glob.Glob `json:"-"`
218+ Styles []string `json:"-"`
219+ Views map [string ]* View `json:"-"`
220220
221221 NLPEndpoint string // An external API to call for NLP-related work.
222222
@@ -245,7 +245,7 @@ func NewConfig(flags *CLIFlags) (*Config, error) {
245245 cfg .TokenIgnores = make (map [string ][]string )
246246 cfg .CommentDelimiters = make (map [string ][2 ]string )
247247 cfg .FormatToLang = make (map [string ]string )
248- cfg .Blueprints = make (map [string ]* Blueprint )
248+ cfg .Views = make (map [string ]* View )
249249 cfg .Paths = []string {}
250250 cfg .ConfigFiles = []string {}
251251
0 commit comments