netbird/management/server/http
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
..
api Feature/ephemeral peers (#1100) 2023-09-04 11:37:39 +02:00
middleware Update GitHub Actions and Enhance golangci-lint (#1075) 2023-09-04 17:03:44 +02:00
util Check links of groups before delete it (#1010) 2023-07-14 20:45:40 +02:00
accounts_handler_test.go Autopropagate peers by JWT groups (#1037) 2023-08-07 19:44:51 +04:00
accounts_handler.go Autopropagate peers by JWT groups (#1037) 2023-08-07 19:44:51 +04:00
dns_settings_handler_test.go changed the naming convention for all handling objects and methods to have unified way 2023-02-28 15:01:24 +01:00
dns_settings_handler.go changed the naming convention for all handling objects and methods to have unified way 2023-02-28 15:01:24 +01:00
events_handler_test.go use UTC everywhere in server 2023-04-03 15:09:35 +02:00
events_handler.go changed the naming convention for all handling objects and methods to have unified way 2023-02-28 15:01:24 +01:00
groups_handler_test.go Check links of groups before delete it (#1010) 2023-07-14 20:45:40 +02:00
groups_handler.go Update GitHub Actions and Enhance golangci-lint (#1075) 2023-09-04 17:03:44 +02:00
handler.go Fix api Auth with PAT when a custom UserIDClaim is configured in management.json (#1120) 2023-09-01 18:09:59 +02:00
nameservers_handler_test.go Improve account copying (#1069) 2023-08-22 17:56:39 +02:00
nameservers_handler.go API cleanup (#824) 2023-05-03 00:15:25 +02:00
pat_handler_test.go Block user through HTTP API (#846) 2023-05-11 18:09:36 +02:00
pat_handler.go move validation into account manager + func for get requests 2023-03-30 13:58:44 +02:00
peers_handler_test.go API cleanup (#824) 2023-05-03 00:15:25 +02:00
peers_handler.go merge openapi with version from docs repo 2023-05-26 15:32:52 +02:00
policies_handler_test.go Feat linux firewall support (#805) 2023-05-29 16:00:18 +02:00
policies_handler.go Fix validation for ACL policy rules ports (#938) 2023-06-07 08:57:43 +02:00
routes_handler_test.go API cleanup (#824) 2023-05-03 00:15:25 +02:00
routes_handler.go API cleanup (#824) 2023-05-03 00:15:25 +02:00
rules_handler_test.go Feat linux firewall support (#805) 2023-05-29 16:00:18 +02:00
rules_handler.go Feat linux firewall support (#805) 2023-05-29 16:00:18 +02:00
setupkeys_handler_test.go Feature/ephemeral peers (#1100) 2023-09-04 11:37:39 +02:00
setupkeys_handler.go Feature/ephemeral peers (#1100) 2023-09-04 11:37:39 +02:00
users_handler_test.go Add API Endpoint for Resending User Invitations in Auth0 (#989) 2023-07-03 12:20:19 +02:00
users_handler.go Adding dashboard login activity (#1092) 2023-08-18 19:23:11 +02:00