{"url":"https://pocke.hatenablog.com/entry/2019/12/21/000107","categories":["RuboCop","Ruby","Programming","\u4f5c\u3063\u305f\u3082\u306e"],"height":"190","author_url":"https://blog.hatena.ne.jp/Pocke/","published":"2019-12-21 00:01:07","title":"rubocop-rubycw\u3068\u306f","author_name":"Pocke","type":"rich","provider_name":"Hatena Blog","blog_title":"pockestrap","image_url":null,"width":"100%","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpocke.hatenablog.com%2Fentry%2F2019%2F12%2F21%2F000107\" title=\"rubocop-rubycw\u3068\u306f - pockestrap\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://pocke.hatenablog.com/","description":"github.com TL;DR ruby -cw \u3092RuboCop\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3067\u6271\u3046\u305f\u3081\u306egem ruby -cw\u3068\u306f ruby\u306e\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30aa\u30d7\u30b7\u30e7\u30f3\u3002 -c\u3092\u4ed8\u3051\u308b\u3068\u3001Ruby\u306f\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u305b\u305a\u3001\u69cb\u6587\u306e\u30c1\u30a7\u30c3\u30af\u306e\u307f\u3092\u884c\u3046\u3002 -c check syntax only -w\u3092\u4ed8\u3051\u308b\u3068\u3001Ruby\u306f\u898b\u3064\u3051\u305f\u8b66\u544a\u3092\u3059\u3079\u3066\u5831\u544a\u3059\u308b\u3088\u3046\u306b\u306a\u308b\u3002 -w turn warnings on for your script \u306a\u304a\u3001ruby -cw\u3067\u306f\u30d1\u30fc\u30b9\u6642\u306e\u30a8\u30e9\u30fc\u3057\u304b\u767a\u898b\u3067\u304d\u305a\u3001\u5b9f\u884c\u6642\u306e\u30a8\u30e9\u30fc\u306f\u5f53\u7136\u306a\u304c\u3089\u767a\u898b\u3055\u308c\u306a\u3044\u3002 # test.rb File.exists?('foo') ruby -w te\u2026","version":"1.0"}