-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update lint config * Fix object_usage_liner problems - 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 * Ignore examples with dontrun They cause unexpected symbol lint errors. * Update docs * Fix line length lint issues - Set line length to 120 - Ignore or fix remaining cases * Fix infix_spaces_linter warnings Put spaces around all infix operators * Fix indentation issues Style the examples while ignoring those examples with `\dontrun`. * Remove end-of-file-fixer pre-commit It was screwing up .lintr file which requires a newline, and not adding much benefit otherwise. * Remove indentation_linter Indentation formatting is handled by styler. * Fix misc linter * Fix warning * Add lint * Add lint github action * Try to fix unfound symbol warning * Misc updates * Updating * Fixing
- Loading branch information
Showing
74 changed files
with
492 additions
and
343 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,4 @@ | |
^CONTRIBUTING.*$ | ||
^\.pre-commit-config\.yaml$ | ||
^CRAN-SUBMISSION$ | ||
^scripts$ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples | ||
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | ||
on: | ||
push: | ||
branches: [main, master] | ||
pull_request: | ||
branches: [main, master] | ||
|
||
name: lint | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: r-lib/actions/setup-r@v2 | ||
with: | ||
use-public-rspm: true | ||
|
||
- uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
extra-packages: any::lintr, local::. | ||
needs: lint | ||
|
||
- name: Lint | ||
run: lintr::lint_package() | ||
shell: Rscript {0} | ||
env: | ||
LINTR_ERROR_ON_LINT: true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,19 @@ | ||
linters: with_defaults(commented_code_linter = NULL, snake_case_linter = NULL, camel_case_linter = NULL, line_length_linter(80L), multiple_dots_linter = NULL) | ||
exclusions: list("./inst/examples/ex-palette_pander.R", "./inst/examples/ex-theme_economist.R") | ||
linters: linters_with_defaults( | ||
line_length_linter(120), | ||
commented_code_linter = NULL, | ||
indentation_linter = NULL | ||
) | ||
encoding: "UTF-8" | ||
exclusions: list( | ||
"./inst/exampels/ex-few_shape_pal.R", | ||
"./inst/examples/ex-calc_shape_pal.R", | ||
"./inst/examples/ex-cleveland_shape_pal.R", | ||
"./inst/examples/ex-few_shape_pal.R", | ||
"./inst/examples/ex-palette_pander.R", | ||
"./inst/examples/ex-scale_shape_stata.R", | ||
"./inst/examples/ex-scale_shape_tableau.R", | ||
"./inst/examples/ex-tableau_shape_pal.R", | ||
"./inst/examples/ex-tableau_shape_pal.R", | ||
"./inst/examples/ex-theme_calc.R", | ||
"./inst/examples/ex-theme_economist.R" | ||
) |
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.