-
Notifications
You must be signed in to change notification settings - Fork 10
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
New codemod to remove global
lines at module level
#194
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clavedeluna
force-pushed
the
global-mod-codemod
branch
from
December 27, 2023 14:12
16d85c7
to
53b844f
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #194 +/- ##
==========================================
- Coverage 96.38% 96.35% -0.04%
==========================================
Files 84 85 +1
Lines 3898 3918 +20
==========================================
+ Hits 3757 3775 +18
- Misses 141 143 +2
|
andrecsilva
requested changes
Jan 2, 2024
drdavella
requested changes
Jan 2, 2024
|
||
class RemoveModuleGlobal(BaseCodemod, NameResolutionMixin): | ||
NAME = "remove-module-global" | ||
SUMMARY = "Remove Module-level Global Call" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested change
SUMMARY = "Remove Module-level Global Call" | |
SUMMARY = "Remove Module-level `global` Keyword" |
clavedeluna
force-pushed
the
global-mod-codemod
branch
from
January 2, 2024 20:04
53b844f
to
d38f381
Compare
drdavella
approved these changes
Jan 2, 2024
andrecsilva
approved these changes
Jan 3, 2024
github-merge-queue
bot
removed this pull request from the merge queue due to a conflict with the base branch
Jan 3, 2024
clavedeluna
force-pushed
the
global-mod-codemod
branch
from
January 3, 2024 15:35
96223e3
to
1e0885c
Compare
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
A codemod that removes a line that uses
global
keyword at the module levelAdditional Details
global
keyword line within non-global scopes if a user missed them