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

Disable prefer_match_file_name when using extensions or make it configurable. #189

Open
arthurbcd opened this issue Dec 13, 2024 · 0 comments

Comments

@arthurbcd
Copy link

Description:
This lint is excellent and works really well, especially for classes. However, I believe it shouldn’t be applied to extensions at all. Extensions are often grouped and can have varied and distinct names, making it impractical to enforce the same rules as for regular code.

If applying the lint to extensions is necessary, it should at least provide an option to enable or disable it. This flexibility would allow developers to decide whether or not it fits their use case, especially when dealing with extensions heavily.

Proposed Solution:
• Do not apply the lint to extensions by default.
• If that’s not possible, provide a configurable option to enable or disable the lint specifically for extensions.

This change would make the lint more adaptable to real-world scenarios without disrupting common practices like grouping extensions.

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

No branches or pull requests

1 participant