Skip to content

Refactor object_length_linter - #873

Merged
MichaelChirico merged 10 commits into
masterfrom
fix/871-object-length-linter-s3
Mar 21, 2022
Merged

MichaelChirico merged 10 commits into
masterfrom
fix/871-object-length-linter-s3

Conversation

@AshesITR

@AshesITR AshesITR commented Oct 9, 2021

Copy link
Copy Markdown
Collaborator

fixes #871 and makes the architecture of object_length_linter and object_name_linter coherent again.
I've moved the common XPath into the package namespace to prevent code duplication, but we could also re-implement make_object_linter instead - 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.

  • implement feature
  • add tests
  • add NEWS bullet

@AshesITR
AshesITR force-pushed the fix/871-object-length-linter-s3 branch from 175f6ff to fcbb900 Compare February 15, 2022 21:24
@AshesITR AshesITR added this to the 3.0.0 milestone Feb 21, 2022
@AshesITR
AshesITR force-pushed the fix/871-object-length-linter-s3 branch from dfd849e to 92888ea Compare March 21, 2022 09:39
@AshesITR

Copy link
Copy Markdown
Collaborator Author

@MichaelChirico I rebased this onto current master due to merge conflicts. Should be ready for review.

Comment thread NEWS.md Resolved
Comment thread R/object_name_linters.R Resolved
Comment thread R/object_name_linters.R Resolved
Comment thread R/object_name_linters.R Resolved
Comment thread R/object_name_linters.R Resolved
Comment thread R/object_name_linters.R Resolved
Comment thread R/object_name_linters.R
"//SYMBOL_FORMALS"
)
object_name_xpath <- local({
xp_assignment_target <- paste(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think the same thing is used in T_and_F_symbol linter... file a follow-up to unify the logic?

MichaelChirico
MichaelChirico previously approved these changes Mar 21, 2022
@MichaelChirico
MichaelChirico merged commit 0b93897 into master Mar 21, 2022
@MichaelChirico
MichaelChirico deleted the fix/871-object-length-linter-s3 branch March 21, 2022 22:11
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.

object_length_linter should detect generics

2 participants