Giter Site home page Giter Site logo

Comments (5)

renkun-ken avatar renkun-ken commented on May 19, 2024 1

@steveped You should edit ~/.lintr.

from vscode-r.

Ikuyadeu avatar Ikuyadeu commented on May 19, 2024

@hafen I didn't know that, and I'll try.
Thank you for your good information!

from vscode-r.

hafen avatar hafen commented on May 19, 2024

👍 Thanks for looking into it and making this extension.

from vscode-r.

Ikuyadeu avatar Ikuyadeu commented on May 19, 2024

@hafen , new this extension 0.5.0 supported folder's lintr by settings r.lintr.isPackages to true.
However, supporting .lintr is still on TODO yet.
Please change r.lintr.linter in setting.json until support.
Such as

 "r.lintr.linters": "with_defaults(line_length_linter(100))"

from vscode-r.

smped avatar smped commented on May 19, 2024

I currently have this issue on Ubuntu 18.04 using lintr 2.0.1 and R4.0.3. On a separate Windows machine with an WSL installation running Ubuntu 20.04 and R4.1.x the situation is identical.

cat ~/.vscode/extensions/ikuyadeu.r-2.0.0/R/.lintr 
linters: with_defaults(
  line_length_linter(120),
  cyclocomp_linter = NULL,
  object_name_linter = NULL,
  object_usage_linter = NULL)

I'm getting problems detected such as:

Lines should not be more than 80 characters
Variable and function name style should be snake_case

Changing the values in the .lintr file makes no difference. Linting manually using lintr::lint("path/to/file") behaves as expected.

from vscode-r.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.