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: Enable Rector Rules for Code Quality and Strictness #10

Merged
merged 4 commits into from
Feb 2, 2025

Conversation

n4ss1m
Copy link
Member

@n4ss1m n4ss1m commented Feb 2, 2025

This PR introduces several Rector rules to improve code quality, maintainability, and strictness. The following changes have been applied:

  • Enabled deadCode, codeQuality, codingStyle, typeDeclarations rules to remove unused code, enhance readability, and enforce type declarations.
  • Activated privatization and naming rules to improve encapsulation and enforce consistent naming conventions.
  • Added declare(strict_types=1) to enforce strict type checking across files.
  • Implemented STRICT_BOOLEANS, EARLY_RETURN, and INSTANCEOF rules for better boolean handling, optimized return flow, and improved type safety in instanceof checks.

These updates ensure better code structure, stricter type safety, and overall improved maintainability. 🚀

@n4ss1m n4ss1m merged commit f1521f2 into PiteurStudio:main Feb 2, 2025
7 checks passed
@n4ss1m n4ss1m deleted the refactor_rector branch February 2, 2025 23:27
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