Docs
Fixers
replace
replace
Learn how to create static suggestions for your rules.
goCopy func replace(match string) []string
replace
returns an array of user-provided replacements.
yamlCopy action: name: replace params: - option1 - option2 ...
Rules that extend substitution
or capitalization
will automatically
populate the params
array, so you can simply provide the name
:
yamlCopy action: name: replace
On This Page