netbird/client/internal/routemanager
Yury Gargay bb40325977
Update GitHub Actions and Enhance golangci-lint (#1075)
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
2023-09-04 17:03:44 +02:00
..
client_test.go Prevent peer updates on flapping status and fix route score logic (#920) 2023-06-01 16:00:44 +02:00
client.go Update GitHub Actions and Enhance golangci-lint (#1075) 2023-09-04 17:03:44 +02:00
common_linux_test.go Add routing peer support (#441) 2022-09-05 09:06:35 +02:00
firewall_linux.go Routemgr error handling (#1073) 2023-08-12 11:42:36 +02:00
firewall_nonlinux.go Routemgr error handling (#1073) 2023-08-12 11:42:36 +02:00
firewall.go Add routing peer support (#441) 2022-09-05 09:06:35 +02:00
iptables_linux_test.go Routemgr error handling (#1073) 2023-08-12 11:42:36 +02:00
iptables_linux.go Routemgr error handling (#1073) 2023-08-12 11:42:36 +02:00
manager_test.go Routemgr error handling (#1073) 2023-08-12 11:42:36 +02:00
manager.go Routemgr error handling (#1073) 2023-08-12 11:42:36 +02:00
mock.go Feature/android dns (#943) 2023-06-12 14:43:55 +02:00
nftables_linux_test.go Sync the iptables/nftables usage with acl logic (#1017) 2023-07-19 19:10:27 +02:00
nftables_linux.go Add default forward rule (#1021) 2023-07-22 18:39:23 +02:00
notifier.go Feature/android dns (#943) 2023-06-12 14:43:55 +02:00
router_pair.go Add route management for Android interface (#801) 2023-04-17 11:15:37 +02:00
server_android.go Routemgr error handling (#1073) 2023-08-12 11:42:36 +02:00
server_nonandroid.go Routemgr error handling (#1073) 2023-08-12 11:42:36 +02:00
server.go Routemgr error handling (#1073) 2023-08-12 11:42:36 +02:00
systemops_android.go Add route management for Android interface (#801) 2023-04-17 11:15:37 +02:00
systemops_bsd.go split systemops for operating systems and add linux 2023-06-09 18:27:09 +02:00
systemops_linux.go split systemops for operating systems and add linux 2023-06-09 18:40:35 +02:00
systemops_nonandroid_test.go test windows 2023-06-12 16:22:53 +02:00
systemops_nonandroid.go split systemops for operating systems and add linux 2023-06-09 18:48:21 +02:00
systemops_nonlinux.go Add route management for Android interface (#801) 2023-04-17 11:15:37 +02:00
systemops_windows.go test windows 2023-06-12 16:22:53 +02:00