pronto-cppcheck 0.1.0 → 0.2.3
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.
- checksums.yaml +4 -4
- data/README.md +5 -4
- data/lib/pronto/cppcheck/version.rb +1 -1
- data/lib/pronto/cppcheck.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 78349b1c5d4ad96f5ac060f79003d0f12707e5ab5785c23dc7386711ba213194
|
|
4
|
+
data.tar.gz: 9babe19e4fa02552fe05d52deb803fa20c17d9780a0fcd581b16fa728dd270a1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2c080f08b289b6de9e53d9e1f88b3f92189073058e5edd7a14b1c47e731c38f95f0c7079cd4bddeca970f4862bc1581ef2b8a286185e805c91d1bcd8b2d49739
|
|
7
|
+
data.tar.gz: 6eb9e968ee5d67f044b9ed447b8fd106b6d6f1816564a849079f422efbbdfb45981f87adc259c43982a057be9d2619c934b8c0048c25f735e08e7db71087c3e5
|
data/README.md
CHANGED
|
@@ -8,11 +8,11 @@ tool to check C/C++ files for style issues following Google's C++ style guide.
|
|
|
8
8
|
|
|
9
9
|
* `gem install pronto-cppcheck`
|
|
10
10
|
* `pronto run`
|
|
11
|
-
* `PRONTO_CPPCHECK_OPTS="-j 20 --std=c++17" pronto run`
|
|
12
|
-
|
|
11
|
+
* `PRONTO_CPPCHECK_OPTS="-j 20 --std=c++17 --enable=warning" pronto run`
|
|
12
|
+
for passing CLI options to `cppcheck`
|
|
13
13
|
|
|
14
14
|
Keep in mind `PRONTO_CPPCHECK_OPTS` is added to the end of existing
|
|
15
|
-
(`--
|
|
15
|
+
(`--template='{file}:{line},{severity},{id}:{message}' --quiet`)
|
|
16
16
|
options.
|
|
17
17
|
|
|
18
18
|
## Contribution Guidelines
|
|
@@ -43,4 +43,5 @@ pronto run --unstaged
|
|
|
43
43
|
|
|
44
44
|
## Changelog
|
|
45
45
|
|
|
46
|
-
0.1.0 Initial public version.
|
|
46
|
+
* 0.1.0 Initial public version.
|
|
47
|
+
* 0.2.3 Do not enable all checks by default.
|
data/lib/pronto/cppcheck.rb
CHANGED
|
@@ -55,7 +55,7 @@ module Pronto
|
|
|
55
55
|
if files_to_lint.empty?
|
|
56
56
|
[]
|
|
57
57
|
else
|
|
58
|
-
cmd = "#{executable} --
|
|
58
|
+
cmd = "#{executable} --template='{file}:{line}:{column}:{severity}:{id}:{message}' --quiet #{extra} #{files_to_lint}"
|
|
59
59
|
_stdout, stderr, _status = Open3.capture3(cmd)
|
|
60
60
|
return [] if stderr.nil?
|
|
61
61
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pronto-cppcheck
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nerijus Bendziunas
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-06-
|
|
11
|
+
date: 2023-06-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: pronto
|