rubocop-discourse 2.5.0 → 2.6.0

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: 3a1dd5d5b8d79de5bcda354a31c6f993460f11875065c64edd9f7cc3cce71bff
4
- data.tar.gz: 175c1f83d9300537bac93184d5e8bf5d21cffc8196e996d59cc9298f69d8bdb5
3
+ metadata.gz: d323501481e0e731a79b93e81cb53e5a2b67d0761aebf7ac6ed8088d607bf912
4
+ data.tar.gz: 8ab7c331ea82087f6a2f8a626ac9de4192a231aff5a58ca853938903d16bfc37
5
5
  SHA512:
6
- metadata.gz: ada5c637849f829f0d8d0247b86fbec1a1cc9182d06b6385f6ac13f081f9782a7d9cd38d8a3dd30c2bf121f834171a9f28933deaee4ab8a53a022aa3af5d06fc
7
- data.tar.gz: ab731fee843a5a8ef9821c613751906457672eb11bed54ec0aae3856588b723a77c03aa26f258a3c1e19c25b1edac4d198ae8ffbfd3e4bbaf397d4e2f1332c8f
6
+ metadata.gz: 567ae9f6c1175704e4146fdb1d24ec8220560edc5f438fb4ac8cb4be655f90f92cc5fbc0b2b9a1a2992bd8861725681d0e860be73d16288e34298e61e41d85b1
7
+ data.tar.gz: 38f89b89b1d18efd564afd9c2dc5de3830ace80aa8908e0430697f32436d6a3c91ffd87ec4f467da43f87df5132f1adb34d9161a93da8bc5882c5292fba71337
@@ -2,9 +2,9 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "rubocop-discourse"
5
- s.version = "2.5.0"
5
+ s.version = "2.6.0"
6
6
  s.summary = "Custom rubocop cops used by Discourse"
7
- s.authors = ["David Taylor"]
7
+ s.authors = ["Discourse Team"]
8
8
  s.license = "MIT"
9
9
  s.homepage = "https://github.com/discourse/rubocop-discourse"
10
10
 
data/rubocop-rspec.yml CHANGED
@@ -8,16 +8,40 @@ RSpec/AroundBlock:
8
8
  Enabled: true
9
9
 
10
10
  RSpec/BeforeAfterAll:
11
- Enabled: false # To be decided
11
+ Enabled: true
12
+
13
+ RSpec/ChangeByZero:
14
+ Enabled: true
12
15
 
13
16
  RSpec/ContextMethod:
14
- Enabled: false # TODO
17
+ Enabled: true
15
18
 
16
19
  RSpec/ContextWording:
17
- Enabled: false # To be decided
20
+ Enabled: true
21
+ Prefixes:
22
+ - when
23
+ - with
24
+ - without
25
+ - for
26
+ - while
27
+ - if
28
+ - as
29
+ - after
18
30
 
19
31
  RSpec/DescribeClass:
20
- Enabled: false # To be decided
32
+ Enabled: true
33
+ Exclude:
34
+ - "**/spec/features/**/*"
35
+ - "**/spec/requests/**/*"
36
+ - "**/spec/routing/**/*"
37
+ - "**/spec/system/**/*"
38
+ - "**/spec/views/**/*"
39
+ - "**/spec/initializers/**/*"
40
+ - "**/spec/integration/**/*"
41
+ - "**/spec/integrity/**/*"
42
+ - "**/spec/tasks/**/*"
43
+ - "**/spec/lib/freedom_patches/**/*"
44
+ - "**/spec/multisite/**/*"
21
45
 
22
46
  RSpec/DescribeMethod:
23
47
  Enabled: true
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-discourse
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.6.0
5
5
  platform: ruby
6
6
  authors:
7
- - David Taylor
7
+ - Discourse Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-01 00:00:00.000000000 Z
11
+ date: 2022-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop