Skip to content

Commit

Permalink
Merge pull request #1 from jimhester/lintr-2.0.0
Browse files Browse the repository at this point in the history
Set the path to adapalint via system.file
  • Loading branch information
maxconway authored Oct 4, 2019
2 parents 1dba1cd + 4659c9d commit 9e826f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-basics.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
context("basics")

adaptalint_path <- '.'
adaptalint_path <- system.file(package = "adaptalint")
filepath <- system.file('extdata', 'styles.R', package='adaptalint')

test_that("exports are correct", {
Expand Down

2 comments on commit 9e826f6

@lintr-bot
Copy link

Choose a reason for hiding this comment

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

/home/travis/build/maxconway/adaptalint/adaptalint.Rcheck/adaptalint/extdata/styles.R:16:42: style: There should be a space between right parenthesis and an opening curly brace.

extract_package_style <- function(package){
                                         ^~

/home/travis/build/maxconway/adaptalint/adaptalint.Rcheck/adaptalint/extdata/styles.R:50:35: style: There should be a space between right parenthesis and an opening curly brace.

extract_style <- function(filename){
                                  ^~

/home/travis/build/maxconway/adaptalint/adaptalint.Rcheck/adaptalint/extdata/styles.R:75:69: style: There should be a space between right parenthesis and an opening curly brace.

lint_package_with_style <- function(package, style, threshold = 0.01){
                                                                    ^~

/home/travis/build/maxconway/adaptalint/adaptalint.Rcheck/adaptalint/extdata/styles.R:78:9: style: Only use double-quotes.

​    `$`('linter')
        ^~~~~~~~

/home/travis/build/maxconway/adaptalint/adaptalint.Rcheck/adaptalint/extdata/styles.R:80:22: style: Only use double-quotes.

baselinters <- get('settings', envir = asNamespace('lintr'),
                     ^~~~~~~~~~

/home/travis/build/maxconway/adaptalint/adaptalint.Rcheck/adaptalint/extdata/styles.R:80:54: style: Only use double-quotes.

baselinters <- get('settings', envir = asNamespace('lintr'),
                                                     ^~~~~~~

/home/travis/build/maxconway/adaptalint/adaptalint.Rcheck/adaptalint/extdata/styles.R:110:62: style: There should be a space between right parenthesis and an opening curly brace.

lint_with_style <- function(filename, style, threshold = 0.01){
                                                             ^~

/home/travis/build/maxconway/adaptalint/adaptalint.Rcheck/adaptalint/extdata/styles.R:113:9: style: Only use double-quotes.

​    `$`('linter')
        ^~~~~~~~

/home/travis/build/maxconway/adaptalint/adaptalint.Rcheck/adaptalint/extdata/styles.R:115:22: style: Only use double-quotes.

baselinters <- get('settings', envir = asNamespace('lintr'),
                     ^~~~~~~~~~

/home/travis/build/maxconway/adaptalint/adaptalint.Rcheck/adaptalint/extdata/styles.R:115:54: style: Only use double-quotes.

baselinters <- get('settings', envir = asNamespace('lintr'),
                                                     ^~~~~~~

@lintr-bot
Copy link

Choose a reason for hiding this comment

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

/home/travis/build/maxconway/adaptalint/adaptalint.Rcheck/adaptalint/extdata/styles.R:16:42: style: There should be a space between right parenthesis and an opening curly brace.

extract_package_style <- function(package){
                                         ^~

/home/travis/build/maxconway/adaptalint/adaptalint.Rcheck/adaptalint/extdata/styles.R:50:35: style: There should be a space between right parenthesis and an opening curly brace.

extract_style <- function(filename){
                                  ^~

/home/travis/build/maxconway/adaptalint/adaptalint.Rcheck/adaptalint/extdata/styles.R:75:69: style: There should be a space between right parenthesis and an opening curly brace.

lint_package_with_style <- function(package, style, threshold = 0.01){
                                                                    ^~

/home/travis/build/maxconway/adaptalint/adaptalint.Rcheck/adaptalint/extdata/styles.R:78:9: style: Only use double-quotes.

​    `$`('linter')
        ^~~~~~~~

/home/travis/build/maxconway/adaptalint/adaptalint.Rcheck/adaptalint/extdata/styles.R:80:22: style: Only use double-quotes.

baselinters <- get('settings', envir = asNamespace('lintr'),
                     ^~~~~~~~~~

/home/travis/build/maxconway/adaptalint/adaptalint.Rcheck/adaptalint/extdata/styles.R:80:54: style: Only use double-quotes.

baselinters <- get('settings', envir = asNamespace('lintr'),
                                                     ^~~~~~~

/home/travis/build/maxconway/adaptalint/adaptalint.Rcheck/adaptalint/extdata/styles.R:110:62: style: There should be a space between right parenthesis and an opening curly brace.

lint_with_style <- function(filename, style, threshold = 0.01){
                                                             ^~

/home/travis/build/maxconway/adaptalint/adaptalint.Rcheck/adaptalint/extdata/styles.R:113:9: style: Only use double-quotes.

​    `$`('linter')
        ^~~~~~~~

/home/travis/build/maxconway/adaptalint/adaptalint.Rcheck/adaptalint/extdata/styles.R:115:22: style: Only use double-quotes.

baselinters <- get('settings', envir = asNamespace('lintr'),
                     ^~~~~~~~~~

/home/travis/build/maxconway/adaptalint/adaptalint.Rcheck/adaptalint/extdata/styles.R:115:54: style: Only use double-quotes.

baselinters <- get('settings', envir = asNamespace('lintr'),
                                                     ^~~~~~~

Please sign in to comment.