Skip to content

Conversation

@olehermanse
Copy link
Member

@olehermanse olehermanse commented Sep 21, 2018

This big struct shouldn't be copied by value
when not necessary.

Reported by LGTM:
https://lgtm.com/rules/2163210742/

Merge together:
#3276
https://github.com/cfengine/enterprise/pull/435

This big struct shouldn't be copied by value
when not necessary.

Reported by LGTM:
https://lgtm.com/rules/2163210742/

Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
@cf-bottom
Copy link

Thanks for submitting a PR! Maybe @vpodzime can review this?

@codecov
Copy link

codecov bot commented Sep 21, 2018

Codecov Report

Merging #3276 into master will decrease coverage by <.01%.
The diff coverage is 31.19%.

@@            Coverage Diff             @@
##           master    #3276      +/-   ##
==========================================
- Coverage   61.86%   61.86%   -0.01%     
==========================================
  Files         210      210              
  Lines       46425    46426       +1     
==========================================
- Hits        28722    28720       -2     
- Misses      17703    17706       +3
Impacted Files Coverage Δ
cf-agent/verify_storage.c 41.61% <ø> (ø) ⬆️
cf-agent/verify_users.c 97.05% <ø> (ø) ⬆️
cf-agent/verify_environments.c 0% <ø> (ø) ⬆️
cf-agent/nfs.c 30.08% <0%> (ø) ⬆️
cf-agent/vercmp.c 80.76% <0%> (ø) ⬆️
cf-agent/verify_acl.c 50.93% <0%> (ø) ⬆️
libpromises/verify_classes.c 68.83% <0%> (ø) ⬆️
cf-agent/files_editxml.c 66.93% <10.11%> (ø) ⬆️
cf-agent/files_changes.c 82.12% <100%> (ø) ⬆️
libpromises/eval_context.c 86.76% <100%> (+0.01%) ⬆️
... and 15 more

Impacted file tree graph


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cea2a2d...81806a1. Read the comment docs.

@olehermanse
Copy link
Member Author

@cf-bottom Could you test this in jenkins ? :)

@cf-bottom
Copy link

Alright, I triggered a build:

Build Status

https://ci.cfengine.com/job/pr-pipeline/1187/

Copy link
Contributor

@vpodzime vpodzime left a comment

Choose a reason for hiding this comment

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

ACK

@olehermanse olehermanse merged commit eb7750c into cfengine:master Sep 24, 2018
@olehermanse olehermanse deleted the cfps branch September 24, 2018 11:21
@olehermanse olehermanse added the lgtm Fixes for issues found by LGTM code analysis label Apr 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm Fixes for issues found by LGTM code analysis

Development

Successfully merging this pull request may close these issues.

3 participants