Skip to content

Conversation

@bjornhellander
Copy link
Contributor

Fixes #3386.

Note that this false positive was specifically due to the cast. There does not seem to ever be any diagnostic issued for the range in itself, so both 1..2 and 1 .. 2 are ok.

@codecov
Copy link

codecov bot commented Nov 28, 2021

Codecov Report

Merging #3409 (7754e6b) into master (0b40032) will decrease coverage by 0.05%.
The diff coverage is 100.00%.

❗ Current head 7754e6b differs from pull request most recent head d2a3d2b. Consider uploading reports for the commit d2a3d2b to get more accurate results

@@            Coverage Diff             @@
##           master    #3409      +/-   ##
==========================================
- Coverage   93.15%   93.09%   -0.06%     
==========================================
  Files        1043     1039       -4     
  Lines      111978   111852     -126     
  Branches     3973     3969       -4     
==========================================
- Hits       104312   104132     -180     
- Misses       6645     6702      +57     
+ Partials     1021     1018       -3     

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.

Explicit cast as range end operand causes incorrect SA1003 and SA1008

2 participants