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

Ignore inline static members, CA1861 #7381

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

steveberdy
Copy link
Contributor

The analyzer now ignores allocations of constant arrays in static properties and fields, as they are already only allocated once.

Fixes #7365

@steveberdy steveberdy requested a review from a team as a code owner August 16, 2024 22:05
Copy link

codecov bot commented Aug 16, 2024

Codecov Report

Attention: Patch coverage is 90.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 96.49%. Comparing base (16bc384) to head (65af4ba).
Report is 22 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7381   +/-   ##
=======================================
  Coverage   96.49%   96.49%           
=======================================
  Files        1443     1443           
  Lines      345885   345889    +4     
  Branches    11374    11373    -1     
=======================================
+ Hits       333753   333770   +17     
+ Misses       9249     9236   -13     
  Partials     2883     2883           

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.

CA1861 reporting for inline arrays in constructors of static properties
1 participant