-
Notifications
You must be signed in to change notification settings - Fork 15
codespell-driven fixup of typos throughout + codespell workflow to catch them in the future #428
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
Conversation
I would be very reluctant to introduce a spell checker for the code. Comments and .md files are one thing that makes sense to check, but changing variable names within the code will likely produce undesirable effects like increasing line lengths in some scenarios (which would violate Rubocop rules and code readability) and potentially renaming a variable within a nested block so that it matches a variable declared outside the block. For example something like:
Would get changed to
|
I do understand the hesitance ;) note that
Having said that - indeed this PR first should be carefully reviewed to not skip any code alternation which could have had undesired effect. I did check as carefully as I could but I'm not a ruby developer. So, overall - it is all up to you: can analyze and express desires on what to tune up, can ignore and close and carry on as it never happened (thus with all the typos), can do something in the middle of that spectrum ;) I just didn't want to pass by whenever spotted a respectful number of hits. |
thanks. I'll have a look in more detail to assess the proposed changes. Some of our test coverage isn't what it should be, so I'm always a bit paranoid when I see so many files updated ;) |
Don't you worry, I have plenty of similar paranoidal changefobias, so "I hear you" and would be happy to see if you find anything I missed while going through the diff ;) |
nevertheless I would like to ping on your opinion on this PR before I jump to address conflicts -- the longer it stays undecided, the more effort should be invested to make dmptool gloriously-free-of-typos. |
@yarikoptic can you modify the codepsellrc file to skip files in Those files are auto-generated by Translation.io for us so modifying in this way circumvents that workflow. The strings contained in those files are extracted from the rest of the codebase and then pushed up to Translation.io where our partners translate new strings. Since codespell will fix the typos in the other files, the corrections will eventually propagate into the locale files. |
…ran across entire repo reworked while unapplying locale fixes
=== Do not change lines below === { "chain": [ "3bf9ab10b3f6a00cd47b55f190d9ab6490f86fda" ], "cmd": "git sedi requirments requirements", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^
=== Do not change lines below === { "chain": [ "663a7bd399e659602ca2cff5c9fafe64f10fff8f" ], "cmd": "git sedi recepient recipient", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^
=== Do not change lines below === { "chain": [], "cmd": "codespell -w", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^
8f65628
to
22ea6a2
Compare
done. FWIW, I liked how I managed to redo the RUNCMD automated ones I did via datalad-run, I just created following |
@briri -- what we will do with this PR since I would be able to keep readjusting forever. |
qs = @plan.questions.select { |q| q.themes.collect(&:title).include?(theme) } | ||
descr = qs.map do |q| | ||
a = @plan.answers.select { |ans| ans.question_id = q.id }.first | ||
a = @plan.answers.select { |answer| answer.question_id = q.id }.first |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ping on this one -- is this legit change or should I keep ans
here? I do not know ruby
how much will you be able to review to have that portion merged? I could go "piece meal" way |
apologies @yarikoptic I am a team of one at the moment and just do not have the bandwidth for this one. You might consider contributing to the DMPRoadmap parent repository though as it will reach a broader audience |
git grep
and then applyingsed
(see commit msgs)