-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help collaborate on lintr! #318
Comments
How (I hope) this will workEveryone who replies to this issue will be invited to be collaborators on the lintr project. What exactly happens if I accept? Does it mean I’ll break everything if I click the wrong button? Concretely, if you accept the invitation, this does these things:
Okay, that’s what I CAN do, but what SHOULD I do? Short answer: whatever you feel comfortable with. We do have one rule, which is the same one most F/OSS projects use: don’t merge your own PRs. We find that having another person look at each PR leads to better quality. (Exception: you may see @jimhester merging his own PRs. This happens because he is lonely and has no-one to review them for him. It would make him happy if you reviewed and – if they look good – merged his PRs.) Beyond that, it all comes down to what you feel up to. If you don’t feel like you know enough to review a complex code change, then you don’t have to – you can just look it over and make some comments, even if you don’t feel up to making the final merge/no-merge decision. Or you can just stick to merging doc fixes and adding tags to issues, that’s very helpful too. If after hanging around for a while you start to feel like you have better handle on how things work and want to start doing more, that’s excellent; if it doesn’t happen, that’s fine too. If at any point you’re unsure about whether doing something would be appropriate, feel free to ask (by posting Github comment). For example, it’s totally OK if the first time you review a PR, you want someone else to check over your work before you hit the merge button.
Tasks to perform
|
Gabriela de Queiroz |
I would like to help. |
Branko Kovac |
I am interested in helping out. |
So do you all think it would be helpful to have a gitter chat room so you could have more real time access for questions etc, or are GitHub comments enough? Ok added one https://gitter.im/jimhester-lintr/Lobby |
I'm also interested in helping out. |
Hi Jim, |
I am interested if there is still room. :) |
I would like to help as well |
Hi, a few of us from Mango might be able to muck in as it slots together quite well with mangothecat/goodpractice and friends. cc @hfrick @sellorm @owenjonesuob We use lintr heavily on lots of packages as part of ValidR (via mangothecat/packageMetrics2) |
@dougmet, that would be great, If the other Mango folks are interested please add a separate reply and I can add you to the collaborators. |
Also most of the linters in goodpractice that would be great to have in lintr, so a good first contribution would be doing that! |
I am interested in helping out as well. |
I am the author of https://github.com/REditorSupport/languageserver |
Hi @jimhester, some lintr/goodpractice crossover would be nice. 👋 |
I want to help too! 🙌 |
Hiya, great to see interest in lintr-goodpractice collaboration! I'm definitely keen to help out. |
I am late to the party but would like to help too. I hope I am not too late to join. |
I'm also keen to help. |
Never too late! |
Same here. I'd be keen to help. |
I would love to contribute. |
I'd like to help, if there's still room. |
A great first issue PR for someone to review would be #321, it mainly needs a note added to NEWS.md |
Hi @jimhester, what do you mean by "assess performance" in |
Measure how badly the performance has degraded and if possible which linters are most responsible for the degradation. Ideally with something like profvis but as a start even using download.file("https://raw.githubusercontent.com/wch/r-source/3ddb337d62817599d3cb739c8815bf2276e01511/src/library/tools/R/check.R", "check.R")
system.time(lints <- lintr::lint("check.R", cache = FALSE)) On my machine this takes ~60-70 seconds with the current CRAN version, the devel version takes about 9 minutes. So you will likely need to use a smaller file to narrow down the exact causes, but good first step is identifying the extent of the problem. |
It would be great for someone to review #326 |
We can measure the speed difference between various linters by looping over the defaults: library(lintr)
x <- list(length = length(names(lintr::default_linters)))
i <- 1
for (name in lintr::default_linters){
x[[i]] <- system.time(
lint("check.R",
linters = name,
cache = FALSE))
names(x)[i] <- names(lintr::default_linters[i])
i <- i + 1
} comparing the CRAN and github versions I get the following speeds:
So it looks to me that the three linters responsible for the slowdown are |
Happy to pitch-in if you still need helpers. |
Hi Jim, I would love to join the team. |
@jimhester I'm up for adding some linters that help adhere to the Bioconductor coding style. Also, is there an easy way to get S3 methods to pass linter checks (e.g. |
As far as I could tell from #348 , this is the place to kindly request a new release to CRAN. The discussion on #348 predates v1.0.3, which was released in November 2018. Could you please prepare another release to CRAN? I'd like to take advantage of these linters in projects that require building from package managers (not GitHub): github_only_linters <- list(
"equals_na" = lintr::equals_na_linter
, "function_left" = lintr::function_left_parentheses_linter
, "implicit_integers" = lintr::implicit_integer_linter
, "paren_brace_linter" = lintr::paren_brace_linter
, "semiconlon" = lintr::semicolon_terminator_linter
, "seq" = lintr::seq_linter
, "todo_comments" = lintr::todo_comment_linter
, "true_false" = lintr::T_and_F_symbol_linter
) Thanks very much! |
Hi, I'd like to contribute, too! |
I'd like to contribute more, thanks! |
I think this is safe to close; feel free to re-open |
As announced at https://twitter.com/jimhester_/status/997109466674819074 I am interested in having some help working on lintr. This issue can serve as a place for those interested to 'sign up' and also to discuss priorities. So reply below if you are interested and I will invite you to be a collaborator on the project.
The text was updated successfully, but these errors were encountered: