rubocop-shakr 0.1.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 +738 -0
- data/config/default.yml +9 -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/github/rails_application_record.rb +29 -0
- data/lib/rubocop/cop/github/rails_controller_render_action_symbol.rb +43 -0
- data/lib/rubocop/cop/github/rails_controller_render_literal.rb +94 -0
- data/lib/rubocop/cop/github/rails_controller_render_paths_exist.rb +69 -0
- data/lib/rubocop/cop/github/rails_controller_render_shorthand.rb +51 -0
- data/lib/rubocop/cop/github/rails_render_inline.rb +29 -0
- data/lib/rubocop/cop/github/rails_render_object_collection.rb +47 -0
- data/lib/rubocop/cop/github/rails_view_render_literal.rb +64 -0
- data/lib/rubocop/cop/github/rails_view_render_paths_exist.rb +59 -0
- data/lib/rubocop/cop/github/rails_view_render_shorthand.rb +38 -0
- data/lib/rubocop/cop/github.rb +10 -0
- metadata +118 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1bbf8418682bde027de4b7b13e6cadbd685e0d70
|
4
|
+
data.tar.gz: f743334eb98e4f01406f96277ed06c12dbad931f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: dc40d0d9689cec2a0e9cafb0151fcc1230a622bd0a6b7dd4c4afb465c152bb784f733a3dc9ba4453cd1f00ef9b3afbb8be2011ca62e999cbacd5cb8b3ab13f47
|
7
|
+
data.tar.gz: 49963b8edde4d2f3c82ac0a63a10c7b59dbd7511bf56aa962cbcb9572f12b4f7e3a197e9c2ff00cf3c6404b653da2adde2f720bb717b89bb8ea7a93cf1c0e2fa
|
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2017 GitHub, Inc.
|
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 GitHub
|
2
|
+
|
3
|
+
This repository provides recommended RuboCop configuration and additional Cops for use on GitHub open source and internal Ruby projects.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
**Gemfile**
|
8
|
+
|
9
|
+
``` ruby
|
10
|
+
gem "rubocop-github"
|
11
|
+
```
|
12
|
+
|
13
|
+
**.rubocop.yml**
|
14
|
+
|
15
|
+
``` yaml
|
16
|
+
inherit_gem:
|
17
|
+
rubocop-github:
|
18
|
+
- config/default.yml
|
19
|
+
- config/rails.yml
|
20
|
+
```
|
21
|
+
|
22
|
+
## The Cops
|
23
|
+
|
24
|
+
All cops are located under [`lib/rubocop/cop/github`](lib/rubocop/cop/github), and contain examples/documentation.
|