violation-comments-to-bitbucket-server-command-line 1.37.0 → 1.39.0

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,6 +1,5 @@
1
1
  # Violation Comments To Bitbucket Server Command Line
2
2
 
3
- [![Build Status](https://travis-ci.org/tomasbjerre/violation-comments-to-bitbucket-server-command-line.svg?branch=master)](https://travis-ci.org/tomasbjerre/violation-comments-to-bitbucket-server-command-line)
4
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)
5
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)
6
5
 
@@ -56,8 +55,10 @@ A number of **parsers** have been implemented. Some **parsers** can parse output
56
55
  | [_CPPLint_](https://github.com/theandrewdavis/cpplint) | `CPPLINT` |
57
56
  | [_CSSLint_](https://github.com/CSSLint/csslint) | `CSSLINT` |
58
57
  | [_Checkstyle_](http://checkstyle.sourceforge.net/) | `CHECKSTYLE` |
58
+ | [_CloudFormation Linter_](https://github.com/aws-cloudformation/cfn-lint) | `JUNIT` | `cfn-lint . -f junit --output-file report-junit.xml`
59
59
  | [_CodeClimate_](https://codeclimate.com/) | `CODECLIMATE` |
60
60
  | [_CodeNarc_](http://codenarc.sourceforge.net/) | `CODENARC` |
61
+ | [_Dart_](https://dart.dev/) | `MACHINE` | With `dart analyze --format=machine`
61
62
  | [_Detekt_](https://github.com/arturbosch/detekt) | `CHECKSTYLE` | With `--output-format xml`.
62
63
  | [_DocFX_](http://dotnet.github.io/docfx/) | `DOCFX` |
63
64
  | [_Doxygen_](https://www.stack.nl/~dimitri/doxygen/) | `CLANG` |
@@ -76,6 +77,7 @@ A number of **parsers** have been implemented. Some **parsers** can parse output
76
77
  | [_HadoLint_](https://github.com/hadolint/hadolint/) | `CHECKSTYLE` | With `-f checkstyle`
77
78
  | [_IAR_](https://www.iar.com/iar-embedded-workbench/) | `IAR` | With `--no_wrap_diagnostics`
78
79
  | [_Infer_](http://fbinfer.com/) | `PMD` | Facebook Infer. With `--pmd-xml`.
80
+ | [_JACOCO_](https://www.jacoco.org/) | `JACOCO` |
79
81
  | [_JCReport_](https://github.com/jCoderZ/fawkez/wiki/JcReport) | `JCREPORT` |
80
82
  | [_JSHint_](http://jshint.com/) | `JSLINT` | With `--reporter=jslint` or the CHECKSTYLE parser with `--reporter=checkstyle`
81
83
  | [_JUnit_](https://junit.org/junit4/) | `JUNIT` | It only contains the failures.
@@ -103,6 +105,7 @@ A number of **parsers** have been implemented. Some **parsers** can parse output
103
105
  | [_PyLint_](https://www.pylint.org/) | `PYLINT` | With `pylint --output-format=parseable`.
104
106
  | [_ReSharper_](https://www.jetbrains.com/resharper/) | `RESHARPER` |
105
107
  | [_RubyCop_](http://rubocop.readthedocs.io/en/latest/formatters/) | `CLANG` | With `rubycop -f clang file.rb`
108
+ | [_SARIF_](https://github.com/oasis-tcs/sarif-spec) | `SARIF` |
106
109
  | [_SbtScalac_](http://www.scala-sbt.org/) | `SBTSCALAC` |
107
110
  | [_Scalastyle_](http://www.scalastyle.org/) | `CHECKSTYLE` |
108
111
  | [_Simian_](http://www.harukizaemon.com/simian/) | `SIMIAN` |
@@ -111,11 +114,14 @@ A number of **parsers** have been implemented. Some **parsers** can parse output
111
114
  | [_StyleCop_](https://stylecop.codeplex.com/) | `STYLECOP` |
112
115
  | [_SwiftLint_](https://github.com/realm/SwiftLint) | `CHECKSTYLE` | With `--reporter checkstyle`.
113
116
  | [_TSLint_](https://palantir.github.io/tslint/usage/cli/) | `CHECKSTYLE` | With `-t checkstyle`
117
+ | [_Valgrind_](https://valgrind.org/) | `VALGRIND` | With `--xml=yes`.
114
118
  | [_XMLLint_](http://xmlsoft.org/xmllint.html) | `XMLLINT` |
115
119
  | [_XUnit_](https://xunit.net/) | `XUNIT` | It only contains the failures.
116
120
  | [_YAMLLint_](https://yamllint.readthedocs.io/en/stable/index.html) | `YAMLLINT` | With `-f parsable`
117
121
  | [_ZPTLint_](https://pypi.python.org/pypi/zptlint) | `ZPTLINT` |
118
122
 
123
+ 48 parsers and 74 reporters.
124
+
119
125
  Missing a format? Open an issue [here](https://github.com/tomasbjerre/violations-lib/issues)!
120
126
 
121
127
  # Usage
@@ -0,0 +1,11 @@
1
+ -----BEGIN PGP SIGNATURE-----
2
+ Version: BCPG v1.68
3
+
4
+ iQEcBAABCgAGBQJiQAfMAAoJEJxRmnfYMAu7Xv0H/2s2hCrffQBK28uLHpMfUlY9
5
+ cCC8NL5cMC7CwhYoBQDtlRqfVmGZ6gvSyaspnQko/6ENVDF2w1bVGGA/9F8sW7Fc
6
+ kfSzbwWh9wUSE07lldzj0hFDY1eIUYvI1qw3P8nwLO8fBBoCewxlWZ3Xt25WC6pC
7
+ 5emflIgmnenMFL4KrFfUCPbsLCDkdHm+wwSvOvCEOASlg8MG9chw9YvRiKQCti/p
8
+ KDYkDjsmyFY4wbqmQSrJWJN8cSM3lvQDnYVn/tN/AIr1dS+81DHKcMqpV2rjFym1
9
+ MMXJce6AnDLXSmny26LK9hMVqfdW19Mf4f3nvS4lpuqlcdzkTQ9wnKHEatdT97Q=
10
+ =pV9y
11
+ -----END PGP SIGNATURE-----
@@ -0,0 +1,11 @@
1
+ -----BEGIN PGP SIGNATURE-----
2
+ Version: BCPG v1.68
3
+
4
+ iQEcBAABCgAGBQJiQAfNAAoJEJxRmnfYMAu79LYIAIXZoZpzts3N3swwvkcxrtdZ
5
+ VgLYEyLOrkBq0PKNMvBybK+If9b5gEviRzyAcbntiqng7K3itXs1ucg+LXSO5FKz
6
+ CMncflSUUvUZ/hNeMjlZFTBJzWGtm8+/yT0KQOQ5pmf4x3aJc5VMKRjHhGVsG+Cz
7
+ 4eDNqJE8dptQhtybVojjUeWhBLNFb1ZVA+Z0gLHUX0J+8VZXhKgcxGY0ZjQ1ZmeL
8
+ Nu2NUgg75C1rpfb4t4m6FOcfxD2EGbQELmBtHzDXEamWEhm7+4+y3Pj3IVheBCi5
9
+ 9L2cDCJAAmIM9+3m6D4AjoaiFIWDIcRKDBfTgi3NP+70ITR7lFh4T00hiPTCEqY=
10
+ =+Ay1
11
+ -----END PGP SIGNATURE-----
@@ -0,0 +1,11 @@
1
+ -----BEGIN PGP SIGNATURE-----
2
+ Version: BCPG v1.68
3
+
4
+ iQEcBAABCgAGBQJiQAfNAAoJEJxRmnfYMAu7g2oH/0oFzHZM7q/gkKzORSejU2U5
5
+ HhDbtSJDgKfuHfgAYODq3hxwIiw41+6G4yqsz99B1+T/4/g83UaaJQubXOy0DgaQ
6
+ MoMjojz79boe2/nGkX6z2cQ/fcNzfmtXq0xsgowkz+ZHKkE/YbYEpA70otjfAJTo
7
+ m0j7ObBOI8hyLuUKP6+akv7pkkdC6O79sJkG3uDkobldSIMDOZ/eR+xr7eHd80Xf
8
+ pza7MboR11GQ2CXPcH6634CxFuKSFG9x/DlJtl2b1nUS1xqWMsoDDlP6puk6Gxb+
9
+ T/7n68YaLTzvdQDFWLin9cJ6iiq50yU2w8CvyHSSq4ICIF46nFy4ElspXe+l0ts=
10
+ =vuTF
11
+ -----END PGP SIGNATURE-----
@@ -0,0 +1,11 @@
1
+ -----BEGIN PGP SIGNATURE-----
2
+ Version: BCPG v1.68
3
+
4
+ iQEcBAABCgAGBQJiQAfNAAoJEJxRmnfYMAu7cuEIAJqEIfJnjAEYUGGK+WP4wAM+
5
+ UFsA1m/0u8IL6kDRIA/olQ1WyGi47qbAkbXp7j51Jla82Ho9dZ+iNt//UH3j+HoR
6
+ 3wPFr2n5n49WpcHJIlRGV7b8FQ9WmV+R/FtFe62ZWf5fw6PReNR/QL2Yek3uF+hn
7
+ BytG6trh9GqCUdAHhzz1SGuZyx9FEO7tyPfUqipBdgRmaUTzUyiwnANCqCPvGr1R
8
+ AoBEVLcJpq/Inf6wHEQGDEJWmwSoD1zp87UoXz8HqALypkpqcDVcFBH9KOo3smwk
9
+ +DXEyGM/lHfeuyHZa2+97OMX2/5MrfBdU/AqyJt8HBxRDKbsJBWwgZ0FQb+srh0=
10
+ =LAIm
11
+ -----END PGP SIGNATURE-----
package/index.js ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ require('npm-java-runner/lib/index').run(__dirname);
package/package.json CHANGED
@@ -1,46 +1,17 @@
1
1
  {
2
- "bin": {
3
- "violation-comments-to-bitbucket-server-command-line": "jdeploy-bundle/jdeploy.js"
4
- },
5
- "author": "Tomas Bjerre",
6
- "description": "Report static code analysis to Bitbucket Server.",
7
- "keywords": [
8
- "violation",
9
- "static code analysis",
10
- "Checkstyle",
11
- "CPPLint",
12
- "CPPCheck",
13
- "CSSLint",
14
- "Findbugs",
15
- "Flake8",
16
- "PyLint",
17
- "Pep8",
18
- "Mccabe",
19
- "PyFlakes",
20
- "JSHint",
21
- "Lint",
22
- "PerlCritic",
23
- "PMD",
24
- "ReSharper",
25
- "XMLLint"
26
- ],
27
- "homepage": "https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line",
28
- "repository": "git@github.com:tomasbjerre/violation-comments-to-bitbucket-server-command-line.git",
29
- "main": "index.js",
30
- "preferGlobal": true,
31
- "version": "1.37.0",
32
- "jdeploy": {
33
- "jar": "build/libs/violation-comments-to-bitbucket-server-command-line-1.37.0.jar"
34
- },
35
- "dependencies": {
36
- "shelljs": "^0.7.5"
37
- },
38
- "license": "Apache 2",
39
- "name": "violation-comments-to-bitbucket-server-command-line",
40
- "files": [
41
- "jdeploy-bundle"
42
- ],
43
- "scripts": {
44
- "test": "echo \"Error: no test specified\" && exit 1"
2
+ "version": "1.39.0",
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": "0.0.17"
16
+ }
45
17
  }
46
- }
package/CHANGELOG.md DELETED
@@ -1,481 +0,0 @@
1
- # violation-comments-to-bitbucket-server-command-line changelog
2
-
3
- Changelog of violation-comments-to-bitbucket-server-command-line.
4
-
5
- ## [1.37.0](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/releases/tag/1.37.0) (2021-06-16)
6
-
7
-
8
-
9
- ### Features
10
-
11
- - MSBuild parser ([db3b3](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/db3b356ca8f66dd))
12
-
13
-
14
-
15
-
16
-
17
- ## [1.36.0](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/releases/tag/1.36.0) (2021-04-05)
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
- ### Other changes
26
-
27
- **release script**
28
-
29
-
30
- [52ebf](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/52ebf4e5de3a214) Tomas Bjerre *2021-04-05 15:50:51*
31
-
32
- ## [1.35.0](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/releases/tag/1.35.0) (2021-04-05)
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
- ### Other changes
41
-
42
- **new build script**
43
-
44
-
45
- [45f30](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/45f30ffc072cc03) Tomas Bjerre *2021-04-05 12:07:07*
46
-
47
- ## [1.34.0](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/releases/tag/1.34.0) (2021-04-05)
48
-
49
-
50
-
51
-
52
-
53
-
54
-
55
- ### Other changes
56
-
57
- **new build script**
58
-
59
-
60
- [d436b](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/d436b16b05d3523) Tomas Bjerre *2021-04-05 12:04:50*
61
-
62
- ## [1.32](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/releases/tag/1.32) (2020-12-06)
63
-
64
-
65
-
66
-
67
-
68
-
69
-
70
- ### Other changes
71
-
72
- **Making isIgnored public jenkinsci/violation-comments-to-stash-plugin#72**
73
-
74
-
75
- [b30f3](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/b30f3926e253ec6) Tomas Bjerre *2020-12-06 10:41:52*
76
-
77
- ## [1.31](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/releases/tag/1.31) (2020-12-06)
78
-
79
-
80
-
81
-
82
-
83
-
84
-
85
- ### Other changes
86
-
87
- **Making isIgnored public jenkinsci/violation-comments-to-stash-plugin#72**
88
-
89
-
90
- [4ec4a](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/4ec4adec5549b62) Tomas Bjerre *2020-12-06 10:26:00*
91
-
92
- ## [1.30](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/releases/tag/1.30) (2020-09-27)
93
-
94
-
95
-
96
-
97
-
98
-
99
-
100
- ### Other changes
101
-
102
- **Rewriting PiTestParser parser #101**
103
-
104
-
105
- [2b7d2](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/2b7d2ef9db922b5) Tomas Bjerre *2020-09-27 16:27:23*
106
-
107
- ## [1.29](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/releases/tag/1.29) (2020-09-27)
108
-
109
-
110
-
111
-
112
-
113
-
114
-
115
- ### Other changes
116
-
117
- **Rewriting parsers**
118
-
119
-
120
- [e9f0e](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/e9f0e4a673244ea) Tomas Bjerre *2020-09-27 15:47:39*
121
-
122
- ## [1.28](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/releases/tag/1.28) (2020-09-25)
123
-
124
-
125
-
126
-
127
-
128
-
129
-
130
- ### Other changes
131
-
132
- **Supporting jest-junit**
133
-
134
-
135
- [3465f](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/3465ff01e666ef1) Tomas Bjerre *2020-09-25 18:55:32*
136
-
137
- ## [1.27](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/releases/tag/1.27) (2020-09-23)
138
-
139
-
140
-
141
-
142
-
143
-
144
-
145
- ### Other changes
146
-
147
- **Allow Checkstyle reports with no line**
148
-
149
-
150
- [8cb04](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/8cb0436947300b4) Tomas Bjerre *2020-09-23 16:55:26*
151
-
152
- ## [1.23](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/releases/tag/1.23) (2020-09-14)
153
-
154
-
155
-
156
-
157
-
158
-
159
-
160
- ### Other changes
161
-
162
- **Generic parser**
163
-
164
-
165
- [cad83](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/cad8315bd87db22) Tomas Bjerre *2020-09-14 16:15:56*
166
- **Travis with openjdk8**
167
-
168
-
169
- [4781e](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/4781eb9c078e998) Tomas Bjerre *2020-09-05 07:02:12*
170
-
171
- ## [1.22](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/releases/tag/1.22) (2020-09-05)
172
-
173
-
174
-
175
-
176
-
177
-
178
-
179
- ### Other changes
180
-
181
- **adjusting message of junit parser**
182
-
183
-
184
- [a1547](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/a154720fa85d675) Tomas Bjerre *2020-09-05 06:39:11*
185
-
186
- ## [1.21](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/releases/tag/1.21) (2020-09-04)
187
-
188
-
189
-
190
-
191
-
192
-
193
-
194
- ### Other changes
195
-
196
- **Support JUNI reports without message**
197
-
198
-
199
- [cf59d](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/cf59d1736f7cdbe) Tomas Bjerre *2020-09-04 15:45:32*
200
-
201
- ## [1.20](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/releases/tag/1.20) (2020-09-01)
202
-
203
-
204
-
205
-
206
-
207
-
208
-
209
- ### Other changes
210
-
211
- **VIOLATIONS_KEYSTORE_PATH tomasbjerre/violation-comments-to-bitbucket-server-lib#14**
212
-
213
-
214
- [19041](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/190417259002408) Tomas Bjerre *2020-09-01 14:32:41*
215
-
216
- ## [1.19](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/releases/tag/1.19) (2020-08-29)
217
-
218
-
219
-
220
-
221
-
222
-
223
-
224
- ### Other changes
225
-
226
- **doc**
227
-
228
-
229
- [ba1cb](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/ba1cb441a9a9822) Tomas Bjerre *2020-08-29 14:07:34*
230
- **update lib version**
231
-
232
-
233
- [0c6c6](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/0c6c6155a75dd17) Anirudh Bagri *2020-08-29 13:57:34*
234
- **add support for certifiacte authentication using latest violation lib library**
235
-
236
-
237
- [c673d](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/c673d847ac7c216) Anirudh Bagri *2020-08-29 13:44:22*
238
-
239
- ## [1.18](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/releases/tag/1.18) (2020-07-05)
240
-
241
-
242
-
243
-
244
-
245
-
246
-
247
-
248
- ## [1.17](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/releases/tag/1.17) (2020-07-05)
249
-
250
-
251
-
252
-
253
-
254
-
255
-
256
-
257
- ## [1.16](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/releases/tag/1.16) (2020-07-04)
258
-
259
-
260
-
261
-
262
-
263
-
264
-
265
-
266
- ## [1.15](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/releases/tag/1.15) (2020-07-03)
267
-
268
-
269
-
270
-
271
-
272
-
273
-
274
-
275
- ## [1.14](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/releases/tag/1.14) (2020-07-02)
276
-
277
-
278
-
279
-
280
-
281
-
282
-
283
-
284
- ## [1.13](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/releases/tag/1.13) (2020-03-10)
285
-
286
-
287
-
288
-
289
-
290
-
291
-
292
- ### Other changes
293
-
294
- **Removing tabs jenkinsci/violation-comments-to-stash-plugin#69**
295
-
296
-
297
- [969f6](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/969f6b7d051498c) Tomas Bjerre *2020-03-10 15:32:51*
298
-
299
- ## [1.12](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/releases/tag/1.12) (2020-03-09)
300
-
301
-
302
-
303
-
304
-
305
-
306
-
307
- ### Other changes
308
-
309
- **More logging jenkinsci/violation-comments-to-stash-plugin#69**
310
-
311
-
312
- [57fbe](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/57fbefe52b40bf8) Tomas Bjerre *2020-03-09 18:08:32*
313
-
314
- ## [1.11](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/releases/tag/1.11) (2020-03-03)
315
-
316
-
317
-
318
-
319
-
320
-
321
-
322
- ### Other changes
323
-
324
- **XUnit tomasbjerre/violations-lib#84**
325
-
326
-
327
- [fafb0](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/fafb026775b1a11) Tomas Bjerre *2020-03-03 16:53:49*
328
-
329
- ## [1.10](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/releases/tag/1.10) (2020-02-03)
330
-
331
-
332
-
333
-
334
-
335
-
336
-
337
- ### Other changes
338
-
339
- **CPPCheckParser with auto closed <error/> tags tomasbjerre/violations-lib#82**
340
-
341
-
342
- [63dd9](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/63dd98c3a8fc502) Tomas Bjerre *2020-02-03 16:23:34*
343
-
344
- ## [1.9](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/releases/tag/1.9) (2020-01-03)
345
-
346
-
347
-
348
-
349
-
350
-
351
-
352
- ### Other changes
353
-
354
- **Add support for sonar issue report formats >= v7.5 tomasbjerre/violations-lib#80**
355
-
356
-
357
- [d1d45](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/d1d45d76d1b1731) Tomas Bjerre *2020-01-03 07:17:05*
358
-
359
- ## [1.8](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/releases/tag/1.8) (2020-12-31)
360
-
361
-
362
-
363
-
364
-
365
-
366
-
367
- ### Other changes
368
-
369
- **doc**
370
-
371
-
372
- [f628f](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/f628fad79aa7e8a) Tomas Bjerre *2020-12-31 06:48:03*
373
- **Add missing argument to withArguments function**
374
-
375
- * Fix for https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/issues/1
376
-
377
- [ceb66](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/ceb66b06be0ada0) Zakey Faieq *2020-12-30 21:08:33*
378
- **doc**
379
-
380
-
381
- [b39f0](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/b39f06d346771f8) Tomas Bjerre *2019-10-09 17:01:49*
382
- **Create FUNDING.yml**
383
-
384
-
385
- [568dc](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/568dc05580dafc4) Tomas Bjerre *2019-09-28 07:03:16*
386
-
387
- ## [1.7](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/releases/tag/1.7) (2019-08-03)
388
-
389
-
390
-
391
-
392
-
393
-
394
-
395
- ### Other changes
396
-
397
- **Changing name of JSHINT parser to JSLINT**
398
-
399
-
400
- [937ec](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/937eca592cca31b) Tomas Bjerre *2019-08-03 11:19:19*
401
-
402
- ## [1.6](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/releases/tag/1.6) (2019-06-16)
403
-
404
-
405
-
406
-
407
-
408
-
409
-
410
- ### Other changes
411
-
412
- **commentOnlyChangedFiles**
413
-
414
-
415
- [5a75d](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/5a75d6f8c5082bc) Tomas Bjerre *2019-06-16 17:09:54*
416
- **changelog**
417
-
418
-
419
- [b1d48](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/b1d48b0d8a46e2e) Tomas Bjerre *2019-06-15 19:18:13*
420
-
421
- ## [1.5](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/releases/tag/1.5) (2019-06-15)
422
-
423
-
424
-
425
-
426
-
427
-
428
-
429
- ### Other changes
430
-
431
- **Artity 4 on -v**
432
-
433
-
434
- [46521](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/4652113b9962bff) Tomas Bjerre *2019-06-15 19:07:20*
435
-
436
- ## [1.4](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/releases/tag/1.4) (2019-06-01)
437
-
438
-
439
-
440
-
441
-
442
-
443
-
444
- ### Other changes
445
-
446
- **doc**
447
-
448
-
449
- [237be](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/237be4f40c4a140) Tomas Bjerre *2019-06-01 18:52:01*
450
-
451
- ## [1.3](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/releases/tag/1.3) (2019-06-01)
452
-
453
-
454
-
455
-
456
-
457
-
458
-
459
- ### Other changes
460
-
461
- **doc**
462
-
463
-
464
- [0f642](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/0f6427fde1a44b1) Tomas Bjerre *2019-06-01 17:58:11*
465
-
466
- ## [1.2](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/releases/tag/1.2) (2019-06-01)
467
-
468
-
469
-
470
-
471
-
472
-
473
-
474
- ### Other changes
475
-
476
- **doc**
477
-
478
-
479
- [6aa34](https://github.com/tomasbjerre/violation-comments-to-bitbucket-server-command-line/commit/6aa34bd54369ceb) Tomas Bjerre *2019-06-01 15:34:07*
480
-
481
-
@@ -1,165 +0,0 @@
1
- #! /usr/bin/env node
2
- var fail = reason => {
3
- console.error(reason);
4
- process.exit(1);
5
- };
6
- function getJavaVersion() {
7
- try {
8
- var javaVersionProc = exec('java -version', {silent:true});
9
- if (javaVersionProc.code !== 0) {
10
- return false;
11
- }
12
- var stdout = javaVersionProc.stderr;
13
- //console.log(javaVersionProc);
14
- //console.log("stdout is "+stdout);
15
- var regexp = /version "(.*?)"/;
16
- var match = regexp.exec(stdout);
17
- var parts = match[1].split('.');
18
- var join = '.';
19
- var versionStr = '';
20
- parts.forEach(function(v) {
21
- versionStr += v;
22
- if (join !== null) {
23
- versionStr += join;
24
- join = null;
25
- }
26
- });
27
- versionStr = versionStr.replace('_', '');
28
- //console.log("Java version string "+versionStr)
29
- return parseFloat(versionStr);
30
- } catch (e) {
31
- return false;
32
- }
33
- }
34
-
35
- var getDirectories = dirPath => fs.readdirSync(dirPath).filter(
36
- file => fs.statSync(path.join(dirPath, file)).isDirectory()
37
- );
38
-
39
- function getEmbeddedJavaDir() {
40
- var _platform = os.platform();
41
- var _driver;
42
- switch (_platform) {
43
- case 'darwin': _platform = 'macosx'; _driver = 'Contents' + path.sep + 'Home' + path.sep + 'bin'; break;
44
- case 'win32': _platform = 'windows'; _driver = 'bin'; break;
45
- case 'linux': _driver = 'bin'; break;
46
- default:
47
- fail('unsupported platform: ' + _platform);
48
- }
49
-
50
- var jreDir = getJdeploySupportDir() + path.sep + 'node_modules' + path.sep + 'node-jre' + path.sep + 'jre';
51
-
52
- try {
53
- return jreDir + path.sep + getDirectories(jreDir)[0] + path.sep + _driver;
54
- } catch (e) {
55
- //console.log(e);
56
- return jreDir;
57
- }
58
- }
59
-
60
-
61
-
62
- function getJdeploySupportDir() {
63
- return os.homedir() + path.sep + ".jdeploy";
64
- }
65
- var fs = require('fs');
66
- var os = require('os');
67
- var path = require('path');
68
- var jarName = "violation-comments-to-bitbucket-server-command-line-1.37.0.jar";
69
- var mainClass = "{{MAIN_CLASS}}";
70
- var classPath = "{{CLASSPATH}}";
71
- var port = "0";
72
- var warPath = "";
73
- classPath = classPath.split(':');
74
- var classPathStr = '';
75
- var first = true;
76
- classPath.forEach(function(part) {
77
- if (!first) classPathStr += path.delimiter;
78
- first = false;
79
- classPathStr += __dirname + '/' + part;
80
- });
81
- classPath = classPathStr;
82
- var shell = require("shelljs/global");
83
- var userArgs = process.argv.slice(2);
84
- var javaArgs = [];
85
- javaArgs.push('-Djdeploy.base='+__dirname);
86
- javaArgs.push('-Djdeploy.port='+port);
87
- javaArgs.push('-Djdeploy.war.path='+warPath);
88
- var programArgs = [];
89
- userArgs.forEach(function(arg) {
90
- if (arg.startsWith('-D') || arg.startsWith('-X')) {
91
- javaArgs.push(arg);
92
- } else {
93
- programArgs.push(arg);
94
- }
95
- });
96
- var cmd = 'java';
97
-
98
- env['PATH'] = getEmbeddedJavaDir() + path.delimiter + env['PATH'];
99
- if (env['JAVA_HOME']) {
100
- env['PATH'] = env['JAVA_HOME'] + path.sep + 'bin' + path.delimiter + env['PATH'];
101
- }
102
-
103
- var javaVersion = getJavaVersion();
104
- if (javaVersion === false || javaVersion < 1.8 || env['JDEPLOY_USE_NODE_JRE']) {
105
- if (!test('-e', getJdeploySupportDir())) {
106
- mkdir(getJdeploySupportDir());
107
- }
108
- var packageJson = getJdeploySupportDir() + path.sep + 'package.json';
109
- if (!test('-e', packageJson)) {
110
- fs.writeFileSync(packageJson, JSON.stringify({'name' : 'jdeploy-support', 'version': '1.0.0'}), 'utf8');
111
- }
112
- if (!test('-e', getEmbeddedJavaDir())) {
113
- var currDir = pwd();
114
- cd(getJdeploySupportDir());
115
- console.log("Installing/Updating JRE in "+getJdeploySupportDir()+"...");
116
- exec('npm install node-jre --save');
117
- cd(currDir);
118
- }
119
- env['PATH'] = getEmbeddedJavaDir() + path.delimiter + env['PATH'];
120
- /*
121
- // System java either not on path or too old
122
- if (!test('-e', getEmbeddedJavaDir())) {
123
- // Could not find embedded java dir
124
- // We need to install it.
125
- fail("Could not find embedded java at "+getEmbeddedJavaDir());
126
-
127
- } else {
128
- // Found the embedded version. Add it to the PATH
129
- env['PATH'] = getEmbeddedJavaDir() + path.delimiter + env['PATH']
130
- console.log("Now java version is "+getJavaVersion());
131
- fail("Path is now "+env['PATH']);
132
- }
133
- */
134
-
135
- }
136
- //console.log("Java version is "+getJavaVersion());
137
-
138
- javaArgs.forEach(function(arg) {
139
- cmd += ' "'+arg+'"';
140
- });
141
- if (jarName !== '{'+'{JAR_NAME}}') {
142
- cmd += ' -jar "'+__dirname+'/'+jarName+'" ';
143
- } else {
144
- cmd += ' -cp "'+classPath+'" '+mainClass+' ';
145
- }
146
-
147
- programArgs.forEach(function(arg) {
148
- cmd += ' "'+arg+'"';
149
- });
150
- var child = exec(cmd, {async: true});
151
- process.stdin.setEncoding('utf8');
152
-
153
- process.stdin.on('readable', () => {
154
- var chunk = process.stdin.read();
155
- if (chunk === null) {
156
-
157
- return;
158
- }
159
- try {
160
- child.stdin.write(chunk);
161
- } catch(e){}
162
- });
163
- child.on('close', function(code) {
164
- process.exit(code);
165
- });