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