Lines Matching defs:lint
35 import pkg.lint.base as base
36 import pkg.lint.engine as engine
37 import pkg.lint.log as log
41 from pkg.lint.engine import lint_fmri_successor
42 from pkg.lint.base import linted, DuplicateLintedAttrException
224 # other than the 3 lint warnings for the missing dependencies
601 expected_failures["duplicate_sets-not-enough-lint.mf"] = ["pkglint.manifest006",
603 broken_manifests["duplicate_sets-not-enough-lint.mf"] = \
809 # lint messages
887 # We'll actually report two lint messages here, the existence of the
1130 # doesn't result in lint errors.
1152 # our obsolete depend lint check should complain about not being able to find
1961 # We declare a pkg.lint.pkglint.action005.1 parameter to a depend action that
1971 depend type=require fmri=test/package pkg.lint.pkglint.action005.1.missing-deps=pkg:/test/package
1978 # We declare a pkg.lint.pkglint.action005.1 parameter that tells the check to
1987 set name=pkg.lint.pkglint.action005.1.missing-deps value=pkg:/test/package value=pkg:/other/package
2277 """Ensure that lint checks are functioning."""
2283 self.debug("running lint checks on {0}".format(manifest))
2321 "expected lint ids for {0}: "
2370 """Tests that exercise reference vs. lint repository checks
2472 # This is a dummy package designed trip a lint of no-ancestor-legacy.mf
2502 # This is a dummy package designed trip a lint of no-ancestor-legacy.mf
2581 # in the lint repository, though this package itself is perfectly valid.
2595 # consistent, passing all lint checks on their own.
2677 # this should result in a lint error
2708 # we should get the lint warning.
2868 """Test basic handling of repo URIs with the lint engine,
2889 "Unexpected lint errors messages reported against "
2899 "lint image dir still existed after teardown!")
2910 """Ensure we can lint an empty repository"""
2935 # lint repository, so we end up doing nothing
2942 "Lint messages reported from a empty lint repository.")
2945 """Package version handling during lint runs.
2948 look like, were the lint package to be published to the
2955 self.debug("running lint checks on {0}".format(manifest))
2987 " lint ids for {0}: {1} vs. {2}".format(
2996 # above - this time, we lint against 0.140 and expect
3012 "Unexpected lint messages when linting against old "
3029 "No lint messages produced when linting the "
3033 "Expected exactly 1 lint message when linting the "
3044 """The lint manifests in this test class should be lint-clean
3076 "Unexpected lint messages when linting individual "
3116 self.assertTrue(len(lint_msgs) == 2, "Unexpected lint messages "
3148 self.assertTrue(len(lint_msgs) == 2, "Unexpected lint messages "
3185 self.assertTrue(len(lint_msgs) == 0, "Unexpected lint messages "
3205 self.assertTrue(len(lint_msgs) == 0, "Unexpected lint messages "
3235 It should report an error when we only lint the new version
3288 """Tests that exercise reference vs. lint repository checks and tests
3296 # The following two manifests check that given a package in the lint repository,
3315 get_manifest_data["get-manifest-lint.mf"] = """
3317 # This is the manifest that should appear in the lint repository.
3339 it returns appropriate manifests for the lint and reference
3344 lint_mf = os.path.join(self.test_root, "get-manifest-lint.mf")
3362 # try retrieving a few names that should match our lint manifest
3395 # the lint manifests do still return None.
3410 """lint_fmri_successor reports lint successors correctly.
3412 The lint fmri_successor check has a biase for new FMRIs and
3642 filename, msgid="lint.manifest001"))
3663 filename, lineno, e), "lint.manifest002")
3673 "lint.manifest003")