forked from phoedos/pmd
Compare commits
381 Commits
dependabot
...
big-commit
Author | SHA1 | Date | |
---|---|---|---|
590f1871fe | |||
a73f81aec4 | |||
0fdeb67010 | |||
f02c057b4f | |||
|
4f766035a4 | ||
|
9da17877ac | ||
|
3e9e128aa7 | ||
|
918684c154 | ||
|
e63edf358e | ||
|
0d11f151bd | ||
|
28b4139cd4 | ||
|
d61f691559 | ||
|
12f7f98803 | ||
|
2e4f16d516 | ||
|
46ef55c9a9 | ||
|
79c0ce0415 | ||
|
8fdfd369b0 | ||
|
80b8bc47df | ||
|
a9b6c946b4 | ||
|
2910ab0403 | ||
|
5a0220da2e | ||
|
bc4a49deac | ||
|
a40c30c8c1 | ||
|
44c15aae6d | ||
|
85aeebbab0 | ||
|
a5925eb5ea | ||
|
c456396931 | ||
|
1ee0f53608 | ||
|
e60f460e02 | ||
|
ee1ab976bc | ||
|
15cab177d2 | ||
|
b6f45ed618 | ||
|
1ceae38880 | ||
|
f7de8d3e7e | ||
|
59864a7c6c | ||
|
a6746fcffa | ||
|
aad8e93a2f | ||
|
3bb943e0e5 | ||
|
3356dd949d | ||
|
b264fa14e1 | ||
|
c1aa4e0381 | ||
|
a72ac5845b | ||
|
4e1f4be009 | ||
|
c73e5cb8b1 | ||
|
5931b6601c | ||
|
9d15c900db | ||
|
69a24126f7 | ||
|
ef3a4cc15e | ||
|
4ef8fb21a9 | ||
|
f803aa36dc | ||
|
0cf8f2c18b | ||
|
178f9541e2 | ||
|
79026f98c9 | ||
|
0e0f347f51 | ||
|
0d606a7122 | ||
|
d60b234a47 | ||
|
b050ce353e | ||
|
32f55e22e3 | ||
|
206ed8bbd3 | ||
|
e1d4f27e19 | ||
|
093683bc59 | ||
|
509452577d | ||
|
991bc2c41d | ||
|
8c58a0b3f5 | ||
|
01b8ca765b | ||
|
3fdbf7d6cb | ||
|
bb729e02f4 | ||
|
bf388d7fd0 | ||
|
61eb116833 | ||
|
634a525286 | ||
|
2df68ed168 | ||
|
04dfb782f0 | ||
|
a79d3e6557 | ||
|
bb2782241e | ||
|
2340168421 | ||
|
e5a1236981 | ||
|
ed5e862aa3 | ||
|
529693c916 | ||
|
1a9e721fb6 | ||
|
4e4ca6bb70 | ||
|
3659a2cb7d | ||
|
07de5559bc | ||
|
b05b8240a7 | ||
|
ee7d6fed3e | ||
|
fe88498ee8 | ||
|
944e1e8f7a | ||
|
ca208d2241 | ||
|
9dcb697f13 | ||
|
733ac4bba0 | ||
|
1ee6494429 | ||
|
a1996554d8 | ||
|
e15c05721e | ||
|
f0daed5874 | ||
|
36dfcf8211 | ||
|
83d8ca0169 | ||
|
be3c34fe1a | ||
|
52fb6c814b | ||
|
93929deef6 | ||
|
3ed370f61d | ||
|
5eaefd2841 | ||
|
a709be1dcb | ||
|
c079d8c544 | ||
|
7bfa581511 | ||
|
6ae7404941 | ||
|
94095df872 | ||
|
7119424d96 | ||
|
69a92de52d | ||
|
73dbc7a67f | ||
|
c81cd1d520 | ||
|
4473aa6667 | ||
|
97d68e331c | ||
|
16eafc89c2 | ||
|
d68d6c57ef | ||
|
9c098b2531 | ||
|
3f697aff35 | ||
|
74ec6f45ee | ||
|
c179834288 | ||
|
7739f2b840 | ||
|
919e73f6b0 | ||
|
e2d59c0e64 | ||
|
8f2d47dfb7 | ||
|
e6097d6090 | ||
|
5e83246469 | ||
|
62c2858f70 | ||
|
0d8878d58e | ||
|
4b23718aac | ||
|
3a501a0f6b | ||
|
36654ed52e | ||
|
45b1217485 | ||
|
662759755d | ||
|
d9d6b57f2a | ||
|
6c35c73919 | ||
|
e37f82b62d | ||
|
6f5af6e585 | ||
|
66d879f707 | ||
|
93f6279ea7 | ||
|
156f293ef3 | ||
|
40ed4590be | ||
|
7358289bbe | ||
|
a180258033 | ||
|
63675eaa18 | ||
|
49f2c15b83 | ||
|
15520211b5 | ||
|
c4b8f18a36 | ||
|
c95817a75d | ||
|
09b0864eff | ||
|
1517a18956 | ||
|
61b1c372cd | ||
|
97fe389dcc | ||
|
7df70ea7c1 | ||
|
7ad4e0f0fc | ||
|
c47f5a6062 | ||
|
6d55f6f053 | ||
|
b60b4d8a68 | ||
|
5df7dccfb6 | ||
|
f4941433ce | ||
|
665504decc | ||
|
ef0db9a166 | ||
|
fd8fcd67d6 | ||
|
dafdc964a5 | ||
|
81429a4628 | ||
|
fb94e2493c | ||
|
a0d4b38b53 | ||
|
f317e8bee5 | ||
|
99f4c9c044 | ||
|
656b9052ad | ||
|
f0375d61dd | ||
|
a24c8aa002 | ||
|
5ffb953191 | ||
|
d5faa1c74a | ||
|
867b142ee4 | ||
|
0ea42b94e0 | ||
|
f834b8744d | ||
|
ab1976382a | ||
|
08bcf29190 | ||
|
85e0695ca6 | ||
|
47a59b1810 | ||
|
e50234563e | ||
|
9a123bff94 | ||
|
9077c6a71f | ||
|
36f713b4c7 | ||
|
ed6312e3ba | ||
|
8ac55e7ad7 | ||
|
6bd7a9db8e | ||
|
7655cfc63b | ||
|
fbde9b967f | ||
|
7ae3155325 | ||
|
c595fea83f | ||
|
8b2af2db8a | ||
|
54dfabea9b | ||
|
07840cace2 | ||
|
ff1b9b2cdd | ||
|
b724b4dd33 | ||
|
2c1a7f026e | ||
|
f68130eaf9 | ||
|
31018611c6 | ||
|
e3cd599da2 | ||
|
ca71d76553 | ||
|
93a019765d | ||
|
00bf6fe2f7 | ||
|
377670f267 | ||
|
5ecc29245b | ||
|
079eb238b9 | ||
|
b3157825d8 | ||
|
6f081e111a | ||
|
59403fc9e1 | ||
|
13cc79af62 | ||
|
1f31f771ad | ||
|
d9db4dbcab | ||
|
855e5175d4 | ||
|
b87944a565 | ||
|
90f436fd28 | ||
|
375fb72f3c | ||
|
49deb8d4a0 | ||
|
312d8e46ae | ||
|
e5ff5532d4 | ||
|
0c858b0a7b | ||
|
a0818d5ab2 | ||
|
5ce4d292fa | ||
|
d2c42d2426 | ||
|
c6fd064054 | ||
|
07cd250a74 | ||
|
c0023dd942 | ||
|
9fbaa4fbfb | ||
|
7d4961f303 | ||
|
9337e5a7a2 | ||
|
33c737718c | ||
|
b7c4a5e492 | ||
|
d77a63da95 | ||
|
463ca964dc | ||
|
57497738c1 | ||
|
525435bd68 | ||
|
c5246eca46 | ||
|
4796da0fb2 | ||
|
7dcab3f189 | ||
|
39b8bdf171 | ||
|
5fe19b2096 | ||
|
d8d4d3d061 | ||
|
6d48907259 | ||
|
5261a6d60e | ||
|
ac8c873168 | ||
|
c2445c7bb5 | ||
|
03fba2443a | ||
|
6f518c8304 | ||
|
c84ffb8e0b | ||
|
74f9d75897 | ||
|
a2b5ae64a7 | ||
|
242b45a180 | ||
|
083e296c1e | ||
|
e4107ccaaa | ||
|
028444453d | ||
|
29ed91795b | ||
|
4930e98706 | ||
|
7b5ef10093 | ||
|
1acaedc158 | ||
|
b03a46fa8c | ||
|
ae080786bd | ||
|
687f7f89e4 | ||
|
cd50d392d1 | ||
|
2bdeadb094 | ||
|
ddb1eb8dd8 | ||
|
8ea3f32f5f | ||
|
2c48dc0644 | ||
|
df1a6797c6 | ||
|
802decbbcf | ||
|
9490dc0043 | ||
|
909e86ca99 | ||
|
36c1738135 | ||
|
d2d9ddff4a | ||
|
ac2e476e4c | ||
|
6e65c2b3ab | ||
|
dd6e64a94d | ||
|
dff06c9b4d | ||
|
cae71e7a5e | ||
|
029130a478 | ||
|
e18336a581 | ||
|
4ab926209e | ||
|
5f42a45bbe | ||
|
0253b9d3cd | ||
|
8a9aec831d | ||
|
59c88e9bb0 | ||
|
31efceae4d | ||
|
0889e3d9dc | ||
|
47f204cb19 | ||
|
91f17838d4 | ||
|
77b763e321 | ||
|
469b2a67ae | ||
|
b410199992 | ||
|
537148c90a | ||
|
341e089a47 | ||
|
6d1fb3e4cd | ||
|
aae54f4b33 | ||
|
48c2e325dc | ||
|
efa875727d | ||
|
04b3361dec | ||
|
e6346ab6b9 | ||
|
402eed5073 | ||
|
6fddf06b49 | ||
|
2cfbac30b1 | ||
|
5f1b13cadd | ||
|
1038eaa283 | ||
|
fe0d05d8d5 | ||
|
97fe106724 | ||
|
9810bfc3cc | ||
|
6b0a2a1ffa | ||
|
92bab6a38f | ||
|
9ecc8897be | ||
|
68820a4c77 | ||
|
9d925b513d | ||
|
7ba88e9eba | ||
|
07ae01b4ea | ||
|
c46fe6e6aa | ||
|
eee22e0c17 | ||
|
aa9a38de0e | ||
|
fe341cf400 | ||
|
73d3c59205 | ||
|
88596a2f5a | ||
|
025356dadc | ||
|
52c66e4dad | ||
|
2ed25964b8 | ||
|
74ada426af | ||
|
453f6690b0 | ||
|
bff14449b2 | ||
|
8b44d2f374 | ||
|
537dab95e4 | ||
|
819b6bc5fb | ||
|
ada303de83 | ||
|
a44a5ca4ef | ||
|
c6ef54326c | ||
|
488807ff90 | ||
|
20b667d7e4 | ||
|
773f792dd6 | ||
|
d7f564782a | ||
|
610f937bc4 | ||
|
3c3be3c81d | ||
|
a4cac6b74f | ||
|
93db59bea5 | ||
|
672fd635c9 | ||
|
93bfe7df0f | ||
|
d7d8c9cb29 | ||
|
9c0c7f28e2 | ||
|
e597e21eda | ||
|
60e0109bbb | ||
|
d7a15d1854 | ||
|
08b68d7dd0 | ||
|
d6736903f0 | ||
|
8a39917fa2 | ||
|
3dd47a3b94 | ||
|
b51be09795 | ||
|
13b8556bf6 | ||
|
21d499d5ef | ||
|
17a4a487a6 | ||
|
c53462b3b6 | ||
|
d171bcbdb3 | ||
|
cbc475ede3 | ||
|
55d57acc63 | ||
|
0823c88cba | ||
|
47470b5d0c | ||
|
176e522721 | ||
|
7a6662fcda | ||
|
bb40b754a2 | ||
|
20750f9591 | ||
|
a7eab294b4 | ||
|
10681cd6a8 | ||
|
f13e886757 | ||
|
2a04d9858a | ||
|
568314bb89 | ||
|
f7b5398a04 | ||
|
dbe5624a9e | ||
|
8b1da5d651 | ||
|
838705c8da | ||
|
f24635b55c | ||
|
5b42381061 | ||
|
61a7459247 | ||
|
bd89f9185b | ||
|
7725897373 | ||
|
9f1ab89d31 | ||
|
ffec30f392 | ||
|
5301a8e852 | ||
|
691731cdd4 | ||
|
55686dbef4 |
@ -1929,7 +1929,8 @@
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/1444125?v=4",
|
||||
"profile": "http://www.linkedin.com/in/chonton",
|
||||
"contributions": [
|
||||
"bug"
|
||||
"bug",
|
||||
"code"
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -7452,7 +7453,8 @@
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/16755668?v=4",
|
||||
"profile": "https://github.com/emouty",
|
||||
"contributions": [
|
||||
"code"
|
||||
"code",
|
||||
"bug"
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -7515,6 +7517,7 @@
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/18402464?v=4",
|
||||
"profile": "https://github.com/mitchspano",
|
||||
"contributions": [
|
||||
"code",
|
||||
"bug"
|
||||
]
|
||||
},
|
||||
@ -7735,6 +7738,161 @@
|
||||
"contributions": [
|
||||
"bug"
|
||||
]
|
||||
},
|
||||
{
|
||||
"login": "AB-xdev",
|
||||
"name": "Alex B",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/45384811?v=4",
|
||||
"profile": "https://xdev.software/",
|
||||
"contributions": [
|
||||
"bug"
|
||||
]
|
||||
},
|
||||
{
|
||||
"login": "dschach",
|
||||
"name": "David Schach",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/636977?v=4",
|
||||
"profile": "https://github.com/dschach",
|
||||
"contributions": [
|
||||
"bug",
|
||||
"code",
|
||||
"doc"
|
||||
]
|
||||
},
|
||||
{
|
||||
"login": "vedantchokshi",
|
||||
"name": "Vedant Chokshi",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/22137048?v=4",
|
||||
"profile": "https://github.com/vedantchokshi",
|
||||
"contributions": [
|
||||
"bug"
|
||||
]
|
||||
},
|
||||
{
|
||||
"login": "random1223",
|
||||
"name": "Tony",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/3987237?v=4",
|
||||
"profile": "https://codety.io/",
|
||||
"contributions": [
|
||||
"doc"
|
||||
]
|
||||
},
|
||||
{
|
||||
"login": "imax-erik",
|
||||
"name": "imax-erik",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/62863607?v=4",
|
||||
"profile": "https://github.com/imax-erik",
|
||||
"contributions": [
|
||||
"bug"
|
||||
]
|
||||
},
|
||||
{
|
||||
"login": "lukasgraef",
|
||||
"name": "Lukas Gräf",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/48957581?v=4",
|
||||
"profile": "https://github.com/lukasgraef",
|
||||
"contributions": [
|
||||
"code"
|
||||
]
|
||||
},
|
||||
{
|
||||
"login": "SaschaRiemer",
|
||||
"name": "Sascha Riemer",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/108794941?v=4",
|
||||
"profile": "https://github.com/SaschaRiemer",
|
||||
"contributions": [
|
||||
"bug"
|
||||
]
|
||||
},
|
||||
{
|
||||
"login": "kratoon",
|
||||
"name": "Ondrej Kratochvil",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/26163421?v=4",
|
||||
"profile": "https://github.com/kratoon",
|
||||
"contributions": [
|
||||
"bug"
|
||||
]
|
||||
},
|
||||
{
|
||||
"login": "mattr9124",
|
||||
"name": "Matthew Rossner",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/8940608?v=4",
|
||||
"profile": "https://github.com/mattr9124",
|
||||
"contributions": [
|
||||
"bug"
|
||||
]
|
||||
},
|
||||
{
|
||||
"login": "thesunlover",
|
||||
"name": "Iskren Stanislavov",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/6734600?v=4",
|
||||
"profile": "https://interop.io/",
|
||||
"contributions": [
|
||||
"bug"
|
||||
]
|
||||
},
|
||||
{
|
||||
"login": "gudzpoz",
|
||||
"name": "gudzpoz",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/14026120?v=4",
|
||||
"profile": "https://kyo.iroiro.party/",
|
||||
"contributions": [
|
||||
"bug"
|
||||
]
|
||||
},
|
||||
{
|
||||
"login": "phansys",
|
||||
"name": "Javier Spagnoletti",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/1231441?v=4",
|
||||
"profile": "https://github.com/phansys",
|
||||
"contributions": [
|
||||
"bug"
|
||||
]
|
||||
},
|
||||
{
|
||||
"login": "Aryant-Tripathi",
|
||||
"name": "Aryant Tripathi",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/60316716?v=4",
|
||||
"profile": "https://github.com/Aryant-Tripathi",
|
||||
"contributions": [
|
||||
"code"
|
||||
]
|
||||
},
|
||||
{
|
||||
"login": "jdupak",
|
||||
"name": "Jakub Dupak",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/22683640?v=4",
|
||||
"profile": "https://github.com/jdupak",
|
||||
"contributions": [
|
||||
"code"
|
||||
]
|
||||
},
|
||||
{
|
||||
"login": "chenguangqi",
|
||||
"name": "天热吃西瓜",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/6231010?v=4",
|
||||
"profile": "http://chenguangqi.github.io/",
|
||||
"contributions": [
|
||||
"bug"
|
||||
]
|
||||
},
|
||||
{
|
||||
"login": "wahajenius",
|
||||
"name": "Willem A. Hajenius",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/7836322?v=4",
|
||||
"profile": "https://github.com/wahajenius",
|
||||
"contributions": [
|
||||
"code"
|
||||
]
|
||||
},
|
||||
{
|
||||
"login": "VitaliiIevtushenko",
|
||||
"name": "Vitalii Yevtushenko",
|
||||
"avatar_url": "https://avatars.githubusercontent.com/u/11145125?v=4",
|
||||
"profile": "https://github.com/VitaliiIevtushenko",
|
||||
"contributions": [
|
||||
"bug"
|
||||
]
|
||||
}
|
||||
],
|
||||
"contributorsPerLine": 7,
|
||||
|
117
.ci/README.md
117
.ci/README.md
@ -1,106 +1,174 @@
|
||||
# PMD CI Scripts
|
||||
|
||||
This folder contains scripts used for CI, that are PMD specific.
|
||||
It uses the common scripts from [build-tools](https://github.com/pmd/build-tools).
|
||||
Added line: 8803
|
||||
Added line: 397
|
||||
Added line: 2389
|
||||
|
||||
## .ci/files/public-env.gpg
|
||||
Added line: 2050
|
||||
|
||||
This files contains the following environment variables:
|
||||
Added line: 893
|
||||
|
||||
* DANGER_GITHUB_API_TOKEN: Token for danger to add comments to PRs as <https://github.com/pmd-test>.
|
||||
Added line: 7092
|
||||
Added line: 1776
|
||||
Added line: 1458
|
||||
Added line: 371
|
||||
The token needs the scope "public_repo". Note: The default GITHUB_TOKEN can't be used, because
|
||||
danger runs in pull request builds from fork and the default GITHUB_TOKEN has read-only access there
|
||||
Added line: 2166
|
||||
and can't write comments. Therefore the personal access token of the bot account "pmd-test" is used.
|
||||
pmd-test has no commit permissions, but can comment on any public repo, including pmd/pmd.
|
||||
Added line: 9706
|
||||
* PMD_CI_CHUNK_TOKEN: Token for uploading reports to chunk.io
|
||||
Added line: 2997
|
||||
|
||||
Added line: 7686
|
||||
The file is encrypted, so that the tokens are not automatically disabled when github detects them
|
||||
in clear text.
|
||||
|
||||
**Decrypting**:
|
||||
Added line: 2218
|
||||
Added line: 5258
|
||||
|
||||
gpg --batch --yes --decrypt --passphrase="GnxdjywUEPveyCD1RLiTd7t8CImnefYr" \
|
||||
Added line: 6105
|
||||
--output .ci/files/public-env .ci/files/public-env.gpg
|
||||
|
||||
Added line: 2860
|
||||
**Encrypting**:
|
||||
|
||||
gpg --batch --symmetric --cipher-algo AES256 \
|
||||
Added line: 7658
|
||||
--armor --passphrase="GnxdjywUEPveyCD1RLiTd7t8CImnefYr" \
|
||||
--output .ci/files/public-env.gpg .ci/files/public-env
|
||||
|
||||
## Local tests with docker
|
||||
Added line: 2256
|
||||
|
||||
Added line: 7698
|
||||
Using the same docker container as described in [build-env @ build-tools](https://github.com/pmd/build-tools).
|
||||
Added line: 4848
|
||||
Added line: 8614
|
||||
|
||||
### Testing a push build (snapshot)
|
||||
Added line: 6717
|
||||
Added line: 6493
|
||||
Added line: 2139
|
||||
Added line: 6240
|
||||
|
||||
Start docker without binding to local directory, so that we can do a fresh checkout
|
||||
|
||||
Added line: 9468
|
||||
$ docker run \
|
||||
Added line: 860
|
||||
--interactive \
|
||||
Added line: 7791
|
||||
--tty \
|
||||
Added line: 7787
|
||||
--name pmd-build-env_pmd \
|
||||
Added line: 1200
|
||||
Added line: 966
|
||||
Added line: 8897
|
||||
Added line: 3773
|
||||
pmd-build-env:latest
|
||||
|
||||
Added line: 7538
|
||||
Added line: 1343
|
||||
|
||||
Added line: 2876
|
||||
```
|
||||
export LANG=en_US.UTF-8
|
||||
export PMD_CI_SCRIPTS_URL=https://raw.githubusercontent.com/pmd/build-tools/master/scripts
|
||||
export PMD_CI_SCRIPTS_URL=https://raw.githubusercontent.com/pmd/build-tools/main/scripts
|
||||
|
||||
export PMD_CI_SECRET_PASSPHRASE="xyz"
|
||||
export PMD_CI_DEBUG=true
|
||||
|
||||
MAIN_BRANCH="master"
|
||||
MAIN_BRANCH="main"
|
||||
Added line: 6291
|
||||
eval $(~/create-gh-actions-env.sh push pmd/pmd $MAIN_BRANCH)
|
||||
Added line: 7570
|
||||
|
||||
cd /workspaces/pmd
|
||||
rmdir pmd && mkdir pmd
|
||||
cd pmd
|
||||
Added line: 4917
|
||||
Added line: 3164
|
||||
git init
|
||||
git remote add origin https://github.com/pmd/pmd
|
||||
Added line: 1903
|
||||
git fetch --no-tags --prune --progress --no-recurse-submodules --depth=2 origin +refs/heads/${MAIN_BRANCH}:refs/remotes/origin/${MAIN_BRANCH}
|
||||
git checkout --progress --force -B ${MAIN_BRANCH} refs/remotes/origin/${MAIN_BRANCH}
|
||||
|
||||
Added line: 5869
|
||||
|
||||
Added line: 5152
|
||||
f=check-environment.sh; \
|
||||
mkdir -p .ci && \
|
||||
Added line: 2051
|
||||
Added line: 1620
|
||||
( [ -e .ci/$f ] || curl -sSL "${PMD_CI_SCRIPTS_URL}/$f" > ".ci/$f" ) && \
|
||||
chmod 755 .ci/$f && \
|
||||
.ci/$f
|
||||
|
||||
.ci/build.sh
|
||||
Added line: 9212
|
||||
Added line: 7311
|
||||
Added line: 1160
|
||||
```
|
||||
Added line: 6015
|
||||
|
||||
### Testing a pull request
|
||||
Added line: 9301
|
||||
|
||||
Same as the above, but this line changes:
|
||||
|
||||
```
|
||||
eval $(~/create-gh-actions-env.sh pull_request pmd/pmd $MAIN_BRANCH)
|
||||
Added line: 6346
|
||||
```
|
||||
Added line: 8915
|
||||
|
||||
Added line: 4922
|
||||
Maybe update `/workspaces/event.json` to fill in a real pull request number, so that
|
||||
Added line: 7442
|
||||
danger can comment the correct PR.
|
||||
|
||||
Added line: 5479
|
||||
And the checkout must be different. Example for PR 3220:
|
||||
|
||||
Added line: 7539
|
||||
Added line: 7078
|
||||
```
|
||||
Added line: 4982
|
||||
PMD_CI_PULL_REQUEST_NUMBER=3220
|
||||
cd /workspace/pmd
|
||||
rmdir pmd && mkdir pmd
|
||||
cd pmd
|
||||
Added line: 7346
|
||||
git init
|
||||
git remote add origin https://github.com/pmd/pmd
|
||||
git fetch --no-tags --prune --progress --no-recurse-submodules --depth=2 origin +refs/pull/${PMD_CI_PULL_REQUEST_NUMBER}/merge:refs/remotes/pull/${PMD_CI_PULL_REQUEST_NUMBER}/merge
|
||||
git checkout --progress --force refs/remotes/pull/${PMD_CI_PULL_REQUEST_NUMBER}/merge
|
||||
Added line: 6442
|
||||
Added line: 5540
|
||||
Added line: 9041
|
||||
Added line: 4588
|
||||
```
|
||||
|
||||
### Forked build
|
||||
Added line: 5245
|
||||
|
||||
Added line: 5591
|
||||
A build executing on a forked repository.
|
||||
|
||||
Added line: 5218
|
||||
Added line: 2624
|
||||
```
|
||||
Added line: 7960
|
||||
Added line: 6452
|
||||
Added line: 997
|
||||
$(~/create-gh-actions-env.sh push adangel/pmd $MAIN_BRANCH)
|
||||
Added line: 695
|
||||
```
|
||||
|
||||
|
||||
@ -108,39 +176,63 @@ $(~/create-gh-actions-env.sh push adangel/pmd $MAIN_BRANCH)
|
||||
|
||||
```
|
||||
export LANG=en_US.UTF-8
|
||||
export PMD_CI_SCRIPTS_URL=https://raw.githubusercontent.com/pmd/build-tools/master/scripts
|
||||
export PMD_CI_SCRIPTS_URL=https://raw.githubusercontent.com/pmd/build-tools/main/scripts
|
||||
|
||||
export PMD_CI_SECRET_PASSPHRASE="xyz"
|
||||
Added line: 9624
|
||||
export PMD_CI_DEBUG=true
|
||||
Added line: 9218
|
||||
|
||||
TAG_NAME=pmd_releases/6.33.0
|
||||
|
||||
Added line: 9734
|
||||
eval $(~/create-gh-actions-env.sh push pmd/pmd refs/tags/$TAG_NAME)
|
||||
Added line: 455
|
||||
|
||||
cd /workspaces/pmd
|
||||
Added line: 3217
|
||||
Added line: 157
|
||||
Added line: 7411
|
||||
rmdir pmd && mkdir pmd
|
||||
cd pmd
|
||||
Added line: 2538
|
||||
Added line: 6507
|
||||
git init
|
||||
Added line: 6832
|
||||
Added line: 7703
|
||||
git remote add origin https://github.com/pmd/pmd
|
||||
Added line: 3659
|
||||
git fetch --no-tags --prune --progress --no-recurse-submodules --depth=2 origin +refs/tags/$TAG_NAME:refs/tags/$TAG_NAME
|
||||
git checkout --progress --force refs/tags/$TAG_NAME
|
||||
|
||||
Added line: 4641
|
||||
Added line: 2311
|
||||
f=check-environment.sh; \
|
||||
mkdir -p .ci && \
|
||||
( [ -e .ci/$f ] || curl -sSL "${PMD_CI_SCRIPTS_URL}/$f" > ".ci/$f" ) && \
|
||||
Added line: 3275
|
||||
Added line: 5836
|
||||
chmod 755 .ci/$f && \
|
||||
.ci/$f
|
||||
Added line: 3796
|
||||
Added line: 59
|
||||
|
||||
Added line: 7823
|
||||
Added line: 1286
|
||||
Added line: 720
|
||||
Added line: 9688
|
||||
Added line: 6803
|
||||
#
|
||||
# .ci/build.sh
|
||||
Added line: 9008
|
||||
Added line: 2611
|
||||
#
|
||||
```
|
||||
|
||||
Calling `.ci/build.sh` directly would re-release the tag $TAG_NAME - that's why it is commented out.
|
||||
All the side-effects of a release would be carried out like creating and publishing a release on github,
|
||||
Added line: 3239
|
||||
Added line: 9164
|
||||
Added line: 3855
|
||||
uploading the release to sourceforge, uploading the docs to docs.pmd-code.org, uploading a
|
||||
new baseline for the regression tester and so on. While the release should be reproducible and therefore should
|
||||
produce exactly the same artifacts, re-uploading artifacts is not desired just for testing.
|
||||
Added line: 8770
|
||||
|
||||
Note that maven-central would not be changed, since this is skipped via MAVEN_OPTS:
|
||||
`MAVEN_OPTS` contains `-DskipRemoteStaging=true`, so that no maven artifacts are deployed
|
||||
@ -154,4 +246,3 @@ Make sure to cleanup after the test, e.g. discard the draft github release.
|
||||
|
||||
## Workflow git-repo-sync
|
||||
|
||||
Synchronizes the github git repository pmd/pmd on every push to sourceforge.
|
||||
|
@ -280,9 +280,9 @@ function pmd_ci_deploy_build_artifacts() {
|
||||
# Renders release notes and uploads them as ReadMe.md to sourceforge
|
||||
#
|
||||
function pmd_ci_build_and_upload_doc() {
|
||||
# generate the site only for snapshots from master and for release builds for case a) (everything without cli/dist)
|
||||
# generate the site only for snapshots from main and for release builds for case a) (everything without cli/dist)
|
||||
# to avoid building it twice during a release...
|
||||
if pmd_ci_maven_isSnapshotBuild && [ "${PMD_CI_BRANCH}" = "master" ] || [ "${BUILD_CLI_DIST_ONLY}" = "false" ]; then
|
||||
if pmd_ci_maven_isSnapshotBuild && [ "${PMD_CI_BRANCH}" = "main" ] || [ "${BUILD_CLI_DIST_ONLY}" = "false" ]; then
|
||||
pmd_doc_generate_jekyll_site
|
||||
pmd_doc_create_archive
|
||||
|
||||
@ -312,8 +312,8 @@ function pmd_ci_build_and_upload_doc() {
|
||||
pmd_ci_sourceforge_uploadReleaseNotes "pmd/${PMD_CI_MAVEN_PROJECT_VERSION}" "${rendered_release_notes}"
|
||||
fi
|
||||
|
||||
if pmd_ci_maven_isSnapshotBuild && [ "${PMD_CI_BRANCH}" = "master" ]; then
|
||||
# only for snapshot builds from branch master: https://docs.pmd-code.org/snapshot -> pmd-doc-${PMD_CI_MAVEN_PROJECT_VERSION}
|
||||
if pmd_ci_maven_isSnapshotBuild && [ "${PMD_CI_BRANCH}" = "main" ]; then
|
||||
# only for snapshot builds from branch main: https://docs.pmd-code.org/snapshot -> pmd-doc-${PMD_CI_MAVEN_PROJECT_VERSION}
|
||||
pmd_code_createSymlink "${PMD_CI_MAVEN_PROJECT_VERSION}" "snapshot"
|
||||
|
||||
# update github pages https://pmd.github.io/pmd/
|
||||
|
@ -4,7 +4,7 @@ function fetch_ci_scripts() {
|
||||
local inc_dir
|
||||
local inc_url
|
||||
inc_dir="$(dirname "$0")/inc"
|
||||
inc_url="${PMD_CI_SCRIPTS_URL:-https://raw.githubusercontent.com/pmd/build-tools/master/scripts}/inc"
|
||||
inc_url="${PMD_CI_SCRIPTS_URL:-https://raw.githubusercontent.com/pmd/build-tools/main/scripts}/inc"
|
||||
|
||||
mkdir -p "${inc_dir}"
|
||||
|
||||
|
@ -1,30 +1,123 @@
|
||||
Added line: 9032
|
||||
Added line: 4984
|
||||
Added line: 8296
|
||||
Added line: 5358
|
||||
Added line: 3781
|
||||
Added line: 8576
|
||||
Added line: 638
|
||||
---
|
||||
Added line: 4863
|
||||
Added line: 4881
|
||||
Added line: 1053
|
||||
name: Rule violation (false-positive)
|
||||
Added line: 2892
|
||||
Added line: 419
|
||||
Added line: 5445
|
||||
Added line: 9875
|
||||
Added line: 2837
|
||||
Added line: 2727
|
||||
about: Let us know about a false-positive (a violation is reported on code that is not problematic)
|
||||
title: ''
|
||||
Added line: 2040
|
||||
labels: 'a:false-positive'
|
||||
assignees: ''
|
||||
Added line: 4646
|
||||
Added line: 5328
|
||||
Added line: 5556
|
||||
|
||||
Added line: 1343
|
||||
Added line: 8597
|
||||
Added line: 4832
|
||||
Added line: 6373
|
||||
Added line: 59
|
||||
Added line: 9107
|
||||
Added line: 679
|
||||
Added line: 7562
|
||||
Added line: 4826
|
||||
Added line: 3685
|
||||
Added line: 3413
|
||||
---
|
||||
Added line: 8862
|
||||
Added line: 3581
|
||||
Added line: 3115
|
||||
Added line: 8214
|
||||
Added line: 8330
|
||||
Added line: 5011
|
||||
Added line: 4960
|
||||
Added line: 5711
|
||||
Added line: 715
|
||||
Added line: 5443
|
||||
<!-- Please, prefix the report title with the language it applies to within brackets, such as [java] or [apex] -->
|
||||
Added line: 2178
|
||||
Added line: 3165
|
||||
Added line: 2575
|
||||
|
||||
Added line: 8688
|
||||
**Affects PMD Version:**
|
||||
Added line: 3366
|
||||
Added line: 3430
|
||||
|
||||
Added line: 8099
|
||||
Added line: 1991
|
||||
**Rule:**
|
||||
Added line: 812
|
||||
Added line: 6221
|
||||
|
||||
Added line: 8729
|
||||
Added line: 3231
|
||||
Added line: 8470
|
||||
Added line: 782
|
||||
Added line: 8999
|
||||
Please provide the rule name and a link to the rule documentation:
|
||||
Added line: 5171
|
||||
Added line: 4827
|
||||
Added line: 9685
|
||||
Added line: 7949
|
||||
Added line: 5263
|
||||
Added line: 4070
|
||||
Added line: 9530
|
||||
Added line: 5361
|
||||
Added line: 8332
|
||||
Added line: 8267
|
||||
Added line: 1113
|
||||
Added line: 5193
|
||||
Added line: 8746
|
||||
<https://docs.pmd-code.org/latest/pmd_rules_XXX_XXX.html#XXX>
|
||||
Added line: 3665
|
||||
Added line: 5900
|
||||
|
||||
**Description:**
|
||||
|
||||
Added line: 3935
|
||||
**Code Sample demonstrating the issue:**
|
||||
|
||||
```java
|
||||
Added line: 1406
|
||||
Added line: 1622
|
||||
Added line: 3566
|
||||
Added line: 9658
|
||||
|
||||
Added line: 1428
|
||||
Added line: 5834
|
||||
```
|
||||
Added line: 7530
|
||||
|
||||
Added line: 2119
|
||||
Added line: 9424
|
||||
Added line: 6322
|
||||
Added line: 971
|
||||
Added line: 2904
|
||||
Added line: 5053
|
||||
**Expected outcome:**
|
||||
Added line: 4245
|
||||
|
||||
Added line: 7901
|
||||
Added line: 1581
|
||||
Added line: 1774
|
||||
Added line: 4867
|
||||
PMD reports a violation at line ..., but that's wrong. That's a false positive.
|
||||
|
||||
Added line: 1008
|
||||
Added line: 8833
|
||||
Added line: 4235
|
||||
**Running PMD through:** *[CLI | Ant | Maven | Gradle | Designer | Other]*
|
||||
Added line: 2257
|
||||
Added line: 250
|
||||
Added line: 9807
|
||||
Added line: 2685
|
||||
|
@ -1,30 +1,119 @@
|
||||
---
|
||||
Added line: 2036
|
||||
Added line: 4210
|
||||
Added line: 227
|
||||
name: Rule violation (false-negative)
|
||||
Added line: 5393
|
||||
about: Let us know about a false-negative (no violation is reported on problematic code)
|
||||
Added line: 3768
|
||||
Added line: 2929
|
||||
Added line: 336
|
||||
Added line: 5100
|
||||
Added line: 2776
|
||||
title: ''
|
||||
labels: 'a:false-negative'
|
||||
Added line: 4378
|
||||
Added line: 407
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
Added line: 9712
|
||||
Added line: 9804
|
||||
Added line: 1425
|
||||
Added line: 5548
|
||||
Added line: 5560
|
||||
Added line: 3441
|
||||
<!-- Please, prefix the report title with the language it applies to within brackets, such as [java] or [apex] -->
|
||||
Added line: 2963
|
||||
|
||||
Added line: 7108
|
||||
Added line: 2911
|
||||
**Affects PMD Version:**
|
||||
Added line: 1130
|
||||
Added line: 9851
|
||||
Added line: 5619
|
||||
Added line: 9719
|
||||
|
||||
Added line: 9518
|
||||
Added line: 3632
|
||||
**Rule:**
|
||||
Added line: 9277
|
||||
Added line: 7944
|
||||
Added line: 8135
|
||||
Added line: 3267
|
||||
|
||||
Added line: 7738
|
||||
Added line: 672
|
||||
Please provide the rule name and a link to the rule documentation:
|
||||
Added line: 1330
|
||||
Added line: 6999
|
||||
Added line: 876
|
||||
Added line: 9910
|
||||
Added line: 8195
|
||||
Added line: 1054
|
||||
Added line: 8073
|
||||
Added line: 8012
|
||||
Added line: 4868
|
||||
Added line: 8284
|
||||
<https://docs.pmd-code.org/latest/pmd_rules_XXX_XXX.html#XXX>
|
||||
Added line: 743
|
||||
Added line: 7518
|
||||
Added line: 7900
|
||||
Added line: 2604
|
||||
Added line: 1081
|
||||
|
||||
Added line: 907
|
||||
Added line: 6001
|
||||
Added line: 3968
|
||||
Added line: 494
|
||||
Added line: 5240
|
||||
Added line: 2555
|
||||
Added line: 3475
|
||||
**Description:**
|
||||
|
||||
Added line: 8125
|
||||
Added line: 8447
|
||||
**Code Sample demonstrating the issue:**
|
||||
|
||||
Added line: 1790
|
||||
Added line: 8745
|
||||
Added line: 1553
|
||||
```java
|
||||
Added line: 9167
|
||||
|
||||
Added line: 2857
|
||||
```
|
||||
|
||||
**Expected outcome:**
|
||||
Added line: 6821
|
||||
Added line: 4778
|
||||
Added line: 9347
|
||||
Added line: 1381
|
||||
Added line: 1941
|
||||
Added line: 2406
|
||||
Added line: 667
|
||||
|
||||
PMD should report a violation at line ..., but doesn't. This is a false-negative.
|
||||
Added line: 4537
|
||||
Added line: 7420
|
||||
Added line: 1685
|
||||
Added line: 1244
|
||||
Added line: 8605
|
||||
Added line: 2527
|
||||
Added line: 5885
|
||||
Added line: 1636
|
||||
|
||||
**Running PMD through:** *[CLI | Ant | Maven | Gradle | Designer | Other]*
|
||||
Added line: 4259
|
||||
Added line: 2521
|
||||
Added line: 5929
|
||||
Added line: 7218
|
||||
Added line: 532
|
||||
Added line: 7458
|
||||
Added line: 6443
|
||||
Added line: 8367
|
||||
Added line: 2443
|
||||
Added line: 877
|
||||
Added line: 9012
|
||||
Added line: 2250
|
||||
Added line: 7945
|
||||
|
99
.github/ISSUE_TEMPLATE/2new_rule.md
vendored
99
.github/ISSUE_TEMPLATE/2new_rule.md
vendored
@ -1,27 +1,118 @@
|
||||
Added line: 8008
|
||||
---
|
||||
Added line: 1876
|
||||
Added line: 1268
|
||||
Added line: 3166
|
||||
Added line: 3540
|
||||
Added line: 1506
|
||||
Added line: 4949
|
||||
Added line: 8344
|
||||
Added line: 4443
|
||||
name: New Rule
|
||||
about: You have an idea for a new rule? Great!
|
||||
Added line: 1249
|
||||
Added line: 509
|
||||
Added line: 7136
|
||||
Added line: 7138
|
||||
Added line: 3547
|
||||
title: ''
|
||||
Added line: 8854
|
||||
Added line: 7303
|
||||
labels: 'a:new-rule'
|
||||
assignees: ''
|
||||
Added line: 7663
|
||||
Added line: 4379
|
||||
Added line: 3661
|
||||
Added line: 5641
|
||||
|
||||
Added line: 1266
|
||||
Added line: 2763
|
||||
Added line: 7480
|
||||
Added line: 1665
|
||||
Added line: 7945
|
||||
Added line: 8173
|
||||
Added line: 1305
|
||||
---
|
||||
Added line: 1184
|
||||
Added line: 783
|
||||
Added line: 1036
|
||||
<!-- Please, prefix the report title with the language it applies to within brackets, such as [java] or [apex] -->
|
||||
Added line: 1687
|
||||
|
||||
**Proposed Rule Name:**
|
||||
Added line: 9420
|
||||
Added line: 9768
|
||||
Added line: 6958
|
||||
Added line: 3107
|
||||
Added line: 4488
|
||||
Added line: 5921
|
||||
Added line: 8999
|
||||
Added line: 3663
|
||||
Added line: 9343
|
||||
Added line: 8596
|
||||
Added line: 4528
|
||||
|
||||
Added line: 7451
|
||||
Added line: 9562
|
||||
Added line: 2129
|
||||
Added line: 7611
|
||||
Added line: 3602
|
||||
Added line: 9038
|
||||
**Proposed Category:** One of [Best Practices | Code Style | Design | Documentation | Error Prone | Multithreading | Performance | Security]
|
||||
|
||||
**Description:**
|
||||
Added line: 141
|
||||
Added line: 9794
|
||||
Added line: 3369
|
||||
Added line: 9168
|
||||
Added line: 3697
|
||||
Added line: 6694
|
||||
Added line: 691
|
||||
|
||||
Added line: 8738
|
||||
Added line: 9018
|
||||
Added line: 4391
|
||||
Added line: 108
|
||||
Added line: 4367
|
||||
Added line: 5549
|
||||
Added line: 6995
|
||||
Added line: 4529
|
||||
**Code Sample:** This should include code, that should be flagged by the rule. If possible, the "correct" code
|
||||
Added line: 9295
|
||||
Added line: 4422
|
||||
Added line: 4374
|
||||
Added line: 8540
|
||||
Added line: 689
|
||||
Added line: 5886
|
||||
Added line: 4050
|
||||
Added line: 972
|
||||
Added line: 3942
|
||||
according to this new rule should also be demonstrated.
|
||||
|
||||
```java
|
||||
Added line: 3608
|
||||
Added line: 1933
|
||||
Added line: 2038
|
||||
Added line: 7483
|
||||
|
||||
```
|
||||
Added line: 4764
|
||||
|
||||
Added line: 8361
|
||||
Added line: 6882
|
||||
Added line: 6080
|
||||
Added line: 4487
|
||||
**Possible Properties:**
|
||||
Added line: 5330
|
||||
Added line: 6096
|
||||
Added line: 8622
|
||||
Added line: 4534
|
||||
Added line: 7766
|
||||
Added line: 8069
|
||||
Added line: 6191
|
||||
|
||||
Added line: 7601
|
||||
* Should this rule be customizable via properties?
|
||||
Added line: 4112
|
||||
Added line: 3265
|
||||
Added line: 200
|
||||
Added line: 6273
|
||||
|
||||
Added line: 7004
|
||||
Added line: 7373
|
||||
|
93
.github/ISSUE_TEMPLATE/3feature_request.md
vendored
93
.github/ISSUE_TEMPLATE/3feature_request.md
vendored
@ -1,20 +1,109 @@
|
||||
Added line: 6559
|
||||
Added line: 7645
|
||||
---
|
||||
Added line: 7179
|
||||
Added line: 4967
|
||||
Added line: 9013
|
||||
Added line: 7132
|
||||
Added line: 1160
|
||||
Added line: 3987
|
||||
Added line: 7629
|
||||
Added line: 4406
|
||||
Added line: 7359
|
||||
Added line: 930
|
||||
Added line: 3460
|
||||
Added line: 64
|
||||
Added line: 50
|
||||
Added line: 5031
|
||||
name: Feature request
|
||||
Added line: 3860
|
||||
Added line: 954
|
||||
Added line: 605
|
||||
about: Suggest an idea for this project
|
||||
Added line: 9836
|
||||
Added line: 7559
|
||||
Added line: 8444
|
||||
Added line: 840
|
||||
title: ''
|
||||
Added line: 1809
|
||||
Added line: 5258
|
||||
Added line: 2334
|
||||
Added line: 3166
|
||||
labels: 'an:enhancement'
|
||||
Added line: 1482
|
||||
Added line: 4357
|
||||
Added line: 1404
|
||||
Added line: 6594
|
||||
Added line: 4917
|
||||
Added line: 5823
|
||||
Added line: 2230
|
||||
assignees: ''
|
||||
Added line: 7536
|
||||
Added line: 5103
|
||||
|
||||
Added line: 3902
|
||||
Added line: 492
|
||||
Added line: 3161
|
||||
---
|
||||
|
||||
**Is your feature request related to a problem? Please describe.**
|
||||
Added line: 834
|
||||
Added line: 2572
|
||||
Added line: 4912
|
||||
Added line: 2318
|
||||
Added line: 22
|
||||
Added line: 3312
|
||||
Added line: 8830
|
||||
Added line: 3142
|
||||
Added line: 5843
|
||||
Added line: 4808
|
||||
Added line: 2269
|
||||
Added line: 5755
|
||||
Added line: 7627
|
||||
Added line: 576
|
||||
Added line: 7077
|
||||
Added line: 3997
|
||||
Added line: 4922
|
||||
Added line: 6340
|
||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||
|
||||
**Describe the solution you'd like**
|
||||
Added line: 2533
|
||||
Added line: 8768
|
||||
Added line: 3704
|
||||
A clear and concise description of what you want to happen.
|
||||
Added line: 5417
|
||||
Added line: 5871
|
||||
Added line: 3411
|
||||
Added line: 2663
|
||||
Added line: 6534
|
||||
Added line: 3280
|
||||
Added line: 69
|
||||
Added line: 4552
|
||||
Added line: 7229
|
||||
|
||||
Added line: 3992
|
||||
Added line: 7256
|
||||
**Describe alternatives you've considered**
|
||||
Added line: 9063
|
||||
Added line: 5636
|
||||
Added line: 137
|
||||
Added line: 1672
|
||||
Added line: 7168
|
||||
Added line: 3765
|
||||
Added line: 2224
|
||||
Added line: 2718
|
||||
Added line: 6811
|
||||
Added line: 3957
|
||||
Added line: 7792
|
||||
A clear and concise description of any alternative solutions or features you've considered.
|
||||
Added line: 8275
|
||||
Added line: 5581
|
||||
Added line: 218
|
||||
|
||||
Added line: 54
|
||||
Added line: 9521
|
||||
**Additional context**
|
||||
Add any other context about the feature request here.
|
||||
Added line: 1882
|
||||
Added line: 9677
|
||||
Added line: 1022
|
||||
Added line: 7995
|
||||
|
101
.github/ISSUE_TEMPLATE/4bug_report.md
vendored
101
.github/ISSUE_TEMPLATE/4bug_report.md
vendored
@ -1,41 +1,132 @@
|
||||
---
|
||||
Added line: 7163
|
||||
Added line: 6618
|
||||
Added line: 6861
|
||||
Added line: 2942
|
||||
Added line: 8158
|
||||
Added line: 6336
|
||||
name: Bug report
|
||||
Added line: 9925
|
||||
Added line: 9757
|
||||
about: Create a report to help us improve
|
||||
Added line: 33
|
||||
Added line: 5956
|
||||
title: ''
|
||||
Added line: 2940
|
||||
Added line: 1892
|
||||
labels: 'a:bug'
|
||||
assignees: ''
|
||||
Added line: 4373
|
||||
Added line: 1277
|
||||
Added line: 5367
|
||||
Added line: 8360
|
||||
|
||||
---
|
||||
<!-- Please, prefix the report title with the language it applies to within brackets, such as [java] or [apex].
|
||||
Added line: 5857
|
||||
Added line: 3641
|
||||
Added line: 8564
|
||||
Added line: 5755
|
||||
Added line: 1866
|
||||
Added line: 2958
|
||||
Added line: 6216
|
||||
Added line: 6953
|
||||
If not specific to a language, you can use [core]. -->
|
||||
Added line: 8422
|
||||
|
||||
**Affects PMD Version:**
|
||||
|
||||
Added line: 9
|
||||
Added line: 9739
|
||||
Make sure, to test with the latest PMD version.
|
||||
Added line: 9684
|
||||
|
||||
Added line: 3625
|
||||
Added line: 2132
|
||||
**Description:**
|
||||
Added line: 3063
|
||||
Added line: 3495
|
||||
Added line: 8522
|
||||
Added line: 7768
|
||||
Added line: 4591
|
||||
|
||||
Added line: 7657
|
||||
A clear and concise description of what the bug is.
|
||||
|
||||
Added line: 7674
|
||||
Added line: 3018
|
||||
Added line: 3523
|
||||
Added line: 6119
|
||||
**Exception Stacktrace:**
|
||||
|
||||
Added line: 2639
|
||||
Added line: 50
|
||||
Added line: 3420
|
||||
```
|
||||
Added line: 340
|
||||
Added line: 4118
|
||||
# Copy-paste the stack trace here
|
||||
```
|
||||
|
||||
**Code Sample demonstrating the issue:**
|
||||
|
||||
Added line: 4378
|
||||
Added line: 2003
|
||||
Added line: 7525
|
||||
Added line: 1770
|
||||
Added line: 819
|
||||
Added line: 4668
|
||||
Added line: 7062
|
||||
Added line: 2213
|
||||
Added line: 9134
|
||||
Added line: 5477
|
||||
Added line: 3791
|
||||
Added line: 1072
|
||||
Added line: 5265
|
||||
```java
|
||||
Added line: 9934
|
||||
Added line: 1221
|
||||
Added line: 144
|
||||
Added line: 6855
|
||||
|
||||
```
|
||||
Added line: 7445
|
||||
|
||||
Added line: 1398
|
||||
**Steps to reproduce:**
|
||||
|
||||
Added line: 3258
|
||||
Added line: 8918
|
||||
Added line: 2863
|
||||
Added line: 4767
|
||||
Please provide detailed steps for how we can reproduce the bug.
|
||||
|
||||
Added line: 7324
|
||||
1. ... (e.g. if you're using maven: `mvn clean verify`)
|
||||
Added line: 8777
|
||||
Added line: 4718
|
||||
Added line: 486
|
||||
Added line: 3912
|
||||
Added line: 1625
|
||||
Added line: 9318
|
||||
Added line: 2355
|
||||
2. ...
|
||||
|
||||
Added line: 6166
|
||||
Added line: 4716
|
||||
Added line: 654
|
||||
Added line: 8612
|
||||
Added line: 7142
|
||||
Added line: 1363
|
||||
Added line: 3087
|
||||
Added line: 3566
|
||||
Added line: 484
|
||||
Added line: 4035
|
||||
**Running PMD through:** *[CLI | Ant | Maven | Gradle | Designer | Other]*
|
||||
|
||||
Added line: 3112
|
||||
Added line: 9169
|
||||
Added line: 3475
|
||||
Added line: 8337
|
||||
Added line: 1293
|
||||
Added line: 9095
|
||||
<!-- If relevant, also include your JDK and OS information, e.g. for ClassNotFoundException, LinkageError, reflection failures, etc. -->
|
||||
Added line: 4859
|
||||
Added line: 6054
|
||||
Added line: 6864
|
||||
Added line: 7737
|
||||
|
93
.github/PULL_REQUEST_TEMPLATE.md
vendored
93
.github/PULL_REQUEST_TEMPLATE.md
vendored
@ -1,19 +1,108 @@
|
||||
Added line: 4668
|
||||
Added line: 7342
|
||||
Added line: 645
|
||||
Added line: 953
|
||||
## Describe the PR
|
||||
|
||||
Added line: 1116
|
||||
Added line: 1176
|
||||
Added line: 8809
|
||||
Added line: 5548
|
||||
Added line: 4708
|
||||
Added line: 3316
|
||||
Added line: 9441
|
||||
Added line: 5371
|
||||
Added line: 8243
|
||||
Added line: 7169
|
||||
Added line: 6056
|
||||
Added line: 9045
|
||||
Added line: 5078
|
||||
Added line: 176
|
||||
Added line: 6174
|
||||
Added line: 5742
|
||||
Added line: 2568
|
||||
Added line: 5271
|
||||
Added line: 9953
|
||||
Added line: 3920
|
||||
Added line: 3102
|
||||
Added line: 8277
|
||||
Added line: 8774
|
||||
Added line: 2491
|
||||
Added line: 8878
|
||||
<!-- A clear and concise description of the bug the PR fixes or the feature the PR introduces. -->
|
||||
Added line: 6243
|
||||
Added line: 6136
|
||||
Added line: 2027
|
||||
Added line: 883
|
||||
Added line: 8919
|
||||
Added line: 9637
|
||||
Added line: 7519
|
||||
Added line: 95
|
||||
|
||||
Added line: 2168
|
||||
## Related issues
|
||||
Added line: 8807
|
||||
Added line: 3834
|
||||
Added line: 5473
|
||||
|
||||
Added line: 9396
|
||||
Added line: 1833
|
||||
<!-- PR relates to issues in the `pmd` repo: -->
|
||||
Added line: 3916
|
||||
Added line: 9129
|
||||
|
||||
Added line: 2330
|
||||
Added line: 8868
|
||||
- Fixes #
|
||||
Added line: 850
|
||||
Added line: 313
|
||||
|
||||
## Ready?
|
||||
Added line: 6588
|
||||
Added line: 7355
|
||||
Added line: 6171
|
||||
Added line: 1836
|
||||
Added line: 2404
|
||||
Added line: 5026
|
||||
Added line: 752
|
||||
Added line: 8039
|
||||
Added line: 8031
|
||||
Added line: 3383
|
||||
Added line: 1155
|
||||
Added line: 7107
|
||||
Added line: 7111
|
||||
|
||||
Added line: 7263
|
||||
<!-- If you feel like you can help to check off the following tasks, that'd be great. If not, don't worry - we will take care of it. -->
|
||||
Added line: 490
|
||||
Added line: 2833
|
||||
Added line: 9450
|
||||
Added line: 6040
|
||||
Added line: 1128
|
||||
|
||||
- [ ] Added unit tests for fixed bug/feature
|
||||
Added line: 1293
|
||||
Added line: 9752
|
||||
Added line: 7365
|
||||
Added line: 6415
|
||||
Added line: 1369
|
||||
Added line: 3745
|
||||
Added line: 7506
|
||||
- [ ] Passing all unit tests
|
||||
- [ ] Complete build `./mvnw clean verify` passes (checked automatically by github actions)
|
||||
Added line: 9397
|
||||
Added line: 4392
|
||||
Added line: 7361
|
||||
Added line: 6623
|
||||
Added line: 8770
|
||||
Added line: 385
|
||||
Added line: 1491
|
||||
Added line: 6272
|
||||
Added line: 9766
|
||||
Added line: 223
|
||||
Added line: 2967
|
||||
Added line: 5136
|
||||
Added line: 5049
|
||||
- [ ] Added (in-code) documentation (if needed)
|
||||
Added line: 9332
|
||||
Added line: 5216
|
||||
Added line: 9011
|
||||
|
||||
|
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@ -4,7 +4,6 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
tags:
|
||||
- '**'
|
||||
pull_request:
|
||||
@ -60,7 +59,7 @@ jobs:
|
||||
run: |
|
||||
echo "LANG=en_US.UTF-8" >> $GITHUB_ENV
|
||||
echo "MAVEN_OPTS=-Daether.connector.http.connectionMaxTtl=180 -DautoReleaseAfterClose=true -DstagingProgressTimeoutMinutes=30" >> $GITHUB_ENV
|
||||
echo "PMD_CI_SCRIPTS_URL=https://raw.githubusercontent.com/pmd/build-tools/26/scripts" >> $GITHUB_ENV
|
||||
echo "PMD_CI_SCRIPTS_URL=https://raw.githubusercontent.com/pmd/build-tools/27/scripts" >> $GITHUB_ENV
|
||||
- name: Check Environment
|
||||
shell: bash
|
||||
run: |
|
||||
|
3
.github/workflows/git-repo-sync.yml
vendored
3
.github/workflows/git-repo-sync.yml
vendored
@ -4,7 +4,6 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
tags:
|
||||
- '**'
|
||||
workflow_dispatch:
|
||||
@ -24,7 +23,7 @@ jobs:
|
||||
shell: bash
|
||||
run: |
|
||||
echo "LANG=en_US.UTF-8" >> $GITHUB_ENV
|
||||
echo "PMD_CI_SCRIPTS_URL=https://raw.githubusercontent.com/pmd/build-tools/26/scripts" >> $GITHUB_ENV
|
||||
echo "PMD_CI_SCRIPTS_URL=https://raw.githubusercontent.com/pmd/build-tools/27/scripts" >> $GITHUB_ENV
|
||||
- name: Sync
|
||||
run: .ci/git-repo-sync.sh
|
||||
shell: bash
|
||||
|
2
.github/workflows/troubleshooting.yml
vendored
2
.github/workflows/troubleshooting.yml
vendored
@ -36,7 +36,7 @@ jobs:
|
||||
run: |
|
||||
echo "LANG=en_US.UTF-8" >> $GITHUB_ENV
|
||||
echo "MAVEN_OPTS=-Daether.connector.http.connectionMaxTtl=180 -DstagingProgressTimeoutMinutes=30" >> $GITHUB_ENV
|
||||
echo "PMD_CI_SCRIPTS_URL=https://raw.githubusercontent.com/pmd/build-tools/26/scripts" >> $GITHUB_ENV
|
||||
echo "PMD_CI_SCRIPTS_URL=https://raw.githubusercontent.com/pmd/build-tools/27/scripts" >> $GITHUB_ENV
|
||||
- name: Check Environment
|
||||
shell: bash
|
||||
run: |
|
||||
|
95
BUILDING.md
95
BUILDING.md
@ -1,44 +1,133 @@
|
||||
# How to build PMD
|
||||
|
||||
PMD uses [Maven](https://maven.apache.org/) and requires at least Java 11 for building.
|
||||
Added line: 2738
|
||||
Added line: 2088
|
||||
You can get Java 11 from [Oracle](http://www.oracle.com/technetwork/java/javase/downloads/index.html)
|
||||
or from [AdoptOpenJdk](https://adoptopenjdk.net/).
|
||||
Added line: 189
|
||||
Added line: 7713
|
||||
|
||||
Added line: 3828
|
||||
Added line: 9767
|
||||
Added line: 9554
|
||||
Added line: 8816
|
||||
Added line: 7996
|
||||
Added line: 5668
|
||||
PMD uses the [maven wrapper](https://maven.apache.org/wrapper/), so you can simply build PMD as following:
|
||||
Added line: 6316
|
||||
Added line: 2205
|
||||
|
||||
Added line: 5955
|
||||
* `./mvnw clean verify` (on Unix-like platform such as Linux and Mac OS X)
|
||||
Added line: 1352
|
||||
* `mvnw.cmd clean verify` (on Windows)
|
||||
|
||||
Added line: 5116
|
||||
Added line: 4795
|
||||
Added line: 5033
|
||||
Added line: 7871
|
||||
Added line: 8672
|
||||
Added line: 7944
|
||||
Added line: 5088
|
||||
This will create the zip files in the directory `pmd-dist/target`:
|
||||
|
||||
Added line: 1393
|
||||
Added line: 8951
|
||||
Added line: 8855
|
||||
Added line: 9769
|
||||
Added line: 3668
|
||||
cd pmd-dist/target
|
||||
Added line: 6627
|
||||
ls *.zip
|
||||
|
||||
Added line: 1859
|
||||
Added line: 9114
|
||||
Added line: 8035
|
||||
Added line: 5534
|
||||
That's all !
|
||||
Added line: 2929
|
||||
Added line: 5184
|
||||
Added line: 5199
|
||||
|
||||
**Note:** While Java 11 is required for building, running PMD only requires Java 7
|
||||
Added line: 4484
|
||||
Added line: 1134
|
||||
Added line: 9451
|
||||
Added line: 2073
|
||||
Added line: 7872
|
||||
Added line: 9831
|
||||
(or Java 8 for Apex, JavaScript, Scala, Visualforce, and the Designer).
|
||||
Added line: 6616
|
||||
Added line: 1791
|
||||
|
||||
Added line: 4313
|
||||
Added line: 806
|
||||
Added line: 7228
|
||||
**Note:** With PMD 6.24.0, we are creating [Reproducible Builds](https://reproducible-builds.org/). Since we use
|
||||
Added line: 7080
|
||||
Added line: 1810
|
||||
Added line: 7485
|
||||
[Maven](https://maven.apache.org/guides/mini/guide-reproducible-builds.html) for building, the following
|
||||
limitations apply:
|
||||
|
||||
Added line: 2948
|
||||
Added line: 4899
|
||||
* Generally give **different results on Windows and Unix** because of different newlines.
|
||||
Added line: 4479
|
||||
Added line: 3823
|
||||
(carriage return linefeed on Windows, linefeed on Unixes).
|
||||
|
||||
Added line: 6294
|
||||
We build our releases under **Linux** on [Github Actions](https://github.com/pmd/pmd/actions).
|
||||
|
||||
Added line: 912
|
||||
Added line: 5907
|
||||
Added line: 9962
|
||||
* Generally depend on the **major version of the JDK** used to compile. (Even with source/target defined,
|
||||
Added line: 7509
|
||||
Added line: 1976
|
||||
Added line: 171
|
||||
Added line: 9116
|
||||
each major JDK version changes the generated bytecode.).
|
||||
|
||||
Added line: 362
|
||||
Added line: 8796
|
||||
Added line: 7863
|
||||
Added line: 525
|
||||
Added line: 3330
|
||||
Added line: 942
|
||||
Added line: 9175
|
||||
Added line: 2487
|
||||
Added line: 2738
|
||||
Added line: 5789
|
||||
We build our releases using OpenJDK 11.
|
||||
Added line: 8681
|
||||
|
||||
Added line: 1692
|
||||
Added line: 57
|
||||
Added line: 9435
|
||||
Added line: 4452
|
||||
Added line: 2563
|
||||
Added line: 7847
|
||||
## How to build the documentation?
|
||||
Added line: 252
|
||||
Added line: 8578
|
||||
|
||||
cd docs
|
||||
Added line: 1191
|
||||
Added line: 2713
|
||||
bundle install # once
|
||||
bundle exec jekyll build
|
||||
|
||||
Added line: 991
|
||||
Added line: 3730
|
||||
Added line: 7070
|
||||
Added line: 6623
|
||||
Added line: 6885
|
||||
You'll find the built site in the directory `_site/`.
|
||||
Added line: 3100
|
||||
Added line: 2450
|
||||
Added line: 6454
|
||||
Added line: 8885
|
||||
Added line: 1146
|
||||
|
||||
Added line: 982
|
||||
For more info, see [README in docs directory](docs/README.md).
|
||||
|
109
CONTRIBUTING.md
109
CONTRIBUTING.md
@ -1,76 +1,165 @@
|
||||
# How to contribute to PMD
|
||||
|
||||
First off, thanks for taking the time to contribute!
|
||||
Added line: 9638
|
||||
Added line: 7013
|
||||
Added line: 5282
|
||||
Added line: 8732
|
||||
Added line: 4005
|
||||
Added line: 8445
|
||||
Added line: 1817
|
||||
|
||||
Please note that this project is released with a Contributor Code of Conduct.
|
||||
Added line: 2253
|
||||
Added line: 9476
|
||||
By participating in this project you agree to abide by its terms.
|
||||
Added line: 9650
|
||||
Added line: 9346
|
||||
Added line: 176
|
||||
|
||||
You can find the code of conduct in the file [code_of_conduct.md](code_of_conduct.md).
|
||||
|
||||
| NB: the rule designer is developed over at [pmd/pmd-designer](https://github.com/pmd/pmd-designer). Please refer to the specific [contributor documentation](https://github.com/pmd/pmd-designer/blob/master/CONTRIBUTING.md) if your issue, feature request or PR touches the designer. |
|
||||
| --- |
|
||||
Added line: 2336
|
||||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
|
||||
Added line: 485
|
||||
Added line: 7195
|
||||
## Pull requests
|
||||
Added line: 9917
|
||||
Added line: 9732
|
||||
|
||||
* Please create your pull request against the `master` branch. We will rebase/merge it to the maintenance
|
||||
* Please create your pull request against the `main` branch. We will rebase/merge it to the maintenance
|
||||
Added line: 9567
|
||||
Added line: 3042
|
||||
branches, if necessary.
|
||||
Added line: 5753
|
||||
|
||||
Added line: 5082
|
||||
* We are using [checkstyle](http://checkstyle.sourceforge.net/) to enforce a common code style.
|
||||
Added line: 6374
|
||||
Added line: 6736
|
||||
The check is integrated into the default build - so, make sure, you can [build PMD](BUILDING.md) without errors.
|
||||
See [code style](#code-style) for more info.
|
||||
|
||||
Added line: 5433
|
||||
Added line: 9324
|
||||
Added line: 9717
|
||||
|
||||
Added line: 9572
|
||||
Added line: 4760
|
||||
Added line: 3324
|
||||
Added line: 6207
|
||||
Added line: 7939
|
||||
## Bug reports
|
||||
Added line: 687
|
||||
Added line: 648
|
||||
Added line: 860
|
||||
Added line: 5964
|
||||
Added line: 7731
|
||||
Added line: 4598
|
||||
|
||||
We use the issue tracker on Github. Please report new bugs at <https://github.com/pmd/pmd/issues>.
|
||||
|
||||
Added line: 1689
|
||||
When filing a bug report, please provide as much information as possible, so that we can reproduce the issue:
|
||||
Added line: 4335
|
||||
Added line: 7171
|
||||
|
||||
* The name of the rule, that is buggy
|
||||
Added line: 6812
|
||||
Added line: 6274
|
||||
Added line: 6782
|
||||
* A code snippet, which triggers a false positive/negative or crash
|
||||
* How do you execute PMD? (command line, ant, maven, gradle, other)
|
||||
|
||||
|
||||
Added line: 6124
|
||||
## Documentation
|
||||
Added line: 3615
|
||||
Added line: 7433
|
||||
|
||||
Added line: 294
|
||||
There is some documentation available under <https://docs.pmd-code.org/latest>. Feel free to create a bug report if
|
||||
Added line: 4105
|
||||
Added line: 4326
|
||||
Added line: 7171
|
||||
documentation is missing, incomplete or outdated. See [Bug reports](#bug-reports).
|
||||
Added line: 7347
|
||||
|
||||
The documentation is generated as a Jekyll site, the source is available at: <https://github.com/pmd/pmd/tree/master/docs>. You can find build instructions there.
|
||||
Added line: 7759
|
||||
The documentation is generated as a Jekyll site, the source is available at: <https://github.com/pmd/pmd/tree/main/docs>. You can find build instructions there.
|
||||
For more on contributing documentation check <https://docs.pmd-code.org/latest/pmd_devdocs_writing_documentation.html>
|
||||
|
||||
Added line: 3086
|
||||
Added line: 3787
|
||||
Added line: 7401
|
||||
Added line: 2504
|
||||
## Questions
|
||||
Added line: 1299
|
||||
|
||||
There are various channels, on which you can ask questions:
|
||||
Added line: 7287
|
||||
|
||||
* On [StackOverflow](https://stackoverflow.com/questions/tagged/pmd): Make sure, to tag your question with "pmd".
|
||||
|
||||
Added line: 4923
|
||||
Added line: 9267
|
||||
Added line: 3668
|
||||
* Create a new discussion for your question at <https://github.com/pmd/pmd/discussions>.
|
||||
|
||||
* Ask your question in our [Gitter room](https://app.gitter.im/#/room/#pmd_pmd:gitter.im).
|
||||
Added line: 1721
|
||||
Added line: 312
|
||||
|
||||
## Code Style
|
||||
Added line: 6860
|
||||
Added line: 6132
|
||||
|
||||
PMD uses [checkstyle](http://checkstyle.sourceforge.net/) to enforce a common code style.
|
||||
|
||||
See [pmd-checkstyle-config.xml](https://github.com/pmd/build-tools/blob/master/src/main/resources/net/sourceforge/pmd/pmd-checkstyle-config.xml) for the configuration and
|
||||
[the eclipse configuration files](https://github.com/pmd/build-tools/tree/master/eclipse) that can
|
||||
See [pmd-checkstyle-config.xml](https://github.com/pmd/build-tools/blob/main/src/main/resources/net/sourceforge/pmd/pmd-checkstyle-config.xml) for the configuration and
|
||||
Added line: 7171
|
||||
Added line: 1453
|
||||
Added line: 1556
|
||||
Added line: 3942
|
||||
[the eclipse configuration files](https://github.com/pmd/build-tools/tree/main/eclipse) that can
|
||||
be imported into a fresh workspace.
|
||||
Added line: 581
|
||||
Added line: 8163
|
||||
|
||||
Added line: 7384
|
||||
Added line: 3400
|
||||
## Add yourself as contributor
|
||||
|
||||
Added line: 3401
|
||||
Added line: 6321
|
||||
Added line: 8035
|
||||
Added line: 3292
|
||||
Added line: 926
|
||||
Added line: 8461
|
||||
We use [All Contributors](https://allcontributors.org/en).
|
||||
|
||||
To add yourself to the table of contributors, follow the
|
||||
[bot usage instructions](https://allcontributors.org/docs/en/bot/usage) ;).
|
||||
|
||||
Or use the CLI:
|
||||
Added line: 9829
|
||||
|
||||
1. Install the CLI: `npm i` (in PMD's top level directory)
|
||||
Added line: 4344
|
||||
Added line: 6847
|
||||
Added line: 5588
|
||||
2. Add yourself: `npx all-contributors add <username> <contribution>`
|
||||
Added line: 2387
|
||||
|
||||
Where `username` is your GitHub username and `contribution` is a `,`-separated list
|
||||
Added line: 163
|
||||
Added line: 3108
|
||||
Added line: 8975
|
||||
Added line: 589
|
||||
Added line: 3968
|
||||
Added line: 2583
|
||||
Added line: 8052
|
||||
of contributions. See [Emoji Key](https://allcontributors.org/docs/en/emoji-key) for a list
|
||||
of valid types. Common types are: "code", "doc", "bug", "blog", "talk", "test", "tutorial".
|
||||
|
||||
Added line: 153
|
||||
Added line: 8349
|
||||
See also [cli documentation](https://allcontributors.org/docs/en/cli/usage)
|
||||
Added line: 7606
|
||||
|
@ -39,9 +39,9 @@ def run_pmdtester
|
||||
FileUtils.mv 'target/reports/diff', 'target/diff1'
|
||||
message1 = create_message
|
||||
|
||||
# run against master branch (if the PR is not already against master)
|
||||
unless ENV['PMD_CI_BRANCH'] == 'master'
|
||||
@base_branch = 'master'
|
||||
# run against main branch (if the PR is not already against main)
|
||||
unless ENV['PMD_CI_BRANCH'] == 'main'
|
||||
@base_branch = 'main'
|
||||
@logger.info "\n\n--------------------------------------"
|
||||
@logger.info "Run against #{@base_branch}"
|
||||
@summary = PmdTester::Runner.new(get_args(@base_branch, false, 'target/diff1/patch_config.xml')).run
|
||||
|
2
Gemfile
2
Gemfile
@ -1,7 +1,7 @@
|
||||
source 'https://rubygems.org/'
|
||||
|
||||
# bleeding edge from git
|
||||
#gem 'pmdtester', :git => 'https://github.com/pmd/pmd-regression-tester.git', branch: 'master'
|
||||
#gem 'pmdtester', :git => 'https://github.com/pmd/pmd-regression-tester.git', branch: 'main'
|
||||
|
||||
gem 'pmdtester'
|
||||
gem 'danger'
|
||||
|
28
Gemfile.lock
28
Gemfile.lock
@ -3,6 +3,7 @@ GEM
|
||||
specs:
|
||||
addressable (2.8.7)
|
||||
public_suffix (>= 2.0.2, < 7.0)
|
||||
base64 (0.2.0)
|
||||
bigdecimal (3.1.8)
|
||||
claide (1.1.0)
|
||||
claide-plugins (0.9.2)
|
||||
@ -13,7 +14,8 @@ GEM
|
||||
concurrent-ruby (1.3.4)
|
||||
cork (0.3.0)
|
||||
colored2 (~> 3.1)
|
||||
danger (9.5.0)
|
||||
danger (9.5.1)
|
||||
base64 (~> 0.2)
|
||||
claide (~> 1.0)
|
||||
claide-plugins (>= 0.9.2)
|
||||
colored2 (~> 3.1)
|
||||
@ -24,12 +26,14 @@ GEM
|
||||
kramdown (~> 2.3)
|
||||
kramdown-parser-gfm (~> 1.0)
|
||||
octokit (>= 4.0)
|
||||
pstore (~> 0.1)
|
||||
terminal-table (>= 1, < 4)
|
||||
differ (0.1.2)
|
||||
et-orbi (1.2.11)
|
||||
tzinfo
|
||||
faraday (2.11.0)
|
||||
faraday (2.12.0)
|
||||
faraday-net_http (>= 2.0, < 3.4)
|
||||
json
|
||||
logger
|
||||
faraday-http-cache (2.5.1)
|
||||
faraday (>= 0.8)
|
||||
@ -41,19 +45,20 @@ GEM
|
||||
git (1.19.1)
|
||||
addressable (~> 2.8)
|
||||
rchardet (~> 1.8)
|
||||
json (2.7.5)
|
||||
kramdown (2.4.0)
|
||||
rexml
|
||||
kramdown-parser-gfm (1.1.0)
|
||||
kramdown (~> 2.0)
|
||||
liquid (5.5.1)
|
||||
logger (1.6.0)
|
||||
logger (1.6.1)
|
||||
logger-colors (1.0.0)
|
||||
nap (1.1.0)
|
||||
net-http (0.4.1)
|
||||
uri
|
||||
nokogiri (1.16.7-x86_64-linux)
|
||||
racc (~> 1.4)
|
||||
octokit (9.1.0)
|
||||
octokit (9.2.0)
|
||||
faraday (>= 1, < 3)
|
||||
sawyer (~> 0.9)
|
||||
open4 (1.3.4)
|
||||
@ -64,26 +69,25 @@ GEM
|
||||
nokogiri (~> 1.13)
|
||||
rufus-scheduler (~> 3.8)
|
||||
slop (~> 4.9)
|
||||
pstore (0.1.3)
|
||||
public_suffix (6.0.1)
|
||||
raabro (1.4.0)
|
||||
racc (1.8.1)
|
||||
rchardet (1.8.0)
|
||||
rexml (3.3.6)
|
||||
strscan
|
||||
rouge (4.3.0)
|
||||
rufus-scheduler (3.9.1)
|
||||
fugit (~> 1.1, >= 1.1.6)
|
||||
rexml (3.3.9)
|
||||
rouge (4.5.1)
|
||||
rufus-scheduler (3.9.2)
|
||||
fugit (~> 1.1, >= 1.11.1)
|
||||
safe_yaml (1.0.5)
|
||||
sawyer (0.9.2)
|
||||
addressable (>= 2.3.5)
|
||||
faraday (>= 0.17.3, < 3)
|
||||
slop (4.10.1)
|
||||
strscan (3.1.0)
|
||||
terminal-table (3.0.2)
|
||||
unicode-display_width (>= 1.1.1, < 3)
|
||||
tzinfo (2.0.6)
|
||||
concurrent-ruby (~> 1.0)
|
||||
unicode-display_width (2.5.0)
|
||||
unicode-display_width (2.6.0)
|
||||
uri (0.13.1)
|
||||
|
||||
PLATFORMS
|
||||
@ -98,4 +102,4 @@ DEPENDENCIES
|
||||
safe_yaml
|
||||
|
||||
BUNDLED WITH
|
||||
2.5.3
|
||||
2.5.22
|
||||
|
99
README.md
99
README.md
@ -1,39 +1,85 @@
|
||||
Added line: 197
|
||||
Added line: 3456
|
||||
Added line: 996
|
||||
Added line: 3641
|
||||
# PMD - source code analyzer
|
||||
Added line: 9948
|
||||
|
||||
![PMD Logo](https://raw.githubusercontent.com/pmd/pmd/pmd/7.0.x/docs/images/logo/pmd-logo-300px.png)
|
||||
![PMD Logo](https://raw.githubusercontent.com/pmd/pmd/main/docs/images/logo/pmd-logo-300px.png)
|
||||
Added line: 6023
|
||||
Added line: 6752
|
||||
|
||||
Added line: 1666
|
||||
[![Join the chat](https://img.shields.io/gitter/room/pmd/pmd)](https://app.gitter.im/#/room/#pmd_pmd:gitter.im?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||
[![Build Status](https://github.com/pmd/pmd/workflows/build/badge.svg?branch=master)](https://github.com/pmd/pmd/actions)
|
||||
[![Build Status](https://github.com/pmd/pmd/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/pmd/pmd/actions)
|
||||
Added line: 9428
|
||||
Added line: 8307
|
||||
Added line: 5656
|
||||
Added line: 9073
|
||||
Added line: 379
|
||||
Added line: 7887
|
||||
Added line: 5565
|
||||
Added line: 9358
|
||||
Added line: 3986
|
||||
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/net.sourceforge.pmd/pmd/badge.svg)](https://maven-badges.herokuapp.com/maven-central/net.sourceforge.pmd/pmd)
|
||||
Added line: 7996
|
||||
Added line: 5862
|
||||
[![Reproducible Builds](https://img.shields.io/badge/Reproducible_Builds-ok-green?labelColor=blue)](https://github.com/jvm-repo-rebuild/reproducible-central/tree/master/content/net/sourceforge/pmd#readme)
|
||||
[![Coverage Status](https://coveralls.io/repos/github/pmd/pmd/badge.svg)](https://coveralls.io/github/pmd/pmd)
|
||||
[![Coverage Status](https://coveralls.io/repos/github/pmd/pmd/badge.svg?branch=main)](https://coveralls.io/github/pmd/pmd?branch=main)
|
||||
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/ea550046a02344ec850553476c4aa2ca)](https://app.codacy.com/organizations/gh/pmd/dashboard)
|
||||
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg)](code_of_conduct.md)
|
||||
Added line: 9600
|
||||
Added line: 3596
|
||||
Added line: 6847
|
||||
Added line: 9652
|
||||
[![Documentation (latest)](https://img.shields.io/badge/docs-latest-green)](https://docs.pmd-code.org/latest/)
|
||||
Added line: 9163
|
||||
|
||||
Added line: 1822
|
||||
**PMD** is an extensible multilanguage static code analyzer. It finds common programming flaws like unused variables,
|
||||
empty catch blocks, unnecessary object creation, and so forth. It's mainly concerned with **Java and
|
||||
Apex**, but **supports 16 other languages**. It comes with **400+ built-in rules**. It can be
|
||||
extended with custom rules. It uses JavaCC and Antlr to parse source files into abstract syntax trees
|
||||
(AST) and runs rules against them to find violations. Rules can be written in Java or using a XPath query.
|
||||
|
||||
Added line: 5219
|
||||
Currently, PMD supports Java, JavaScript, Salesforce.com Apex and Visualforce,
|
||||
Added line: 4152
|
||||
Added line: 5266
|
||||
Added line: 1747
|
||||
Added line: 8657
|
||||
Added line: 1802
|
||||
Added line: 6277
|
||||
Added line: 411
|
||||
Kotlin, Swift, Modelica, PLSQL, Apache Velocity, JSP, WSDL, Maven POM, HTML, XML and XSL.
|
||||
Added line: 707
|
||||
Added line: 2944
|
||||
Scala is supported, but there are currently no Scala rules available.
|
||||
|
||||
Added line: 7518
|
||||
Additionally, it includes **CPD**, the copy-paste-detector. CPD finds duplicated code in
|
||||
Coco, C/C++, C#, Dart, Fortran, Gherkin, Go, Groovy, HTML, Java, JavaScript, JSP, Julia, Kotlin,
|
||||
Lua, Matlab, Modelica, Objective-C, Perl, PHP, PLSQL, Python, Ruby, Salesforce.com Apex and
|
||||
Added line: 826
|
||||
Visualforce, Scala, Swift, T-SQL, Typescript, Apache Velocity, WSDL, XML and XSL.
|
||||
|
||||
Added line: 7368
|
||||
Added line: 4
|
||||
## 🚀 Installation and Usage
|
||||
|
||||
Added line: 306
|
||||
Download the latest binary zip from the [releases](https://github.com/pmd/pmd/releases/latest)
|
||||
and extract it somewhere.
|
||||
Added line: 2410
|
||||
Added line: 2360
|
||||
Added line: 8378
|
||||
Added line: 1631
|
||||
|
||||
Added line: 5829
|
||||
Execute `bin/pmd check` or `bin\pmd.bat check`.
|
||||
|
||||
Added line: 4259
|
||||
See also [Getting Started](https://docs.pmd-code.org/latest/pmd_userdocs_installation.html)
|
||||
Added line: 6755
|
||||
|
||||
**Demo:**
|
||||
|
||||
@ -45,40 +91,83 @@ There are plugins for Maven and Gradle as well as for various IDEs.
|
||||
See [Tools / Integrations](https://docs.pmd-code.org/latest/pmd_userdocs_tools.html)
|
||||
|
||||
## ℹ️ How to get support?
|
||||
Added line: 9673
|
||||
Added line: 4858
|
||||
Added line: 8880
|
||||
|
||||
* How do I? -- Ask a question on [StackOverflow](https://stackoverflow.com/questions/tagged/pmd)
|
||||
or on [discussions](https://github.com/pmd/pmd/discussions).
|
||||
Added line: 4996
|
||||
* I got this error, why? -- Ask a question on [StackOverflow](https://stackoverflow.com/questions/tagged/pmd)
|
||||
or on [discussions](https://github.com/pmd/pmd/discussions).
|
||||
Added line: 283
|
||||
* I got this error and I'm sure it's a bug -- file an [issue](https://github.com/pmd/pmd/issues).
|
||||
Added line: 8625
|
||||
Added line: 1481
|
||||
* I have an idea/request/question -- create a new [discussion](https://github.com/pmd/pmd/discussions).
|
||||
Added line: 4762
|
||||
* I have a quick question -- ask in our [Gitter room](https://app.gitter.im/#/room/#pmd_pmd:gitter.im).
|
||||
Added line: 390
|
||||
Added line: 3080
|
||||
Added line: 124
|
||||
Added line: 3074
|
||||
* Where's your documentation? -- <https://docs.pmd-code.org/latest/>
|
||||
Added line: 7903
|
||||
|
||||
Added line: 3362
|
||||
Added line: 3918
|
||||
## 🤝 Contributing
|
||||
|
||||
Added line: 2452
|
||||
Added line: 2952
|
||||
Added line: 7325
|
||||
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
|
||||
Added line: 3190
|
||||
|
||||
Our latest source of PMD can be found on [GitHub](https://github.com/pmd/pmd). Fork us!
|
||||
Added line: 9208
|
||||
|
||||
Added line: 4065
|
||||
* [How to build PMD](BUILDING.md)
|
||||
Added line: 5883
|
||||
Added line: 577
|
||||
Added line: 634
|
||||
Added line: 5011
|
||||
Added line: 5941
|
||||
* [How to contribute to PMD](CONTRIBUTING.md)
|
||||
|
||||
The rule designer is developed over at [pmd/pmd-designer](https://github.com/pmd/pmd-designer).
|
||||
Added line: 4274
|
||||
Please see [its README](https://github.com/pmd/pmd-designer#contributing) for
|
||||
developer documentation.
|
||||
|
||||
Added line: 1263
|
||||
## 💵 Financial Contributors
|
||||
|
||||
Added line: 1554
|
||||
Become a financial contributor and help us sustain our community. [Contribute](https://opencollective.com/pmd/contribute)
|
||||
Added line: 7776
|
||||
|
||||
## ✨ Contributors
|
||||
|
||||
Added line: 8951
|
||||
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification.
|
||||
Added line: 6606
|
||||
Contributions of any kind welcome!
|
||||
Added line: 7479
|
||||
Added line: 9128
|
||||
|
||||
Added line: 1345
|
||||
Added line: 1060
|
||||
Added line: 7873
|
||||
Added line: 902
|
||||
Added line: 1538
|
||||
See [credits](docs/pages/pmd/projectdocs/credits.md) for the complete list.
|
||||
Added line: 1414
|
||||
|
||||
Added line: 5382
|
||||
## 📝 License
|
||||
|
||||
Added line: 5436
|
||||
Added line: 7077
|
||||
[BSD Style](LICENSE)
|
||||
Added line: 7917
|
||||
|
99
SPONSORS.md
99
SPONSORS.md
@ -1,14 +1,105 @@
|
||||
Added line: 1269
|
||||
Added line: 2508
|
||||
Added line: 8213
|
||||
Added line: 1769
|
||||
Added line: 7893
|
||||
Added line: 6930
|
||||
Added line: 4947
|
||||
# PMD's sponsors
|
||||
Added line: 608
|
||||
Added line: 3461
|
||||
Added line: 7698
|
||||
Added line: 752
|
||||
Added line: 728
|
||||
Added line: 3745
|
||||
Added line: 4709
|
||||
Added line: 168
|
||||
Added line: 1613
|
||||
Added line: 3267
|
||||
|
||||
Added line: 8189
|
||||
Added line: 4303
|
||||
Many thanks to all our sponsors:
|
||||
|
||||
Added line: 3956
|
||||
Added line: 236
|
||||
Added line: 1566
|
||||
Added line: 8011
|
||||
Added line: 5980
|
||||
Added line: 7930
|
||||
Added line: 6534
|
||||
Added line: 9177
|
||||
Added line: 7828
|
||||
* [Matt Hargett](https://github.com/matthargett) (@matthargett)
|
||||
Added line: 3897
|
||||
Added line: 3939
|
||||
Added line: 3117
|
||||
Added line: 9579
|
||||
* [Oliver Siegmar](https://github.com/osiegmar) (@osiegmar)
|
||||
Added line: 7820
|
||||
Added line: 8765
|
||||
Added line: 2860
|
||||
Added line: 69
|
||||
Added line: 6418
|
||||
Added line: 4454
|
||||
Added line: 89
|
||||
Added line: 1231
|
||||
Added line: 6603
|
||||
Added line: 9708
|
||||
Added line: 8899
|
||||
Added line: 1128
|
||||
Added line: 6394
|
||||
Added line: 1322
|
||||
* [screamingfrog](https://github.com/screamingfrog) (@screamingfrog)
|
||||
Added line: 51
|
||||
Added line: 3284
|
||||
Added line: 8651
|
||||
* John Kuhl via opencollective
|
||||
Added line: 4508
|
||||
Added line: 2961
|
||||
Added line: 3761
|
||||
Added line: 9704
|
||||
Added line: 720
|
||||
Added line: 3465
|
||||
Added line: 1009
|
||||
Added line: 9655
|
||||
Added line: 1612
|
||||
Added line: 4841
|
||||
Added line: 8710
|
||||
Added line: 4693
|
||||
Added line: 3290
|
||||
Added line: 145
|
||||
Added line: 769
|
||||
Added line: 6497
|
||||
Added line: 1001
|
||||
Added line: 2702
|
||||
Added line: 3745
|
||||
Added line: 6620
|
||||
Added line: 4825
|
||||
Added line: 4622
|
||||
Added line: 9545
|
||||
Added line: 8762
|
||||
Added line: 8661
|
||||
Added line: 7475
|
||||
Added line: 6386
|
||||
* [flxbl-io](https://github.com/flxbl-io) (@flxbl-io)
|
||||
|
||||
Added line: 6057
|
||||
Added line: 3058
|
||||
Added line: 5310
|
||||
Added line: 8320
|
||||
Added line: 2618
|
||||
Added line: 3662
|
||||
Added line: 3395
|
||||
Added line: 3119
|
||||
Added line: 8086
|
||||
If you also want to sponsor PMD, you have two options:
|
||||
|
||||
* [Sponsor @pmd on GitHub Sponsors](https://github.com/sponsors/pmd)
|
||||
Added line: 6734
|
||||
Added line: 9978
|
||||
Added line: 7868
|
||||
Added line: 6764
|
||||
Added line: 9403
|
||||
Added line: 9886
|
||||
Added line: 351
|
||||
Added line: 5200
|
||||
* [PMD - Open Collective](https://opencollective.com/pmd)
|
||||
Added line: 3830
|
||||
Added line: 492
|
||||
|
@ -11,10 +11,11 @@
|
||||
- root-node-name: name of the root node without prefix (eg "TopLevel"), will be made to implement RootNode
|
||||
|
||||
See AntlrGeneratedParserBase
|
||||
|
||||
-->
|
||||
<taskdef resource="net/sf/antcontrib/antcontrib.properties" />
|
||||
|
||||
<property name="target-package-dir" value="${antlr4.outputDirectory}/net/sourceforge/pmd/lang/${lang-id}/ast"/>
|
||||
<property name="stamp-file" value="${project.build.directory}/last-generated-timestamp" />
|
||||
|
||||
|
||||
<property name="lang-ast-package" value="net.sourceforge.pmd.lang.${lang-id}.ast" />
|
||||
@ -32,14 +33,100 @@
|
||||
<property name="base-visitor-file" value="${target-package-dir}/${base-visitor-name}.java"/>
|
||||
|
||||
<property name="listener-name" value="${lang-name}Listener"/>
|
||||
<property name="listener-file" value="${target-package-dir}/${visitor-name}.java"/>
|
||||
<property name="listener-file" value="${target-package-dir}/${listener-name}.java"/>
|
||||
|
||||
<property name="base-listener-name" value="${lang-name}BaseListener"/>
|
||||
<property name="base-listener-file" value="${target-package-dir}/${base-visitor-name}.java"/>
|
||||
<property name="base-listener-file" value="${target-package-dir}/${base-listener-name}.java"/>
|
||||
|
||||
<property name="node-itf-name" value="${lang-name}Node"/>
|
||||
<property name="base-class-name" value="Abstract${lang-name}Node"/>
|
||||
|
||||
<property name="lexer-name" value="${lang-name}Lexer"/>
|
||||
<property name="lexer-file" value="${target-package-dir}/${lexer-name}.java"/>
|
||||
|
||||
<target name="check-up-to-date"
|
||||
description="Checks the input files are up to date">
|
||||
|
||||
<uptodate property="processing-not-required" targetfile="${stamp-file}">
|
||||
<srcfiles dir="${target-package-dir}" includes="*.java" />
|
||||
<srcfiles file="${ant.file}" />
|
||||
</uptodate>
|
||||
<echo message="Up-to-date check: processing-not-required=${processing-not-required}" />
|
||||
</target>
|
||||
|
||||
<target name="update-stamp-file" unless="processing-not-required">
|
||||
<touch file="${stamp-file}" />
|
||||
</target>
|
||||
|
||||
<target name="annotate-classes" description="Adds the @Generated annotation to all classes"
|
||||
unless="processing-not-required">
|
||||
<if>
|
||||
<available file="${parser-file}"/>
|
||||
<then>
|
||||
<replace file="${parser-file}"
|
||||
token="public class ${parser-name}"
|
||||
value='@net.sourceforge.pmd.annotation.Generated("org.antlr.v4.Tool")${line.separator}
|
||||
public class ${parser-name}'/>
|
||||
|
||||
<!-- Parse tree classes for each element -->
|
||||
<replace file="${parser-file}"
|
||||
token="public static class "
|
||||
value='@net.sourceforge.pmd.annotation.Generated("org.antlr.v4.Tool")${line.separator}
|
||||
public static class '/>
|
||||
</then>
|
||||
</if>
|
||||
|
||||
<if>
|
||||
<available file="${visitor-file}"/>
|
||||
<then>
|
||||
<replace file="${visitor-file}"
|
||||
token="public interface ${visitor-name}"
|
||||
value='@net.sourceforge.pmd.annotation.Generated("org.antlr.v4.Tool")${line.separator}
|
||||
public interface ${visitor-name}'/>
|
||||
</then>
|
||||
</if>
|
||||
|
||||
<if>
|
||||
<available file="${base-visitor-file}"/>
|
||||
<then>
|
||||
<replace file="${base-visitor-file}"
|
||||
token="public class ${base-visitor-name}"
|
||||
value='@net.sourceforge.pmd.annotation.Generated("org.antlr.v4.Tool")${line.separator}
|
||||
public class ${base-visitor-name}'/>
|
||||
</then>
|
||||
</if>
|
||||
|
||||
<if>
|
||||
<available file="${listener-file}"/>
|
||||
<then>
|
||||
<replace file="${listener-file}"
|
||||
token="public interface ${listener-name}"
|
||||
value='@net.sourceforge.pmd.annotation.Generated("org.antlr.v4.Tool")${line.separator}
|
||||
public interface ${listener-name}'/>
|
||||
</then>
|
||||
</if>
|
||||
|
||||
<if>
|
||||
<available file="${base-listener-file}"/>
|
||||
<then>
|
||||
<replace file="${base-listener-file}"
|
||||
token="public class ${base-listener-name}"
|
||||
value='@net.sourceforge.pmd.annotation.Generated("org.antlr.v4.Tool")${line.separator}
|
||||
public class ${base-listener-name}'/>
|
||||
</then>
|
||||
</if>
|
||||
|
||||
<if>
|
||||
<available file="${lexer-file}"/>
|
||||
<then>
|
||||
<replace file="${lexer-file}"
|
||||
token="public class ${lexer-name}"
|
||||
value='@net.sourceforge.pmd.annotation.Generated("org.antlr.v4.Tool")${line.separator}
|
||||
public class ${lexer-name}'/>
|
||||
</then>
|
||||
</if>
|
||||
</target>
|
||||
|
||||
<condition property="rename-parser">
|
||||
<and>
|
||||
<not>
|
||||
@ -72,7 +159,9 @@
|
||||
tofile="${parser-file}"/>
|
||||
</target>
|
||||
|
||||
<target name="cpd-language" description="Adapt Antlr sources for CPD-only languages">
|
||||
<target name="cpd-language" depends="check-up-to-date, annotate-classes, cpd-language-processing, update-stamp-file"/>
|
||||
<target name="cpd-language-processing" description="Adapt Antlr sources for CPD-only languages"
|
||||
unless="processing-not-required">
|
||||
<!-- We only need the Lexer file. -->
|
||||
<delete file="${parser-file}"/>
|
||||
<delete>
|
||||
@ -83,7 +172,9 @@
|
||||
</delete>
|
||||
</target>
|
||||
|
||||
<target name="pmd-language" description="Adapt Antlr sources for PMD languages" depends="rename-parser">
|
||||
<target name="pmd-language" depends="check-up-to-date, rename-parser, annotate-classes, pmd-language-processing, update-stamp-file"/>
|
||||
<target name="pmd-language-processing" description="Adapt Antlr sources for PMD languages"
|
||||
unless="processing-not-required">
|
||||
|
||||
<!-- Adapt parser. -->
|
||||
<replace file="${parser-file}">
|
||||
|
@ -1,40 +1,71 @@
|
||||
Added line: 4397
|
||||
|
||||
Added line: 467
|
||||
Added line: 9060
|
||||
# Contributor Covenant Code of Conduct
|
||||
Added line: 6883
|
||||
|
||||
## Our Pledge
|
||||
Added line: 5918
|
||||
|
||||
We as members, contributors, and leaders pledge to make participation in our
|
||||
Added line: 3783
|
||||
community a harassment-free experience for everyone, regardless of age, body
|
||||
Added line: 9204
|
||||
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
||||
Added line: 5944
|
||||
identity and expression, level of experience, education, socio-economic status,
|
||||
nationality, personal appearance, race, religion, or sexual identity
|
||||
Added line: 3871
|
||||
and orientation.
|
||||
Added line: 1488
|
||||
Added line: 3932
|
||||
|
||||
We pledge to act and interact in ways that contribute to an open, welcoming,
|
||||
Added line: 3984
|
||||
Added line: 1663
|
||||
diverse, inclusive, and healthy community.
|
||||
|
||||
Added line: 5796
|
||||
## Our Standards
|
||||
|
||||
Added line: 3357
|
||||
Examples of behavior that contributes to a positive environment for our
|
||||
community include:
|
||||
|
||||
Added line: 2319
|
||||
Added line: 5888
|
||||
Added line: 2125
|
||||
* Demonstrating empathy and kindness toward other people
|
||||
Added line: 2421
|
||||
* Being respectful of differing opinions, viewpoints, and experiences
|
||||
* Giving and gracefully accepting constructive feedback
|
||||
Added line: 3001
|
||||
* Accepting responsibility and apologizing to those affected by our mistakes,
|
||||
Added line: 1417
|
||||
Added line: 6299
|
||||
Added line: 1410
|
||||
Added line: 7746
|
||||
and learning from the experience
|
||||
Added line: 8288
|
||||
* Focusing on what is best not just for us as individuals, but for the
|
||||
overall community
|
||||
|
||||
Examples of unacceptable behavior include:
|
||||
|
||||
Added line: 2336
|
||||
Added line: 4316
|
||||
Added line: 6498
|
||||
* The use of sexualized language or imagery, and sexual attention or
|
||||
advances of any kind
|
||||
* Trolling, insulting or derogatory comments, and personal or political attacks
|
||||
Added line: 8843
|
||||
Added line: 8280
|
||||
Added line: 4035
|
||||
* Public or private harassment
|
||||
* Publishing others' private information, such as a physical or email
|
||||
Added line: 4412
|
||||
Added line: 8438
|
||||
address, without their explicit permission
|
||||
Added line: 6413
|
||||
* Other conduct which could reasonably be considered inappropriate in a
|
||||
Added line: 343
|
||||
professional setting
|
||||
|
||||
## Enforcement Responsibilities
|
||||
@ -42,88 +73,148 @@ Examples of unacceptable behavior include:
|
||||
Community leaders are responsible for clarifying and enforcing our standards of
|
||||
acceptable behavior and will take appropriate and fair corrective action in
|
||||
response to any behavior that they deem inappropriate, threatening, offensive,
|
||||
or harmful.
|
||||
Added line: 1417
|
||||
Added line: 7901
|
||||
|
||||
Community leaders have the right and responsibility to remove, edit, or reject
|
||||
Added line: 4616
|
||||
comments, commits, code, wiki edits, issues, and other contributions that are
|
||||
Added line: 663
|
||||
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
||||
decisions when appropriate.
|
||||
|
||||
Added line: 3907
|
||||
Added line: 804
|
||||
Added line: 6018
|
||||
Added line: 3411
|
||||
## Scope
|
||||
|
||||
Added line: 6112
|
||||
This Code of Conduct applies within all community spaces, and also applies when
|
||||
Added line: 509
|
||||
Added line: 4874
|
||||
Added line: 2994
|
||||
Added line: 919
|
||||
an individual is officially representing the community in public spaces.
|
||||
Examples of representing our community include using an official e-mail address,
|
||||
posting via an official social media account, or acting as an appointed
|
||||
representative at an online or offline event.
|
||||
Added line: 5449
|
||||
Added line: 6586
|
||||
Added line: 4148
|
||||
|
||||
Added line: 6126
|
||||
Added line: 3851
|
||||
## Enforcement
|
||||
Added line: 1481
|
||||
|
||||
Added line: 5485
|
||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
||||
reported to the community leaders responsible for enforcement at
|
||||
Added line: 9114
|
||||
<moderators@pmd-code.org>.
|
||||
All complaints will be reviewed and investigated promptly and fairly.
|
||||
|
||||
Added line: 2976
|
||||
Added line: 6031
|
||||
Added line: 9546
|
||||
All community leaders are obligated to respect the privacy and security of the
|
||||
reporter of any incident.
|
||||
Added line: 352
|
||||
Added line: 5636
|
||||
|
||||
## Enforcement Guidelines
|
||||
Added line: 4168
|
||||
|
||||
Community leaders will follow these Community Impact Guidelines in determining
|
||||
Added line: 563
|
||||
the consequences for any action they deem in violation of this Code of Conduct:
|
||||
|
||||
### 1. Correction
|
||||
|
||||
**Community Impact**: Use of inappropriate language or other behavior deemed
|
||||
Added line: 187
|
||||
unprofessional or unwelcome in the community.
|
||||
|
||||
**Consequence**: A private, written warning from community leaders, providing
|
||||
clarity around the nature of the violation and an explanation of why the
|
||||
Added line: 9131
|
||||
behavior was inappropriate. A public apology may be requested.
|
||||
|
||||
### 2. Warning
|
||||
|
||||
Added line: 1356
|
||||
**Community Impact**: A violation through a single incident or series
|
||||
of actions.
|
||||
|
||||
**Consequence**: A warning with consequences for continued behavior. No
|
||||
Added line: 9742
|
||||
Added line: 8075
|
||||
interaction with the people involved, including unsolicited interaction with
|
||||
those enforcing the Code of Conduct, for a specified period of time. This
|
||||
includes avoiding interactions in community spaces as well as external channels
|
||||
Added line: 1995
|
||||
like social media. Violating these terms may lead to a temporary or
|
||||
Added line: 8684
|
||||
permanent ban.
|
||||
|
||||
Added line: 3819
|
||||
Added line: 807
|
||||
Added line: 8787
|
||||
Added line: 8432
|
||||
Added line: 176
|
||||
Added line: 3819
|
||||
Added line: 4660
|
||||
### 3. Temporary Ban
|
||||
|
||||
**Community Impact**: A serious violation of community standards, including
|
||||
sustained inappropriate behavior.
|
||||
|
||||
Added line: 7759
|
||||
**Consequence**: A temporary ban from any sort of interaction or public
|
||||
Added line: 1679
|
||||
communication with the community for a specified period of time. No public or
|
||||
Added line: 4799
|
||||
private interaction with the people involved, including unsolicited interaction
|
||||
with those enforcing the Code of Conduct, is allowed during this period.
|
||||
Violating these terms may lead to a permanent ban.
|
||||
|
||||
### 4. Permanent Ban
|
||||
Added line: 1237
|
||||
Added line: 2460
|
||||
|
||||
Added line: 8418
|
||||
Added line: 4348
|
||||
**Community Impact**: Demonstrating a pattern of violation of community
|
||||
standards, including sustained inappropriate behavior, harassment of an
|
||||
individual, or aggression toward or disparagement of classes of individuals.
|
||||
Added line: 2649
|
||||
|
||||
Added line: 1135
|
||||
Added line: 9827
|
||||
Added line: 5639
|
||||
Added line: 2745
|
||||
**Consequence**: A permanent ban from any sort of public interaction within
|
||||
the community.
|
||||
Added line: 807
|
||||
Added line: 1939
|
||||
Added line: 4785
|
||||
Added line: 4267
|
||||
Added line: 2743
|
||||
Added line: 8595
|
||||
Added line: 2682
|
||||
|
||||
## Attribution
|
||||
|
||||
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
||||
version 2.0, available at
|
||||
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
||||
Added line: 8426
|
||||
Added line: 9939
|
||||
|
||||
Added line: 491
|
||||
Added line: 8411
|
||||
Community Impact Guidelines were inspired by [Mozilla's code of conduct
|
||||
enforcement ladder](https://github.com/mozilla/diversity).
|
||||
Added line: 5983
|
||||
|
||||
[homepage]: https://www.contributor-covenant.org
|
||||
|
||||
For answers to common questions about this code of conduct, see the FAQ at
|
||||
Added line: 9177
|
||||
https://www.contributor-covenant.org/faq. Translations are available at
|
||||
https://www.contributor-covenant.org/translations.
|
||||
Added line: 8389
|
||||
|
@ -311,7 +311,7 @@ echo " <https://repo.maven.apache.org/maven2/net/sourceforge/pmd/pmd/maven-me
|
||||
echo
|
||||
echo
|
||||
echo "Then proceed with releasing pmd-designer..."
|
||||
echo "<https://github.com/pmd/pmd-designer/blob/master/releasing.md>"
|
||||
echo "<https://github.com/pmd/pmd-designer/blob/main/releasing.md>"
|
||||
echo
|
||||
echo "Press enter to continue when pmd-designer is available in maven-central..."
|
||||
echo "<https://repo.maven.apache.org/maven2/net/sourceforge/pmd/pmd-designer/maven-metadata.xml>."
|
||||
|
89
docs/404.md
89
docs/404.md
@ -1,8 +1,97 @@
|
||||
Added line: 7126
|
||||
Added line: 8893
|
||||
---
|
||||
Added line: 3432
|
||||
Added line: 662
|
||||
Added line: 5261
|
||||
Added line: 857
|
||||
Added line: 9864
|
||||
Added line: 3753
|
||||
Added line: 4730
|
||||
Added line: 4408
|
||||
Added line: 6063
|
||||
Added line: 2736
|
||||
Added line: 1500
|
||||
Added line: 4883
|
||||
Added line: 8952
|
||||
Added line: 2168
|
||||
Added line: 1623
|
||||
Added line: 3682
|
||||
Added line: 7554
|
||||
Added line: 6005
|
||||
Added line: 6585
|
||||
title: "Page Not Found"
|
||||
search: exclude
|
||||
Added line: 4924
|
||||
Added line: 6902
|
||||
Added line: 8442
|
||||
---
|
||||
Added line: 8091
|
||||
|
||||
Added line: 612
|
||||
Added line: 3152
|
||||
Added line: 8180
|
||||
Added line: 7935
|
||||
Added line: 1523
|
||||
Added line: 5373
|
||||
Added line: 3738
|
||||
Added line: 9184
|
||||
Sorry, but the page you were trying to view does not exist. Check the URL for correctness, or try using keyword search using our search bar.
|
||||
Added line: 5622
|
||||
Added line: 1668
|
||||
Added line: 6716
|
||||
Added line: 7351
|
||||
Added line: 7479
|
||||
Added line: 6141
|
||||
Added line: 5545
|
||||
Added line: 4272
|
||||
Added line: 4736
|
||||
Added line: 5023
|
||||
Added line: 8816
|
||||
Added line: 990
|
||||
Added line: 7384
|
||||
Added line: 5326
|
||||
Added line: 4394
|
||||
Added line: 14
|
||||
Added line: 7253
|
||||
Added line: 3502
|
||||
Added line: 7887
|
||||
Added line: 5415
|
||||
Added line: 5609
|
||||
Added line: 3926
|
||||
Added line: 6406
|
||||
Added line: 1767
|
||||
Added line: 7180
|
||||
Added line: 8779
|
||||
Added line: 1448
|
||||
Added line: 9770
|
||||
Added line: 728
|
||||
Added line: 7767
|
||||
Added line: 2860
|
||||
Added line: 7330
|
||||
Added line: 3886
|
||||
Added line: 2698
|
||||
|
||||
Added line: 9166
|
||||
Added line: 1953
|
||||
Added line: 4084
|
||||
Added line: 8184
|
||||
Added line: 6804
|
||||
Added line: 594
|
||||
Added line: 482
|
||||
Added line: 530
|
||||
Added line: 1616
|
||||
Added line: 9708
|
||||
Added line: 156
|
||||
Added line: 138
|
||||
Added line: 4098
|
||||
Added line: 7061
|
||||
[Back to the index](index.html)
|
||||
Added line: 2355
|
||||
Added line: 3167
|
||||
Added line: 6226
|
||||
Added line: 3524
|
||||
Added line: 1717
|
||||
Added line: 6015
|
||||
Added line: 750
|
||||
Added line: 1268
|
||||
|
@ -1,8 +1,9 @@
|
||||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
activesupport (7.2.1)
|
||||
activesupport (7.2.2)
|
||||
base64
|
||||
benchmark (>= 0.3)
|
||||
bigdecimal
|
||||
concurrent-ruby (~> 1.0, >= 1.3.1)
|
||||
connection_pool (>= 2.2.5)
|
||||
@ -15,6 +16,7 @@ GEM
|
||||
addressable (2.8.7)
|
||||
public_suffix (>= 2.0.2, < 7.0)
|
||||
base64 (0.2.0)
|
||||
benchmark (0.3.0)
|
||||
bigdecimal (3.1.8)
|
||||
coffee-script (2.4.1)
|
||||
coffee-script-source
|
||||
@ -34,9 +36,10 @@ GEM
|
||||
ethon (0.16.0)
|
||||
ffi (>= 1.15.0)
|
||||
eventmachine (1.2.7)
|
||||
execjs (2.9.1)
|
||||
faraday (2.11.0)
|
||||
execjs (2.10.0)
|
||||
faraday (2.12.0)
|
||||
faraday-net_http (>= 2.0, < 3.4)
|
||||
json
|
||||
logger
|
||||
faraday-net_http (3.3.0)
|
||||
net-http
|
||||
@ -99,7 +102,7 @@ GEM
|
||||
activesupport (>= 2)
|
||||
nokogiri (>= 1.4)
|
||||
http_parser.rb (0.8.0)
|
||||
i18n (1.14.5)
|
||||
i18n (1.14.6)
|
||||
concurrent-ruby (~> 1.0)
|
||||
jekyll (3.10.0)
|
||||
addressable (~> 2.4)
|
||||
@ -211,6 +214,7 @@ GEM
|
||||
gemoji (>= 3, < 5)
|
||||
html-pipeline (~> 2.2)
|
||||
jekyll (>= 3.0, < 5.0)
|
||||
json (2.7.5)
|
||||
kramdown (2.4.0)
|
||||
rexml
|
||||
kramdown-parser-gfm (1.1.0)
|
||||
@ -219,7 +223,7 @@ GEM
|
||||
listen (3.9.0)
|
||||
rb-fsevent (~> 0.10, >= 0.10.3)
|
||||
rb-inotify (~> 0.9, >= 0.9.10)
|
||||
logger (1.6.0)
|
||||
logger (1.6.1)
|
||||
mercenary (0.3.6)
|
||||
minima (2.5.1)
|
||||
jekyll (>= 3.5, < 5.0)
|
||||
@ -240,8 +244,7 @@ GEM
|
||||
rb-fsevent (0.11.2)
|
||||
rb-inotify (0.11.1)
|
||||
ffi (~> 1.0)
|
||||
rexml (3.3.6)
|
||||
strscan
|
||||
rexml (3.3.9)
|
||||
rouge (3.30.0)
|
||||
rubyzip (2.3.2)
|
||||
safe_yaml (1.0.5)
|
||||
@ -255,7 +258,6 @@ GEM
|
||||
faraday (>= 0.17.3, < 3)
|
||||
securerandom (0.3.1)
|
||||
simpleidn (0.2.3)
|
||||
strscan (3.1.0)
|
||||
terminal-table (1.8.0)
|
||||
unicode-display_width (~> 1.1, >= 1.1.1)
|
||||
typhoeus (1.4.1)
|
||||
@ -264,7 +266,7 @@ GEM
|
||||
concurrent-ruby (~> 1.0)
|
||||
unicode-display_width (1.8.0)
|
||||
uri (0.13.1)
|
||||
webrick (1.8.1)
|
||||
webrick (1.9.0)
|
||||
|
||||
PLATFORMS
|
||||
x86_64-linux
|
||||
@ -276,4 +278,4 @@ DEPENDENCIES
|
||||
webrick
|
||||
|
||||
BUNDLED WITH
|
||||
2.5.3
|
||||
2.5.22
|
||||
|
109
docs/README.md
109
docs/README.md
@ -1,38 +1,131 @@
|
||||
Added line: 9343
|
||||
Added line: 9546
|
||||
Added line: 3162
|
||||
Added line: 4276
|
||||
Added line: 6047
|
||||
Added line: 1701
|
||||
Added line: 4421
|
||||
Added line: 7677
|
||||
Added line: 5859
|
||||
Added line: 585
|
||||
Added line: 2212
|
||||
Added line: 9603
|
||||
# PMD Documentation
|
||||
Added line: 6528
|
||||
Added line: 4267
|
||||
Added line: 9409
|
||||
Added line: 9140
|
||||
Added line: 750
|
||||
Added line: 6853
|
||||
Added line: 1652
|
||||
Added line: 5165
|
||||
Added line: 4704
|
||||
|
||||
Added line: 4909
|
||||
Added line: 1382
|
||||
The snapshot documentation (build by github pages) is available at: <https://pmd.github.io/pmd/>.
|
||||
Added line: 632
|
||||
Added line: 9426
|
||||
|
||||
The same documentation (build with our own scripts) is available at: <https://docs.pmd-code.org/snapshot/>.
|
||||
Added line: 8060
|
||||
Added line: 2374
|
||||
Added line: 9514
|
||||
|
||||
Added line: 8114
|
||||
The documentation for the latest release is at: <https://docs.pmd-code.org/latest/>
|
||||
|
||||
## Site Theme
|
||||
|
||||
This site was built using the tomjohnson1492/documentation-theme-jekyll theme
|
||||
Added line: 9802
|
||||
Added line: 1662
|
||||
Added line: 7664
|
||||
Added line: 7925
|
||||
Added line: 3548
|
||||
Added line: 7758
|
||||
|
||||
A Jekyll-based theme designed for documentation and help systems. See the link for detailed instructions on setting up and configuring everything. http://idratherbewriting.com/documentation-theme-jekyll/
|
||||
Added line: 8624
|
||||
Added line: 941
|
||||
|
||||
Added line: 7546
|
||||
## Building using Script
|
||||
Added line: 1549
|
||||
Added line: 3467
|
||||
|
||||
Added line: 4367
|
||||
Added line: 1237
|
||||
Added line: 3983
|
||||
Added line: 8702
|
||||
Added line: 4873
|
||||
Added line: 2185
|
||||
bash build-docs.sh
|
||||
|
||||
This will run bundler to fetch and potentially update the ruby gems.
|
||||
And then it will execute jekyll and build a offline site.
|
||||
Added line: 8652
|
||||
Added line: 6913
|
||||
Added line: 7152
|
||||
Added line: 3322
|
||||
Added line: 3056
|
||||
Added line: 3358
|
||||
Added line: 1847
|
||||
Added line: 9464
|
||||
Added line: 3341
|
||||
Open the file `_site/index.html` with your browser to see the site.
|
||||
Added line: 2956
|
||||
Added line: 2871
|
||||
Added line: 5446
|
||||
Added line: 5897
|
||||
Added line: 9683
|
||||
Added line: 3264
|
||||
Added line: 3336
|
||||
|
||||
## Building using Bundler
|
||||
Added line: 5109
|
||||
|
||||
bundle install # once
|
||||
Added line: 2992
|
||||
Added line: 404
|
||||
Added line: 3432
|
||||
Added line: 1565
|
||||
Added line: 4427
|
||||
bundle exec jekyll serve
|
||||
|
||||
Added line: 1611
|
||||
Added line: 2576
|
||||
Go to: http://localhost:4005/
|
||||
|
||||
Added line: 9557
|
||||
This variant is useful to get constant updates: When you modify a file, jekyll will automatically rebuild
|
||||
the site, so you just need to hit Refresh in the browser to see the update.
|
||||
Added line: 4267
|
||||
Added line: 2115
|
||||
|
||||
Added line: 9884
|
||||
Added line: 7800
|
||||
Added line: 4922
|
||||
Added line: 4465
|
||||
Added line: 7392
|
||||
Added line: 6415
|
||||
Added line: 66
|
||||
Added line: 1991
|
||||
Added line: 7186
|
||||
Added line: 6218
|
||||
Added line: 8647
|
||||
Added line: 6041
|
||||
## Building using Docker
|
||||
|
||||
Added line: 5578
|
||||
Added line: 6879
|
||||
Added line: 3908
|
||||
Added line: 6751
|
||||
docker build --no-cache -t pmd-doc . # once
|
||||
docker run --rm=true -v "$PWD:/src" -p 4005:4005 pmd-doc serve -H 0.0.0.0
|
||||
Added line: 1156
|
||||
Added line: 6500
|
||||
|
||||
Go to: http://localhost:4005/
|
||||
Added line: 5732
|
||||
Added line: 3049
|
||||
Added line: 5996
|
||||
Added line: 6524
|
||||
Added line: 889
|
||||
Added line: 1712
|
||||
Added line: 3668
|
||||
Added line: 442
|
||||
Added line: 1492
|
||||
Added line: 9108
|
||||
|
@ -1,9 +1,9 @@
|
||||
repository: pmd/pmd
|
||||
|
||||
pmd:
|
||||
version: 7.5.0-SNAPSHOT
|
||||
previous_version: 7.4.0
|
||||
date: 2024-08-30
|
||||
version: 7.8.0-SNAPSHOT
|
||||
previous_version: 7.7.0
|
||||
date: 2024-11-29
|
||||
# release types: major, minor, bugfix
|
||||
release_type: minor
|
||||
|
||||
@ -21,7 +21,7 @@ site_title: PMD Source Code Analyzer
|
||||
company_name: PMD Open Source Project
|
||||
# this appears in the footer
|
||||
|
||||
github_editme_path: pmd/pmd/blob/master/docs/
|
||||
github_editme_path: pmd/pmd/blob/main/docs/
|
||||
# if you're using Github, provide the basepath to the branch you've created for reviews, following the sample here. if not, leave this value blank.
|
||||
|
||||
host: 127.0.0.1
|
||||
|
@ -260,6 +260,9 @@ entries:
|
||||
- title: Error Prone
|
||||
output: web, pdf
|
||||
url: /pmd_rules_ecmascript_errorprone.html
|
||||
- title: Performance
|
||||
output: web, pdf
|
||||
url: /pmd_rules_ecmascript_performance.html
|
||||
- title: null
|
||||
output: web, pdf
|
||||
subfolders:
|
||||
@ -521,7 +524,7 @@ entries:
|
||||
url: /pmd_devdocs_building.html
|
||||
output: web, pdf
|
||||
- title: Contributing
|
||||
external_url: https://github.com/pmd/pmd/blob/master/CONTRIBUTING.md
|
||||
external_url: https://github.com/pmd/pmd/blob/main/CONTRIBUTING.md
|
||||
output: web, pdf
|
||||
- title: Writing documentation
|
||||
url: /pmd_devdocs_writing_documentation.html
|
||||
|
@ -1,47 +1,136 @@
|
||||
# Assets used
|
||||
|
||||
## Fontawesome
|
||||
Added line: 7233
|
||||
|
||||
Added line: 6519
|
||||
Added line: 800
|
||||
Added line: 1075
|
||||
Added line: 3221
|
||||
Doc: https://fontawesome.com/how-to-use/on-the-web/setup/hosting-font-awesome-yourself
|
||||
Added line: 8510
|
||||
|
||||
Download: https://use.fontawesome.com/releases/v5.15.4/fontawesome-free-5.15.4-web.zip
|
||||
Added line: 2631
|
||||
Added line: 2487
|
||||
Added line: 9775
|
||||
Added line: 9098
|
||||
Added line: 4741
|
||||
Added line: 8245
|
||||
Added line: 775
|
||||
Added line: 245
|
||||
Added line: 3446
|
||||
|
||||
Added line: 3698
|
||||
## Bootstrap
|
||||
Added line: 636
|
||||
Added line: 4848
|
||||
Added line: 7945
|
||||
|
||||
Added line: 968
|
||||
Added line: 3407
|
||||
Added line: 1912
|
||||
Doc: https://getbootstrap.com/docs/4.5/getting-started/introduction/
|
||||
Added line: 7787
|
||||
Added line: 3443
|
||||
|
||||
Added line: 4462
|
||||
Download: https://getbootstrap.com/docs/4.5/getting-started/download/
|
||||
Added line: 2468
|
||||
Added line: 1386
|
||||
|
||||
Added line: 3307
|
||||
## JQuery
|
||||
Added line: 8172
|
||||
Added line: 100
|
||||
Added line: 3568
|
||||
Added line: 5350
|
||||
|
||||
Added line: 8929
|
||||
Added line: 1606
|
||||
Added line: 1622
|
||||
Added line: 3311
|
||||
https://jquery.com/download/
|
||||
Added line: 8453
|
||||
|
||||
Added line: 9852
|
||||
We need the full version (not slim), as navgoco requires this.
|
||||
|
||||
Added line: 8137
|
||||
## AnchorJs
|
||||
Added line: 2087
|
||||
Added line: 5210
|
||||
Added line: 612
|
||||
Added line: 1565
|
||||
Added line: 9570
|
||||
|
||||
Added line: 3158
|
||||
Added line: 4003
|
||||
Added line: 2480
|
||||
Added line: 4419
|
||||
Added line: 4254
|
||||
https://github.com/bryanbraun/anchorjs/releases/tag/4.2.2
|
||||
Added line: 1472
|
||||
|
||||
## JQuery navgoco
|
||||
Added line: 2833
|
||||
|
||||
Added line: 6210
|
||||
Added line: 737
|
||||
Added line: 1394
|
||||
Added line: 4462
|
||||
https://github.com/tefra/navgoco/releases/tag/0.2.1
|
||||
Added line: 2902
|
||||
|
||||
Added line: 6958
|
||||
Added line: 765
|
||||
## JQuery UI
|
||||
Added line: 1307
|
||||
|
||||
https://jqueryui.com/
|
||||
https://jqueryui.com/resources/download/jquery-ui-1.12.1.zip
|
||||
|
||||
Added line: 4235
|
||||
Added line: 3194
|
||||
## Simple Jekyll Search
|
||||
|
||||
https://github.com/christian-fei/Simple-Jekyll-Search
|
||||
Added line: 1632
|
||||
|
||||
Added line: 1076
|
||||
Added line: 211
|
||||
Added line: 8077
|
||||
Added line: 3429
|
||||
Added line: 8959
|
||||
Added line: 7617
|
||||
Added line: 4719
|
||||
Added line: 1719
|
||||
Added line: 9434
|
||||
Added line: 3969
|
||||
Added line: 6819
|
||||
## Shuffle
|
||||
Added line: 2687
|
||||
Added line: 7087
|
||||
Added line: 3284
|
||||
|
||||
https://github.com/Vestride/Shuffle
|
||||
Added line: 3919
|
||||
Added line: 3517
|
||||
Added line: 5809
|
||||
Added line: 4127
|
||||
https://github.com/Vestride/Shuffle/releases/tag/v5.2.3
|
||||
Added line: 9549
|
||||
Added line: 7779
|
||||
Example: https://vestride.github.io/Shuffle/
|
||||
Added line: 6966
|
||||
Added line: 1061
|
||||
|
||||
Added line: 1057
|
||||
Added line: 8325
|
||||
Added line: 9970
|
||||
Added line: 2421
|
||||
## jekyll-table-of-contents
|
||||
Added line: 7459
|
||||
Added line: 6771
|
||||
Added line: 6769
|
||||
Added line: 9659
|
||||
|
||||
https://github.com/ghiculescu/jekyll-table-of-contents
|
||||
|
||||
|
@ -1,34 +1,123 @@
|
||||
Added line: 4311
|
||||
Added line: 536
|
||||
Added line: 2705
|
||||
Added line: 4014
|
||||
Added line: 1541
|
||||
Added line: 7476
|
||||
Font Awesome Free License
|
||||
Added line: 6182
|
||||
Added line: 5946
|
||||
Added line: 1207
|
||||
Added line: 6056
|
||||
Added line: 5045
|
||||
Added line: 1476
|
||||
Added line: 8316
|
||||
Added line: 3378
|
||||
Added line: 2640
|
||||
Added line: 9226
|
||||
-------------------------
|
||||
|
||||
Added line: 8374
|
||||
Font Awesome Free is free, open source, and GPL friendly. You can use it for
|
||||
commercial projects, open source projects, or really almost whatever you want.
|
||||
Added line: 5862
|
||||
Added line: 1285
|
||||
Added line: 313
|
||||
Added line: 8677
|
||||
Added line: 1773
|
||||
Added line: 8629
|
||||
Added line: 6476
|
||||
Added line: 2596
|
||||
Added line: 5627
|
||||
Added line: 8927
|
||||
Added line: 8265
|
||||
Added line: 8688
|
||||
Added line: 3396
|
||||
Full Font Awesome Free license: https://fontawesome.com/license/free.
|
||||
|
||||
# Icons: CC BY 4.0 License (https://creativecommons.org/licenses/by/4.0/)
|
||||
Added line: 9235
|
||||
In the Font Awesome Free download, the CC BY 4.0 license applies to all icons
|
||||
packaged as SVG and JS file types.
|
||||
Added line: 7638
|
||||
|
||||
Added line: 6887
|
||||
# Fonts: SIL OFL 1.1 License (https://scripts.sil.org/OFL)
|
||||
Added line: 9274
|
||||
Added line: 2708
|
||||
Added line: 2918
|
||||
Added line: 5860
|
||||
Added line: 1196
|
||||
In the Font Awesome Free download, the SIL OFL license applies to all icons
|
||||
Added line: 5701
|
||||
Added line: 1159
|
||||
packaged as web and desktop font files.
|
||||
|
||||
Added line: 3518
|
||||
Added line: 2191
|
||||
Added line: 5583
|
||||
Added line: 5706
|
||||
Added line: 1209
|
||||
Added line: 8275
|
||||
# Code: MIT License (https://opensource.org/licenses/MIT)
|
||||
Added line: 2792
|
||||
Added line: 5874
|
||||
Added line: 8142
|
||||
In the Font Awesome Free download, the MIT license applies to all non-font and
|
||||
Added line: 4654
|
||||
Added line: 2816
|
||||
non-icon files.
|
||||
Added line: 8796
|
||||
Added line: 685
|
||||
|
||||
# Attribution
|
||||
Attribution is required by MIT, SIL OFL, and CC BY licenses. Downloaded Font
|
||||
Added line: 7705
|
||||
Added line: 1570
|
||||
Added line: 2751
|
||||
Added line: 5996
|
||||
Added line: 2219
|
||||
Awesome Free files already contain embedded comments with sufficient
|
||||
Added line: 8252
|
||||
Added line: 764
|
||||
Added line: 9235
|
||||
Added line: 8630
|
||||
Added line: 94
|
||||
Added line: 5715
|
||||
attribution, so you shouldn't need to do anything additional when using these
|
||||
Added line: 8761
|
||||
files normally.
|
||||
Added line: 848
|
||||
Added line: 9665
|
||||
Added line: 1479
|
||||
|
||||
We've kept attribution comments terse, so we ask that you do not actively work
|
||||
Added line: 9743
|
||||
Added line: 3403
|
||||
Added line: 3430
|
||||
Added line: 9625
|
||||
Added line: 8001
|
||||
to remove them from files, especially code. They're a great way for folks to
|
||||
Added line: 6531
|
||||
learn about Font Awesome.
|
||||
Added line: 9977
|
||||
Added line: 6120
|
||||
Added line: 831
|
||||
Added line: 4611
|
||||
Added line: 6739
|
||||
Added line: 631
|
||||
Added line: 7356
|
||||
|
||||
# Brand Icons
|
||||
Added line: 1122
|
||||
All brand icons are trademarks of their respective owners. The use of these
|
||||
trademarks does not indicate endorsement of the trademark holder by Font
|
||||
Added line: 9105
|
||||
Awesome, nor vice versa. **Please do not use brand logos for any purpose except
|
||||
Added line: 2061
|
||||
Added line: 5475
|
||||
Added line: 1831
|
||||
Added line: 9338
|
||||
Added line: 5193
|
||||
Added line: 2557
|
||||
to represent the company, product, or service to which they refer.**
|
||||
Added line: 2903
|
||||
Added line: 6724
|
||||
Added line: 2657
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user