Comments (4)
Can styler be configured to break the lines?
Not yet, and it's the most upvoted feature request. #247
Can lintr be configured to allow longer lines ~100 characters
Possibly, I am not a {lintr} expert. But this should be in the docs of {lintr}. .lintr
config file is respected in our pre-commit hooks.
Maybe I am mistaken, but I don't expect any lintr errors after styler runs successfully.
True. Please open issues in {lintr} or {styler} if you have concrete problems. We are working towards compatibility.
All of the above are not {precommit} specific problems though. I just happen to work on {styler} and with contributors of {lintr} so I answered from that perspective. So these are the repos to go to if you experience problems that are unrelated to pre-commit.
from precommit.
As per the efaults are seeminlgyy different in different format checkers, {precommit} does not set any defaults, we just fall back to the defaults of {styler} and {lintr} in that case.
from precommit.
Thank you for the replies and the hint to the .lintr
config.
While these issues are indeed caused by upstream projects, the problem surfaces with their combined use in the default precommit configuration. If there is already an ongoing effort to make the two tools compatible, I don't see a reason to add additional issues. Feel free to poke around in this PR (enabling lintr) to see all the issues live - you can probably better judge what's worth reporting and what not.
from precommit.
Ok. Thanks. {styler} won't rename your variables etc. These are linting issues that can't be auto-fixed.
from precommit.
Related Issues (20)
- Roxygenize hook only looks at MRAN; alternative CRAN repos are not specifiable HOT 1
- Error: object 'never' not found on git commit HOT 10
- Different CRAN repositories for different platforms HOT 1
- precommit environment cannot be set up HOT 32
- CI fails for miniconda on Windows HOT 1
- precommit deps-in-desc hook failing after upgrade to R 4.3.0 in renv locked package HOT 12
- Don't rely on any GitHub Packages due to credential issues
- Update codemeta.json if codemeta-description-updated fails HOT 2
- style_file crashes because of docopt when processing single files with spaces in the path HOT 13
- Package digest not available for package R.cache HOT 15
- Roxygenise Hook using language: system
- Problem installing git2r via pre-commit Github Action HOT 7
- Hook execution got much slower
- detect print statements
- `roxygenize` cannot find Bioconductor pkg dependency when setting environment HOT 8
- Make updating `inst/WORDLIST` optional HOT 1
- Roxygen hook does not work with manually running (and no staging) as well as in CI HOT 1
- Automate GitHub releases
- Submit to ropensci?
- grkstyle transformer styling error HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from precommit.