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

CA1416 improve call site messaging, fix bug related to MSBuild platform names casing #4608

Merged
merged 6 commits into from
Jan 6, 2021

Conversation

buyaa-n
Copy link
Member

@buyaa-n buyaa-n commented Dec 19, 2020

  • Improving call site platforms messaging to be more meaningful, examples:
    This call site is unreachable on: 'windows' 9.0 and later. 'DenyList.UnsupportedWindows()' is unsupported on: 'windows' all versions. => This call site is reachable on: 'windows' 9.0 and before. 'DenyList.UnsupportedWindows()' is unsupported on: 'windows' all versions.
    This call site is unreachable on: 'windows' 9.0 and later. 'AllowList.Windows10Only()' is only supported on: 'windows' 10.0 and later. => This call site is reachable on: 'windows' 9.0 and before. 'AllowList.Windows10Only()' is only supported on: 'windows' 10.0 and later.
  • Fix MSBuild platform names search to be case insensitive. For deny list when the unsupported platform is not supported in the call site we should check the MS build platform names has the platform and report warning if it is
  • Improve test/code coverage and fix issues found

@codecov
Copy link

codecov bot commented Dec 19, 2020

Codecov Report

Merging #4608 (12ad2a9) into master (4bffbc0) will decrease coverage by 0.00%.
The diff coverage is 98.04%.

@@            Coverage Diff             @@
##           master    #4608      +/-   ##
==========================================
- Coverage   95.78%   95.78%   -0.01%     
==========================================
  Files        1193     1193              
  Lines      269799   270350     +551     
  Branches    16267    16300      +33     
==========================================
+ Hits       258436   258960     +524     
- Misses       9270     9288      +18     
- Partials     2093     2102       +9     

@buyaa-n buyaa-n merged commit d8bf975 into dotnet:master Jan 6, 2021
@buyaa-n buyaa-n deleted the fix_bugs branch March 16, 2021 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants