rubocop-standard 1.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +20 -0
- data/README.md +24 -0
- data/STYLEGUIDE.md +763 -0
- data/config/default.yml +326 -0
- data/config/rails.yml +118 -0
- data/guides/rails-controller-render-shorthand.md +9 -0
- data/guides/rails-render-inline.md +27 -0
- data/guides/rails-render-literal.md +8 -0
- data/lib/rubocop/cop/standard/rails_application_record.rb +29 -0
- data/lib/rubocop/cop/standard/rails_controller_render_action_symbol.rb +43 -0
- data/lib/rubocop/cop/standard/rails_controller_render_literal.rb +94 -0
- data/lib/rubocop/cop/standard/rails_controller_render_paths_exist.rb +69 -0
- data/lib/rubocop/cop/standard/rails_controller_render_shorthand.rb +51 -0
- data/lib/rubocop/cop/standard/rails_render_inline.rb +29 -0
- data/lib/rubocop/cop/standard/rails_render_object_collection.rb +47 -0
- data/lib/rubocop/cop/standard/rails_view_render_literal.rb +65 -0
- data/lib/rubocop/cop/standard/rails_view_render_paths_exist.rb +59 -0
- data/lib/rubocop/cop/standard/rails_view_render_shorthand.rb +38 -0
- data/lib/rubocop/cop/standard.rb +12 -0
- metadata +119 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 21aca3bd04a2838d939d1f924aa804cfc4c033d196ce067e4609890f5c6d25e6
|
4
|
+
data.tar.gz: 72109de6b63a02852b57fec08261b2fabe0a6864de597be46ea60d46294f5857
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8bf78a47274edc9fa253eafe42a658664b33bc009a338cba2fdd79cd73f03ff1c925cf38fb94f95bc77390a6354f8f61de9842d9c8c6d24cfe6eabdcb7fc02b5
|
7
|
+
data.tar.gz: e986542ca7e3b6f0e7facab994e06453e6d748fe7276d7ae79ed07d8ea01c2fb2f8f1986bf666faf5e0e02d97b21b259dcc1182523ab1ea485ee8c78770d3f3f
|
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2019 Garen Torikian
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# RuboCop Standard [![Build Status](https://travis-ci.org/github/rubocop-standard.svg?branch=master)](https://travis-ci.org/github/rubocop-standard)
|
2
|
+
|
3
|
+
This repository provides recommended RuboCop configuration and additional Cops for use, based initially on GitHub open source and internal Ruby projects.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
**Gemfile**
|
8
|
+
|
9
|
+
``` ruby
|
10
|
+
gem "rubocop-standard"
|
11
|
+
```
|
12
|
+
|
13
|
+
**.rubocop.yml**
|
14
|
+
|
15
|
+
``` yaml
|
16
|
+
inherit_gem:
|
17
|
+
rubocop-standard:
|
18
|
+
- config/default.yml
|
19
|
+
- config/rails.yml
|
20
|
+
```
|
21
|
+
|
22
|
+
## The Cops
|
23
|
+
|
24
|
+
All cops are located under [`lib/rubocop/cop/standard`](lib/rubocop/cop/standard), and contain examples/documentation.
|