MCPcopy
hub / github.com/perkeep/perkeep / initIgnoredFiles

Method initIgnoredFiles

pkg/client/config.go:479–496  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

477}
478
479func (c *Client) initIgnoredFiles() {
480 defer func() {
481 c.ignoreChecker = newIgnoreChecker(c.ignoredFiles)
482 }()
483 if c.noExtConfig {
484 return
485 }
486 if e := os.Getenv("CAMLI_IGNORED_FILES"); e != "" {
487 c.ignoredFiles = strings.Split(e, ",")
488 return
489 }
490 c.ignoredFiles = []string{}
491 if android.OnAndroid() || configDisabled {
492 return
493 }
494 configOnce.Do(parseConfig)
495 c.ignoredFiles = config.IgnoredFiles
496}
497
498var osutilHomeDir = osutil.HomeDir // changed by tests
499

Callers

nothing calls this directly

Calls 2

OnAndroidFunction · 0.92
newIgnoreCheckerFunction · 0.85

Tested by

no test coverage detected