<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>
GitLab
</title>


<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">
<div></div>
<p dir="auto">LGTM.com provides static code analyzing, even on a MR basis.</p>
<p dir="auto">Currently it finds 89 'warnings' / 'recommendations', IMO nothing serious. See <a href="https://lgtm.com/projects/g/gnutls/gnutls/alerts/?mode=list" rel="nofollow noreferrer noopener" target="_blank">https://lgtm.com/projects/g/gnutls/gnutls/alerts/?mode=list</a>.</p>
<p dir="auto">To enable it, one of the owners/admins of this project has to sign up at lgtm.com, add the project, activate "enable PR code reviews" and add an <code>.lgtm.yml</code> file to the repo.</p>
<p dir="auto">Here is an example of how it looks like in the pipeline of an MR: <a href="https://gitlab.com/gnuwget/wget2/pipelines/31139239">https://gitlab.com/gnuwget/wget2/pipelines/31139239</a></p>
<p dir="auto">As an example, the wget2 <code>.lgtm.yml</code> looks like</p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">path_classifiers:</span>
<span id="LC2" class="line" lang="plaintext">  test:</span>
<span id="LC3" class="line" lang="plaintext">    - unit-tests/files</span>
<span id="LC4" class="line" lang="plaintext"></span>
<span id="LC5" class="line" lang="plaintext">extraction:</span>
<span id="LC6" class="line" lang="plaintext">  cpp:</span>
<span id="LC7" class="line" lang="plaintext">    prepare:</span>
<span id="LC8" class="line" lang="plaintext">      packages:</span>
<span id="LC9" class="line" lang="plaintext">        - lzip</span>
<span id="LC10" class="line" lang="plaintext">        - libgpgme11-dev</span>
<span id="LC11" class="line" lang="plaintext">    configure:</span>
<span id="LC12" class="line" lang="plaintext">      command: ./bootstrap && ./configure --disable-doc</span></code></pre>
<p dir="auto">For a first try you could leave away <code>path_classifiers:</code> and <code>prepare:</code> block. LGTM figures out dependencies pretty well - and they have a short response time when having questions.</p>

</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777777;">

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/issues/602">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/sent_notifications/c8d9511e661aef713be4b617774fd00e/unsubscribe">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.com/gnutls/gnutls/issues/602"}}</script>
</p>
</div>
</body>
</html>