intel / lkp-tests

Linux Kernel Performance tests
GNU General Public License v2.0
251 stars 153 forks source link

Resolve ruboocop issues of BpfStater Class #359

Closed weishan18 closed 6 months ago

weishan18 commented 6 months ago

resolve #263

PerceivedComplexity is resolved CyclomaticComplexity is reduced from 15 to 9 image The Cyclomatic Complexity is not able to reach 7 (the Robocop threshold), as the stat function is having 9 different conditions which is not combinable for further complexity reduction.

Acceptance test image

rli9 commented 6 months ago

thanks for the patch