pluralsight-rails-style 0.1.0

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
+ SHA256:
3
+ metadata.gz: cf155e8591a125fea33688bd2edc3fdc07af7ff57999aa4bef6cbd4369e387cf
4
+ data.tar.gz: f653b914763db1909ba00b2652d7c2bf02219aefb6c174375d7cb0d4b80ebe31
5
+ SHA512:
6
+ metadata.gz: 33e4f81aa2849a27b3f314f89251ef8e8c385e0ce455521e1b77e6f8449eca0fd7daf20ba8509dd70f9921709159bf7342c88fdbc40ccb55f2e0d500bcaa6a42
7
+ data.tar.gz: 5f067cb83409ec83554a990e9a22404e3bd82cb6b32291d29b38d4c11e18930a114fc66776cff75e3178f1dec1c1a58fb49a57964be4325e0f5d61bee022965a
data/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
data/Gemfile ADDED
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ # Specify your gem's dependencies in pluralsight-rails-style.gemspec
6
+ gemspec
7
+
8
+ gem 'bump'
9
+ gem 'rake', '~> 13.0'
10
+ gem 'rubocop', '~> 1.9', require: false
11
+ gem 'rubocop-graphql', require: false
12
+ gem 'rubocop-performance', require: false
13
+ gem 'rubocop-rails', require: false
14
+ gem 'rubocop-rspec', require: false
data/Gemfile.lock ADDED
@@ -0,0 +1,73 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ pluralsight-rails-style (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ activesupport (6.1.6.1)
10
+ concurrent-ruby (~> 1.0, >= 1.0.2)
11
+ i18n (>= 1.6, < 2)
12
+ minitest (>= 5.1)
13
+ tzinfo (~> 2.0)
14
+ zeitwerk (~> 2.3)
15
+ ast (2.4.2)
16
+ bump (0.10.0)
17
+ concurrent-ruby (1.1.10)
18
+ i18n (1.12.0)
19
+ concurrent-ruby (~> 1.0)
20
+ json (2.6.2)
21
+ minitest (5.16.2)
22
+ parallel (1.22.1)
23
+ parser (3.1.2.1)
24
+ ast (~> 2.4.1)
25
+ rack (2.2.4)
26
+ rainbow (3.1.1)
27
+ rake (13.0.6)
28
+ regexp_parser (2.5.0)
29
+ rexml (3.2.5)
30
+ rubocop (1.35.0)
31
+ json (~> 2.3)
32
+ parallel (~> 1.10)
33
+ parser (>= 3.1.2.1)
34
+ rainbow (>= 2.2.2, < 4.0)
35
+ regexp_parser (>= 1.8, < 3.0)
36
+ rexml (>= 3.2.5, < 4.0)
37
+ rubocop-ast (>= 1.20.1, < 2.0)
38
+ ruby-progressbar (~> 1.7)
39
+ unicode-display_width (>= 1.4.0, < 3.0)
40
+ rubocop-ast (1.21.0)
41
+ parser (>= 3.1.1.0)
42
+ rubocop-graphql (0.14.5)
43
+ rubocop (>= 0.87, < 2)
44
+ rubocop-performance (1.14.3)
45
+ rubocop (>= 1.7.0, < 2.0)
46
+ rubocop-ast (>= 0.4.0)
47
+ rubocop-rails (2.15.2)
48
+ activesupport (>= 4.2.0)
49
+ rack (>= 1.1)
50
+ rubocop (>= 1.7.0, < 2.0)
51
+ rubocop-rspec (2.12.1)
52
+ rubocop (~> 1.31)
53
+ ruby-progressbar (1.11.0)
54
+ tzinfo (2.0.5)
55
+ concurrent-ruby (~> 1.0)
56
+ unicode-display_width (2.2.0)
57
+ zeitwerk (2.6.0)
58
+
59
+ PLATFORMS
60
+ x86_64-darwin-19
61
+
62
+ DEPENDENCIES
63
+ bump
64
+ pluralsight-rails-style!
65
+ rake (~> 13.0)
66
+ rubocop (~> 1.9)
67
+ rubocop-graphql
68
+ rubocop-performance
69
+ rubocop-rails
70
+ rubocop-rspec
71
+
72
+ BUNDLED WITH
73
+ 2.2.19
data/README.md ADDED
@@ -0,0 +1,2 @@
1
+ # pluralsight-rails-style-gem
2
+ This is to house and share a global rubocop configuration.
data/Rakefile ADDED
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ task default: %i[]
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require 'pluralsight_rails_style'
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require 'irb'
15
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -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
File without changes
data/default.yml ADDED
@@ -0,0 +1,142 @@
1
+ require:
2
+ - rubocop-performance
3
+ - rubocop-rails
4
+ - rubocop-graphql
5
+ # Uncomment this for in-depth rspec excitement
6
+ # - rubocop-rspec
7
+
8
+ Performance/RedundantMerge:
9
+ Enabled: true
10
+ Exclude:
11
+ - app/views/**/*.json.jbuilder
12
+
13
+ AllCops:
14
+ Exclude:
15
+ - .pryrc
16
+ - tmp
17
+ - db/**/*
18
+ - config.ru
19
+ - bin/**/*
20
+ - Rakefile
21
+ - config/**/*
22
+ - vendor/**/*
23
+
24
+ # Disable the below for the moment and fix in future deploys.
25
+ GraphQL/ArgumentDescription:
26
+ Enabled: false
27
+ GraphQL/ArgumentName:
28
+ Enabled: false
29
+ GraphQL/ExtractInputType:
30
+ Enabled: false
31
+ GraphQL/ExtractType:
32
+ Enabled: false
33
+ GraphQL/FieldDescription:
34
+ Enabled: false
35
+ # Disable for the moment. No idea how much this would affect.
36
+ GraphQL/FieldName:
37
+ Enabled: false
38
+ GraphQL/ObjectDescription:
39
+ Enabled: false
40
+ Layout/RescueEnsureAlignment:
41
+ Enabled: false
42
+ Lint/AmbiguousBlockAssociation:
43
+ Enabled: false
44
+ # This will be one of the troublemakers for fixing
45
+ Lint/ConstantDefinitionInBlock:
46
+ Enabled: false
47
+ Lint/ImplicitStringConcatenation:
48
+ Enabled: false
49
+ Lint/SuppressedException:
50
+ Enabled: false
51
+ Lint/UselessAssignment:
52
+ Enabled: false
53
+ Naming/MethodParameterName: # ie: labInstanceId vs lab_instance_id
54
+ Enabled: false
55
+ Naming/VariableName:
56
+ Enabled: false
57
+ Naming/VariableNumber:
58
+ Enabled: false
59
+ Rails/FilePath:
60
+ Enabled: false
61
+ Rails/SkipsModelValidations:
62
+ Enabled: false
63
+ Rails/UniqueValidationWithoutIndex:
64
+ Enabled: false
65
+ Style/CaseLikeIf:
66
+ Enabled: false
67
+ # Disable until Api::V1::Ps::BaseController issue can be corrected.
68
+ Style/ClassAndModuleChildren:
69
+ Enabled: false
70
+ Style/GlobalStdStream:
71
+ Enabled: false
72
+ Style/LineEndConcatenation:
73
+ Enabled: false
74
+ Style/MultilineBlockChain:
75
+ Enabled: false
76
+ Style/SingleArgumentDig:
77
+ Enabled: false
78
+ Style/StringConcatenation:
79
+ Enabled: true
80
+ Severity: info
81
+
82
+
83
+ Layout/LineLength:
84
+ Enabled: true
85
+ Max: 180
86
+ Exclude:
87
+ - spec/**/*
88
+ Metrics/AbcSize:
89
+ Enabled: true
90
+ CountRepeatedAttributes: false
91
+ Max: 25
92
+ Severity: info
93
+ Exclude:
94
+ - spec/**/*
95
+ - lib/tasks/*
96
+ Metrics/BlockLength:
97
+ Enabled: true
98
+ Exclude:
99
+ - spec/**/*
100
+ - lib/tasks/*
101
+ Metrics/CyclomaticComplexity:
102
+ Enabled: true
103
+ Max: 11 # Default: 7
104
+ Severity: info
105
+ Exclude:
106
+ - spec/**/*
107
+ - lib/tasks/*
108
+ Metrics/ClassLength: # Default: 100
109
+ Enabled: false
110
+ Metrics/MethodLength:
111
+ Enabled: true
112
+ Max: 15
113
+ Severity: info
114
+ Exclude:
115
+ - app/graphql/**/*
116
+ - spec/**/*
117
+ - lib/tasks/*
118
+ Metrics/ModuleLength:
119
+ Enabled: true
120
+ Severity: info
121
+ Exclude:
122
+ - spec/**/*
123
+ - lib/tasks/*
124
+ Metrics/ParameterLists:
125
+ Exclude:
126
+ - app/graphql/**/*
127
+ Metrics/PerceivedComplexity:
128
+ Enabled: true
129
+ Max: 12 # Default: 8
130
+ Severity: info
131
+ Exclude:
132
+ - spec/**/*
133
+ - lib/tasks/*
134
+ Naming/AccessorMethodName: # Turn on for strict
135
+ Enabled: false
136
+ Naming/PredicateName: # Turn on for strict
137
+ Enabled: false
138
+ # Missing top-level documentation comment
139
+ Style/Documentation:
140
+ Enabled: false
141
+ Style/DoubleNegation:
142
+ Enabled: false
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module PluralsightRailsStyle
4
+ VERSION = '0.1.0'
5
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'version'
4
+
5
+ module PluralsightRailsStyle
6
+ class Error < StandardError; end
7
+ # Your code goes here...
8
+ end
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'lib/pluralsight_rails_style/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'pluralsight-rails-style'
7
+ spec.version = PluralsightRailsStyle::VERSION
8
+ spec.authors = ['Eric Roberts']
9
+ spec.email = ['eric-roberts@pluralsight.com']
10
+
11
+ spec.summary = 'To house and share a global rubocop configuration.'
12
+ spec.description = 'To house and share a global rubocop configuration. Includes a default and strict default option'
13
+ spec.homepage = 'https://github.com/ACloudGuru/pluralsight-rails-style-gem'
14
+ spec.required_ruby_version = '>= 2.6.0'
15
+
16
+ spec.metadata = { 'github_repo' => 'git@github.com:ACloudGuru/pluralsight-rails-style-gem.git' }
17
+ # spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
18
+
19
+ # spec.metadata['homepage_uri'] = spec.homepage
20
+ # spec.metadata['source_code_uri'] = "TODO: Put your gem's public repo URL here."
21
+ # spec.metadata['changelog_uri'] = "TODO: Put your gem's CHANGELOG.md URL here."
22
+
23
+ # Specify which files should be added to the gem when it is released.
24
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
25
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
26
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
27
+ end
28
+ spec.bindir = 'exe'
29
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
30
+ spec.require_paths = ['lib']
31
+
32
+ # Uncomment to register a new dependency of your gem
33
+ # spec.add_dependency "example-gem", "~> 1.0"
34
+
35
+ # For more information and examples about making a new gem, checkout our
36
+ # guide at: https://bundler.io/guides/creating_gem.html
37
+ end
metadata ADDED
@@ -0,0 +1,56 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pluralsight-rails-style
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Eric Roberts
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2022-08-12 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: To house and share a global rubocop configuration. Includes a default
14
+ and strict default option
15
+ email:
16
+ - eric-roberts@pluralsight.com
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - ".gitignore"
22
+ - Gemfile
23
+ - Gemfile.lock
24
+ - README.md
25
+ - Rakefile
26
+ - bin/console
27
+ - bin/setup
28
+ - default-strict.yml
29
+ - default.yml
30
+ - lib/pluralsight_rails_style.rb
31
+ - lib/pluralsight_rails_style/version.rb
32
+ - pluralsight-rails-style.gemspec
33
+ homepage: https://github.com/ACloudGuru/pluralsight-rails-style-gem
34
+ licenses: []
35
+ metadata:
36
+ github_repo: git@github.com:ACloudGuru/pluralsight-rails-style-gem.git
37
+ post_install_message:
38
+ rdoc_options: []
39
+ require_paths:
40
+ - lib
41
+ required_ruby_version: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: 2.6.0
46
+ required_rubygems_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: '0'
51
+ requirements: []
52
+ rubygems_version: 3.0.1
53
+ signing_key:
54
+ specification_version: 4
55
+ summary: To house and share a global rubocop configuration.
56
+ test_files: []