Skip to content

Conversation

@mahdiva
Copy link

@mahdiva mahdiva commented Aug 13, 2021

Fixes #5353

CA2018 currently only checks for Byte and SByte array types. Boolean should also be included, since it has a size of 1 byte.
This PR adds support for bool[] arrays to prevent a false positive.

cc @pgovind @Youssef1313

@mahdiva mahdiva requested a review from a team as a code owner August 13, 2021 21:05
@pgovind pgovind requested a review from buyaa-n August 13, 2021 21:15
@codecov
Copy link

codecov bot commented Aug 13, 2021

Codecov Report

Merging #5373 (5d3076c) into release/6.0.1xx (3981640) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@                 Coverage Diff                 @@
##           release/6.0.1xx    #5373      +/-   ##
===================================================
- Coverage            95.62%   95.62%   -0.01%     
===================================================
  Files                 1240     1240              
  Lines               285426   285455      +29     
  Branches             17132    17134       +2     
===================================================
+ Hits                272929   272956      +27     
- Misses               10189    10200      +11     
+ Partials              2308     2299       -9     

Copy link

@buyaa-n buyaa-n left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@pgovind pgovind merged commit 9a1f02e into dotnet:release/6.0.1xx Aug 13, 2021
@pgovind
Copy link

pgovind commented Aug 13, 2021

Thanks for the reviews @buyaa-n and @Youssef1313

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