violation-comments-to-bitbucket-server-command-line 2.2.1 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +79 -89
- package/build/libs/violation-comments-to-bitbucket-server-command-line-2.4.1-javadoc.jar +0 -0
- package/build/libs/violation-comments-to-bitbucket-server-command-line-2.4.1-sources.jar +0 -0
- package/build/libs/{violation-comments-to-bitbucket-server-command-line-2.3.0.jar → violation-comments-to-bitbucket-server-command-line-2.4.1.jar} +0 -0
- package/package.json +17 -16
- package/build/libs/violation-comments-to-bitbucket-server-command-line-2.3.0-javadoc.jar +0 -0
- package/build/libs/violation-comments-to-bitbucket-server-command-line-2.3.0-javadoc.jar.asc +0 -11
- package/build/libs/violation-comments-to-bitbucket-server-command-line-2.3.0-sources.jar +0 -0
- package/build/libs/violation-comments-to-bitbucket-server-command-line-2.3.0-sources.jar.asc +0 -11
- package/build/libs/violation-comments-to-bitbucket-server-command-line-2.3.0.jar.asc +0 -11
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Violation Comments To Bitbucket Server Command Line
|
|
2
2
|
|
|
3
3
|
[ ](https://www.npmjs.com/package/violation-comments-to-bitbucket-server-command-line)
|
|
4
|
-
[](https://search.maven.org/artifact/se.bjurr.violations/violation-comments-to-bitbucket-server-command-line)
|
|
5
5
|
[](https://www.npmjs.com/package/violation-comments-to-bitbucket-server-command-line)
|
|
6
6
|
[](https://hub.docker.com/r/tomasbjerre/violation-comments-to-bitbucket-server-command-line/)
|
|
7
7
|
|
|
@@ -25,7 +25,7 @@ Run it with:
|
|
|
25
25
|
npx violation-comments-to-bitbucket-server-command-line \
|
|
26
26
|
-pat TOKENHERE \
|
|
27
27
|
-pk PROJECT_KEY \
|
|
28
|
-
-rs
|
|
28
|
+
-rs REPO_SLUG \
|
|
29
29
|
-prid 1234 \
|
|
30
30
|
-v "CHECKSTYLE" "." ".*checkstyle/main\.xml$" "Checkstyle" \
|
|
31
31
|
-v "JSHINT" "." ".*jshint/report\.xml$" "JSHint"
|
|
@@ -106,7 +106,7 @@ A number of **parsers** have been implemented. Some **parsers** can parse output
|
|
|
106
106
|
| [_MyPy_](https://pypi.python.org/pypi/mypy-lang) | `MYPY` |
|
|
107
107
|
| [_NullAway_](https://github.com/uber/NullAway) | `GOOGLEERRORPRONE` | Same format as Google Error Prone.
|
|
108
108
|
| [_PCLint_](http://www.gimpel.com/html/pcl.htm) | `PCLINT` | PC-Lint using the same output format as the Jenkins warnings plugin, [_details here_](https://wiki.jenkins.io/display/JENKINS/PcLint+options)
|
|
109
|
-
| [_PHPCS_](https://github.com/
|
|
109
|
+
| [_PHPCS_](https://github.com/PHPCSStandards/PHP_CodeSniffer) | `CHECKSTYLE` | With `phpcs api.php --report=checkstyle`.
|
|
110
110
|
| [_PHPPMD_](https://phpmd.org/) | `PMD` | With `phpmd api.php xml ruleset.xml`.
|
|
111
111
|
| [_PMD_](https://pmd.github.io/) | `PMD` |
|
|
112
112
|
| [_Pep8_](https://github.com/PyCQA/pycodestyle) | `FLAKE8` |
|
|
@@ -142,92 +142,82 @@ Missing a format? Open an issue [here](https://github.com/tomasbjerre/violations
|
|
|
142
142
|
# Usage
|
|
143
143
|
|
|
144
144
|
```shell
|
|
145
|
-
-
|
|
146
|
-
|
|
147
|
-
-
|
|
148
|
-
|
|
149
|
-
-comment-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
-
|
|
160
|
-
ccwasfc
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
-
|
|
164
|
-
|
|
165
|
-
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
-
|
|
175
|
-
|
|
176
|
-
-
|
|
177
|
-
|
|
178
|
-
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
-
|
|
183
|
-
|
|
184
|
-
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
-
|
|
192
|
-
|
|
193
|
-
-
|
|
194
|
-
|
|
195
|
-
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
PYLINT, RESHARPER, SBTSCALAC,
|
|
222
|
-
SIMIAN, SONAR, STYLECOP,
|
|
223
|
-
XMLLINT, YAMLLINT, ZPTLINT,
|
|
224
|
-
DOCFX, PCLINT, CODECLIMATE,
|
|
225
|
-
XUNIT
|
|
226
|
-
Example: -v "JSHINT"
|
|
227
|
-
"." ".*/jshint.xml$"
|
|
228
|
-
"JSHint" [Supports Multiple occurrences]
|
|
229
|
-
<string>: any string
|
|
230
|
-
Default: Empty list
|
|
145
|
+
Usage: violation-comments-to-bitbucket-server-command-line [-h]
|
|
146
|
+
[-show-debug-info] [-ccwasfc=<createCommentWithAllSingleFileComments>]
|
|
147
|
+
[-cocc=<commentOnlyChangedContent>]
|
|
148
|
+
[-coccc=<commentOnlyChangedContentContext>]
|
|
149
|
+
[-cocf=<commentOnlyChangedFiles>] [-comment-template=<commentTemplate>]
|
|
150
|
+
[-csfc=<createSingleFileComments>]
|
|
151
|
+
[-csfct=<createSingleFileCommentsTasks>]
|
|
152
|
+
[-keep-old-comments=<keepOldComments>] [-keystore-pass=<keyStorePass>]
|
|
153
|
+
[-keystore-path=<keyStorePath>] [-max=<maxNumberOfViolations>]
|
|
154
|
+
[-password=<password>] [-pat=<personalAccessToken>] -pk=<projectKey>
|
|
155
|
+
-prid=<pullRequestId> [-proxy-host=<proxyHost>]
|
|
156
|
+
[-proxy-password=<proxyPass>] [-proxy-port=<proxyPort>]
|
|
157
|
+
[-proxy-user=<proxyUser>] -rs=<repoSlug> [-s=<minSeverity>]
|
|
158
|
+
-url=<bitbucketServerUrl> [-username=<username>] [-i=<ignorePaths>]...
|
|
159
|
+
[-v=<violations> <violations> <violations> <violations>]...
|
|
160
|
+
-ccwasfc, -create-comment-with-all-single-file-comments=<createCommentWith
|
|
161
|
+
AllSingleFileComments>
|
|
162
|
+
|
|
163
|
+
-cocc, -comment-only-changed-content=<commentOnlyChangedContent>
|
|
164
|
+
|
|
165
|
+
-coccc, -comment-only-changed-content-context=<commentOnlyChangedContentCo
|
|
166
|
+
ntext>
|
|
167
|
+
|
|
168
|
+
-cocf, -comment-only-changed-files=<commentOnlyChangedFiles>
|
|
169
|
+
True if only changed files should be commented.
|
|
170
|
+
False if all findings should be commented.
|
|
171
|
+
-comment-template=<commentTemplate>
|
|
172
|
+
https://github.
|
|
173
|
+
com/tomasbjerre/violation-comments-lib
|
|
174
|
+
-csfc, -create-single-file-comments=<createSingleFileComments>
|
|
175
|
+
|
|
176
|
+
-csfct, -create-single-file-comments-tasks=<createSingleFileCommentsTasks>
|
|
177
|
+
|
|
178
|
+
-h, --help Show this help message and exit.
|
|
179
|
+
-i, --ignorePaths=<ignorePaths>
|
|
180
|
+
Ignore given paths
|
|
181
|
+
Example: -i node_modules
|
|
182
|
+
-keep-old-comments=<keepOldComments>
|
|
183
|
+
|
|
184
|
+
-keystore-pass=<keyStorePass>
|
|
185
|
+
|
|
186
|
+
-keystore-path=<keyStorePath>
|
|
187
|
+
|
|
188
|
+
-max, -max-number-of-violations=<maxNumberOfViolations>
|
|
189
|
+
|
|
190
|
+
-password=<password>
|
|
191
|
+
-pat, -personal-access-token=<personalAccessToken>
|
|
192
|
+
|
|
193
|
+
-pk, -project-key=<projectKey>
|
|
194
|
+
|
|
195
|
+
-prid, -pull-request-id=<pullRequestId>
|
|
196
|
+
|
|
197
|
+
-proxy-host=<proxyHost>
|
|
198
|
+
|
|
199
|
+
-proxy-password=<proxyPass>
|
|
200
|
+
|
|
201
|
+
-proxy-port=<proxyPort>
|
|
202
|
+
|
|
203
|
+
-proxy-user=<proxyUser>
|
|
204
|
+
|
|
205
|
+
-rs, -repo-slug=<repoSlug>
|
|
206
|
+
|
|
207
|
+
-s, -severity=<minSeverity>
|
|
208
|
+
Minimum severity level to report.
|
|
209
|
+
-show-debug-info Please run your command with this parameter and
|
|
210
|
+
supply output when reporting bugs.
|
|
211
|
+
-url, -server-url=<bitbucketServerUrl>
|
|
212
|
+
|
|
213
|
+
-username=<username>
|
|
214
|
+
-v, --violations=<violations> <violations> <violations> <violations>
|
|
215
|
+
The violations to look for. <PARSER> <FOLDER>
|
|
216
|
+
<REGEXP PATTERN> <NAME> where PARSER is one of
|
|
217
|
+
the values of se.bjurr.violations.lib.reports.
|
|
218
|
+
Parser (see supported formats table in README
|
|
219
|
+
for the full list).
|
|
220
|
+
Example: -v "JSHINT" "." ".*/jshint.xml$" "JSHint"
|
|
231
221
|
```
|
|
232
222
|
|
|
233
223
|
Checkout the [Violations Lib](https://github.com/tomasbjerre/violations-lib) for more documentation.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
2
|
+
"version": "2.4.1",
|
|
3
|
+
"name": "violation-comments-to-bitbucket-server-command-line",
|
|
4
|
+
"homepage": "https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line",
|
|
5
|
+
"repository": "https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line",
|
|
6
|
+
"author": "Tomas Bjerre",
|
|
7
|
+
"description": "Report static code analysis to Bitbucket Server.",
|
|
8
|
+
"runnable-jar-regexp": ".*build/libs/.*\\d+\\.\\d+\\.\\d+\\.jar$",
|
|
9
|
+
"files": [
|
|
10
|
+
"build/libs"
|
|
11
|
+
],
|
|
12
|
+
"bin": "./index.js",
|
|
13
|
+
"license": "Apache 2",
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"npm-java-runner": "2.0.0"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
Binary file
|
package/build/libs/violation-comments-to-bitbucket-server-command-line-2.3.0-javadoc.jar.asc
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
-----BEGIN PGP SIGNATURE-----
|
|
2
|
-
Version: BCPG v@RELEASE_NAME@
|
|
3
|
-
|
|
4
|
-
iQEcBAABCgAGBQJo2UpDAAoJEJxRmnfYMAu7o9oH/330nHR7ujdbMC4da+B5PpjQ
|
|
5
|
-
OKJ5dT/+MXsAs/vqbVbnrs8ueY6qiMQw/AkBE8z6NLG3clubd4O4DAeVbFYANWoE
|
|
6
|
-
s1f1i0dQbSm4rO3uSVML3iU0hF8VdZ1k52AaXPiuN0cupUSTFCEUzU9nfs/Zk7MT
|
|
7
|
-
P0Es7RHXgzcC/GRZWxpjxlLpXScqePfCxWXhsXXbJLtsJuwPwyfWFASxAqUFp8rN
|
|
8
|
-
U/CmoNkrwoIuZLo7dzyGubDJ3hEfJZRGJuMbKsnPeLgv5t0V95wDZwZWQdsB1JPo
|
|
9
|
-
TdrCx8dDhwwkVqQca/f+d7A/OAtGz36a7Hu3EDRgIegsqc5GaAD5ypWKJ7PbvS0=
|
|
10
|
-
=nc7Q
|
|
11
|
-
-----END PGP SIGNATURE-----
|
|
Binary file
|
package/build/libs/violation-comments-to-bitbucket-server-command-line-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