forked from pkgcore/pkgcheck
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
skip annotations for version results
Add support for an ebuild to declare a skip annotation for a class of *version* results. This skip annotation must be declared before any non-comment non-empty line (most of the times it would be before the EAPI declaration). Empty lines between the copyright and the annotation are allowed. The annotation line must be precise, only one class per line and every space is required. For example, it would look like: # Copyright 2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # pkgcheck skip: PythonCompatUpdate EAPI=8 Resolves: pkgcore#478 Signed-off-by: Arthur Zamarin <[email protected]>
- Loading branch information
Showing
6 changed files
with
80 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Skip results annotations | ||
======================== | ||
|
||
pkgcheck supports skipping ebuilds results via special annotation. This is | ||
useful in cases where you are aware of false positive in pkgcheck check, and | ||
fixing pkgcheck is hard or impossible. | ||
|
||
The annotation must appear in the ebuild before any non-comment non-empty line | ||
(most of the times it would be just before the EAPI declaration line and after | ||
the copyright lines). Empty lines between the copyright and the annotation are | ||
allowed. | ||
|
||
You can't skip *error* level results. Skipping *warning* level results requires | ||
QA team member approval (should include name and RFC 3339 data). *info* and | ||
*style* level can be skipped without approval. Do consider to just ignore them | ||
instead of skipping. | ||
|
||
An example of skipping a *info* and *warning* level results:: | ||
|
||
# Copyright 2023 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
# pkgcheck skip: PythonCompatUpdate | ||
|
||
# Approved by larry 2023-04-31 | ||
# pkgcheck skip: VariableScope | ||
|
||
EAPI=8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...os/standalone/DoCompressedFilesCheck/InstallCompressedInfo/InstallCompressedInfo-1.ebuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# pkgcheck skip: InstallCompressedInfo | ||
|
||
EAPI=7 | ||
|
||
DESCRIPTION="Ebuild installing compressed info, but with result marked skipped" | ||
HOMEPAGE="https://github.com/pkgcore/pkgcheck" | ||
SLOT="0" | ||
LICENSE="BSD" | ||
|
||
src_install() { | ||
doinfo 'test.gz' "${PN}.bz2" | ||
doinfo "${PN}" | ||
} |