-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Pylint alerts corrections as part of an intervention experiment #2294
Comments
The linked file is for a different package. I think this is what is relevant for us: https://github.com/evidencebp/pylint-intervention/blob/main/interventions/candidates/pvlib_pvlib-python_interventions_October_06_2024.csv Looking through the list of flags, I am inclined to decline the offer. Many of the "issues" are intentional, and compatible with the linter configuration we use. Others would be only debatable improvements, with the effort required to edit and review likely not worth the improvement IMHO.
@evidencebp I am curious, what metrics do you use? How can the benefit of fixing pylint issues be quantified? |
Thank you for the feedback, @kandersolar ! Some of the alerts are known to have limited or even no effect (e.g., line-too-long). Usually there are two types of relevant metrics. Another type of metric are process metrics, based on the development process. |
I concur with @kandersolar - most of the pylint items are "line too long" which is intentional for readability, or in the set "too many lines/branches/statements)". Squelching the "too many" set feels like refactoring modules and functions, which would be a lot of work for (my perception) little return. |
@kandersolar , @cwhanse , I respect your decision and enjoy the discussion. I agree regarding the line-too-long. Note that "too many lines/branches/statements)" is a very different case. Refactoring to split a long method into smaller ones is common enough to be implemented in IDEs. Note that the goal of the experiment is to reach a point that we will have a dataset of many clean interventions that will allow us to learn how beneficial each alert type is. |
Seems like we're not interested in pursuing this for pvlib-python, but thanks @evidencebp for the offer. |
Is your feature request related to a problem? Please describe.
Pylint alerts are correlated with tendency to bugs and harder maintenance.
Describe the solution you'd like
Fix some of the pylint alerts.
Describe alternatives you've considered
Additional context
I'd like to conduct a software engineering experiment regarding the benefit of Pylint alerts removal.
The experiment is described here.
In the experiments, Pylint is used with some specific alerts, files are selected for intervention and control.
After the interventions are done, one can wait and examine the results.
I'm asking for your approval for conducting an intervention in your repository.
See examples of interventions in stanford-oval/storm, gabfl/vault, and coreruleset/coreruleset.
You can see the planed interventions
May I do the interventions?
The text was updated successfully, but these errors were encountered: