#rubocop

Run RuboCop on git commit with Overcommit Gem

Published by Prabin Poudel 6 min read
cover: Run RuboCop on git commit with Overcommit Gem
How do you make sure every member in your team follows best coding practices and never commits code with issues to remote repository? Answer is overcommit gem and git hooks. You can configure overcommit gem to run RuboCop on modified codes before committing those code to git

Beginner's Guide to RuboCop in Rails

Published by Prabin Poudel 12 min read
cover: Beginner's Guide to RuboCop in Rails
RuboCop is a static code analyzer which analyzes the code based on the best practices followed by the Ruby developers around the world and defined on the community Ruby style guide. In this article, we will learn: What is RuboCop? Why use RuboCop? and installing RuboCop in Rails.

Integrate Pronto with Gitlab CI for Rails App

Published by Prabin Poudel 7 min read
cover: Integrate Pronto with Gitlab CI for Rails App
There are multiple ways to fix missing top level class documentation comment in Rubocop. You can disable it in your whole app with by disabling cop in the whole project, disable it in one class or just add a comment above the class declaration.

Rubocop Configuration Files for Rails

Published by Prabin Poudel 5 min read
cover: Rubocop Configuration Files for Rails
Rubocop is a linter for Rails. Rubocop helps in enforcing best practices for Ruby and Rails. It helps in maintaining consistency throughout the project. It also has option for autoformatting the code based on the configurations.

[Fix] Missing top level class documentation comment Rubocop

Published by Prabin Poudel 2 min read
cover: [Fix] Missing top level class documentation comment Rubocop
There are multiple ways to fix missing top level class documentation comment in Rubocop. You can disable it in your whole app with by disabling cop in the whole project, disable it in one class or just add a comment above the class declaration.