commit: a8a0d3e3fbd85efdd503de8c8712d4c152061660 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> AuthorDate: Thu Jul 24 18:22:39 2025 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Thu Jul 24 18:22:39 2025 +0000 URL: https://gitweb.gentoo.org/proj/pkgcore/pkgcheck.git/commit/?id=a8a0d3e3
TooManyCrates: warn only for ::gentoo Resolves: https://github.com/pkgcore/pkgcheck/issues/752 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> src/pkgcheck/checks/rust.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkgcheck/checks/rust.py b/src/pkgcheck/checks/rust.py index 346ba412..7228924c 100644 --- a/src/pkgcheck/checks/rust.py +++ b/src/pkgcheck/checks/rust.py @@ -69,7 +69,7 @@ class RustCheck(Check): row, _ = val_node.start_point val_str = pkg.node_str(val_node).strip("'\"") crates = val_str.split() - if len(crates) > 300: + if len(crates) > 300 and self.options.gentoo_repo: yield TooManyCrates(count=len(crates), pkg=pkg) for lineno, line in enumerate(crates, start=row + 1): for token in line.split():
