cppcheck-misra-parsetexts.py get empty result because of the regex pattern
hello, ChisholmKyle, I typed python3 cppcheck-misra-parsetexts.py "/path/to/MISRA_C_2012.pdf" command to get the misra rule text for cppcheck, but get an empty text file. When I debug in the python script, I found that the regex pattern in 23 line
r'(Rule|Dir) (\d+)\.(\d+)\n\n(Advisory|Required|Mandatory)\n\n([^\n]+)\n')
does not match the text extracted by pdftotext, between keyword Rule or Dir and digital number is not a blank space, but some other blank chars, the following regex works for me.
r'(Rule|Dir).(\d+)\.(\d+)\n\n(Advisory|Required|Mandatory)\n\n([^\n]+)\n')
Codecov Report
Merging #236 into master will decrease coverage by
1.79%. The diff coverage is0%.
@@ Coverage Diff @@
## master #236 +/- ##
===========================================
- Coverage 36.98% 35.18% -1.8%
Complexity 45 45
===========================================
Files 39 39
Lines 530 540 +10
Branches 27 28 +1
===========================================
- Hits 196 190 -6
- Misses 325 341 +16
Partials 9 9
| Impacted Files | Coverage Δ | Complexity Δ | |
|---|---|---|---|
| ...ava/com/artemzin/qualitymatters/api/ApiModule.java | 0% <ø> (ø) |
0 <0> (ø) |
:arrow_down: |
| ...alitymatters/network/OkHttpInterceptorsModule.java | 0% <ø> (ø) |
0 <0> (ø) |
:arrow_down: |
| ...artemzin/qualitymatters/network/NetworkModule.java | 0% <ø> (ø) |
0 <0> (ø) |
:arrow_down: |
| ...alitymatters/network/HostSelectionInterceptor.java | 0% <0%> (ø) |
0 <0> (?) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing dataPowered by Codecov. Last update 8626c5c...402a135. Read the comment docs.