dry-equalizer 0.1.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,22 +0,0 @@
1
- language: ruby
2
- bundler_args: --without yard guard benchmarks
3
- script: "bundle exec rake ci"
4
- cache: bundler
5
- sudo: false
6
- rvm:
7
- - 2.1
8
- - 2.2
9
- - ruby-head
10
- - rbx-2
11
- matrix:
12
- include:
13
- - rvm: jruby-9000
14
- env: JRUBY_OPTS="$JRUBY_OPTS --debug --2.0" # for simplecov
15
- - rvm: jruby-head
16
- env: JRUBY_OPTS="$JRUBY_OPTS --debug --2.0" # for simplecov
17
- allow_failures:
18
- - rvm: jruby-9000
19
- - rvm: jruby-head
20
- - rvm: rbx-2
21
- - rvm: ruby-head
22
- fast_finish: true
@@ -1,2 +0,0 @@
1
- ---
2
- unit_test_timeout: 1.0
@@ -1,4 +0,0 @@
1
- ---
2
- threshold: 0
3
- total_score: 0
4
- lib_dirs: []
@@ -1,3 +0,0 @@
1
- ---
2
- threshold: 15.6
3
- lib_dirs: ['lib']
@@ -1,2 +0,0 @@
1
- name: equalizer
2
- namespace: Equalizer
@@ -1,105 +0,0 @@
1
- ---
2
- Attribute:
3
- enabled: false
4
- exclude: []
5
- BooleanParameter:
6
- enabled: true
7
- exclude: []
8
- ClassVariable:
9
- enabled: true
10
- exclude: []
11
- ControlParameter:
12
- enabled: true
13
- exclude: []
14
- DataClump:
15
- enabled: true
16
- exclude: []
17
- max_copies: 2
18
- min_clump_size: 2
19
- DuplicateMethodCall:
20
- enabled: true
21
- exclude: []
22
- max_calls: 1
23
- allow_calls: []
24
- FeatureEnvy:
25
- enabled: true
26
- exclude: []
27
- IrresponsibleModule:
28
- enabled: true
29
- exclude: []
30
- LongParameterList:
31
- enabled: true
32
- exclude: []
33
- max_params: 2
34
- overrides:
35
- initialize:
36
- max_params: 3
37
- LongYieldList:
38
- enabled: true
39
- exclude: []
40
- max_params: 2
41
- NestedIterators:
42
- enabled: true
43
- exclude:
44
- - Equalizer#define_cmp_method
45
- - Equalizer#define_inspect_method
46
- max_allowed_nesting: 1
47
- ignore_iterators: []
48
- NilCheck:
49
- enabled: true
50
- exclude: []
51
- RepeatedConditional:
52
- enabled: true
53
- exclude: []
54
- max_ifs: 1
55
- TooManyInstanceVariables:
56
- enabled: true
57
- exclude: []
58
- max_instance_variables: 3
59
- TooManyMethods:
60
- enabled: true
61
- exclude: []
62
- max_methods: 6
63
- TooManyStatements:
64
- enabled: true
65
- exclude:
66
- - Equalizer#define_inspect_method
67
- max_statements: 5
68
- UncommunicativeMethodName:
69
- enabled: true
70
- exclude: []
71
- reject:
72
- - !ruby/regexp /^[a-z]$/
73
- - !ruby/regexp /[0-9]$/
74
- - !ruby/regexp /[A-Z]/
75
- accept: []
76
- UncommunicativeModuleName:
77
- enabled: true
78
- exclude: []
79
- reject:
80
- - !ruby/regexp /^.$/
81
- - !ruby/regexp /[0-9]$/
82
- accept: []
83
- UncommunicativeParameterName:
84
- enabled: true
85
- exclude: []
86
- reject:
87
- - !ruby/regexp /^.$/
88
- - !ruby/regexp /[0-9]$/
89
- - !ruby/regexp /[A-Z]/
90
- accept: []
91
- UncommunicativeVariableName:
92
- enabled: true
93
- exclude: []
94
- reject:
95
- - !ruby/regexp /^.$/
96
- - !ruby/regexp /[0-9]$/
97
- - !ruby/regexp /[A-Z]/
98
- accept: []
99
- UnusedParameters:
100
- enabled: true
101
- exclude: []
102
- UtilityFunction:
103
- enabled: true
104
- exclude: []
105
- max_helper_calls: 0
@@ -1,115 +0,0 @@
1
- # Avoid parameter lists longer than five parameters.
2
- ParameterLists:
3
- Max: 3
4
- CountKeywordArgs: true
5
-
6
- # Avoid more than `Max` levels of nesting.
7
- BlockNesting:
8
- Max: 3
9
-
10
- # Align with the style guide.
11
- CollectionMethods:
12
- PreferredMethods:
13
- collect: 'map'
14
- inject: 'reduce'
15
- find: 'detect'
16
- find_all: 'select'
17
-
18
- # Do not force public/protected/private keyword to be indented at the same
19
- # level as the def keyword. My personal preference is to outdent these keywords
20
- # because I think when scanning code it makes it easier to identify the
21
- # sections of code and visually separate them. When the keyword is at the same
22
- # level I think it sort of blends in with the def keywords and makes it harder
23
- # to scan the code and see where the sections are.
24
- AccessModifierIndentation:
25
- Enabled: false
26
-
27
- # Limit line length
28
- LineLength:
29
- Max: 106
30
-
31
- # Disable documentation checking until a class needs to be documented once
32
- Documentation:
33
- Enabled: false
34
-
35
- # Do not always use &&/|| instead of and/or.
36
- AndOr:
37
- Enabled: false
38
-
39
- # Do not favor modifier if/unless usage when you have a single-line body
40
- IfUnlessModifier:
41
- Enabled: false
42
-
43
- # Allow case equality operator (in limited use within the specs)
44
- CaseEquality:
45
- Enabled: false
46
-
47
- # Constants do not always have to use SCREAMING_SNAKE_CASE
48
- ConstantName:
49
- Enabled: false
50
-
51
- # Not all trivial readers/writers can be defined with attr_* methods
52
- TrivialAccessors:
53
- Enabled: false
54
-
55
- # Allow empty lines around class body
56
- EmptyLinesAroundClassBody:
57
- Enabled: false
58
-
59
- # Allow empty lines around module body
60
- EmptyLinesAroundModuleBody:
61
- Enabled: false
62
-
63
- # Allow empty lines around block body
64
- EmptyLinesAroundBlockBody:
65
- Enabled: false
66
-
67
- # Allow multiple line operations to not require indentation
68
- MultilineOperationIndentation:
69
- Enabled: false
70
-
71
- # Prefer String#% over Kernel#sprintf
72
- FormatString:
73
- Enabled: false
74
-
75
- # Use square brackets for literal Array objects
76
- PercentLiteralDelimiters:
77
- PreferredDelimiters:
78
- '%': '{}'
79
- '%i': '[]'
80
- '%q': ()
81
- '%Q': ()
82
- '%r': '{}'
83
- '%s': ()
84
- '%w': '[]'
85
- '%W': '[]'
86
- '%x': ()
87
-
88
- # Use %i[...] for arrays of symbols
89
- SymbolArray:
90
- Enabled: true
91
-
92
- # Align if/else blocks with the variable assignment
93
- EndAlignment:
94
- AlignWith: variable
95
-
96
- # Do not always align parameters when it is easier to read
97
- AlignParameters:
98
- Exclude:
99
- - spec/**/*_spec.rb
100
-
101
- # Prefer #kind_of? over #is_a?
102
- ClassCheck:
103
- EnforcedStyle: kind_of?
104
-
105
- # Do not prefer double quotes to be used when %q or %Q is more appropriate
106
- UnneededPercentQ:
107
- Enabled: false
108
-
109
- # Allow a maximum ABC score
110
- Metrics/AbcSize:
111
- Max: 8.6
112
-
113
- # Do not prefer lambda.call(...) over lambda.(...)
114
- LambdaCall:
115
- Enabled: false
@@ -1,34 +0,0 @@
1
- ---
2
- path: 'lib/**/*.rb'
3
- threshold: 100
4
- rules:
5
- ApiTag::Presence:
6
- enabled: true
7
- exclude: []
8
- ApiTag::Inclusion:
9
- enabled: true
10
- exclude: []
11
- ApiTag::ProtectedMethod:
12
- enabled: true
13
- exclude: []
14
- ApiTag::PrivateMethod:
15
- enabled: true
16
- exclude: []
17
- ExampleTag:
18
- enabled: true
19
- exclude: []
20
- ReturnTag:
21
- enabled: true
22
- exclude: []
23
- Summary::Presence:
24
- enabled: true
25
- exclude: []
26
- Summary::Length:
27
- enabled: true
28
- exclude: []
29
- Summary::Delimiter:
30
- enabled: true
31
- exclude: []
32
- Summary::SingleLine:
33
- enabled: true
34
- exclude: []