<p dir="auto">Also fixes some warnings generated by luacheck.</p>
<p dir="auto">There are two files not checked: <code class="notranslate">style.lua</code>, the old pgsql config that I don't want to touch. And <code class="notranslate">src/init.lua</code> which does some things setting up the <code class="notranslate">osm2pgsql</code> global which other scripts are not allowed to do. I'll leave that for some later time.</p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/osm2pgsql/pull/2021'>https://github.com/openstreetmap/osm2pgsql/pull/2021</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/osm2pgsql/pull/2021/commits/64e1202283adbc8530d5d783716924f6f9c288b2" class="commit-link">64e1202</a> Add configuration for luacheck and run luacheck in Github actions</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/osm2pgsql/pull/2021/files">9 files</a>)</p>
<ul>
<li>
<strong>A</strong>
<a href="https://github.com/openstreetmap/osm2pgsql/pull/2021/files#diff-a7f667ed81cef88986a4fb36981ea4dbe9c3f402a62d1cc64dca79808a6881ef">.github/workflows/luacheck.yml</a>
(19)
</li>
<li>
<strong>A</strong>
<a href="https://github.com/openstreetmap/osm2pgsql/pull/2021/files#diff-69ff5cbc209d68db600cc536c6b9ec13b057b55207825d17e71f0ae0d6b0b3ff">.luacheckrc</a>
(38)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/osm2pgsql/pull/2021/files#diff-1a45ab169d8be0f71c373fc2825d6a1cf2c170ec3886acd51dd149c160825d38">tests/data/test_output_flex.lua</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/osm2pgsql/pull/2021/files#diff-26df455abccc974c7cd0d47b39f4ff6f7eed88b3eb0534d8afcf7847934db49b">tests/data/test_output_flex_stage2.lua</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/osm2pgsql/pull/2021/files#diff-5a4366f4b177cdc00b2feb986bde92166372510673c9c702f8855eb4a2c92a00">tests/data/test_output_flex_stage2_alt.lua</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/osm2pgsql/pull/2021/files#diff-0483718292284c485816c2153315cec2149906b8ebc61ce388f5e690668f802e">tests/data/test_output_flex_uni.lua</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/osm2pgsql/pull/2021/files#diff-e35e83c27d7e37c495712722fa7e4771b1f57c1d2de92f2c59028bd686544b81">tests/data/test_output_flex_validgeom.lua</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/osm2pgsql/pull/2021/files#diff-38e1413f1c6c1302054621635cc036ec2cbd3e1b8afec326229b8135de9c5add">tests/data/test_output_flex_way.lua</a>
(4)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/osm2pgsql/pull/2021/files#diff-068ab8453670dc478dce319e18ef670b1f1d270ea558cfb69b4fc2e0825a27ef">tests/lua/tests.lua</a>
(14)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/osm2pgsql/pull/2021.patch'>https://github.com/openstreetmap/osm2pgsql/pull/2021.patch</a></li>
<li><a href='https://github.com/openstreetmap/osm2pgsql/pull/2021.diff'>https://github.com/openstreetmap/osm2pgsql/pull/2021.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/osm2pgsql/pull/2021">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353R3Z6KGETNBXPUXH6LXSZVPDANCNFSM6AAAAAA25HL4SY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AA6353XEBV6KFXO4HQB4XCTXSZVPDA5CNFSM6AAAAAA25HL4S2WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHGZ5DFN4.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/osm2pgsql/pull/2021</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/osm2pgsql/pull/2021",
"url": "https://github.com/openstreetmap/osm2pgsql/pull/2021",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>