mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-30 03:54:35 +01:00
bb40325977
This PR showcases the implementation of additional linter rules. I've updated the golangci-lint GitHub Actions to the latest available version. This update makes sure that the tool works the same way locally - assuming being updated regularly - and with the GitHub Actions. I've also taken care of keeping all the GitHub Actions up to date, which helps our code stay current. But there's one part, goreleaser that's a bit tricky to test on our computers. So, it's important to take a close look at that. To make it easier to understand what I've done, I've made separate changes for each thing that the new linters found. This should help the people reviewing the changes see what's going on more clearly. Some of the changes might not be obvious at first glance. Things to consider for the future CI runs on Ubuntu so the static analysis only happens for Linux. Consider running it for the rest: Darwin, Windows |
||
---|---|---|
.. | ||
client_test.go | ||
client.go | ||
common_linux_test.go | ||
firewall_linux.go | ||
firewall_nonlinux.go | ||
firewall.go | ||
iptables_linux_test.go | ||
iptables_linux.go | ||
manager_test.go | ||
manager.go | ||
mock.go | ||
nftables_linux_test.go | ||
nftables_linux.go | ||
notifier.go | ||
router_pair.go | ||
server_android.go | ||
server_nonandroid.go | ||
server.go | ||
systemops_android.go | ||
systemops_bsd.go | ||
systemops_linux.go | ||
systemops_nonandroid_test.go | ||
systemops_nonandroid.go | ||
systemops_nonlinux.go | ||
systemops_windows.go |