Implemented an autocorrect module at the postprocessing stage
This commit is contained in:
@@ -111,7 +111,7 @@ func NewMergeConfig(opts MergeOptions) (Config, error) {
|
||||
}
|
||||
}
|
||||
|
||||
if contains(cfg.PreprocessingModules, "autocorrect") || contains(cfg.PostprocessingModules, "autocorrect") {
|
||||
if contains(cfg.PostprocessingModules, "autocorrect") {
|
||||
if cfg.AutocorrectFile == "" {
|
||||
return Config{}, errors.New("--autocorrect is required when autocorrect is enabled")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user