Skip to content

Conversation

@EduardoVaz06
Copy link
Contributor

@EduardoVaz06 EduardoVaz06 commented Aug 21, 2024

This PR implements a new rule: FullyQualifiedImportCheck.

As sugested in #62, this rule simply checks if the imports in the UsesClausesNode are fully qualified. If they are not, an issue is raised, suggesting to change it to be fully qualified.

@EduardoVaz06 EduardoVaz06 force-pushed the ImportsShouldBeFullyQualified branch from 8ca49b4 to 2927b16 Compare August 21, 2024 23:15
fourls
fourls previously requested changes Aug 22, 2024
Copy link
Collaborator

@fourls fourls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @EduardoVaz06, thanks for this contribution! Looks great and will be a useful rule for codebases looking to gradually transition to fully qualified imports.

I've made a few comments below, nothing major. Also note that the failing CI is just complaining about the rule having no tags.

@EduardoVaz06 EduardoVaz06 force-pushed the ImportsShouldBeFullyQualified branch from 2927b16 to 19c49d7 Compare August 28, 2024 00:27
@fourls fourls linked an issue Aug 28, 2024 that may be closed by this pull request
3 tasks
@EduardoVaz06 EduardoVaz06 force-pushed the ImportsShouldBeFullyQualified branch 2 times, most recently from 26e5564 to 61f276e Compare September 21, 2024 18:48
@EduardoVaz06 EduardoVaz06 requested a review from fourls September 23, 2024 17:12
Copy link
Collaborator

@cirras cirras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One last thing to tweak, just formatting consistency in the rule's HTML description.

@EduardoVaz06 EduardoVaz06 force-pushed the ImportsShouldBeFullyQualified branch from 61f276e to 0a252ea Compare September 25, 2024 01:38
Copy link
Collaborator

@cirras cirras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution!

@cirras cirras dismissed fourls’s stale review September 25, 2024 01:45

Feedback addressed, and I've finished reviewing the contribution.

@cirras cirras merged commit 3143498 into integrated-application-development:master Sep 25, 2024
2 checks passed
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.

New rule: Imports should be fully qualified

4 participants