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

Enable Lint Rule: modifies-value-receiver #5517

Merged
merged 3 commits into from
Jun 3, 2024

Conversation

FlamingSaint
Copy link
Member

Which problem is this PR solving?

Description of the changes

  • Enabled modifies-value-receiver in revive linter.
  • Removed instances where pass-by-values where re-assigned and returned.

How was this change tested?

  • make lint make test

Checklist

Signed-off-by: FlamingSaint <raghuramkannan400@gmail.com>
@FlamingSaint FlamingSaint requested a review from a team as a code owner June 3, 2024 10:46
Copy link

codecov bot commented Jun 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.19%. Comparing base (f2b46d4) to head (5fa0a61).
Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5517   +/-   ##
=======================================
  Coverage   96.19%   96.19%           
=======================================
  Files         327      327           
  Lines       16012    16014    +2     
=======================================
+ Hits        15403    15405    +2     
  Misses        435      435           
  Partials      174      174           
Flag Coverage Δ
badger_v1 8.05% <0.00%> (-0.01%) ⬇️
badger_v2 1.93% <0.00%> (-0.01%) ⬇️
cassandra-3.x-v1 16.44% <50.00%> (+0.01%) ⬆️
cassandra-3.x-v2 1.85% <0.00%> (-0.01%) ⬇️
cassandra-4.x-v1 16.44% <50.00%> (+0.01%) ⬆️
cassandra-4.x-v2 1.85% <0.00%> (-0.01%) ⬇️
elasticsearch-7-v1 18.87% <0.00%> (-0.02%) ⬇️
elasticsearch-8-v1 19.07% <0.00%> (-0.02%) ⬇️
elasticsearch-8-v2 19.08% <0.00%> (-0.01%) ⬇️
grpc_v1 9.48% <0.00%> (-0.01%) ⬇️
grpc_v2 7.53% <0.00%> (-0.01%) ⬇️
kafka 9.78% <0.00%> (-0.01%) ⬇️
opensearch-1-v1 18.93% <0.00%> (-0.01%) ⬇️
opensearch-2-v1 18.93% <0.00%> (-0.01%) ⬇️
opensearch-2-v2 18.93% <0.00%> (-0.01%) ⬇️
unittests 93.89% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@yurishkuro yurishkuro added the changelog:ci Change related to continuous integration / testing label Jun 3, 2024
cmd/agent/app/builder.go Outdated Show resolved Hide resolved
model/dependencies.go Outdated Show resolved Hide resolved
@yurishkuro
Copy link
Member

in both cases you changes the existing semantics of the functions. Instead, you can find a way to keep the semantics while satisfying the linter.

Signed-off-by: FlamingSaint <raghuramkannan400@gmail.com>
@FlamingSaint
Copy link
Member Author

in both cases you changes the existing semantics of the functions. Instead, you can find a way to keep the semantics while satisfying the linter.

Are the changes okay ?

Signed-off-by: FlamingSaint <raghuramkannan400@gmail.com>
@yurishkuro yurishkuro merged commit c74aec1 into jaegertracing:main Jun 3, 2024
40 checks passed
@FlamingSaint FlamingSaint deleted the linter branch June 3, 2024 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:ci Change related to continuous integration / testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants