rubocop-nww 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 21530c727721da8ee7ec3fa5b716680392e4b144
4
+ data.tar.gz: 8ab26d3b0e65eb546ccc638c042e0e898ac8d698
5
+ SHA512:
6
+ metadata.gz: 162803162ec267aba2aa2e36dcf8dfcddbd34023168409475fe2427e92008596d6e4d3e36c71c83aab7714614d9b0bd8531fd46e23bb5050d39ec1b883d07439
7
+ data.tar.gz: 63e1c6487547e501a6b4c9dc66afaa232936d6bdf1cc53b4ae7ec4c23229cd40c48388a76bcce88cb7c50b9e2826cb8849dda2b25d4c38f59ea44ed7f884d3fd
data/.gitignore ADDED
@@ -0,0 +1,5 @@
1
+ *.gem
2
+ .bundle
3
+ .config
4
+ Gemfile.lock
5
+ pkg
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in rubocop-nww.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Florian Dütsch
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,12 @@
1
+ # RuboCop-Nww
2
+
3
+ This gem applies [our](http://www.nix-wie-weg.de/mitarbeiter.html#developers)
4
+ agreed style guide to [RuboCop](https://github.com/bbatsov/rubocop).
5
+
6
+ Some code is borrowed from
7
+ [rubocop-rspec](https://github.com/nevir/rubocop-rspec).
8
+
9
+ ## Installation
10
+
11
+ $ gem install rubocop-nww
12
+ $ echo 'require: rubocop-nww' > ~/.rubocop.yml
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,26 @@
1
+ AllCops:
2
+ RunRailsCops: true
3
+ Style/Encoding:
4
+ EnforcedStyle: when_needed
5
+ Style/AsciiComments:
6
+ Enabled: false
7
+ Style/Documentation:
8
+ Enabled: false
9
+ Style/CollectionMethods:
10
+ Enabled: false
11
+ Metrics/MethodLength:
12
+ Enabled: false
13
+ Style/MethodDefParentheses:
14
+ Enabled: false
15
+ Style/SignalException:
16
+ Enabled: false
17
+ Metrics/ClassLength:
18
+ Enabled: false
19
+ Lint/AssignmentInCondition:
20
+ Enabled: false
21
+ Metrics/ParameterLists:
22
+ Enabled: false
23
+ Style/MultilineBlockChain:
24
+ Enabled: false
25
+ Style/CommentAnnotation:
26
+ Enabled: false
@@ -0,0 +1,4 @@
1
+ require 'rubocop'
2
+ require 'rubocop/nww'
3
+
4
+ RuboCop::Nww::Inject.defaults!
@@ -0,0 +1,7 @@
1
+ module RuboCop
2
+ module Nww
3
+ end
4
+ end
5
+
6
+ require 'rubocop/nww/version'
7
+ require 'rubocop/nww/inject'
@@ -0,0 +1,24 @@
1
+ # Borrowed from
2
+ # https://github.com/nevir/rubocop-rspec/blob/master/lib/rubocop/rspec/inject.rb
3
+
4
+ require 'yaml'
5
+
6
+ module RuboCop
7
+ module Nww
8
+ # Because RuboCop doesn't yet support plugins, we have to monkey patch in a
9
+ # bit of our configuration.
10
+ module Inject
11
+ DEFAULT_FILE = File.expand_path(
12
+ '../../../../config/default.yml', __FILE__
13
+ )
14
+
15
+ def self.defaults!
16
+ hash = YAML.load_file(DEFAULT_FILE)
17
+ puts "configuration from #{DEFAULT_FILE}" if ConfigLoader.debug?
18
+ config = ConfigLoader.merge_with_default(hash, DEFAULT_FILE)
19
+
20
+ ConfigLoader.instance_variable_set(:@default_configuration, config)
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,5 @@
1
+ module Rubocop
2
+ module Nww
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
@@ -0,0 +1,23 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'rubocop/nww/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'rubocop-nww'
8
+ spec.version = Rubocop::Nww::VERSION
9
+ spec.authors = ['Florian Dütsch']
10
+ spec.email = ['florian.duetsch@nix-wie-weg.de']
11
+ spec.summary = %q{RubyCop defaults for Nix-wie-weg}
12
+ spec.homepage = 'https://github.com/Nix-wie-weg/rubocop-nww'
13
+ spec.license = 'MIT'
14
+
15
+ spec.files = `git ls-files`.split($/)
16
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
+ spec.require_paths = ['lib']
19
+
20
+ spec.add_development_dependency 'bundler', '~> 1.5'
21
+ spec.add_development_dependency 'rake'
22
+ spec.add_dependency 'rubocop', '~> 0.25.0'
23
+ end
metadata ADDED
@@ -0,0 +1,98 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rubocop-nww
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Florian Dütsch
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-09-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.5'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.5'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rubocop
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: 0.25.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 0.25.0
55
+ description:
56
+ email:
57
+ - florian.duetsch@nix-wie-weg.de
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - .gitignore
63
+ - Gemfile
64
+ - LICENSE.txt
65
+ - README.md
66
+ - Rakefile
67
+ - config/default.yml
68
+ - lib/rubocop-nww.rb
69
+ - lib/rubocop/nww.rb
70
+ - lib/rubocop/nww/inject.rb
71
+ - lib/rubocop/nww/version.rb
72
+ - rubocop-nww.gemspec
73
+ homepage: https://github.com/Nix-wie-weg/rubocop-nww
74
+ licenses:
75
+ - MIT
76
+ metadata: {}
77
+ post_install_message:
78
+ rdoc_options: []
79
+ require_paths:
80
+ - lib
81
+ required_ruby_version: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ required_rubygems_version: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - '>='
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ requirements: []
92
+ rubyforge_project:
93
+ rubygems_version: 2.1.11
94
+ signing_key:
95
+ specification_version: 4
96
+ summary: RubyCop defaults for Nix-wie-weg
97
+ test_files: []
98
+ has_rdoc: