You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Skip analyzers that don't emit facts when ignoring diagnostics (#4402)
**What type of PR is this?**
Performance improvement
**What does this PR do? Why is it needed?**
Avoid unnecessary work by skipping analyzers that don't emit facts when
reported diagnostics are known to be ignored.
**Which issues(s) does this PR fix?**
Work towards #4327
**Other notes for review**
fs.Var(&unfilteredSrcs, "src", ".go, .c, .cc, .m, .mm, .s, or .S file to be filtered and checked")
30
31
fs.Var(&ignoreSrcs, "ignore_src", ".go, .c, .cc, .m, .mm, .s, or .S file to be filtered and checked, but with its diagnostics ignored")
31
32
fs.Var(&deps, "arc", "Import path, package path, and file name of a direct dependency, separated by '='")
32
33
fs.Var(&facts, "facts", "Import path, package path, and file name of a direct dependency's nogo facts file, separated by '='")
34
+
fs.BoolVar(&factsOnly, "facts_only", false, "If true, only nogo facts are emitted, no nogo checks are run")
33
35
fs.StringVar(&importPath, "importpath", "", "The import path of the package being compiled. Not passed to the compiler, but may be displayed in debug data.")
34
36
fs.StringVar(&packagePath, "p", "", "The package path (importmap) of the package being compiled")
35
37
fs.StringVar(&packageListPath, "package_list", "", "The file containing the list of standard library packages")
0 commit comments