dlss_cops 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 526655efdb533728bac0be0070435a9219bee213
4
- data.tar.gz: 9c45adba622c4ca6cbb1f6f064bec0f780d20718
3
+ metadata.gz: bcdf17146b75a66e0a0d819bd0d69b2604ff2f83
4
+ data.tar.gz: 34efc86383db01ab220683df7e435bbbbf3dc43a
5
5
  SHA512:
6
- metadata.gz: 6a52591aa226140f105a15bcdf343007ecdb07c87399bc78b409ed4bedd9e87286186e7150333288f5590df0ab8017ef20cc7f83eeea36515598a1c015eb6477
7
- data.tar.gz: 77df0275b1ce1e921d87191cd168fdb2a47d2b875976c1eb53550a528ec0572597a08b2373360a273f7694ac6810cd911ebfebb0009b831d38ba42c38c28814e
6
+ metadata.gz: 1f9dd2505a3ca294e859212c06e456c0e9501931f4ffb2e7f1b782a9cbfc42321e473274b7ac2e6bdb3853dacff05f98e71c8d90ea09606cd694f946098ca9d9
7
+ data.tar.gz: 96997a42a9daf0b7d55b93844a3a70de5ac297bd40c6125644f71d62e30d3d9e59e35fc5dd9ddc66fa2fbb52afad7c68a692779af2341859c3148ec5d3fb609f
@@ -1,2 +1,2 @@
1
1
  inherit_from:
2
- - ./config/rubocop.yml
2
+ - ./config/dlss_baseline.yml
data/README.md CHANGED
@@ -1,27 +1,39 @@
1
1
  # DlssCops
2
2
 
3
- DlssCops is a Rubocop configuration gem that holds DLSS's shared Ruby style guide.
3
+ DlssCops is a Rubocop configuration gem that holds DLSS's baseline Ruby style guide.
4
+ See https://github.com/bbatsov/rubocop for more information about Rubocop.
4
5
 
5
6
  ## Installation
6
7
 
7
- Add this line to your application's Gemfile:
8
+ We recommend you use the latest version of DlssCops but if needed, you can
9
+ select a specific version to manage change.
10
+
11
+ Add a development_dependency in your gem's gemspec file
8
12
 
9
13
  ```ruby
10
- gem 'dlss_cops'
14
+ gemspec.add_development_dependency 'dlss_cops'
11
15
  ```
12
16
 
13
- Then execute:
17
+ OR, if it's not a gem, add these lines to your Gemfile:
14
18
 
15
- $ bundle
19
+ ```ruby
20
+ group :development, :test do
21
+ gem 'dlss_cops'
22
+ end
23
+ ```
16
24
 
17
- Then set up your .rubocop.yml` file as such:
25
+ ## Usage
26
+
27
+ Set up your .rubocop.yml file:
18
28
 
19
29
  ```yaml
20
30
  inherit_gem:
21
- dlss_cops: "config/rubocop.yml"
31
+ dlss_cops: "config/dlss_baseline.yml"
22
32
 
23
33
  AllCops:
24
34
  TargetRubyVersion: 2.2
25
35
  ```
26
36
 
27
37
  Then you can launch rubocop via: `bundle exec rubocop <options>`
38
+
39
+ See https://github.com/bbatsov/rubocop#basic-usage for more information.
@@ -7,9 +7,17 @@ AllCops:
7
7
  - '**/Rakefile'
8
8
  - '**/config.ru'
9
9
  Exclude:
10
+ - 'Gemfile'
11
+ - 'Gemfile.lock'
12
+ - '*.gemspec'
13
+ - '**/*.md'
14
+ - 'bin/*'
15
+ - 'config/**/*.yml'
10
16
  - 'db/**/*'
11
17
  - 'script/**/*'
12
18
  - '.internal_test_app/**/*'
19
+ - 'spec/fixtures/**/*'
20
+ - 'spec/internal/**/*'
13
21
  - 'spec/test_app_templates/**/*'
14
22
  - 'vendor/**/*'
15
23
 
@@ -17,7 +25,7 @@ AllCops:
17
25
  Rails:
18
26
  Enabled: true
19
27
 
20
- # Cops with default values configured
28
+ # DLSS configuration changes for these cops enabled by default in Rubocop
21
29
 
22
30
  Metrics/AbcSize:
23
31
  Max: 20
@@ -55,7 +63,11 @@ RSpec/ExampleWording:
55
63
  IgnoredWords:
56
64
  - only
57
65
 
58
- # Cops that are turned off by default because we disagree about them
66
+ # DLSS explicitly disabling these cops enabled by default in Rubocop
67
+ # (DLSS agrees they should be disabled, or we disagree about whether they should be enabled)
68
+
69
+ Style/AccessModifierIndentation:
70
+ Enabled: false
59
71
 
60
72
  Style/AlignHash:
61
73
  Enabled: false
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ['Michael J. Giarlo']
10
10
  spec.email = ['mjgiarlo@stanford.edu']
11
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.'
12
+ spec.summary = "DlssCops is a Rubocop configuration gem that holds DLSS's baseline Ruby style guide"
13
+ spec.description = "DlssCops is a Rubocop configuration gem that holds DLSS's baseline Ruby style guide."
14
14
  spec.homepage = 'https://github.com/sul-dlss/dlss_cops'
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
@@ -1,3 +1,3 @@
1
1
  module DlssCops
2
- VERSION = '0.0.2'.freeze
2
+ VERSION = '0.0.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dlss_cops
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael J. Giarlo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-09 00:00:00.000000000 Z
11
+ date: 2016-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -66,8 +66,8 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '10.0'
69
- description: DlssCops is a Rubocop configuration gem that holds the DLSS Ruby style
70
- guide.
69
+ description: DlssCops is a Rubocop configuration gem that holds DLSS's baseline Ruby
70
+ style guide.
71
71
  email:
72
72
  - mjgiarlo@stanford.edu
73
73
  executables: []
@@ -76,14 +76,12 @@ extra_rdoc_files: []
76
76
  files:
77
77
  - ".gitignore"
78
78
  - ".rubocop.yml"
79
- - ".ruby-gemset"
80
- - ".ruby-version"
81
79
  - Gemfile
82
80
  - README.md
83
81
  - Rakefile
84
82
  - bin/console
85
83
  - bin/setup
86
- - config/rubocop.yml
84
+ - config/dlss_baseline.yml
87
85
  - dlss_cops.gemspec
88
86
  - lib/dlss_cops.rb
89
87
  - lib/dlss_cops/version.rb
@@ -109,5 +107,6 @@ rubyforge_project:
109
107
  rubygems_version: 2.4.8
110
108
  signing_key:
111
109
  specification_version: 4
112
- summary: DlssCops is a Rubocop configuration gem that holds the DLSS Ruby style guide
110
+ summary: DlssCops is a Rubocop configuration gem that holds DLSS's baseline Ruby style
111
+ guide
113
112
  test_files: []