chore: sync lint

main
sudo pacman -Syu 2024-10-26 23:32:43 +07:00
parent a3a1e660a1
commit 8173aef6fb
2 changed files with 6 additions and 24 deletions

View File

@ -17,10 +17,12 @@ linters:
- typecheck - typecheck
- unused - unused
# Custom # Custom
- bodyclose
- err113 - err113
- errchkjson - errchkjson
- errname - errname
- errorlint - errorlint
- fatcontext
- forcetypeassert - forcetypeassert
- gocritic - gocritic
- gofumpt - gofumpt
@ -72,6 +74,8 @@ linters-settings:
excludes: excludes:
- G101 - G101
- G112 - G112
- G115
- G204
- G402 - G402
- G404 - G404
- G501 - G501

View File

@ -473,10 +473,12 @@ dist</pre>
- <span class="pl-s">typecheck</span> - <span class="pl-s">typecheck</span>
- <span class="pl-s">unused</span> - <span class="pl-s">unused</span>
<span class="pl-c"><span class="pl-c">#</span> Custom</span> <span class="pl-c"><span class="pl-c">#</span> Custom</span>
- <span class="pl-s">bodyclose</span>
- <span class="pl-s">err113</span> - <span class="pl-s">err113</span>
- <span class="pl-s">errchkjson</span> - <span class="pl-s">errchkjson</span>
- <span class="pl-s">errname</span> - <span class="pl-s">errname</span>
- <span class="pl-s">errorlint</span> - <span class="pl-s">errorlint</span>
- <span class="pl-s">fatcontext</span>
- <span class="pl-s">forcetypeassert</span> - <span class="pl-s">forcetypeassert</span>
- <span class="pl-s">gocritic</span> - <span class="pl-s">gocritic</span>
- <span class="pl-s">gofumpt</span> - <span class="pl-s">gofumpt</span>
@ -548,30 +550,6 @@ dist</pre>
<span class="pl-ent">exclude-files</span>: <span class="pl-ent">exclude-files</span>:
- <span class="pl-s"><span class="pl-pds">"</span>.*Mock.*<span class="pl-pds">"</span></span> - <span class="pl-s"><span class="pl-pds">"</span>.*Mock.*<span class="pl-pds">"</span></span>
- <span class="pl-s"><span class="pl-pds">"</span>.*_mock.*<span class="pl-pds">"</span></span></pre> - <span class="pl-s"><span class="pl-pds">"</span>.*_mock.*<span class="pl-pds">"</span></span></pre>
</div>
<p><code>.goreleaser.yml</code>:</p>
<div class="highlight highlight-source-yaml">
<pre><span class="pl-ent">before</span>:
<span class="pl-ent">hooks</span>:
- <span class="pl-s">go mod tidy</span>
<span class="pl-ent">builds</span>:
- <span class="pl-ent">main</span>: <span class="pl-s">.</span>
<span class="pl-ent">goos</span>:
- <span class="pl-s">linux</span>
- <span class="pl-s">windows</span>
- <span class="pl-s">darwin</span>
<span class="pl-ent">goarch</span>:
- <span class="pl-s">amd64</span>
- <span class="pl-s">arm64</span>
<span class="pl-ent">universal_binaries</span>:
- <span class="pl-ent">replace</span>: <span class="pl-c1">true</span>
<span class="pl-ent">archives</span>:
- <span class="pl-ent">format_overrides</span>:
- <span class="pl-ent">goos</span>: <span class="pl-s">windows</span>
<span class="pl-ent">format</span>: <span class="pl-s">zip</span>
<span class="pl-ent">changelog</span>:
<span class="pl-ent">skip</span>: <span class="pl-c1">false</span>
<span class="pl-ent">use</span>: <span class="pl-s">github</span></pre>
</div> </div>
<div class="markdown-heading"> <div class="markdown-heading">
<h2 class="heading-element">ssh config</h2> <h2 class="heading-element">ssh config</h2>