tt_ruby_style 0.0.4 → 0.0.9

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
  SHA256:
3
- metadata.gz: 66a59d69f4690563f9f62d29f23bd4bc32bb881d5b9cc9c8eb7bbeb3c1086e65
4
- data.tar.gz: 5e95401ed73046be6e6e60bca6cfdfb9ba2666a5e385794c670b72af895d33f3
3
+ metadata.gz: 8dcc7290fef502332841049f807de5e0a0888bc1d5f4a8868a6bc57f1bd6b6e7
4
+ data.tar.gz: e1e2bb28f110e232a504ea12c1c4952cbbe1051ac203baa19a35a990c808950e
5
5
  SHA512:
6
- metadata.gz: b875ccf8c3932fd2b5c90beac53709a8d759140a14f7a197e87d6702ff7403e4b9081251d0ed1cfec12841822f00d800b4013f96c6d31cbcab2ceb676350e4d7
7
- data.tar.gz: e9f66d1f2d8daff4cf7065c153e299d00439817a3fb82810c9e6a35fb20d38f5b4b2502a74c115f909598c1781749ddaac552634bb5ef2954916cc5fc49b75db
6
+ metadata.gz: 34a6c1384fc850e3cfff428574fec22d3d5486d234725b6324c0b17ed0aafb8b10fbb0d16e26c3fe80163386b68f5168316593e51bd889e9694db3168d69c572
7
+ data.tar.gz: 8556cb13f485261eee96bf4a13d50f4b50a59f3835cb53860a96dac2a31394729961ef3b0431362af0da2aca76c186970390ffcd320e84dc5457cfb5c6344e44
data/.gitignore CHANGED
@@ -9,6 +9,7 @@
9
9
  /tmp/
10
10
  /.idea/
11
11
  .DS_Store
12
+ /.ruby-gemset
12
13
 
13
14
  # rspec failure tracking
14
15
  .rspec_status
@@ -0,0 +1 @@
1
+ ruby-2.6.5
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # tt_ruby_style
2
2
 
3
- Percy shared style configs.
3
+ Talent Tech shared style configs.
4
4
 
5
5
  ## Installation
6
6
 
@@ -6,6 +6,24 @@ AllCops:
6
6
  - 'db/schema.rb'
7
7
  - 'lib/tasks/auto_annotate_models.rake'
8
8
  - 'lib/twirp/**/*'
9
+ - 'lib/twirp_clients/**/*'
10
+
11
+
12
+ ### Rails
13
+
14
+ Rails/UnknownEnv:
15
+ Environments:
16
+ - production
17
+ - development
18
+ - test
19
+ - staging
20
+
21
+ # This cop checks for the use of methods which skip validations which are listed
22
+ # in https://guides.rubyonrails.org/active_record_validations.html#skipping-validations
23
+ Rails/SkipsModelValidations:
24
+ Enabled: false
25
+
26
+ ### Style
9
27
 
10
28
  # Eats a lot of the upper section space
11
29
  Style/FrozenStringLiteralComment:
@@ -38,10 +56,7 @@ Style/AsciiComments:
38
56
  Security/Eval:
39
57
  Enabled: false
40
58
 
41
- # Specs size could be enormous
42
- Metrics/BlockLength:
43
- Exclude:
44
- - spec/**/*_spec.rb
59
+ ### Metrics
45
60
 
46
61
  Metrics/LineLength:
47
62
  Max: 120
@@ -61,9 +76,20 @@ Metrics/PerceivedComplexity:
61
76
  Metrics/AbcSize:
62
77
  Max: 20
63
78
 
64
- # Offense count: 85
65
- # Configuration parameters: CountComments, ExcludedMethods.
66
- # ExcludedMethods: refine
79
+ Metrics/ClassLength:
80
+ Max: 150
81
+
82
+ # Specs size could be enormous
67
83
  Metrics/BlockLength:
84
+ # Offense count: 85
85
+ # Configuration parameters: CountComments, ExcludedMethods.
86
+ # ExcludedMethods: refine
68
87
  Max: 203
88
+ # Specs size could be enormous
89
+ Exclude:
90
+ - spec/**/*_spec.rb
69
91
 
92
+ # Enable: it { expect { code }.to change { another.code } }
93
+ Lint/AmbiguousBlockAssociation:
94
+ Exclude:
95
+ - "spec/**/*"
@@ -1,5 +1,5 @@
1
1
  module TalentTech
2
2
  module Style
3
- VERSION = '0.0.4'.freeze
3
+ VERSION = '0.0.9'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tt_ruby_style
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - TalentTech Team
@@ -74,6 +74,7 @@ extra_rdoc_files: []
74
74
  files:
75
75
  - ".gitignore"
76
76
  - ".rubocop.yml"
77
+ - ".ruby-version"
77
78
  - Gemfile
78
79
  - Makefile
79
80
  - README.md
@@ -107,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
108
  - !ruby/object:Gem::Version
108
109
  version: '0'
109
110
  requirements: []
110
- rubygems_version: 3.0.8
111
+ rubygems_version: 3.1.2
111
112
  signing_key:
112
113
  specification_version: 4
113
114
  summary: TalentTech rules for rubocop