Browse Source

Try out lintr, pre-commit hooks

master
Lukas Burk 1 year ago
parent
commit
cb4000c4e3
Signed by: lukas GPG Key ID: 044E8B20BB186F81
3 changed files with 14 additions and 0 deletions
  1. +2
    -0
      .Rbuildignore
  2. +1
    -0
      .lintr
  3. +11
    -0
      .pre-commit-config.yaml

+ 2
- 0
.Rbuildignore View File

@ -22,3 +22,5 @@
^tRakt.*\.tgz$
^vignettes/Implemented-API-methods\.Rmd$
^api-methods\.yml$
^\.lintr$
^\.pre-commit-config\.yaml$

+ 1
- 0
.lintr View File

@ -0,0 +1 @@
linters: with_defaults(line_length_linter(100))

+ 11
- 0
.pre-commit-config.yaml View File

@ -0,0 +1,11 @@
repos:
- repo: https://github.com/lorenzwalthert/pre-commit-hooks
rev: v0.0.0.9016
hooks:
# - id: style-files
- id: parsable-R
- id: no-browser-statement
# - id: readme-rmd-rendered
- id: roxygenize
- id: use-tidy-description
# - id: lintr

Loading…
Cancel
Save