jumpingrivers / HIBPwned

R Package 📦 for using the HaveIBeenPwned.com API :scream:
http://jumpingrivers.github.io/HIBPwned/
Other
13 stars 4 forks source link

Update breached_site.R #30

Closed maelle closed 6 years ago

lintr-bot commented 6 years ago

R/breached_site.R:14:1: style: lines should not be more than 80 characters.

​  if(is.null(name)|length(name)!= 1|!inherits(name,"character")){stop("Problematic breach name")}
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

R/breached_site.R:14:5: style: Place a space before left parenthesis, except in a function call.

​  if(is.null(name)|length(name)!= 1|!inherits(name,"character")){stop("Problematic breach name")}
    ^

R/breached_site.R:14:19: style: Put spaces around all infix operators.

​  if(is.null(name)|length(name)!= 1|!inherits(name,"character")){stop("Problematic breach name")}
                 ~^~

R/breached_site.R:14:32: style: Put spaces around all infix operators.

​  if(is.null(name)|length(name)!= 1|!inherits(name,"character")){stop("Problematic breach name")}
                              ~^

R/breached_site.R:14:36: style: Put spaces around all infix operators.

​  if(is.null(name)|length(name)!= 1|!inherits(name,"character")){stop("Problematic breach name")}
                                  ~^~

R/breached_site.R:14:52: style: Commas should always have a space after.

​  if(is.null(name)|length(name)!= 1|!inherits(name,"character")){stop("Problematic breach name")}
                                                   ^

R/breached_site.R:14:65: style: Opening curly braces should never go on their own line and should always be followed by a new line.

​  if(is.null(name)|length(name)!= 1|!inherits(name,"character")){stop("Problematic breach name")}
                                                                ^

R/breached_site.R:14:97: style: Closing curly-braces should always be on their own line, unless it's followed by an else.

​  if(is.null(name)|length(name)!= 1|!inherits(name,"character")){stop("Problematic breach name")}
                                                                                                ^

R/utils.R:11:13: warning: no visible global function definition for ‘get_and_retry’

​  output <- get_and_retry(URLS, headers, verbose)
            ^~~~~~~~~~~~~

R/utils.R:24:15: warning: no visible global function definition for ‘get_and_retry’

​    output <- get_and_retry(URLS, headers, verbose)
              ^~~~~~~~~~~~~
lintr-bot commented 6 years ago

R/breached_site.R:14:1: style: lines should not be more than 80 characters.

​  if(is.null(name)|length(name)!= 1|!inherits(name,"character")){stop("Problematic breach name")}
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

R/breached_site.R:14:5: style: Place a space before left parenthesis, except in a function call.

​  if(is.null(name)|length(name)!= 1|!inherits(name,"character")){stop("Problematic breach name")}
    ^

R/breached_site.R:14:19: style: Put spaces around all infix operators.

​  if(is.null(name)|length(name)!= 1|!inherits(name,"character")){stop("Problematic breach name")}
                 ~^~

R/breached_site.R:14:32: style: Put spaces around all infix operators.

​  if(is.null(name)|length(name)!= 1|!inherits(name,"character")){stop("Problematic breach name")}
                              ~^

R/breached_site.R:14:36: style: Put spaces around all infix operators.

​  if(is.null(name)|length(name)!= 1|!inherits(name,"character")){stop("Problematic breach name")}
                                  ~^~

R/breached_site.R:14:52: style: Commas should always have a space after.

​  if(is.null(name)|length(name)!= 1|!inherits(name,"character")){stop("Problematic breach name")}
                                                   ^

R/breached_site.R:14:65: style: Opening curly braces should never go on their own line and should always be followed by a new line.

​  if(is.null(name)|length(name)!= 1|!inherits(name,"character")){stop("Problematic breach name")}
                                                                ^

R/breached_site.R:14:97: style: Closing curly-braces should always be on their own line, unless it's followed by an else.

​  if(is.null(name)|length(name)!= 1|!inherits(name,"character")){stop("Problematic breach name")}
                                                                                                ^

R/utils.R:11:13: warning: no visible global function definition for ‘get_and_retry’

​  output <- get_and_retry(URLS, headers, verbose)
            ^~~~~~~~~~~~~

R/utils.R:24:15: warning: no visible global function definition for ‘get_and_retry’

