Replies: 7 comments 12 replies
-
Yes I agree it’s a good thing. Just makes code more readable overall. |
Beta Was this translation helpful? Give feedback.
-
I agree that linters are great when there are a number of contributors. When you're onboarding, it helps to know that your code style is one less thing to worry about because the computer will flag anything that doesn't align. |
Beta Was this translation helpful? Give feedback.
-
I use lintr and while I find it extremely helpful overall, about once a month I choose to ignore its suggestions -- e.g., I often find it helpful to type "things that look like code" in comments, and lintr will complain about that (here is an example where I ran into this recently). Overall, I find it to be extremely helpful, though. I guess my suggestion is that we use lintr but allow for occasional thoughtful overrides of its complaints. |
Beta Was this translation helpful? Give feedback.
-
Regarding linting, what I've done so far through What I haven't implemented though is @bsweger's suggestion of adding a standard hubverse This would probably be a good next step to give ourselves some leeway as it's quite irritating for linters to throw errors for e.g. long urls. Here's a link to a draft |
Beta Was this translation helpful? Give feedback.
-
Another tool I quite like to use too as it takes care of of many of the indentation/long lines linting issues it the |
Beta Was this translation helpful? Give feedback.
-
For visibility, moving some questions here that I asked in Slack (sorry 😅 !) Very excited for our glorious future of linting! A few questions about roll-out and "enforcement":
|
Beta Was this translation helpful? Give feedback.
-
After being half way through the linting process with hubUtils, just wanted to revisit this dicsussion as I'm not 100% sure this is providing more value than it's worth for us currently. A large part of fixes seem to be false positives of the I'm not sure what to suggest here but the enforcement of lintr atm is requiring our code to be peppered all over the place with There have been some useful issues picked up but unfortunately these have been few and far between. Would welcome thoughts |
Beta Was this translation helpful? Give feedback.
-
Would it make sense to implement (sooner rather than later) lintr for the hubverse packages? I have it set up on another package (with thanks to Hugo Gruson who contributed it) and it seems to enforce more consistent stylistic practices. Seems like it'd be good when we have lots of people contributing code.
Beta Was this translation helpful? Give feedback.
All reactions