{"id":5886,"date":"2020-09-08T11:05:52","date_gmt":"2020-09-08T02:05:52","guid":{"rendered":"https:\/\/yumishin.com\/?p=5886"},"modified":"2020-09-08T11:05:52","modified_gmt":"2020-09-08T02:05:52","slug":"rubocop","status":"publish","type":"post","link":"https:\/\/yumishin.com\/?p=5886","title":{"rendered":"Rails6\u306brubocop-airbnb\u3092\u5165\u308c\u305f\u3089node_modules\u304c\u898f\u7d04\u306b\u5f15\u3063\u304b\u304b\u308b\u6642\u306e\u5bfe\u51e6"},"content":{"rendered":"<p>rubocop-airbnb\u3092Rails6\u306b\u5c0e\u5165\u3057\u305f\u3068\u3053\u308d\u3001Error\u304c\u767a\u751f\u3057\u3066\u3044\u308b\u7b87\u6240\u304c\u3002Lint\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u5bfe\u51e6\u6cd5\u3092\u307e\u3068\u3081\u3066\u304a\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h2 id=\"i-0\">Rails6\u306brubocop-airbnb\u3092\u5165\u308c\u305f\u3089node_modules\u304c\u898f\u7d04\u306b\u5f15\u3063\u304b\u304b\u308b\u6642\u306e\u5bfe\u51e6<\/h2>\n<p>\u7d50\u8ad6\u304b\u3089\u8a00\u3046\u3068node_modules\u3092rubocop\u306e\u30b3\u30fc\u30c9\u30c1\u30a7\u30c3\u30af\u306e\u5185\u5bb9\u304b\u3089\u5916\u3059\u305f\u3081\u306b\u4ee5\u4e0b\u306e\u8a18\u8ff0\u3092.rubocop.yml\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<div class=\"pre_tag\"><span><i class=\"fa fa-code\"><\/i> \u30b3\u30fc\u30c9<\/span><\/p>\n<pre><code>AllCops:\n  Exclude:\n    - 'db\/**\/*'\n    - 'bin\/**\/*'\n    - 'config\/environments\/*'\n    - 'config\/application.rb'\n    - 'config\/initializers\/*'\n    - 'config\/spring.rb'\n    - 'lib\/**\/*'\n    - 'vendor\/**\/*'\n    - 'path\/ruby'\n    - 'node_modules\/**\/*' #=&gt;\u3053\u308c\u3092\u8ffd\u52a0<\/code><\/pre>\n<\/div>\n<p>\u3053\u308c\u3067\u3046\u307e\u304f\u30b3\u30fc\u30c9\u898f\u7d04\u306b\u5f15\u3063\u304b\u304b\u3089\u305a\u306b\u9032\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<p>\u7d50\u5c40\u76f4\u3059\u5fc5\u8981\u304c\u306a\u3044\u90e8\u5206\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u3057\u307e\u3063\u3066\u3044\u308b\u304b\u3089\u3001\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u308b\u3060\u3051\u3068\u8a00\u3046\u3053\u3068\u3067\u3059\u306d\u3002\u7d20\u76f4\u306b\u30c1\u30a7\u30c3\u30af\u3057\u306a\u3044\u3088\u3046\u306b\u3057\u3066\u3042\u3052\u308c\u3070OK\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>rubocop-airbnb\u3092Rails6\u306b\u5c0e\u5165\u3057\u305f\u3068\u3053\u308d\u3001Error\u304c\u767a\u751f\u3057\u3066\u3044\u308b\u7b87\u6240\u304c\u3002Lint\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u5bfe\u51e6\u6cd5\u3092\u307e\u3068\u3081\u3066\u304a\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002 Rails6\u306brubocop-airbnb\u3092\u5165\u308c\u305f\u3089n &#8230; <\/p>\n","protected":false},"author":1,"featured_media":5670,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[272],"tags":[],"class_list":{"0":"post-5886","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-programing","8":"entry"},"_links":{"self":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts\/5886","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5886"}],"version-history":[{"count":1,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts\/5886\/revisions"}],"predecessor-version":[{"id":5887,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts\/5886\/revisions\/5887"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/media\/5670"}],"wp:attachment":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5886"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5886"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5886"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}