Skip to content

Refactor: centralize config keys in Constants class#151

Merged
StuartFerguson merged 2 commits intomasterfrom
task/#143_codact_password_issues
Mar 31, 2026
Merged

Refactor: centralize config keys in Constants class#151
StuartFerguson merged 2 commits intomasterfrom
task/#143_codact_password_issues

Conversation

@StuartFerguson
Copy link
Copy Markdown
Member

Replaced hardcoded DB config keys with Constants.PataPawaReadModelConfig and Constants.TestBankReadModelConfig throughout the codebase. Refactored Program.cs for clarity and maintainability, updating configuration, service registration, and middleware setup to use the new constants. Removed obsolete string constants. No functional changes; improves maintainability and reduces risk of typos.

closes #143

Replaced hardcoded DB config keys with Constants.PataPawaReadModelConfig and Constants.TestBankReadModelConfig throughout the codebase. Refactored Program.cs for clarity and maintainability, updating configuration, service registration, and middleware setup to use the new constants. Removed obsolete string constants. No functional changes; improves maintainability and reduces risk of typos.
@codacy-production
Copy link
Copy Markdown

codacy-production Bot commented Mar 31, 2026

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity . 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

TIP This summary will be updated as you push new changes. Give us feedback

@StuartFerguson StuartFerguson merged commit dae88bf into master Mar 31, 2026
5 checks passed
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.

[Security] Hardcoded passwords are a security risk.

1 participant