Skip to content

[BEEEP] Fix all CA2254 occurrences#6357

Merged
justindbaur merged 2 commits into
mainfrom
constant-logging-template
Oct 20, 2025
Merged

[BEEEP] Fix all CA2254 occurrences#6357
justindbaur merged 2 commits into
mainfrom
constant-logging-template

Conversation

@justindbaur
Copy link
Copy Markdown
Member

🎟️ Tracking

📔 Objective

Start enforcing CA2254 at a warning level, which makes it an error effectively. Then fix all occurrences of us not obeying this rule.

I also made sure the two sibling rules are reporting as suggestions, these are a bit less important but I will probably eventually make a large PR fixing these as well.

📸 Screenshots

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 19, 2025

Codecov Report

❌ Patch coverage is 27.77778% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 54.27%. Comparing base (d384c0c) to head (1d6ec7f).
⚠️ Report is 96 commits behind head on main.

Files with missing lines Patch % Lines
src/Core/Jobs/BaseJobsHostedService.cs 0.00% 3 Missing ⚠️
src/Admin/Controllers/HomeController.cs 0.00% 2 Missing ⚠️
src/Admin/Jobs/AliveJob.cs 0.00% 1 Missing ⚠️
src/Api/Tools/Controllers/SendsController.cs 0.00% 1 Missing ⚠️
...c/Api/Utilities/ExceptionHandlerFilterAttribute.cs 0.00% 1 Missing ⚠️
src/Api/Vault/Controllers/CiphersController.cs 0.00% 1 Missing ⚠️
...zationAuth/UpdateOrganizationAuthRequestCommand.cs 50.00% 1 Missing ⚠️
...se/SelfHosted/SelfHostedSyncSponsorshipsCommand.cs 0.00% 1 Missing ⚠️
...tyServer/RequestValidators/BaseRequestValidator.cs 50.00% 1 Missing ⚠️
...edWeb/Utilities/ExceptionHandlerFilterAttribute.cs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6357      +/-   ##
==========================================
+ Coverage   50.04%   54.27%   +4.23%     
==========================================
  Files        1832     1832              
  Lines       81531    81530       -1     
  Branches     7226     7225       -1     
==========================================
+ Hits        40800    44254    +3454     
+ Misses      39162    35622    -3540     
- Partials     1569     1654      +85     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Sep 19, 2025

Logo
Checkmarx One – Scan Summary & Details56196912-62a7-486c-a328-870f3413b934

Great job! No new security vulnerabilities introduced in this pull request

@sonarqubecloud
Copy link
Copy Markdown

@justindbaur justindbaur marked this pull request as ready for review September 22, 2025 17:19
@justindbaur justindbaur requested review from a team as code owners September 22, 2025 17:19
@harr1424 harr1424 self-requested a review September 22, 2025 17:30
Copy link
Copy Markdown
Contributor

@JaredSnider-Bitwarden JaredSnider-Bitwarden left a comment

Choose a reason for hiding this comment

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

Auth file changes LGTM!

@justindbaur justindbaur merged commit c6f1ace into main Oct 20, 2025
41 checks passed
@justindbaur justindbaur deleted the constant-logging-template branch October 20, 2025 15:34
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.

6 participants