Skip to content
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

Update linter #170

Merged
merged 17 commits into from
Feb 9, 2024
Merged

Update linter #170

merged 17 commits into from
Feb 9, 2024

Conversation

jrnold
Copy link
Owner

@jrnold jrnold commented Feb 9, 2024

  • Update lintr config
  • Fix all existing issues so package lints cleanly
  • Add make lint target
  • Add github action to lint

- local variable 'classic' assigned but may not be used

excel_themes.R

Replace tidyverse package with specific packages

- no visible global funtion definition for `set_names`
- no visible global funtion definition for `flatten_chr`
- no visible global funtion definition for `str_subset`

libreoffice_palettes.R

Replace tidyverse package with specific packages

- no visible global funtion definition for `tibble`
- local variable 'name' assigned but mau not be used

tests/testthat/helper-utils.R

Add testthat library explicitly
They cause unexpected symbol lint errors.
- Set line length to 120
- Ignore or fix remaining cases
Put spaces around all infix operators
Style the examples while ignoring those
examples with `\dontrun`.
It was screwing up .lintr file which requires
a newline, and not adding much benefit otherwise.
Indentation formatting is handled by styler.
@jrnold jrnold changed the title Update lintr Update linter Feb 9, 2024
@jrnold jrnold merged commit ff59831 into main Feb 9, 2024
8 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.

1 participant