SublimeLinter-cppcheck-misra icon indicating copy to clipboard operation
SublimeLinter-cppcheck-misra copied to clipboard

cppcheck-misra-parsetexts.py get empty result because of the regex pattern

Open small-cat opened this issue 3 years ago • 1 comments

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')

small-cat avatar Jul 15 '22 03:07 small-cat

Codecov Report

Merging #236 into master will decrease coverage by 1.79%. The diff coverage is 0%.

Impacted file tree graph

@@             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 data Powered by Codecov. Last update 8626c5c...402a135. Read the comment docs.

codecov-io avatar Oct 31 '17 10:10 codecov-io