dlss_cops 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2ff04fecbf5a30d180147fed06e9cc4208dd8570
4
+ data.tar.gz: 65513c2a05dde0ea1a4a01bd250fae3fe7b78b9c
5
+ SHA512:
6
+ metadata.gz: 6289a0ad8f7c451b2839cda9fcb2b3cc8a5cbd627428998530fd3b12f204bd5e8ccd7718ce480bb5fb79fb4c91d66b5fdbbedcf5f7be00645264b8959676c745
7
+ data.tar.gz: 37104e06173db176f32e593f4dd953608631f6695af0f07dc5372a20625a251a34032767b5a4ab607c0ce5b3161274446de0a4a780ab9dbe17f74c32db816521
@@ -0,0 +1,10 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ .ruby-*
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in dlss_cops.gemspec
4
+ gemspec
@@ -0,0 +1,27 @@
1
+ # DlssCops
2
+
3
+ DlssCops is a Rubocop configuration gem that holds DLSS's shared Ruby style guide.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'dlss_cops'
11
+ ```
12
+
13
+ Then execute:
14
+
15
+ $ bundle
16
+
17
+ Then set up your .rubocop.yml` file as such:
18
+
19
+ ```yaml
20
+ inherit_gem:
21
+ dlss_cops: "config/rubocop.yml"
22
+
23
+ AllCops:
24
+ TargetRubyVersion: 2.2
25
+ ```
26
+
27
+ Then you can launch rubocop via: `bundle exec rubocop <options>`
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "dlss_cops"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,124 @@
1
+ # Turn on RSpec cops
2
+ require 'rubocop-rspec'
3
+
4
+ AllCops:
5
+ DisplayCopNames: true
6
+ Include:
7
+ - '**/Rakefile'
8
+ - '**/config.ru'
9
+ Exclude:
10
+ - 'db/**/*'
11
+ - 'script/**/*'
12
+ - '.internal_test_app/**/*'
13
+ - 'spec/test_app_templates/**/*'
14
+ - 'vendor/**/*'
15
+
16
+ # Turn on Rails cops
17
+ Rails:
18
+ Enabled: true
19
+
20
+ # Cops with default values configured
21
+
22
+ Metrics/AbcSize:
23
+ Max: 20
24
+
25
+ Metrics/BlockNesting:
26
+ Max: 4
27
+
28
+ Metrics/ClassLength:
29
+ Max: 200
30
+
31
+ Metrics/LineLength:
32
+ Max: 120
33
+
34
+ Metrics/MethodLength:
35
+ Max: 25
36
+
37
+ Metrics/ModuleLength:
38
+ Max: 200
39
+
40
+ Style/IfUnlessModifier:
41
+ MaxLineLength: 120
42
+
43
+ Style/IndentationConsistency:
44
+ EnforcedStyle: rails
45
+
46
+ Style/WhileUntilModifier:
47
+ MaxLineLength: 120
48
+
49
+ RSpec/ExampleWording:
50
+ CustomTransform:
51
+ be: is
52
+ have: has
53
+ not: does not
54
+ NOT: does NOT
55
+ IgnoredWords:
56
+ - only
57
+
58
+ # Cops that are turned off by default because we disagree about them
59
+
60
+ Style/AlignHash:
61
+ Enabled: false
62
+
63
+ Style/AlignParameters:
64
+ Enabled: false
65
+
66
+ Style/AsciiComments:
67
+ Enabled: false
68
+
69
+ Style/BlockComments:
70
+ Enabled: false
71
+
72
+ Style/ClassAndModuleChildren:
73
+ Enabled: false
74
+
75
+ Style/Documentation:
76
+ Enabled: false
77
+
78
+ Style/EmptyLinesAroundClassBody:
79
+ Enabled: false
80
+
81
+ Style/EmptyLinesAroundModuleBody:
82
+ Enabled: false
83
+
84
+ Style/LeadingCommentSpace:
85
+ Enabled: false
86
+
87
+ Style/NegatedIf:
88
+ Enabled: false
89
+
90
+ Style/NegatedWhile:
91
+ Enabled: false
92
+
93
+ Style/RegexpLiteral:
94
+ Enabled: false
95
+
96
+ Style/SingleLineBlockParams:
97
+ Enabled: false
98
+
99
+ Style/SpaceAfterNot:
100
+ Enabled: false
101
+
102
+ Style/SpaceAroundEqualsInParameterDefault:
103
+ Enabled: false
104
+
105
+ Style/SpaceInsideBrackets:
106
+ Enabled: false
107
+
108
+ Style/StringLiterals:
109
+ Enabled: false
110
+
111
+ Style/TrailingBlankLines:
112
+ Enabled: false
113
+
114
+ Style/TrailingCommaInLiteral:
115
+ Enabled: false
116
+
117
+ Style/WordArray:
118
+ Enabled: false
119
+
120
+ RSpec/DescribeClass:
121
+ Enabled: false
122
+
123
+ RSpec/FilePath:
124
+ Enabled: false
@@ -0,0 +1,25 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'dlss_cops/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "dlss_cops"
8
+ spec.version = DlssCops::VERSION
9
+ spec.authors = ["Michael J. Giarlo"]
10
+ spec.email = ["mjgiarlo@stanford.edu"]
11
+
12
+ spec.summary = 'DlssCops is a Rubocop configuration gem that holds the DLSS Ruby style guide'
13
+ spec.description = 'DlssCops is a Rubocop configuration gem that holds the DLSS Ruby style guide.'
14
+ spec.homepage = 'https://github.com/sul-dlss/dlss_cops'
15
+
16
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
+ spec.bindir = "exe"
18
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_dependency 'rubocop', '~> 0.37.0'
22
+ spec.add_dependency 'rubocop-rspec', '~> 1.4.0'
23
+ spec.add_development_dependency "bundler", "~> 1.11"
24
+ spec.add_development_dependency "rake", "~> 10.0"
25
+ end
@@ -0,0 +1,5 @@
1
+ require "dlss_cops/version"
2
+
3
+ module DlssCops
4
+ # Your code goes here...
5
+ end
@@ -0,0 +1,3 @@
1
+ module DlssCops
2
+ VERSION = "0.0.1"
3
+ end
metadata ADDED
@@ -0,0 +1,112 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: dlss_cops
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Michael J. Giarlo
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-03-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rubocop
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.37.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.37.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop-rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 1.4.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 1.4.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.11'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.11'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ description: DlssCops is a Rubocop configuration gem that holds the DLSS Ruby style
70
+ guide.
71
+ email:
72
+ - mjgiarlo@stanford.edu
73
+ executables: []
74
+ extensions: []
75
+ extra_rdoc_files: []
76
+ files:
77
+ - ".gitignore"
78
+ - ".ruby-gemset"
79
+ - ".ruby-version"
80
+ - Gemfile
81
+ - README.md
82
+ - Rakefile
83
+ - bin/console
84
+ - bin/setup
85
+ - config/rubocop.yml
86
+ - dlss_cops.gemspec
87
+ - lib/dlss_cops.rb
88
+ - lib/dlss_cops/version.rb
89
+ homepage: https://github.com/sul-dlss/dlss_cops
90
+ licenses: []
91
+ metadata: {}
92
+ post_install_message:
93
+ rdoc_options: []
94
+ require_paths:
95
+ - lib
96
+ required_ruby_version: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ version: '0'
101
+ required_rubygems_version: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - ">="
104
+ - !ruby/object:Gem::Version
105
+ version: '0'
106
+ requirements: []
107
+ rubyforge_project:
108
+ rubygems_version: 2.4.8
109
+ signing_key:
110
+ specification_version: 4
111
+ summary: DlssCops is a Rubocop configuration gem that holds the DLSS Ruby style guide
112
+ test_files: []