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

Fix/warnings revived #310

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Fix/warnings revived #310

wants to merge 9 commits into from

Conversation

TTA777
Copy link
Member

@TTA777 TTA777 commented Dec 24, 2024

This PR cherry-picks the xml comments created in #183, reduces warnings by marking properties as required, instead of using constructors.

Also removes unused using statements, and other low hanging warnings.

Note, there is still a fair bit of warnings since the tests haven't been refactored in this PR. I think the best way to address the warnings from there, would be to migrate them to use the builders, though that seems out of scope of this PR.

marfavi and others added 9 commits December 24, 2024 12:43
- Added doc comments to all public fields (phew!)

- Added nonempty constructors to entities where a field could be null after creation (like strings).
  > Some of these constuctors throw an error if app attempted to instantiate with empty values.
  > Entities still have 0-argument constructors to work with DbSet.

- Some entities now have simplified constructors.
  > For example, the new Purchase constructor sets 8 fields using 3 parameters.
  > The new Ticket constructor sets 5 fields with 1 parameter.

- Fixed tests as a result of breaking them.
  > Enable `nullable` in test project
  > Most should be more robust by avoiding magic strings
  > Test object getters, like a `testUser` getter, reduces code duplication
  > Redundant fields in test objects have been removed while ensuring the tests still pass.

- Removed `LoginAttempt` entity as stated in a TODO comment
- Removed pragma warning ignores
- Removed unused usings
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
45.9% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

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