Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: apply codacy fixes #3935

Merged
merged 14 commits into from
Oct 10, 2024
Merged

chore: apply codacy fixes #3935

merged 14 commits into from
Oct 10, 2024

Conversation

millotp
Copy link
Collaborator

@millotp millotp commented Oct 9, 2024

🧭 What and Why

We use Codacy to statically analyse the code and find vulnerabilities.

@millotp millotp self-assigned this Oct 9, 2024
@algolia-bot
Copy link
Collaborator

algolia-bot commented Oct 9, 2024

✔️ Code generated!

Name Link
🪓 Triggered by 128ff75dea67f11e6ff27c036ea9c42b735bd75d
🍃 Generated commit 65e9864377d9d2109ab71c52ccb09b2727c765fb
🌲 Generated branch generated/chore/codacy-fixes
📊 Benchmark results

Benchmarks performed on the method using a mock server, the results might not reflect the real-world performance.

Language Req/s
go 1673
javascript 1662
php 1468
csharp 1346
java 1115
python 1023
ruby 896
swift 773

@millotp millotp marked this pull request as ready for review October 9, 2024 16:53
@millotp millotp requested a review from a team as a code owner October 9, 2024 16:53
Copy link

github-actions bot commented Oct 9, 2024

Copy link
Member

@shortcuts shortcuts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Linter as a service

@@ -1,6 +1,6 @@
module github.com/algolia/algoliasearch-client-go/v4

go 1.21
go 1.22
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

23 even, no?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can people using go1.22 still use this lib if we use 1.23 ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think so yes, as long as we don't depend on std introduced in 1.21+

I guess we should add multi version testing to Go too D:

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just tried it with the CTS: go: module ../../../clients/algoliasearch-client-go requires go >= 1.23 (running go 1.22.8)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should stick to a low version

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oki nice then let's keep 1.21 because that's what we settled on at the major release

Copy link
Member

@shortcuts shortcuts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks cleaaaan, not sure about Go

Fluf22
Fluf22 previously approved these changes Oct 10, 2024
Copy link
Contributor

@Fluf22 Fluf22 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🆗

Copy link
Member

@shortcuts shortcuts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gégé

@millotp millotp merged commit 6b07138 into main Oct 10, 2024
28 checks passed
@millotp millotp deleted the chore/codacy-fixes branch October 10, 2024 09:44
algolia-bot added a commit that referenced this pull request Oct 10, 2024
Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
Co-authored-by: shortcuts <vannicattec@gmail.com>
algolia-bot added a commit to algolia/algoliasearch-client-go that referenced this pull request Oct 10, 2024
algolia/api-clients-automation#3935

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
algolia-bot added a commit to algolia/algoliasearch-client-javascript that referenced this pull request Oct 10, 2024
algolia/api-clients-automation#3935

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
algolia-bot added a commit to algolia/algoliasearch-client-python that referenced this pull request Oct 10, 2024
algolia/api-clients-automation#3935

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants