ragnarson-stylecheck 0.3.0 → 0.4.0
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 +4 -4
- data/config/rubocop.yml +37 -26
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a1e640a46c3a0d58c69a6dbffdfe7b8bfd4a2555
|
|
4
|
+
data.tar.gz: f48896e82c18f912beeecaec174a809460090a7b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bb930b25fe0ea37a4dfec7b744007a9ea697ce16b360d28a58760ce58908411c69f673e19010daa4e892168ce816858570b47ae31e2127c248db91f7adaef540
|
|
7
|
+
data.tar.gz: baa00b610cd1fc90401d066fb334c51e7b49bb9404ca8afe6a99ffaa58113ff23c98db5219d6a542bafa6e2caf80a2861986dffebef997f80b69281dc6400533
|
data/config/rubocop.yml
CHANGED
|
@@ -1,46 +1,66 @@
|
|
|
1
1
|
AllCops:
|
|
2
2
|
TargetRubyVersion: 2.3
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
##################### Layout ##################################
|
|
5
|
+
|
|
6
|
+
Layout/AlignHash:
|
|
5
7
|
EnforcedHashRocketStyle: table
|
|
6
8
|
EnforcedColonStyle: table
|
|
7
9
|
|
|
8
|
-
Style/ClassAndModuleChildren:
|
|
9
|
-
Enabled: false
|
|
10
|
-
|
|
11
10
|
# Multi-line method chaining should be done with leading dots.
|
|
12
|
-
|
|
11
|
+
Layout/DotPosition:
|
|
13
12
|
EnforcedStyle: trailing
|
|
14
13
|
|
|
15
14
|
# Use empty lines between defs.
|
|
16
|
-
|
|
15
|
+
Layout/EmptyLineBetweenDefs:
|
|
17
16
|
# If true, this parameter means that single line method definitions don't
|
|
18
17
|
# need an empty line between them.
|
|
19
18
|
AllowAdjacentOneLineDefs: true
|
|
20
19
|
|
|
21
|
-
|
|
20
|
+
Layout/EmptyLines:
|
|
22
21
|
Exclude:
|
|
23
22
|
- Gemfile
|
|
24
23
|
|
|
25
|
-
|
|
26
|
-
Enabled: false
|
|
27
|
-
|
|
28
|
-
Style/MultilineHashBraceLayout:
|
|
24
|
+
Layout/MultilineHashBraceLayout:
|
|
29
25
|
EnforcedStyle: symmetrical
|
|
30
26
|
|
|
31
|
-
|
|
27
|
+
Layout/MultilineMethodCallIndentation:
|
|
32
28
|
EnforcedStyle: indented
|
|
33
29
|
|
|
34
|
-
|
|
30
|
+
Layout/MultilineOperationIndentation:
|
|
35
31
|
EnforcedStyle: indented
|
|
36
32
|
|
|
33
|
+
##################### Lint ##################################
|
|
34
|
+
|
|
35
|
+
# Allow logical `or`/`and` in conditionals
|
|
36
|
+
|
|
37
|
+
Lint/AssignmentInCondition:
|
|
38
|
+
Enabled: false
|
|
39
|
+
|
|
40
|
+
##################### Style ##################################
|
|
41
|
+
|
|
42
|
+
Style/AndOr:
|
|
43
|
+
EnforcedStyle: conditionals
|
|
44
|
+
|
|
45
|
+
Style/ClassAndModuleChildren:
|
|
46
|
+
Enabled: false
|
|
47
|
+
|
|
48
|
+
Style/Documentation:
|
|
49
|
+
Enabled: false
|
|
50
|
+
|
|
37
51
|
# Enforce the method used for string formatting.
|
|
38
52
|
Style/FormatString:
|
|
39
53
|
Enabled: false
|
|
40
54
|
|
|
55
|
+
Style/FrozenStringLiteralComment:
|
|
56
|
+
Enabled: false
|
|
57
|
+
|
|
41
58
|
Style/IfUnlessModifier:
|
|
42
59
|
MaxLineLength: 120
|
|
43
60
|
|
|
61
|
+
Style/RaiseArgs:
|
|
62
|
+
Enabled: false
|
|
63
|
+
|
|
44
64
|
Style/StringLiterals:
|
|
45
65
|
EnforcedStyle: double_quotes
|
|
46
66
|
Exclude:
|
|
@@ -53,25 +73,15 @@ Style/StringLiteralsInInterpolation:
|
|
|
53
73
|
Style/TrailingCommaInLiteral:
|
|
54
74
|
Enabled: false
|
|
55
75
|
|
|
56
|
-
Style/RaiseArgs:
|
|
57
|
-
Enabled: false
|
|
58
|
-
|
|
59
|
-
# Allow logical `or`/`and` in conditionals
|
|
60
|
-
Style/AndOr:
|
|
61
|
-
EnforcedStyle: conditionals
|
|
62
|
-
|
|
63
|
-
Lint/AssignmentInCondition:
|
|
64
|
-
Enabled: false
|
|
65
|
-
|
|
66
|
-
Style/Documentation:
|
|
67
|
-
Enabled: false
|
|
68
|
-
|
|
69
76
|
##################### Metrics ##################################
|
|
70
77
|
|
|
71
78
|
Metrics/AbcSize:
|
|
72
79
|
Severity: warning
|
|
73
80
|
Max: 25
|
|
74
81
|
|
|
82
|
+
Metrics/BlockLength:
|
|
83
|
+
Max: 30
|
|
84
|
+
|
|
75
85
|
Metrics/LineLength:
|
|
76
86
|
Max: 120
|
|
77
87
|
# To make it possible to copy or click on URIs in the code, we allow lines
|
|
@@ -91,6 +101,7 @@ AllCops:
|
|
|
91
101
|
Exclude:
|
|
92
102
|
- db/schema.rb
|
|
93
103
|
- bin/**
|
|
104
|
+
- node_modules/**/*
|
|
94
105
|
|
|
95
106
|
Style/BlockDelimiters:
|
|
96
107
|
Exclude:
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ragnarson-stylecheck
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Grzesiek Kołodziejczyk
|
|
@@ -47,14 +47,14 @@ dependencies:
|
|
|
47
47
|
requirements:
|
|
48
48
|
- - "~>"
|
|
49
49
|
- !ruby/object:Gem::Version
|
|
50
|
-
version: '0.
|
|
50
|
+
version: '0.49'
|
|
51
51
|
type: :runtime
|
|
52
52
|
prerelease: false
|
|
53
53
|
version_requirements: !ruby/object:Gem::Requirement
|
|
54
54
|
requirements:
|
|
55
55
|
- - "~>"
|
|
56
56
|
- !ruby/object:Gem::Version
|
|
57
|
-
version: '0.
|
|
57
|
+
version: '0.49'
|
|
58
58
|
description: Wraps rubocop for simple and consisten experience
|
|
59
59
|
email: hello@ragnarson.com
|
|
60
60
|
executables: []
|
|
@@ -90,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
90
90
|
version: '0'
|
|
91
91
|
requirements: []
|
|
92
92
|
rubyforge_project:
|
|
93
|
-
rubygems_version: 2.
|
|
93
|
+
rubygems_version: 2.6.11
|
|
94
94
|
signing_key:
|
|
95
95
|
specification_version: 4
|
|
96
96
|
summary: Automatic style check for ragnarson projects
|