rubocop-ogat 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.document +5 -0
- data/Gemfile +17 -0
- data/LICENSE.txt +20 -0
- data/README.md +19 -0
- data/Rakefile +50 -0
- data/VERSION +1 -0
- data/config/default.yml +116 -0
- data/lib/rubocop-ogat.rb +0 -0
- data/rubocop-ogat.gemspec +67 -0
- metadata +154 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 89463f69cc434229550e390468e0ca578614e0d4
|
4
|
+
data.tar.gz: 9e78898e55a2ed8877885348f6048313cd2cf51a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 92d9f93352a10cec8841030843553e727e3ea0c81c37a283e96c6899125091a4b026e5debeab5f2f8c3834e02c6611a33589bcb39650b9f7dbf63af5c3798cb6
|
7
|
+
data.tar.gz: 660a04e0518843efb60093134a56316e0666e6d3040ee2296e51ddbb29aa46a89c844074f59ee1938f0103dcbea2c76f6437d3f7b7cbbda60a95bcced7a2c1c9
|
data/.document
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
source "https://rubygems.org"
|
2
|
+
# Add dependencies required to use your gem here.
|
3
|
+
# Example:
|
4
|
+
# gem "activesupport", ">= 2.3.5"
|
5
|
+
|
6
|
+
gem 'rubocop', '~> 0.52'
|
7
|
+
gem 'rubocop-rspec', '~> 1.22'
|
8
|
+
|
9
|
+
# Add dependencies to develop your gem here.
|
10
|
+
# Include everything needed to run rake, tests, features, etc.
|
11
|
+
group :development do
|
12
|
+
gem "shoulda", ">= 0"
|
13
|
+
gem "rdoc", "~> 3.12"
|
14
|
+
gem "bundler", "~> 1.0"
|
15
|
+
gem "juwelier", "~> 2.1.0"
|
16
|
+
gem "simplecov", ">= 0"
|
17
|
+
end
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2018 Outwood Grange Academies Trust
|
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,19 @@
|
|
1
|
+
# RuboCop OGAT
|
2
|
+
|
3
|
+
This repository provides recommended RuboCop configuration for use on OGAT open source and internal Ruby projects.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
**Gemfile**
|
8
|
+
|
9
|
+
``` ruby
|
10
|
+
gem "rubocop-ogat"
|
11
|
+
```
|
12
|
+
|
13
|
+
**.rubocop.yml**
|
14
|
+
|
15
|
+
``` yaml
|
16
|
+
inherit_gem:
|
17
|
+
rubocop-ogat:
|
18
|
+
- config/default.yml
|
19
|
+
```
|
data/Rakefile
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler'
|
5
|
+
begin
|
6
|
+
Bundler.setup(:default, :development)
|
7
|
+
rescue Bundler::BundlerError => e
|
8
|
+
$stderr.puts e.message
|
9
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
+
exit e.status_code
|
11
|
+
end
|
12
|
+
require 'rake'
|
13
|
+
require 'juwelier'
|
14
|
+
Juwelier::Tasks.new do |gem|
|
15
|
+
# gem is a Gem::Specification... see http://guides.rubygems.org/specification-reference/ for more options
|
16
|
+
gem.name = "rubocop-ogat"
|
17
|
+
gem.homepage = "http://github.com/Outwood/rubocop-ogat"
|
18
|
+
gem.license = "MIT"
|
19
|
+
gem.summary = %Q{RuboCop OGAT}
|
20
|
+
gem.description = %Q{Provides recommended RuboCop configuration for use on OGAT open source and internal Ruby projects.}
|
21
|
+
gem.email = "webmaster@outwood.com"
|
22
|
+
gem.authors = ["Elliot Bowes", "Tom Crouch"]
|
23
|
+
|
24
|
+
# dependencies defined in Gemfile
|
25
|
+
end
|
26
|
+
Juwelier::RubygemsDotOrgTasks.new
|
27
|
+
require 'rake/testtask'
|
28
|
+
Rake::TestTask.new(:test) do |test|
|
29
|
+
test.libs << 'lib' << 'test'
|
30
|
+
test.pattern = 'test/**/test_*.rb'
|
31
|
+
test.verbose = true
|
32
|
+
end
|
33
|
+
|
34
|
+
desc "Code coverage detail"
|
35
|
+
task :simplecov do
|
36
|
+
ENV['COVERAGE'] = "true"
|
37
|
+
Rake::Task['test'].execute
|
38
|
+
end
|
39
|
+
|
40
|
+
task :default => :test
|
41
|
+
|
42
|
+
require 'rdoc/task'
|
43
|
+
Rake::RDocTask.new do |rdoc|
|
44
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
45
|
+
|
46
|
+
rdoc.rdoc_dir = 'rdoc'
|
47
|
+
rdoc.title = "rubocop-ogat #{version}"
|
48
|
+
rdoc.rdoc_files.include('README*')
|
49
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
50
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.0.0
|
data/config/default.yml
ADDED
@@ -0,0 +1,116 @@
|
|
1
|
+
require: rubocop-rspec
|
2
|
+
|
3
|
+
AllCops:
|
4
|
+
EnabledByDefault: true
|
5
|
+
DisplayStyleGuide: true
|
6
|
+
DisplayCopNames: true
|
7
|
+
|
8
|
+
Include:
|
9
|
+
- '**/Rakefile'
|
10
|
+
- '**/config.ru'
|
11
|
+
- 'db/seeds.rb'
|
12
|
+
- '**/Gemfile'
|
13
|
+
Exclude:
|
14
|
+
- 'vendor/**/*'
|
15
|
+
- 'db/schema.rb'
|
16
|
+
- 'db/migrate/*'
|
17
|
+
- '*.jbuilder'
|
18
|
+
- 'bin/**/*'
|
19
|
+
|
20
|
+
Rails:
|
21
|
+
Enabled: true
|
22
|
+
|
23
|
+
# OGAT Desired Config
|
24
|
+
|
25
|
+
Layout/AlignParameters:
|
26
|
+
EnforcedStyle: with_fixed_indentation
|
27
|
+
|
28
|
+
Lint/AmbiguousBlockAssociation:
|
29
|
+
Exclude:
|
30
|
+
- 'spec/**/*.rb'
|
31
|
+
|
32
|
+
Layout/ClassStructure:
|
33
|
+
Categories:
|
34
|
+
module_inclusion:
|
35
|
+
- include
|
36
|
+
- prepend
|
37
|
+
- extend
|
38
|
+
attributes:
|
39
|
+
- attribute
|
40
|
+
- attr_reader
|
41
|
+
- attr_writer
|
42
|
+
- attr_accessor
|
43
|
+
associations:
|
44
|
+
- belongs_to
|
45
|
+
- has_one
|
46
|
+
- has_many
|
47
|
+
- has_and_belongs_to_many
|
48
|
+
validations:
|
49
|
+
- validate
|
50
|
+
- validates_presence_of
|
51
|
+
- validates_uniqueness_of
|
52
|
+
hooks:
|
53
|
+
- after_save
|
54
|
+
- after_create
|
55
|
+
- after_initialize
|
56
|
+
ExpectedOrder:
|
57
|
+
- module_inclusion
|
58
|
+
- constants
|
59
|
+
- attributes
|
60
|
+
- associations
|
61
|
+
- validations
|
62
|
+
- hooks
|
63
|
+
- public_class_methods
|
64
|
+
- initializer
|
65
|
+
- public_methods
|
66
|
+
- protected_methods
|
67
|
+
- private_methods
|
68
|
+
|
69
|
+
Layout/MultilineAssignmentLayout:
|
70
|
+
EnforcedStyle: new_line
|
71
|
+
|
72
|
+
Layout/MultilineMethodCallIndentation:
|
73
|
+
EnforcedStyle: indented
|
74
|
+
|
75
|
+
Metrics/BlockLength:
|
76
|
+
Exclude:
|
77
|
+
- 'spec/**/*.rb'
|
78
|
+
- 'config/routes.rb'
|
79
|
+
|
80
|
+
RSpec/AlignLeftLetBrace:
|
81
|
+
Enabled: false
|
82
|
+
|
83
|
+
RSpec/AlignRightLetBrace:
|
84
|
+
Enabled: false
|
85
|
+
|
86
|
+
RSpec/LetSetup:
|
87
|
+
Enabled: false
|
88
|
+
|
89
|
+
RSpec/NestedGroups:
|
90
|
+
Max: 6
|
91
|
+
|
92
|
+
Style/ClassAndModuleChildren:
|
93
|
+
EnforcedStyle: nested
|
94
|
+
|
95
|
+
Style/CollectionMethods:
|
96
|
+
PreferredMethods:
|
97
|
+
collect: 'map'
|
98
|
+
collect!: 'map!'
|
99
|
+
inject: 'reduce'
|
100
|
+
detect: 'find'
|
101
|
+
find_all: 'find_all'
|
102
|
+
|
103
|
+
Style/Copyright:
|
104
|
+
Enabled: false
|
105
|
+
|
106
|
+
Style/DocumentationMethod:
|
107
|
+
Enabled: false
|
108
|
+
|
109
|
+
Style/Lambda:
|
110
|
+
EnforcedStyle: literal
|
111
|
+
|
112
|
+
Style/MissingElse:
|
113
|
+
Enabled: false
|
114
|
+
|
115
|
+
Style/RescueStandardError:
|
116
|
+
EnforcedStyle: implicit
|
data/lib/rubocop-ogat.rb
ADDED
File without changes
|
@@ -0,0 +1,67 @@
|
|
1
|
+
# Generated by juwelier
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
# stub: rubocop-ogat 1.0.0 ruby lib
|
6
|
+
|
7
|
+
Gem::Specification.new do |s|
|
8
|
+
s.name = "rubocop-ogat".freeze
|
9
|
+
s.version = "1.0.0"
|
10
|
+
|
11
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
|
+
s.require_paths = ["lib".freeze]
|
13
|
+
s.authors = ["Elliot Bowes".freeze, "Tom Crouch".freeze]
|
14
|
+
s.date = "2018-01-18"
|
15
|
+
s.description = "Provides recommended RuboCop configuration for use on OGAT open source and internal Ruby projects.".freeze
|
16
|
+
s.email = "webmaster@outwood.com".freeze
|
17
|
+
s.extra_rdoc_files = [
|
18
|
+
"LICENSE.txt",
|
19
|
+
"README.md"
|
20
|
+
]
|
21
|
+
s.files = [
|
22
|
+
".document",
|
23
|
+
"Gemfile",
|
24
|
+
"LICENSE.txt",
|
25
|
+
"README.md",
|
26
|
+
"Rakefile",
|
27
|
+
"VERSION",
|
28
|
+
"config/default.yml",
|
29
|
+
"lib/rubocop-ogat.rb",
|
30
|
+
"rubocop-ogat.gemspec"
|
31
|
+
]
|
32
|
+
s.homepage = "http://github.com/Outwood/rubocop-ogat".freeze
|
33
|
+
s.licenses = ["MIT".freeze]
|
34
|
+
s.rubygems_version = "2.6.13".freeze
|
35
|
+
s.summary = "RuboCop OGAT".freeze
|
36
|
+
|
37
|
+
if s.respond_to? :specification_version then
|
38
|
+
s.specification_version = 4
|
39
|
+
|
40
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
41
|
+
s.add_runtime_dependency(%q<rubocop>.freeze, ["~> 0.52"])
|
42
|
+
s.add_runtime_dependency(%q<rubocop-rspec>.freeze, ["~> 1.22"])
|
43
|
+
s.add_development_dependency(%q<shoulda>.freeze, [">= 0"])
|
44
|
+
s.add_development_dependency(%q<rdoc>.freeze, ["~> 3.12"])
|
45
|
+
s.add_development_dependency(%q<bundler>.freeze, ["~> 1.0"])
|
46
|
+
s.add_development_dependency(%q<juwelier>.freeze, ["~> 2.1.0"])
|
47
|
+
s.add_development_dependency(%q<simplecov>.freeze, [">= 0"])
|
48
|
+
else
|
49
|
+
s.add_dependency(%q<rubocop>.freeze, ["~> 0.52"])
|
50
|
+
s.add_dependency(%q<rubocop-rspec>.freeze, ["~> 1.22"])
|
51
|
+
s.add_dependency(%q<shoulda>.freeze, [">= 0"])
|
52
|
+
s.add_dependency(%q<rdoc>.freeze, ["~> 3.12"])
|
53
|
+
s.add_dependency(%q<bundler>.freeze, ["~> 1.0"])
|
54
|
+
s.add_dependency(%q<juwelier>.freeze, ["~> 2.1.0"])
|
55
|
+
s.add_dependency(%q<simplecov>.freeze, [">= 0"])
|
56
|
+
end
|
57
|
+
else
|
58
|
+
s.add_dependency(%q<rubocop>.freeze, ["~> 0.52"])
|
59
|
+
s.add_dependency(%q<rubocop-rspec>.freeze, ["~> 1.22"])
|
60
|
+
s.add_dependency(%q<shoulda>.freeze, [">= 0"])
|
61
|
+
s.add_dependency(%q<rdoc>.freeze, ["~> 3.12"])
|
62
|
+
s.add_dependency(%q<bundler>.freeze, ["~> 1.0"])
|
63
|
+
s.add_dependency(%q<juwelier>.freeze, ["~> 2.1.0"])
|
64
|
+
s.add_dependency(%q<simplecov>.freeze, [">= 0"])
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
metadata
ADDED
@@ -0,0 +1,154 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rubocop-ogat
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Elliot Bowes
|
8
|
+
- Tom Crouch
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2018-01-18 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rubocop
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - "~>"
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '0.52'
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - "~>"
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '0.52'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: rubocop-rspec
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - "~>"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '1.22'
|
35
|
+
type: :runtime
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - "~>"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '1.22'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: shoulda
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
49
|
+
type: :development
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: rdoc
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '3.12'
|
63
|
+
type: :development
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '3.12'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: bundler
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - "~>"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '1.0'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - "~>"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '1.0'
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: juwelier
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - "~>"
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: 2.1.0
|
91
|
+
type: :development
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - "~>"
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: 2.1.0
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
name: simplecov
|
100
|
+
requirement: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0'
|
105
|
+
type: :development
|
106
|
+
prerelease: false
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - ">="
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '0'
|
112
|
+
description: Provides recommended RuboCop configuration for use on OGAT open source
|
113
|
+
and internal Ruby projects.
|
114
|
+
email: webmaster@outwood.com
|
115
|
+
executables: []
|
116
|
+
extensions: []
|
117
|
+
extra_rdoc_files:
|
118
|
+
- LICENSE.txt
|
119
|
+
- README.md
|
120
|
+
files:
|
121
|
+
- ".document"
|
122
|
+
- Gemfile
|
123
|
+
- LICENSE.txt
|
124
|
+
- README.md
|
125
|
+
- Rakefile
|
126
|
+
- VERSION
|
127
|
+
- config/default.yml
|
128
|
+
- lib/rubocop-ogat.rb
|
129
|
+
- rubocop-ogat.gemspec
|
130
|
+
homepage: http://github.com/Outwood/rubocop-ogat
|
131
|
+
licenses:
|
132
|
+
- MIT
|
133
|
+
metadata: {}
|
134
|
+
post_install_message:
|
135
|
+
rdoc_options: []
|
136
|
+
require_paths:
|
137
|
+
- lib
|
138
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
139
|
+
requirements:
|
140
|
+
- - ">="
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: '0'
|
143
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
144
|
+
requirements:
|
145
|
+
- - ">="
|
146
|
+
- !ruby/object:Gem::Version
|
147
|
+
version: '0'
|
148
|
+
requirements: []
|
149
|
+
rubyforge_project:
|
150
|
+
rubygems_version: 2.6.13
|
151
|
+
signing_key:
|
152
|
+
specification_version: 4
|
153
|
+
summary: RuboCop OGAT
|
154
|
+
test_files: []
|