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

Refactor codebase for modern practices #69

Merged
merged 1 commit into from
Jul 19, 2024
Merged

Refactor codebase for modern practices #69

merged 1 commit into from
Jul 19, 2024

Conversation

axunonb
Copy link
Member

@axunonb axunonb commented Jul 19, 2024

  • Updated Gruntfile.js to use const for declaring the sass variable.
  • Renamed and simplified methods in Constants.cs for clarity and efficiency.
  • Removed unnecessary using directives and renamed methods in Location.Parser.cs for better readability.
  • Corrected logical operators in StringHelper.cs and ColorMath.cs to ensure proper short-circuit evaluation.
  • Changed nullable boolean properties to non-nullable in EditModel.cs.
  • Converted CalendarDisplayModel property to a method in NewsletterModel.cs.
  • Improved variable checks and declarations in JavaScript files for robustness and modern standards.
  • Applied similar updates to Site.TempusDominusFactory.min.js for consistency.
  • Updated Show.cshtml to reflect changes in NewsletterModel.cs.

- Updated `Gruntfile.js` to use `const` for declaring the `sass` variable.
- Renamed and simplified methods in `Constants.cs` for clarity and efficiency.
- Removed unnecessary `using` directives and renamed methods in `Location.Parser.cs` for better readability.
- Corrected logical operators in `StringHelper.cs` and `ColorMath.cs` to ensure proper short-circuit evaluation.
- Changed nullable boolean properties to non-nullable in `EditModel.cs`.
- Converted `CalendarDisplayModel` property to a method in `NewsletterModel.cs`.
- Improved variable checks and declarations in JavaScript files for robustness and modern standards.
- Applied similar updates to `Site.TempusDominusFactory.min.js` for consistency.
- Updated `Show.cshtml` to reflect changes in `NewsletterModel.cs`.
@axunonb axunonb merged commit 13e0d01 into main Jul 19, 2024
3 checks passed
@axunonb axunonb deleted the pr/js-code-fixes branch July 19, 2024 16:43
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
3.7% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

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.

1 participant