-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpsemver.xml
92 lines (92 loc) · 3.14 KB
/
phpsemver.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?xml version="1.0"?>
<phpsemver
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="./etc/phpsemver.xsd"
title="PHPSemVer 3.2.0">
<Description>
Given a version number MAJOR.MINOR.PATCH, increment the:
<br/>
<br/>
MAJOR version when you make incompatible API changes,
<br/>
MINOR version when you add functionality in a backwards-compatible manner, and
<br/>
PATCH version when you make backwards-compatible bug fixes.
<br/>
<br/>
Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH
format.
<br/>
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED",
"MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.
</Description>
<RuleSet name="major">
<Description>
Major version X (X.y.z | X > 0) MUST be incremented
if any backwards incompatible changes are introduced to the public API.
It MAY include minor and patch level changes.
Patch and minor version MUST be reset to 0 when major version is incremented.
</Description>
<Trigger>
<Classes>
<IsRemoved />
<Methods>
<ReturnTypeRemoved />
<IsRemoved />
</Methods>
</Classes>
<Functions>
<IsRemoved />
</Functions>
<Interfaces>
<IsRemoved />
</Interfaces>
</Trigger>
</RuleSet>
<RuleSet name="minor">
<Description>
Minor version Y (x.Y.z | x > 0) MUST be incremented if new,
backwards compatible functionality is introduced to the public API.
It MUST be incremented if any public API functionality is marked as deprecated.
It MAY be incremented if substantial new functionality
or improvements are introduced within the private code.
It MAY include patch level changes.
Patch version MUST be reset to 0 when minor version is incremented.
</Description>
<Trigger>
<Classes>
<IsAdded />
<Methods>
<ReturnTypeChanged />
<IsAdded />
</Methods>
</Classes>
<Functions>
<IsAdded />
</Functions>
<Interfaces>
<IsAdded />
</Interfaces>
</Trigger>
</RuleSet>
<RuleSet name="patch">
<Trigger>
<Classes>
<Methods>
<BodyChanged />
</Methods>
</Classes>
<Functions>
<BodyChanged />
</Functions>
</Trigger>
</RuleSet>
<Filter>
<Whitelist>
<Pattern>@^lib/.*@</Pattern>
</Whitelist>
<Blacklist>
<Pattern>@^lib/Test/.*@</Pattern>
</Blacklist>
</Filter>
</phpsemver>