tpm2-software / tpm2-tss-engine

OpenSSL Engine for TPM2 devices
https://tpm2-software.github.io
BSD 3-Clause "New" or "Revised" License
150 stars 100 forks source link

ci: add LGTM #136

Closed diabonas closed 5 years ago

diabonas commented 5 years ago

LGTM is a code analysis platform that scans code for known vulnerabilities and problematic patterns. It is already enabled for tpm2-tss, but using it in this project as well requires some additional help in form of a .lgtm.yml configuration file in order to build and install tpm2-tss from source in LGTM's build environment. This configuration will allow to analyse the code in this project, cf. the successful test build. No further action other than merging this PR is necessary, new code is fetched automatically once a day from GitHub by LGTM.

Depending on the number of problems found, a code quality grade is calculated by LGTM, which can be shown as a badge. Note that this will only start working after this PR has been merged because without the .lgtm.yml, the code is currently not analysed at all.

codecov[bot] commented 5 years ago

Codecov Report

Merging #136 into master will increase coverage by 1.4%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #136     +/-   ##
=========================================
+ Coverage   66.13%   67.54%   +1.4%     
=========================================
  Files           9        9             
  Lines        1134     1211     +77     
=========================================
+ Hits          750      818     +68     
- Misses        384      393      +9
Impacted Files Coverage Δ
src/tpm2-tss-engine-common.c 78.82% <0%> (+0.08%) :arrow_up:
src/tpm2-tss-engine-rsa.c 69.73% <0%> (+0.27%) :arrow_up:
src/tpm2-tss-engine-ecc.c 62.55% <0%> (+0.36%) :arrow_up:
src/tpm2-tss-engine.c 60.44% <0%> (+2.98%) :arrow_up:
src/tpm2-tss-engine-tcti.c 56.19% <0%> (+3.3%) :arrow_up:
src/tpm2-tss-engine-err.c 72% <0%> (+24%) :arrow_up:

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 568d700...c7e3b7a. Read the comment docs.