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 CHANGED
@@ -1,12 +1,14 @@
1
1
  # Reevoocop
2
2
 
3
- TODO: Write a gem description
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
- TODO: Write usage instructions here
23
+ In a Rakefile
24
+ ```ruby
25
+ require 'reevoocop/rake_task'
26
+ ReevooCop::RakeTask.new(:reevoocop)
27
+ ```
22
28
 
23
- ## Contributing
29
+ In your shell
30
+ ```
31
+ $ reevoocop
32
+ ```
24
33
 
25
- 1. Fork it ( http://github.com/<my-github-username>/reevoocop/fork )
26
- 2. Create your feature branch (`git checkout -b my-new-feature`)
27
- 3. Commit your changes (`git commit -am 'Add some feature'`)
28
- 4. Push to the branch (`git push origin my-new-feature`)
29
- 5. Create new Pull Request
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/)
@@ -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
@@ -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/
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module ReevooCop
4
- VERSION = '0.0.1'
4
+ VERSION = '0.0.2'
5
5
  end
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.1
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-01-26 00:00:00.000000000 Z
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: 4397745889571204508
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: 4397745889571204508
105
+ hash: -4375868246602978006
106
106
  requirements: []
107
107
  rubyforge_project:
108
108
  rubygems_version: 1.8.25