Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Finding ¶
func LintCatalogDir ¶
LintCatalogDir walks dir one level deep and lints every <entry>/pkg.yaml.
func LintPackage ¶ added in v0.4.0
LintPackage runs the offline checks on an already-parsed package, avoiding a re-read of pkgYamlPath. pkgYamlPath supplies the parent-directory identity check and the File field of findings.
func LintPackageDir ¶
type InstallProbe ¶
InstallProbe runs install + test for one package against a prepared NEM_HOME. Injected to keep internal/linter free of internal/app.
type Result ¶
func Lint ¶
Lint returns an operational error only when path cannot be stat'd; per-manifest problems are Findings.
func LintWithInstall ¶
func LintWithInstall(ctx context.Context, path string, userAuth auth.Config, probe InstallProbe) (Result, error)
LintWithInstall runs Lint(path) then drives probe against every manifest that passed the offline checks. On a fatal install-pass error, any findings accumulated so far are still returned alongside the error.