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
Copy file name to clipboardExpand all lines: README.md
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,35 @@ docker run -it -v $srcDir:/src <DOCKER_NAME>:<DOCKER_VERSION>
26
26
27
27
The documentation is updated manually by checking the official documentation rules in the [PHPMD repository](https://github.com/phpmd/phpmd).
28
28
29
+
## Update version
30
+
31
+
1. Install composer - (It will create the composer.phar file):
32
+
33
+
```
34
+
curl -sS https://getcomposer.org/installer | php
35
+
```
36
+
2. Update phpmd version on composer.json:
37
+
38
+
```
39
+
"require": {
40
+
"phpmd/phpmd": "x.xx.x"
41
+
}
42
+
```
43
+
44
+
3. Run the update command to get the latest versions of the dependencies and to update the composer.lock file:
45
+
46
+
```
47
+
php composer.phar update
48
+
```
49
+
50
+
Note: If you receive a message like this:
51
+
52
+
```
53
+
Could not fetch <URL package>, please review your configured GitHub OAuth token or enter a new one to access private repos" Create a new token here: https://github.com/settings/tokens/new?scopes=&description=Composer to retrieve a token.
54
+
```
55
+
56
+
create the token and paste it to proceed.
57
+
29
58
## Test
30
59
31
60
We use the [codacy-plugins-test](https://github.com/codacy/codacy-plugins-test) to test our external tools integration.
0 commit comments