Skip to content

Commit

Permalink
Remove LGTM support (GH #3068)
Browse files Browse the repository at this point in the history
Since LGTM is sunsetting in a couple of weeks replaced by a
GitHub Action
  • Loading branch information
randombit committed Dec 2, 2022
1 parent ee0b58e commit 75f63fa
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 50 deletions.
1 change: 0 additions & 1 deletion .lgtm.yml

This file was deleted.

9 changes: 0 additions & 9 deletions doc/dev_ref/continuous_integration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,6 @@ cache locations.
Then ``src/scripts/ci_build.py`` is invoked to steer the actual build and test
runs.

LGTM
---------

https://lgtm.com/projects/g/randombit/botan/

An automated linter that is integrated with Github. It automatically checks each
incoming PR. It also supports custom queries/alerts, which likely would be worth
investigating but is not something currently in use.

Coverity
---------

Expand Down
4 changes: 0 additions & 4 deletions readme.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ such as Fedora, Debian, Arch and Homebrew.
:target: https://codecov.io/github/randombit/botan
:alt: Code coverage report

.. image:: https://img.shields.io/lgtm/alerts/g/randombit/botan.svg
:target: https://lgtm.com/projects/g/randombit/botan/alerts/
:alt: LGTM alerts

.. image:: https://oss-fuzz-build-logs.storage.googleapis.com/badges/botan.svg
:target: https://oss-fuzz.com/coverage-report/job/libfuzzer_asan_botan/latest
:alt: OSS-Fuzz status
Expand Down
6 changes: 3 additions & 3 deletions src/lib/tls/tls_signature_scheme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,9 @@ bool Signature_Scheme::is_suitable_for(const Private_Key &private_key) const noe
if(keylen <= 250)
return false;

if(m_code == ECDSA_SHA256 && !(keylen >= 250 && keylen <= 350)) // lgtm [cpp/constant-comparison]
return false; // `keylen >= 250` will always be true, because keylen <= 250
// was checked before. Leaving it in for readability.
if(m_code == ECDSA_SHA256 && !(keylen >= 250 && keylen <= 350))
return false;

if(m_code == ECDSA_SHA384 && !(keylen >= 350 && keylen <= 450))
return false;

Expand Down
33 changes: 0 additions & 33 deletions src/scripts/ci/lgtm.yml

This file was deleted.

0 comments on commit 75f63fa

Please sign in to comment.