violation-comments-to-bitbucket-server-command-line 2.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  # Violation Comments To Bitbucket Server Command Line
2
2
 
3
3
  [![NPM](https://img.shields.io/npm/v/violation-comments-to-bitbucket-server-command-line.svg?style=flat-square) ](https://www.npmjs.com/package/violation-comments-to-bitbucket-server-command-line)
4
- [![Maven Central](https://maven-badges.herokuapp.com/maven-central/se.bjurr.violations/violation-comments-to-bitbucket-server-command-line/badge.svg)](https://maven-badges.herokuapp.com/maven-central/se.bjurr.violations/violation-comments-to-bitbucket-server-command-line)
4
+ [![Maven Central](https://img.shields.io/maven-central/v/se.bjurr.violations/violation-comments-to-bitbucket-server-command-line.svg?label=Maven%20Central)](https://search.maven.org/artifact/se.bjurr.violations/violation-comments-to-bitbucket-server-command-line)
5
5
  [![NPM Downloads](https://img.shields.io/npm/dm/violation-comments-to-bitbucket-server-command-line.svg?style=flat)](https://www.npmjs.com/package/violation-comments-to-bitbucket-server-command-line)
6
6
  [![Docker Pulls](https://badgen.net/docker/pulls/tomasbjerre/violation-comments-to-bitbucket-server-command-line?icon=docker&label=pulls)](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 REPO_SLUT \
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/squizlabs/PHP_CodeSniffer) | `CHECKSTYLE` | With `phpcs api.php --report=checkstyle`.
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
- -comment-only-changed-content, -cocc <boolean> <boolean>: true or false
146
- Default: true
147
- -comment-only-changed-content-context, -coccc <integer> <integer>: -2,147,483,648 to 2,147,483,647
148
- Default: 5
149
- -comment-only-changed-files, -cocf <boolean> True if only changed
150
- files should be commented.
151
- False if all findings should
152
- be commented.
153
- <boolean>: true or false
154
- Default: true
155
- -comment-template <string> https://github.
156
- com/tomasbjerre/violation-comments-lib
157
- <string>: any string
158
- Default:
159
- -create-comment-with-all-single-file-comments, - <boolean>: true or false
160
- ccwasfc <boolean> Default: false
161
- -create-single-file-comments, -csfc <boolean> <boolean>: true or false
162
- Default: true
163
- -create-single-file-comments-tasks, -csfct <boolean> <boolean>: true or false
164
- Default: false
165
- -h, --help <argument-to-print-help-for> <argument-to-print-help-for>: an argument to print help for
166
- Default: If no specific parameter is given the whole usage text is given
167
- --ignorePaths, -i <string> Ignore given paths
168
-
169
- Example: -i node_modules [Supports Multiple occurrences]
170
- <string>: any string
171
- Default: Empty list
172
- -keep-old-comments <boolean> <boolean>: true or false
173
- Default: false
174
- -keystore-pass <string> <string>: any string
175
- Default: changeit
176
- -keystore-path <string> <string>: any string
177
- Default:
178
- -max-number-of-violations, -max <integer> <integer>: -2,147,483,648 to 2,147,483,647
179
- Default: 2,147,483,647
180
- -password <string> <string>: any string
181
- Default:
182
- -personal-access-token, -pat <string> <string>: any string
183
- Default:
184
- -project-key, -pk <string> <string>: any string [Required]
185
- -proxy-host <string> <string>: any string
186
- Default:
187
- -proxy-password <string> <string>: any string
188
- Default:
189
- -proxy-port <integer> <integer>: -2,147,483,648 to 2,147,483,647
190
- Default: 0
191
- -proxy-user <string> <string>: any string
192
- Default:
193
- -pull-request-id, -prid <integer> <integer>: -2,147,483,648 to 2,147,483,647 [Required]
194
- -repo-slug, -rs <string> <string>: any string [Required]
195
- -server-url, -url <string> <string>: any string [Required]
196
- -severity, -s <SEVERITY> Minimum severity level
197
- to report.
198
- <SEVERITY>: {INFO | WARN | ERROR}
199
- Default: INFO
200
- -show-debug-info Please run your
201
- command with this parameter
202
- and supply output when
203
- reporting bugs.
204
- Default: disabled
205
- -username <string> <string>: any string
206
- Default:
207
- --violations, -v <string> The violations to look
208
- for. <PARSER> <FOLDER>
209
- <REGEXP PATTERN> <NAME> where
210
- PARSER is one of:
211
- ANDROIDLINT, CHECKSTYLE, CODENARC,
212
- CLANG, CPD, CPPCHECK,
213
- CPPLINT, CSSLINT, GENERIC,
214
- FINDBUGS, FLAKE8, FXCOP,
215
- GENDARME, IAR, JCREPORT, JSLINT,
216
- JUNIT, LINT, KLOCWORK,
217
- KOTLINMAVEN, KOTLINGRADLE, MSCPP,
218
- MYPY, GOLINT,
219
- GOOGLEERRORPRONE, PERLCRITIC, PITEST,
220
- PMD, PROTOLINT, PYDOCSTYLE,
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.
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
- "version": "2.3.1",
2
+ "version": "2.4.1",
3
3
  "name": "violation-comments-to-bitbucket-server-command-line",
4
- "homepage": "extension 'npmJavaRunnerExtension' property 'website'",
5
- "repository": "extension 'npmJavaRunnerExtension' property 'vcsUrl'",
6
- "author": "extension 'npmJavaRunnerExtension' property 'developerName'",
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
7
  "description": "Report static code analysis to Bitbucket Server.",
8
8
  "runnable-jar-regexp": ".*build/libs/.*\\d+\\.\\d+\\.\\d+\\.jar$",
9
9
  "files": [
@@ -12,7 +12,7 @@
12
12
  "bin": "./index.js",
13
13
  "license": "Apache 2",
14
14
  "dependencies": {
15
- "npm-java-runner": "0.0.17"
15
+ "npm-java-runner": "2.0.0"
16
16
  }
17
17
  }
18
18
 
@@ -1,11 +0,0 @@
1
- -----BEGIN PGP SIGNATURE-----
2
- Version: BCPG v@RELEASE_NAME@
3
-
4
- iQEcBAABCgAGBQJo4oAyAAoJEJxRmnfYMAu7W8sIAIwVJGHpgGTA8TsLG+QsB2G1
5
- 0XkCO/8zbf/2dx+odH+qhDn0Xx7WcGmPM0iIU+QKPF0b5pMQA+JqJOZBKlkLBhfZ
6
- Kr/iEvo2dIEx4HkUmHjV3RJ03XizKXNlUcZBOicMUQ+Z+UdNsd9DoqsBC+d76v6m
7
- UzfwEIURB6m8C6oLStCr3mtIeMelhLI3LR1wmpKfPwj8LdFbif/1Xi+a/P8Pwjhx
8
- 4k0F+XioYG6dSWget+mS2Q/qmB02dMyKgKfIdaR4T97F+YfhyZYNBQ6k0gmJHWmp
9
- wmT+ZVDipnyPllYyzQvNPWvpMGbS4C0Z5Np6fwkd/t25pCdV5rN8TZGSqA/3JRQ=
10
- =idKT
11
- -----END PGP SIGNATURE-----
@@ -1,11 +0,0 @@
1
- -----BEGIN PGP SIGNATURE-----
2
- Version: BCPG v@RELEASE_NAME@
3
-
4
- iQEcBAABCgAGBQJo4oAyAAoJEJxRmnfYMAu7DU4IAJ0cGPavynBS1JT3lJPEfNrl
5
- ME4OtpAJRuOy89HTRCtzKXSbcraL5acUb5cGwGp1zij/FpsfXPDD42Efse8rigyv
6
- ZCP2EHB1AF3scvHEHl4bsUEw7t9XpDgRhQwRnZStNwxhiwa53IPWbyCOqXRdhL/h
7
- CVFJMwN50ti1CP3AKkaXqmnpov91BcqhLapokJKnNV7mMrIhAZN7CvWRS3KLRbuI
8
- eJ7VNSMFdWPVK4DaanD48VioNhBo9ZHU6X6vHvXBk4kskwNhw7YULxTjh2nw7RAH
9
- kCucRtzpG/FFbBuWpG6s0Wt6/wroxTNpfwOMlpaUXgi4VXe9nf3ZKS4vYkILr8I=
10
- =o5lA
11
- -----END PGP SIGNATURE-----
@@ -1,11 +0,0 @@
1
- -----BEGIN PGP SIGNATURE-----
2
- Version: BCPG v@RELEASE_NAME@
3
-
4
- iQEcBAABCgAGBQJo4oAyAAoJEJxRmnfYMAu7VfYH/i/uHM98SCXPfxTFN5xeDKBS
5
- LyyXt+o6M0LJXp+jQiDmeV3y5U4QEtknqk/xFm9RKvPz/oTFrM5v/NctRwDGdZIy
6
- /iAVbEIw2YvSeZ7fFcgsT2dxig8x3X5ym+hXr0JhV0LhYJznk++tlar1sCX1BS8A
7
- U2397lao/yFKrm9TFxQcErd4Sj/NFmtRlaJ+rd9j9+MMjx4UcbFNiOV3gtqNoFPP
8
- x/sCtHaZ5MDfk07i5S+MTm/SKHtbHK49INeBdmzy+UzPsexZLull/4LxLsfO4IpS
9
- s4323I+eCny/MeN7rQVpDvCRk3WZ1kn1i5Z+rTpOxLRMHRvPobOpLs/J0+4v4rM=
10
- =9hlj
11
- -----END PGP SIGNATURE-----