Surfaced by SonarQube (api.spikersoft.com), rule csharpsquid:S4275, severity CRITICAL (RELIABILITY).
Problem
A property setter refers to a different field than its getter, so writes silently do not affect the value the getter returns. This is a genuine logic bug.
Location
spikersoft-backend/SpikerSoft.Data/Mongos/FileUploadScan.cs:33 — "Refactor this setter so that it actually refers to the field _status."
Fix
Point the setter at _status (the same field the getter reads) and add/verify a test that round-trips the property.
Surfaced by SonarQube (`api.spikersoft.com`), rule `csharpsquid:S4275`, severity CRITICAL (RELIABILITY).
## Problem
A property setter refers to a different field than its getter, so writes silently do not affect the value the getter returns. This is a genuine logic bug.
## Location
- `spikersoft-backend/SpikerSoft.Data/Mongos/FileUploadScan.cs:33` — "Refactor this setter so that it actually refers to the field `_status`."
## Fix
Point the setter at `_status` (the same field the getter reads) and add/verify a test that round-trips the property.
_Rule: https://rules.sonarsource.com/csharp/RSPEC-4275/_
Resolved in spikersoft-backend PR #12 (merged to master). FileUploadScan.Status setter now assigns _status instead of the compiler field, so status writes are no longer dropped. Closing.
Resolved in spikersoft-backend PR #12 (merged to `master`). `FileUploadScan.Status` setter now assigns `_status` instead of the compiler `field`, so status writes are no longer dropped. Closing.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Surfaced by SonarQube (
api.spikersoft.com), rulecsharpsquid:S4275, severity CRITICAL (RELIABILITY).Problem
A property setter refers to a different field than its getter, so writes silently do not affect the value the getter returns. This is a genuine logic bug.
Location
spikersoft-backend/SpikerSoft.Data/Mongos/FileUploadScan.cs:33— "Refactor this setter so that it actually refers to the field_status."Fix
Point the setter at
_status(the same field the getter reads) and add/verify a test that round-trips the property.Rule: https://rules.sonarsource.com/csharp/RSPEC-4275/
Resolved in spikersoft-backend PR #12 (merged to
master).FileUploadScan.Statussetter now assigns_statusinstead of the compilerfield, so status writes are no longer dropped. Closing.