rubocop-codeur 0.1.10 → 0.1.15

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5a295f29e065601e065a2b16b17fbebd5cd58fa1d6219701a907e270a1f7aab2
4
- data.tar.gz: 0ef1403893c0ba55f5cfb4eb1be2d6c1ffdc78a89b9dadc25209c8bc3850e6c8
3
+ metadata.gz: 22609a7e0e1cacaeeaeb93795c333095bb678dc68efef5898f8d9b4bc4eb09df
4
+ data.tar.gz: bf1ff05db7566839dfda8ec8b01819cf2f8b9951362abefb0d51738cf9a97693
5
5
  SHA512:
6
- metadata.gz: bf79e65e25e590a659d3699be424f78d0b733b005bb58a023227895c76c316ca554cc8231cc3e78616393f5764416f706f7692dd000f474b61f426fa9e5e7328
7
- data.tar.gz: 99494a35fc41724f48794a4ec6797396f2b9b592a4e018072ae3f5b03fc0aa6a5356ca1b18e7845e3e374c0ae20b70816f6b6f7f8bb639be33214b91778250e0
6
+ metadata.gz: 5137c422c0d3668f69e8b0526fb3d46b13fc4c33049c305f3bbb0e1d9041fb7262f77276d3c775b099e877befdfb2f7de2cd2cb7a4c5a33e7422806507bf3cac
7
+ data.tar.gz: 41c478cafa2d029715b0f51aef229c34f01a3109deec9e228e723ccf5ad0074cdc9ee6d781f2232d202121371f78be8e0d2e86a97c67c5fd3c0d1d7b72ff415c
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2020 Codeur SARL
1
+ Copyright 2021 Codeur SARL
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -25,7 +25,7 @@ Then run:
25
25
  `bundle exec rubocop`
26
26
 
27
27
  You don't need to include rubocop directly in your application's dependencies.
28
- `rubocop-codeur will include `rubocop`, `rubocop-minitest`, `rubocop-performance` and `rubocop-rails` dependencies.
28
+ `rubocop-codeur` will include `rubocop`, `rubocop-minitest`, `rubocop-performance` and `rubocop-rails` dependencies.
29
29
 
30
30
  It might be necessary to override style rules set in this gem for some projects or to add specific ones. Rule inheritance provided by Rubocop works like the following:
31
31
  `inherit_gem → inherit_from → local rules`
@@ -46,9 +46,9 @@ AllCops:
46
46
  Note that those overriding should be avoided as much as possible.
47
47
 
48
48
  ## Release
49
- Before all, configure your credentials for `dev-codeur` RubyGems account:
49
+ Before all, configure your credentials for RubyGems :
50
50
 
51
- 1. Login to RubyGems with the `dev-codeur` account
51
+ 1. Login to RubyGems
52
52
  2. Create a token which have rights to push gems (https://rubygems.org/profile/api_keys)
53
53
  3. Add it to your config:
54
54
  ```
@@ -65,3 +65,6 @@ Else, to publish a new version of this gem, you'll need to build it with
65
65
  ```
66
66
  gem push rubocop-codeur-X.X.X.gem
67
67
  ```
68
+
69
+ ## License
70
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT). Copyright 2021 Codeur SARL.
data/default.yml CHANGED
@@ -13,7 +13,7 @@ AllCops:
13
13
  - 'bin/*'
14
14
  - 'test/dummy/db/schema.rb'
15
15
  - 'test/dummy/tmp/**/*'
16
- TargetRubyVersion: 2.6
16
+ TargetRubyVersion: 2.7
17
17
  TargetRailsVersion: 6.0
18
18
  NewCops: enable
19
19
 
@@ -66,9 +66,12 @@ Metrics/BlockLength:
66
66
  Exclude:
67
67
  - 'config/routes.rb'
68
68
  - 'lib/tasks/**/*'
69
+ - 'app/states/*'
69
70
 
70
71
  Metrics/ClassLength:
71
72
  Max: 300
73
+ Exclude:
74
+ - 'app/models/**/*'
72
75
 
73
76
  Metrics/CyclomaticComplexity:
74
77
  Max: 10
@@ -87,6 +90,9 @@ Metrics/PerceivedComplexity:
87
90
  Minitest/TestMethodName:
88
91
  Enabled: false
89
92
 
93
+ Minitest/MultipleAssertions:
94
+ Max: 15
95
+
90
96
  # Disabled because it doesn't with symbols like: record_001
91
97
  Naming/VariableNumber:
92
98
  Enabled: false
@@ -98,6 +104,9 @@ Rails/CreateTableWithTimestamps:
98
104
  Exclude:
99
105
  - 'db/migrate/{2012,2013,2014,2015,2016,2017,2018}*.rb'
100
106
 
107
+ Rails/EnvironmentVariableAccess:
108
+ AllowReads: true
109
+
101
110
  Rails/FilePath:
102
111
  EnforcedStyle: arguments
103
112
 
@@ -174,3 +183,4 @@ Style/FormatStringToken:
174
183
  Enabled: true
175
184
  Exclude:
176
185
  - 'config/routes.rb'
186
+ - 'config/routes/*'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubocopCodeur
4
- VERSION = '0.1.10'
4
+ VERSION = '0.1.15'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-codeur
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dev-team Codeur
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-25 00:00:00.000000000 Z
11
+ date: 2021-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop