()
| 477 | } |
| 478 | |
| 479 | func (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 | |
| 498 | var osutilHomeDir = osutil.HomeDir // changed by tests |
| 499 |
nothing calls this directly
no test coverage detected