1 |
commit: 082babbd15ec0fde7742e3b9ff85051a7d284479 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 26 10:22:43 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 5 05:54:50 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=082babbd |
7 |
|
8 |
metadata/qa-policy.conf: Introduce QA check configuration |
9 |
|
10 |
Introduce a new configuration file for assigning QA check significance |
11 |
levels to PGnnnn policies. Long-term goal is that this will permit |
12 |
unified configuration of various QA tools, including pkgcheck, repoman |
13 |
and install-qa-check.d. |
14 |
|
15 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
16 |
|
17 |
metadata/qa-policy.conf | 63 +++++++++++++++++++++++++++++++++++++++++++++++++ |
18 |
1 file changed, 63 insertions(+) |
19 |
|
20 |
diff --git a/metadata/qa-policy.conf b/metadata/qa-policy.conf |
21 |
new file mode 100644 |
22 |
index 00000000000..ae1e3cad200 |
23 |
--- /dev/null |
24 |
+++ b/metadata/qa-policy.conf |
25 |
@@ -0,0 +1,63 @@ |
26 |
+# Copyright 2020 Gentoo Authors |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+ |
29 |
+# The policy section assigns significance levels to various policies. |
30 |
+# Keys are identifiers from the Policy Guide, values are either |
31 |
+# 'notice', 'warning' or 'error'. |
32 |
+# |
33 |
+# The rule of thumb is that 'error' indicates a serious problem that |
34 |
+# may cause serious problem to the end users and therefore should block |
35 |
+# committing / deployment. 'warning' should be fixed by developer |
36 |
+# but does not need to immediately prevent committing. |
37 |
+# |
38 |
+# https://projects.gentoo.org/qa/policy-guide/std-policy-index.html |
39 |
+ |
40 |
+[policy] |
41 |
+# =-dependencies with no revision |
42 |
+PG0002 = warning |
43 |
+# Revision bumps on runtime dependency changes |
44 |
+PG0003 = warning |
45 |
+# Slot and subslot dependencies: on (sub-)slotted packages |
46 |
+PG0011 = warning |
47 |
+# USE dependencies: on packages without the flag |
48 |
+PG0021 = warning |
49 |
+# Coding style |
50 |
+PG0101 = warning |
51 |
+# Code must be contained within ebuild and eclasses |
52 |
+PG0102 = error |
53 |
+# HOMEPAGE must not contain variables |
54 |
+PG0103 = warning |
55 |
+# SRC_URI must not refer to HOMEPAGE |
56 |
+PG0104 = warning |
57 |
+# KEYWORDS must be defined on a single line |
58 |
+PG0105 = warning |
59 |
+# Installation paths |
60 |
+PG0201 = warning |
61 |
+# Support for separate /usr |
62 |
+PG0202 = warning |
63 |
+# Strict multilib layout |
64 |
+PG0203 = error |
65 |
+# Static libraries and libtool files |
66 |
+PG0204 = error |
67 |
+# Game install locations and ownership |
68 |
+PG0205 = warning |
69 |
+# Absolute symbolic link targets |
70 |
+PG0206 = warning |
71 |
+# Python: Eclass usage |
72 |
+PG0501 = warning |
73 |
+# Python: Python 2 deprecation |
74 |
+PG0502 = warning |
75 |
+# Dynamic slots (multislot flag) |
76 |
+PG0701 = error |
77 |
+# HOMEPAGE value must be meaningful |
78 |
+PG0702 = warning |
79 |
+# RESTRICT=test for USE=-test |
80 |
+PG0703 = warning |
81 |
+# LICENSE |
82 |
+PG0704 = warning |
83 |
+# Underscores in USE flag names |
84 |
+PG0803 = warning |
85 |
+# User and group account policy |
86 |
+PG0901 = warning |
87 |
+# Deprecated EAPIs |
88 |
+PG1001 = warning |