Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Jim Hester
    @jimhester
    :+1:
    Dragoș Moldovan-Grünfeld
    @dragosmg
    :wave:
    Gabriela de Queiroz
    @gdequeiroz
    I have a question regarding the object_length_linter. It looks like the default value is 20. But I'm getting: "Variable and function names should not be longer than 30 characters." Am I missing something here?
    Jim Hester
    @jimhester
    Are you sure you didn't change the default value, in a .lintr file or in your editor configuration?
    Gabriela de Queiroz
    @gdequeiroz
    @jimhester this is what I have on my .lintr
    linters: with_defaults(line_length_linter(120))
    exclusions: list("inst/doc/creating_linters.R" = 1, "inst/example/bad.R", "tests/testthat/exclusions-test")
    I'm using RStudio.
    This came up when I was testing the issue #315
    Is this expected @jimhester?
    Jim Hester
    @jimhester
    Ah, yes we should probably make them consistent, probably changing the default argument to 30 makes sense
    Dragoș Moldovan-Grünfeld
    @dragosmg
    Hiya. I did a bit of work on issue 325. Should I submit a pull request? What's the practice - do I need to assign that to anyone?
    Jim Hester
    @jimhester
    Yes, please submit a PR for it
    Dragoș Moldovan-Grünfeld
    @dragosmg
    :thumbsup:
    Evan Van Dam
    @evandam
    Hi all! I was wondering if anyone know's when we can expect to see the next release of lintr in CRAN? I'm currently working on a Jenkins pipeline for an R application and having checkstyle_output would be great to have!
    Russ Hyde
    @russHyde
    I'm going to do a bit of labelling of the open issues.
    Jim Hester
    @jimhester
    @russHyde awesome, thanks!
    Russ Hyde
    @russHyde
    I noticed there is a couple of issues that appear to already have been resolved, eg, #149
    arekbee
    @arekbee
    when I can expect to fix the buidl errors for master branch ? https://travis-ci.org/jimhester/lintr/builds/491369124
    Jim Hester
    @jimhester
    They are now fixed (jimhester/lintr@e65804d)
    Russ Hyde
    @russHyde
    Hi @jimhester . I noticed that lintr is mentioned on this awesome-list for static analysis tools: https://github.com/mre/awesome-static-analysis . It's stated that lintr is proprietary software: "©️ stands for proprietary software. All other tools are Open Source." I questioned the author about this, thinking, since lintr is on an MIT license it was open source, here mre/awesome-static-analysis#234 . Would you be able to comment on that issue, please.
    arekbee
    @arekbee
    hi @jimhester, could you approve me pull-req jimhester/lintr#360 please or I should do something more?
    Russ Hyde
    @russHyde
    Hi all / @jimhester , I'm doing a talk at Edinburgh R users group on lintr and one of my tools. Do you pronounce it "Lint R" or "Linter"? Are there any particular stumbling blocks for beginners when they first use lintr? (Apologies if this is the wrong venue for non-issues)
    Jim Hester
    @jimhester
    I think either pronunciation is fine, I think when I first wrote it I pronounced it more as "linter", but these days I tend to say "lint R", since that is how I now say other packages like "dply-R", "tidy-R", "knit-R" etc.
    I don't really know of any particular stumbling blocks, but if you come up with some let me know!
    Russ Hyde
    @russHyde
    Thanks
    Russ Hyde
    @russHyde
    Looks like it's been a busy day; there's about 20 less issues than yesterday
    Jim Hester
    @jimhester
    CRAN is making me do a lintr release for a regression in R-devel, so I decided I should work on getting the devel version on CRAN
    benoit
    @BenoitLondon
    Hi is there any doc on how to use all new linters? I understand I have to use with_defaults( <list all linters not in defaults>) ?
    Also the new linter space between right parenthesis and curly brace is nice for if () {but not so much for function(){}as Rstudio diagnostics complains for ifs but not for functions
    benoit
    @BenoitLondon
    aka paren_brace_linter
    benoit
    @BenoitLondon
    could it have an option to disable for function definitions?
    also the undesirable function there is
    $ifelse
    [1] "use an if () {} else {} block"
    I do not get the hint how is the suggested alternative vectorized?
    Jim Hester
    @jimhester
    It is not vectorized, but very often people misuse ifelse when they should be using if else
    Jim Hester
    @jimhester
    @russHyde I need to do a lintr release by friday, so if you think there are any outstanding issues that would be useful to address now would be a good time to work on them
    Russ Hyde
    @russHyde
    No problem. The only other thing I'd been working on was a pretty big change with @joaopmatias . There's no way that I can finish that pull request by Friday.
    Jim Hester
    @jimhester
    Ok, sounds good, no big deal if that doesn't make it into this release
    rahulrachh
    @rahulrachh

    Is there a way to get custom output of lintr in R in the cmd ?

    I know there exist a function that will give me the output in XML. I was wondering is it possible to change the output I get in cmd.
    For e.g CMD output gives me:
    path/of/file:row:col:,essage-type:message
    Can this be modified to:
    LINE:row:message-type:message?
    That is what I am asking.
    I am using:
    R - 3.6.3 - 32-bit
    lintr - 2.0.1

    Jim Hester
    @jimhester
    @rahulrachh what lintr returns is an R object, so you can print it in any way you like by writing a custom print method
    rahulrachh
    @rahulrachh
    ok thanks @jimhester that was helpful
    Dragoș Moldovan-Grünfeld
    @dragosmg