lgtm: add a custom query for catching the use of fgets
authorEvgeny Vereshchagin <evvers@ya.ru>
Fri, 26 Oct 2018 09:19:09 +0000 (09:19 +0000)
committerThe Plumber <50238977+systemd-rhel-bot@users.noreply.github.com>
Wed, 12 Feb 2020 12:15:21 +0000 (13:15 +0100)
commitba54ed321c3ef82ace29d7f0b7401c29f6b45ab2
treeb08fd54a420078282a6ca12eb75f2a9b1b746c91
parenta47919a9a361bc48bba3c84db7aef6354f87dbb2
lgtm: add a custom query for catching the use of fgets

As everybody knows, nodoby really reads CODING_STYLE (especially
the last paragraph :-)) so let's utilize LGTM to help us catch the
use of fgets.

Related: #1794787

(cherry picked from commit f86c1da28340f2a2afd34d72c9f416a2a94219a8)
(cherry picked from commit c9fdcd0693ac63bc4b7326e248854617d9573bd6)
.lgtm/cpp-queries/fgets.ql [new file with mode: 0644]