Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Rubocop you personal lint assistant
Search
Pritesh Jain
April 04, 2015
Programming
0
170
Rubocop you personal lint assistant
Rubocop, Ruby static code analyzer.
Pritesh Jain
April 04, 2015
Tweet
Share
More Decks by Pritesh Jain
See All by Pritesh Jain
Rails 5 Changes.
priteshjain
1
69
Tips and Tricks to make RubyonRails webpage response Faster
priteshjain
2
140
Other Decks in Programming
See All in Programming
Exploring the Implementation of “t.Run”, “t.Parallel”, and “t.Cleanup”
akarin
1
130
SwiftUIで使いやすいToastの作り方 / How to build a Toast system which is easy to use in SwiftUI
lovee
3
170
Scalable Customer Journey Orchestration (CJO)
lewuathe
0
420
FigmaとPHPで作る1ミリたりとも表示崩れしない最強の帳票印刷ソリューション
ttskch
43
19k
Code Reviews
bkuhlmann
4
900
Node.js v22 で変わること
yosuke_furukawa
PRO
12
4k
業務ツールとして使うPostman
msys75
0
110
スクラムガイドのスプリントレトロスペクティブを改めて読みかえしてみた / Re-reading the Sprint Retrospective Section in the Scrum Guide
mackey0225
3
490
はてなにおける CSS Modules、及び CSS Modules に足りないもの / CSS Modules in Hatena, and CSS Modules missing parts
mizdra
7
990
CDKコントリビュートの最初の壁を越えよう! -簡単issueの見つけ方-
badmintoncryer
3
220
Java 22 Overview
kishida
1
200
障害対応を起点としたもっといい開発と運用のサイクル作りのためにできること / Hatena Enginner Seminar #29
polamjag
0
390
Featured
See All Featured
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
21
1.6k
Become a Pro
speakerdeck
PRO
13
4.6k
Rails Girls Zürich Keynote
gr2m
91
13k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
12
1k
Testing 201, or: Great Expectations
jmmastey
30
6.4k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
228
16k
YesSQL, Process and Tooling at Scale
rocio
165
13k
Building Flexible Design Systems
yeseniaperezcruz
320
37k
Designing the Hi-DPI Web
ddemaree
276
33k
GraphQLとの向き合い方2022年版
quramy
33
12k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
126
32k
4 Signs Your Business is Dying
shpigford
176
21k
Transcript
Rubocop Ruby static code analyzer
None
Cops - Style - check for stylistics problems in your
code - Lint - check for possible errors and very bad practices in your code
How to - gem install rubocop - cd yourapp -
rubocop app or - rubocop lib/app.rb - rubocop --auto-correct
Usage
References https://github.com/bbatsov/rubocop http://blog.crowdint.com/2013/11/29/improve- your-ruby-syntax-with-rubocop.html http://www.refactorcop.com/
https://github.com/troessner/reek https://github.com/presidentbeef/brakeman https://github.com/mmozuras/pronto Thank You By - Pritesh Jain @priteshjrocks
More useful references