reevoocop 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +19 -9
- data/lib/reevoocop.rb +0 -31
- data/lib/reevoocop.yml +13 -0
- data/lib/reevoocop/version.rb +1 -1
- metadata +4 -4
data/README.md
CHANGED
@@ -1,12 +1,14 @@
|
|
1
1
|
# Reevoocop
|
2
2
|
|
3
|
-
|
3
|
+
20% MonkeyPatch
|
4
|
+
80% YAML
|
5
|
+
100% Style
|
4
6
|
|
5
7
|
## Installation
|
6
8
|
|
7
9
|
Add this line to your application's Gemfile:
|
8
10
|
|
9
|
-
gem 'reevoocop'
|
11
|
+
gem 'reevoocop', require: false
|
10
12
|
|
11
13
|
And then execute:
|
12
14
|
|
@@ -18,12 +20,20 @@ Or install it yourself as:
|
|
18
20
|
|
19
21
|
## Usage
|
20
22
|
|
21
|
-
|
23
|
+
In a Rakefile
|
24
|
+
```ruby
|
25
|
+
require 'reevoocop/rake_task'
|
26
|
+
ReevooCop::RakeTask.new(:reevoocop)
|
27
|
+
```
|
22
28
|
|
23
|
-
|
29
|
+
In your shell
|
30
|
+
```
|
31
|
+
$ reevoocop
|
32
|
+
```
|
24
33
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
34
|
+
## Configuring / Contributing
|
35
|
+
|
36
|
+
1. You can't configure this, thats the point.
|
37
|
+
2. If you need to change our style guidelines, update the `lib/reevoocop.yml` file and open a pull request.
|
38
|
+
3. If you have a good reason to break the guidelines, you can [switch of the cop in question for the code in question, like this](https://github.com/bbatsov/rubocop#disabling-cops-within-source-code)
|
39
|
+
4. Please don't open a pull request unless you work at reevoo, if you don't but would like to [look at our website](http://reevoo.github.io/)
|
data/lib/reevoocop.rb
CHANGED
@@ -11,34 +11,3 @@ module RuboCop
|
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
14
|
-
|
15
|
-
module ReevooCop
|
16
|
-
def with_first_parameter
|
17
|
-
# Style A
|
18
|
-
foo x,
|
19
|
-
y,
|
20
|
-
z
|
21
|
-
|
22
|
-
# Style B
|
23
|
-
foo(
|
24
|
-
x,
|
25
|
-
y,
|
26
|
-
z
|
27
|
-
)
|
28
|
-
end
|
29
|
-
|
30
|
-
def with_fixed_indentation
|
31
|
-
# Style B
|
32
|
-
foo(
|
33
|
-
x,
|
34
|
-
y,
|
35
|
-
z
|
36
|
-
)
|
37
|
-
|
38
|
-
# Style C
|
39
|
-
foo(x,
|
40
|
-
y,
|
41
|
-
z
|
42
|
-
)
|
43
|
-
end
|
44
|
-
end
|
data/lib/reevoocop.yml
CHANGED
@@ -4,6 +4,7 @@ Documentation:
|
|
4
4
|
Enabled: false
|
5
5
|
AndOr:
|
6
6
|
Enabled: false
|
7
|
+
|
7
8
|
# Allow use of empty lines to visually group code into 'paragraphs'
|
8
9
|
EmptyLines:
|
9
10
|
Enabled: false
|
@@ -15,3 +16,15 @@ Style/EmptyLinesAroundMethodBody:
|
|
15
16
|
Enabled: false
|
16
17
|
Style/EmptyLinesAroundModuleBody:
|
17
18
|
Enabled: false
|
19
|
+
|
20
|
+
TrailingComma:
|
21
|
+
Enabled: true
|
22
|
+
EnforcedStyleForMultiline: comma
|
23
|
+
SupportedStyles:
|
24
|
+
- comma
|
25
|
+
- no_comma
|
26
|
+
|
27
|
+
AllCops:
|
28
|
+
Exclude:
|
29
|
+
- !ruby/regexp /node_modules/
|
30
|
+
- !ruby/regexp /db\/schema\.rb/
|
data/lib/reevoocop/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reevoocop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-02-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rubocop
|
@@ -93,7 +93,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
93
93
|
version: '0'
|
94
94
|
segments:
|
95
95
|
- 0
|
96
|
-
hash:
|
96
|
+
hash: -4375868246602978006
|
97
97
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
98
98
|
none: false
|
99
99
|
requirements:
|
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
102
|
version: '0'
|
103
103
|
segments:
|
104
104
|
- 0
|
105
|
-
hash:
|
105
|
+
hash: -4375868246602978006
|
106
106
|
requirements: []
|
107
107
|
rubyforge_project:
|
108
108
|
rubygems_version: 1.8.25
|