​    output <- get_and_retry(URLS, headers, verbose)
              ^~~~~~~~~~~~~
lintr-bot commented 6 years ago

R/breached_site.R:14:1: style: lines should not be more than 80 characters.

​  if(is.null(name)|length(name)!= 1|!inherits(name,"character")){stop("Problematic breach name")}
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

R/breached_site.R:14:5: style: Place a space before left parenthesis, except in a function call.

​  if(is.null(name)|length(name)!= 1|!inherits(name,"character")){stop("Problematic breach name")}
    ^

R/breached_site.R:14:19: style: Put spaces around all infix operators.

​  if(is.null(name)|length(name)!= 1|!inherits(name,"character")){stop("Problematic breach name")}
                 ~^~

R/breached_site.R:14:32: style: Put spaces around all infix operators.

​  if(is.null(name)|length(name)!= 1|!inherits(name,"character")){stop("Problematic breach name")}
                              ~^

R/breached_site.R:14:36: style: Put spaces around all infix operators.

​  if(is.null(name)|length(name)!= 1|!inherits(name,"character")){stop("Problematic breach name")}
                                  ~^~

R/breached_site.R:14:52: style: Commas should always have a space after.

​  if(is.null(name)|length(name)!= 1|!inherits(name,"character")){stop("Problematic breach name")}
                                                   ^

R/breached_site.R:14:65: style: Opening curly braces should never go on their own line and should always be followed by a new line.

​  if(is.null(name)|length(name)!= 1|!inherits(name,"character")){stop("Problematic breach name")}
                                                                ^

R/breached_site.R:14:97: style: Closing curly-braces should always be on their own line, unless it's followed by an else.

​  if(is.null(name)|length(name)!= 1|!inherits(name,"character")){stop("Problematic breach name")}
                                                                                                ^

R/utils.R:11:13: warning: no visible global function definition for ‘get_and_retry’

​  output <- get_and_retry(URLS, headers, verbose)
            ^~~~~~~~~~~~~

R/utils.R:24:15: warning: no visible global function definition for ‘get_and_retry’

​    output <- get_and_retry(URLS, headers, verbose)
              ^~~~~~~~~~~~~
lintr-bot commented 6 years ago

R/breached_site.R:14:1: style: lines should not be more than 80 characters.

​  if(is.null(name)|length(name)!= 1|!inherits(name,"character")){stop("Problematic breach name")}
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

R/breached_site.R:14:5: style: Place a space before left parenthesis, except in a function call.

​  if(is.null(name)|length(name)!= 1|!inherits(name,"character")){stop("Problematic breach name")}
    ^

R/breached_site.R:14:19: style: Put spaces around all infix operators.

​  if(is.null(name)|length(name)!= 1|!inherits(name,"character")){stop("Problematic breach name")}
                 ~^~

R/breached_site.R:14:32: style: Put spaces around all infix operators.

​  if(is.null(name)|length(name)!= 1|!inherits(name,"character")){stop("Problematic breach name")}
                              ~^

R/breached_site.R:14:36: style: Put spaces around all infix operators.

​  if(is.null(name)|length(name)!= 1|!inherits(name,"character")){stop("Problematic breach name")}
                                  ~^~

R/breached_site.R:14:52: style: Commas should always have a space after.

​  if(is.null(name)|length(name)!= 1|!inherits(name,"character")){stop("Problematic breach name")}
                                                   ^

R/breached_site.R:14:65: style: Opening curly braces should never go on their own line and should always be followed by a new line.

​  if(is.null(name)|length(name)!= 1|!inherits(name,"character")){stop("Problematic breach name")}
                                                                ^

R/breached_site.R:14:97: style: Closing curly-braces should always be on their own line, unless it's followed by an else.

​  if(is.null(name)|length(name)!= 1|!inherits(name,"character")){stop("Problematic breach name")}
                                                                                                ^

R/utils.R:11:13: warning: no visible global function definition for ‘get_and_retry’

​  output <- get_and_retry(URLS, headers, verbose)
            ^~~~~~~~~~~~~

R/utils.R:24:15: warning: no visible global function definition for ‘get_and_retry’

​    output <- get_and_retry(URLS, headers, verbose)
              ^~~~~~~~~~~~~