You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated README.md to reflect recent changes to the console output.
Added docs/Ruleset.md which serves as a reference to list all the potential rules that may trigger semantic versioning of code.
Separated getLine from getLocation in the subclasses of Operation. This allows us to format the location using short/full path if we want to. Short path will be used by default when displaying on the console.
Added logic in Reporter to format the location according to the optional input "full-path".
Copy file name to clipboardExpand all lines: README.md
+73-35Lines changed: 73 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,48 +10,86 @@ PHP Semantic Versioning Checker is a console/library which allows you to inspect
10
10
11
11
After the inspection is completed, you are given a list of changes that have occurred between the two changesets. For each of these changes, the level of the change (MAJOR, MINOR, PATCH, NONE) will be given, as well as the location of the change (file and line number) and a reason as to why this level change is suggested.
12
12
13
-
## Current checks & ruleset
14
-
15
-
- Functions
16
-
- Function added -> **MINOR**
17
-
- Function removed -> **MAJOR**
18
-
- Function parameter mismatch -> **MAJOR**
19
-
- Function implementation changed -> **PATCH**
20
-
- Classes
21
-
- Class added -> **MINOR**
22
-
- Class removed -> **MAJOR**
23
-
- Public class method added -> **MINOR**
24
-
- Public class method removed -> **MAJOR**
25
-
- Public class method parameter mismatch -> **MAJOR**
26
-
- Public class method implementation changed -> **PATCH**
13
+
## Getting started
14
+
15
+
As this is still an alpha package, it is not suggested to include `php-semver-checker` directly in your composer.phar. There are however a couple ways to use the tool:
16
+
17
+
1.`php composer.phar create-project tomzx/php-semver-checker --stability=dev` will clone to a new php-semver-checker folder in your current working directory
18
+
2.`php composer.phar global require tomzx/php-semver-checker --stability=dev` will clone it to your global composer location, so you can use it from anywhere.
19
+
3.`git clone https://github.com/tomzx/php-semver-checker.git` and `php composer.phar install` in the newly cloned directory.
20
+
21
+
As the package gets more stable, other means of distribution may become available (such as a .phar).
22
+
23
+
## Current ruleset & verification codes
24
+
25
+
See `docs/Ruleset.md` for an exhaustive list of currently supported (and to come) ruleset.
26
+
27
+
Verification codes are a mean to uniquely identify a semantic versioning trigger (a condition which upon detection, requires your code changes to be versioned).
0 commit comments