@@ -129,6 +129,8 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
129129 return nil , nil
130130 }
131131
132+ placeholderReplacer := config .NewPlaceholderReplacer (cfg )
133+
132134 // The linters are sorted in the alphabetical order (case-insensitive).
133135 // When a new linter is added the version in `WithSince(...)` must be the next minor version of golangci-lint.
134136 return []* linter.Config {
@@ -180,7 +182,7 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
180182 WithSince ("v1.44.0" ).
181183 WithURL ("https://gitlab.com/bosi/decorder" ),
182184
183- linter .NewConfig (depguard .New (& cfg .Linters .Settings .Depguard , cfg . GetBasePath () )).
185+ linter .NewConfig (depguard .New (& cfg .Linters .Settings .Depguard , placeholderReplacer )).
184186 WithSince ("v1.4.0" ).
185187 WithURL ("https://github.com/OpenPeeDeeP/depguard" ),
186188
@@ -300,7 +302,7 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
300302 WithSince ("v1.0.0" ).
301303 WithURL ("https://github.com/jgautheron/goconst" ),
302304
303- linter .NewConfig (gocritic .New (& cfg .Linters .Settings .Gocritic )).
305+ linter .NewConfig (gocritic .New (& cfg .Linters .Settings .Gocritic , placeholderReplacer )).
304306 WithSince ("v1.12.0" ).
305307 WithLoadForGoAnalysis ().
306308 WithAutoFix ().
@@ -340,7 +342,7 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
340342 WithAutoFix ().
341343 WithURL ("https://github.com/segmentio/golines" ),
342344
343- linter .NewConfig (goheader .New (& cfg .Linters .Settings .Goheader , cfg . GetBasePath () )).
345+ linter .NewConfig (goheader .New (& cfg .Linters .Settings .Goheader , placeholderReplacer )).
344346 WithSince ("v1.28.0" ).
345347 WithAutoFix ().
346348 WithURL ("https://github.com/denis-tingaikin/go-header" ),
0 commit comments