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

Warning Suppression CA1062 #2216

Merged

Conversation

Zombach
Copy link
Contributor

@Zombach Zombach commented Jul 19, 2024

Pull Request

The issue or feature being addressed

#2215

Details on the issue fix or feature implementation

  • Suppress CA1062 in the code or fix the warning

Confirm the following

  • I started this PR by branching from the head of the default branch
  • I have targeted the PR to merge into the default branch
  • I have included unit tests for the issue/feature
  • Preparing to solve warning CA1062.

Copy link

codecov bot commented Jul 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.89%. Comparing base (ab2ffa4) to head (ac4545f).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2216   +/-   ##
=======================================
  Coverage   83.89%   83.89%           
=======================================
  Files         313      313           
  Lines        7179     7179           
  Branches     1060     1060           
=======================================
  Hits         6023     6023           
  Misses        785      785           
  Partials      371      371           
Flag Coverage Δ
linux 83.89% <ø> (ø)
macos 83.89% <ø> (ø)
windows 83.89% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@martincostello
Copy link
Member

Why suppress rather than fix in this case?

@Zombach
Copy link
Contributor Author

Zombach commented Jul 20, 2024

Why suppress rather than fix in this case?

The problem is that there is a lot of this warning. And if you do not suppress this warning in advance. If you disable this warning, a lot of noise is created. Which is very much in the way. And when correcting the warning, it is necessary to additionally cover the code with tests. Which in turn amounts to a huge PR of 1000+ lines. That's why I divided the task into subtasks, as described in #2215 . And now anyone can take a file as a separate file, disable warning suppression in it and fully work it out. Without making too much noise.

@martincostello martincostello merged commit e4ffcd4 into App-vNext:main Jul 20, 2024
18 checks passed
@Zombach Zombach deleted the zombach/remove-warning-ca1062 branch July 20, 2024 07:19
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.

2 participants