Hacker News new | past | comments | ask | show | jobs | submit login
Using Bash to Automate Rubocop Fixes (krmannix.com)
20 points by kevinmannix on Dec 13, 2019 | hide | past | favorite | 3 comments



Naive question: given that this is obviously being done on a system with Ruby, why not just write the script in Ruby instead of bash?


rubocop is so over the top in pendantics that writing any ruby code that gets nit picked by it is so painful that it makes more sense to just switch languages.


Couldn't the script just not have rubocopy run on it? I'm mainly wondering because although I don't primarily code in Ruby anymore, it's still my go-to choice for when I need to write a script. My personal rule is that I switch from bash to a general-purpose scripting language as soon as I need either control flow or string manipulation.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: