forked from CanCanCommunity/cancancan
/
.rubocop_todo.yml
54 lines (43 loc) · 1.23 KB
/
.rubocop_todo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2016-12-14 08:11:19 +0100 using RuboCop version 0.45.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# Offense count: 14
Metrics/AbcSize:
Max: 25
# Offense count: 5
Metrics/CyclomaticComplexity:
Max: 9
# Offense count: 14
# Configuration parameters: CountComments.
Metrics/MethodLength:
Max: 21
Metrics/BlockLength:
Max: 28
Exclude:
- "**/*_spec.rb"
# Offense count: 7
Metrics/PerceivedComplexity:
Max: 11
# TODO: due to mongoid. can't be fixed
# Offense count: 1
Performance/FixedSize:
Exclude:
- 'spec/cancan/model_adapters/mongoid_adapter_spec.rb'
# TODO: fixing this would change the APIs
# Offense count: 2
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist.
# NamePrefix: is_, has_, have_
# NamePrefixBlacklist: is_, has_, have_
# NameWhitelist: is_a?
Style/PredicateName:
Exclude:
- 'spec/**/*'
- 'lib/cancan/ability.rb'
Style/SymbolArray:
Enabled: false
Style/InverseMethods:
Enabled: false