paint-brush
How to Configure Rubocop in Code Baseby@shlokashah
2,722 reads
2,722 reads

How to Configure Rubocop in Code Base

by Shloka Shah7mSeptember 26th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Why do we need Rubocop? Creating a Standard: There are various patterns in which developers write code. To harmonize the coding style, we can use Rubocop. By enabling and disabling rules with Rubocop, we can discuss with the team what good practices we need to follow. Ease the process of understanding & reviewing code: Sometimes, when a PR is sent for review, the reviewer might spend time commenting on the code style/format, such as extra whitespaces and missing lines at the end. By integrating Rubocop into pre-commit hooks and GitHub Actions, the developer can be made aware of offenses even before the PR is reviewed. Best Practices: As Ruby beginners, we may not be aware of the practices used by the Ruby community. In the form of various gems, Rubocop provides us with an excellent starting point for understanding all of them.

People Mentioned

Mention Thumbnail
featured image - How to Configure Rubocop in Code Base
Shloka Shah HackerNoon profile picture
Shloka Shah

Shloka Shah

@shlokashah

Sharing My Learning & Experiences | SDE II @ HackerRank

About @shlokashah
LEARN MORE ABOUT @SHLOKASHAH'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Shloka Shah HackerNoon profile picture
Shloka Shah@shlokashah
Sharing My Learning & Experiences | SDE II @ HackerRank

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite