Skip to content

Add golangci-lint static check #405

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

Merged
merged 11 commits into from
Jun 17, 2025

Conversation

hiimjako
Copy link
Collaborator

@hiimjako hiimjako commented Jun 14, 2025

Integrated the golangci-lint CLI and applied automatic fixes to resolve warnings.

I've also added a CI workflow lint, I've also bumped the go version for the test to the latest one 1.24 for both test and lint.

@Gsantomaggio I've removed the unused system_integration folder, since it was all commented out.

@hiimjako hiimjako added this to the 1.5.8 milestone Jun 14, 2025
@hiimjako hiimjako self-assigned this Jun 14, 2025
@hiimjako hiimjako added the enhancement New feature or request label Jun 14, 2025
@hiimjako hiimjako force-pushed the golang-ci-static-check branch from 3b2f077 to a424933 Compare June 16, 2025 09:34
@hiimjako hiimjako force-pushed the golang-ci-static-check branch 2 times, most recently from adc63b6 to 1a4be1f Compare June 16, 2025 11:37
@hiimjako hiimjako force-pushed the golang-ci-static-check branch from 1a4be1f to 710cef8 Compare June 16, 2025 11:59
@hiimjako hiimjako marked this pull request as ready for review June 16, 2025 12:20
@hiimjako hiimjako requested a review from Gsantomaggio June 16, 2025 12:20
@Gsantomaggio
Copy link
Member

It looks good to me. Have you tried the reliable example? To ensure everything works properly.

Thank you

@hiimjako
Copy link
Collaborator Author

It looks good to me. Have you tried the reliable example? To ensure everything works properly.

Yes, I tried, it is working as expected:

❯ go run ./examples/reliable/reliable_client.go
Reliable Producer/Consumer example
Connecting to RabbitMQ streaming ...
Environment created with 1 producers and 1 consumers

********************************************
Tuesday, 17-Jun-25 10:11:26 CEST - ToSend: 20000000 - nProducers: 1 - concurrentProducers: 1 - nConsumers 1 
Sent:0 - ReSent:0 - Confirmed:0  - Not confirmed:0 - Fail+Confirmed:0 
Total Consumed:0 - Per consumer:0  
go-routine: 5
********************************************
Press enter to close the connections.
********************************************
Tuesday, 17-Jun-25 10:11:31 CEST - ToSend: 20000000 - nProducers: 1 - concurrentProducers: 1 - nConsumers 1 
Sent:718641 - ReSent:0 - Confirmed:718584  - Not confirmed:0 - Fail+Confirmed:718584 
Total Consumed:540551 - Per consumer:540551  
producer producer-0 for stream golang-reliable-Test, status: Open 
consumer go-stream-consumer for stream golang-reliable-Test, status: Open 
go-routine: 16
********************************************
********************************************
Tuesday, 17-Jun-25 10:11:36 CEST - ToSend: 20000000 - nProducers: 1 - concurrentProducers: 1 - nConsumers 1 
Sent:1551015 - ReSent:0 - Confirmed:1551002  - Not confirmed:0 - Fail+Confirmed:1551002 
Total Consumed:1181423 - Per consumer:1181423  
producer producer-0 for stream golang-reliable-Test, status: Open 
consumer go-stream-consumer for stream golang-reliable-Test, status: Open 
go-routine: 16
********************************************

@Gsantomaggio Gsantomaggio merged commit 630e4f0 into rabbitmq:main Jun 17, 2025
3 checks passed
@Gsantomaggio
Copy link
Member

Thank you @hiimjako

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants