Skip to content

Rename xml_parsed_content for the full file - #609

Merged
MichaelChirico merged 6 commits into
masterfrom
is-full-file
Nov 28, 2020
Merged

MichaelChirico merged 6 commits into
masterfrom
is-full-file

Conversation

@MichaelChirico

@MichaelChirico MichaelChirico commented Nov 28, 2020 •

Copy link
Copy Markdown
Collaborator

Closes #608

Renaming entailed fixing some logic that relied on the name being xml_parsed_content. In every case I think the new code is cleaner.

Also tidied a few things in the midst of fixing tests that were breaking:

  • line width lint applied to get_assignment_symbols and get_function_assignments in object_usage_linter
  • global_parsed_content in utils is unused. Also, it's wrong (it should be source_file$full_parsed_content), so I just deleted it.
  • minor typo in some test files: someComplicatedFunctionWithALongCameCaseName -> someComplicatedFunctionWithALongCamelCaseName

TODO:

  • Test against downstream goodpractice

tested both CRAN & GitHub master:

install.packages('goodpractice')
tools::testInstalledPackage('goodpractice')

# restart
remotes::install_github("MangoTheCat/goodpractice")
tools::testInstalledPackage('goodpractice')

Both passed

@MichaelChirico MichaelChirico mentioned this pull request Nov 28, 2020

@AshesITR AshesITR left a comment

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.

Thanks, LGTM

@MichaelChirico
MichaelChirico merged commit 92c2a9c into master Nov 28, 2020
@MichaelChirico
MichaelChirico deleted the is-full-file branch November 28, 2020 21:59
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.

Need a better way to skip when XML parse fails

2 participants