Repository navigation
Refactor object_length_linter - #873
Merged
Merged
Conversation
AshesITR
force-pushed
the
fix/871-object-length-linter-s3
branch
from
February 15, 2022 21:24
175f6ff to
fcbb900
Compare
AshesITR
force-pushed
the
fix/871-object-length-linter-s3
branch
from
March 21, 2022 09:39
dfd849e to
92888ea
Compare
Collaborator
Author
|
@MichaelChirico I rebased this onto current master due to merge conflicts. Should be ready for review. |
# Conflicts: # man/linters.Rd
| "//SYMBOL_FORMALS" | ||
| ) | ||
| object_name_xpath <- local({ | ||
| xp_assignment_target <- paste( |
Collaborator
There was a problem hiding this comment.
I think the same thing is used in T_and_F_symbol linter... file a follow-up to unify the logic?
MichaelChirico
previously approved these changes
Mar 21, 2022
MichaelChirico
approved these changes
Mar 21, 2022
This file contains hidden or 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
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.
fixes #871 and makes the architecture of
object_length_linterandobject_name_lintercoherent again.I've moved the common XPath into the package namespace to prevent code duplication, but we could also re-implement
make_object_linterinstead - LMK if you like that better.Also removed all unused and therefor redundant helpers that were used for generic detection in the regex and token-based approach.