netbird/management/server
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
..
activity Update GitHub Actions and Enhance golangci-lint (#1075) 2023-09-04 17:03:44 +02:00
http Update GitHub Actions and Enhance golangci-lint (#1075) 2023-09-04 17:03:44 +02:00
idp Update GitHub Actions and Enhance golangci-lint (#1075) 2023-09-04 17:03:44 +02:00
jwtclaims Update GitHub Actions and Enhance golangci-lint (#1075) 2023-09-04 17:03:44 +02:00
metrics Record idp manager type (#1027) 2023-07-22 19:30:59 +02:00
mock_server Feature/ephemeral peers (#1100) 2023-09-04 11:37:39 +02:00
status Move Login business logic from gRPC API to Accountmanager (#713) 2023-03-03 18:35:38 +01:00
telemetry Count only successful HTTP request durations (#886) 2023-05-22 16:26:36 +02:00
testdata switch PATs to map and add deletion 2023-03-20 16:14:55 +01:00
account_test.go Update GitHub Actions and Enhance golangci-lint (#1075) 2023-09-04 17:03:44 +02:00
account.go Update GitHub Actions and Enhance golangci-lint (#1075) 2023-09-04 17:03:44 +02:00
config.go Add PKCE authorization flow (#1012) 2023-07-27 11:31:07 +02:00
dns_test.go Prevent sending nameserver configuration when peer is set as NS (#962) 2023-06-28 17:29:02 +02:00
dns.go Prevent sending nameserver configuration when peer is set as NS (#962) 2023-06-28 17:29:02 +02:00
ephemeral_test.go Update GitHub Actions and Enhance golangci-lint (#1075) 2023-09-04 17:03:44 +02:00
ephemeral.go Feature/ephemeral peers (#1100) 2023-09-04 11:37:39 +02:00
event_test.go use UTC everywhere in server 2023-04-03 15:09:35 +02:00
event.go use UTC everywhere in server 2023-04-03 15:09:35 +02:00
file_store_test.go JWT Groups support (#966) 2023-06-27 18:51:05 +04:00
file_store.go Adding dashboard login activity (#1092) 2023-08-18 19:23:11 +02:00
group_test.go Check links of groups before delete it (#1010) 2023-07-14 20:45:40 +02:00
group.go Improve account copying (#1069) 2023-08-22 17:56:39 +02:00
grpcserver.go Feature/ephemeral peers (#1100) 2023-09-04 11:37:39 +02:00
management_proto_test.go Update GitHub Actions and Enhance golangci-lint (#1075) 2023-09-04 17:03:44 +02:00
management_suite_test.go Move management server to a separate directory (#67) 2021-07-24 16:14:29 +02:00
management_test.go Feature/ephemeral peers (#1100) 2023-09-04 11:37:39 +02:00
nameserver_test.go Add domain validation for nameserver groups (#1077) 2023-08-16 11:25:38 +02:00
nameserver.go Add domain validation for nameserver groups (#1077) 2023-08-16 11:25:38 +02:00
network_test.go Exclude second last IP from allocation to use it in the Fake DNS (#912) 2023-05-30 18:26:44 +04:00
network.go Exclude second last IP from allocation to use it in the Fake DNS (#912) 2023-05-30 18:26:44 +04:00
peer_test.go Update GitHub Actions and Enhance golangci-lint (#1075) 2023-09-04 17:03:44 +02:00
peer.go Feature/ephemeral peers (#1100) 2023-09-04 11:37:39 +02:00
personal_access_token_test.go move into separate package 2023-05-16 12:57:56 +02:00
personal_access_token.go Improve account copying (#1069) 2023-08-22 17:56:39 +02:00
policy_test.go Optimize ACL performance (#994) 2023-07-18 13:12:50 +04:00
policy.go Improve account copying (#1069) 2023-08-22 17:56:39 +02:00
route_test.go Feat linux firewall support (#805) 2023-05-29 16:00:18 +02:00
route.go Update GitHub Actions and Enhance golangci-lint (#1075) 2023-09-04 17:03:44 +02:00
rule.go Improve account copying (#1069) 2023-08-22 17:56:39 +02:00
scheduler_test.go Proactively expire peers' login per account (#698) 2023-02-27 16:44:26 +01:00
scheduler.go Proactively expire peers' login per account (#698) 2023-02-27 16:44:26 +01:00
setupkey_test.go Feature/ephemeral peers (#1100) 2023-09-04 11:37:39 +02:00
setupkey.go Feature/ephemeral peers (#1100) 2023-09-04 11:37:39 +02:00
store.go Adding dashboard login activity (#1092) 2023-08-18 19:23:11 +02:00
turncredentials_test.go Rename module to netbirdio/netbird (#288) 2022-03-26 12:08:54 +01:00
turncredentials.go remove UTC from some not store related operations 2023-04-10 10:54:23 +02:00
updatechannel_test.go Use select for turn credentials and peers update (#443) 2022-08-27 12:57:03 +02:00
updatechannel.go Adding dashboard login activity (#1092) 2023-08-18 19:23:11 +02:00
user_test.go Adding dashboard login activity (#1092) 2023-08-18 19:23:11 +02:00
user.go Update GitHub Actions and Enhance golangci-lint (#1075) 2023-09-04 17:03:44 +02:00