best_practice_project 0.0.11 → 0.0.12
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/.github/dependabot.yml +9 -0
- data/.rubocop.yml +4 -4
- data/Gemfile.lock +58 -36
- data/VERSION +1 -1
- data/best_practice_project.gemspec +5 -4
- data/lib/best_practice_project/config/rubocop.yml +23 -4
- data/lib/best_practice_project/rubocop_handler.rb +2 -2
- data/lib/tasks/best_practice_project.rake +7 -7
- data/peak_flow.yml +1 -0
- data/spec/spec_helper.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b2cb428f44170d31489e912a6a7b03a7387654e2960b9e0fc8687305b098fdef
|
|
4
|
+
data.tar.gz: 81c82fcd36f5c7b919b7a50f36c9b7ed50ea54e146d9ef344c0d710c685c74b7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c87ff244c727f7f71da0b1d3155e2db178efad8b3386d41950db8c80394ebd17bb2a4265c84669e6cad5fcc487ea6b7f896009ee9668f7be8108d3e4e93cbfaf
|
|
7
|
+
data.tar.gz: 0a6e19722ceb7753f78dbaea8693052dadfeca0a8c2ea4cefb191b4d063e6873744c4b88f28460460c25c6741c853a26ab8003bae3fab038a3eae93228111810
|
data/.rubocop.yml
CHANGED
|
@@ -16,10 +16,7 @@ require:
|
|
|
16
16
|
Layout/AccessModifierIndentation:
|
|
17
17
|
EnforcedStyle: outdent
|
|
18
18
|
|
|
19
|
-
Layout/
|
|
20
|
-
EnforcedStyle: with_fixed_indentation
|
|
21
|
-
|
|
22
|
-
Layout/AlignArguments:
|
|
19
|
+
Layout/ArgumentAlignment:
|
|
23
20
|
EnforcedStyle: with_fixed_indentation
|
|
24
21
|
|
|
25
22
|
Layout/CaseIndentation:
|
|
@@ -40,6 +37,9 @@ Layout/MultilineMethodCallIndentation:
|
|
|
40
37
|
Layout/MultilineOperationIndentation:
|
|
41
38
|
EnforcedStyle: indented
|
|
42
39
|
|
|
40
|
+
Layout/ParameterAlignment:
|
|
41
|
+
EnforcedStyle: with_fixed_indentation
|
|
42
|
+
|
|
43
43
|
Layout/SpaceInsideHashLiteralBraces:
|
|
44
44
|
EnforcedStyle: no_space
|
|
45
45
|
|
data/Gemfile.lock
CHANGED
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
GEM
|
|
2
2
|
remote: http://rubygems.org/
|
|
3
3
|
specs:
|
|
4
|
-
|
|
4
|
+
activesupport (6.1.4.1)
|
|
5
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
6
|
+
i18n (>= 1.6, < 2)
|
|
7
|
+
minitest (>= 5.1)
|
|
8
|
+
tzinfo (~> 2.0)
|
|
9
|
+
zeitwerk (~> 2.3)
|
|
10
|
+
addressable (2.8.0)
|
|
5
11
|
public_suffix (>= 2.0.2, < 5.0)
|
|
6
|
-
ast (2.4.
|
|
12
|
+
ast (2.4.2)
|
|
7
13
|
auto_autoloader (0.0.5)
|
|
8
14
|
string-cases
|
|
9
15
|
builder (3.2.3)
|
|
16
|
+
concurrent-ruby (1.1.9)
|
|
10
17
|
descendants_tracker (0.0.4)
|
|
11
18
|
thread_safe (~> 0.3, >= 0.3.1)
|
|
12
|
-
diff-lcs (1.
|
|
19
|
+
diff-lcs (1.4.4)
|
|
13
20
|
faraday (0.17.0)
|
|
14
21
|
multipart-post (>= 1.2, < 3)
|
|
15
22
|
git (1.5.0)
|
|
@@ -21,7 +28,8 @@ GEM
|
|
|
21
28
|
oauth2 (~> 1.0)
|
|
22
29
|
hashie (3.6.0)
|
|
23
30
|
highline (2.0.3)
|
|
24
|
-
|
|
31
|
+
i18n (1.8.10)
|
|
32
|
+
concurrent-ruby (~> 1.0)
|
|
25
33
|
juwelier (2.4.9)
|
|
26
34
|
builder
|
|
27
35
|
bundler
|
|
@@ -37,59 +45,73 @@ GEM
|
|
|
37
45
|
jwt (2.2.1)
|
|
38
46
|
kamelcase (0.0.2)
|
|
39
47
|
semver2 (~> 3)
|
|
40
|
-
mini_portile2 (2.
|
|
48
|
+
mini_portile2 (2.6.1)
|
|
49
|
+
minitest (5.14.4)
|
|
41
50
|
multi_json (1.14.1)
|
|
42
51
|
multi_xml (0.6.0)
|
|
43
52
|
multipart-post (2.1.1)
|
|
44
|
-
nokogiri (1.
|
|
45
|
-
mini_portile2 (~> 2.
|
|
53
|
+
nokogiri (1.12.5)
|
|
54
|
+
mini_portile2 (~> 2.6.1)
|
|
55
|
+
racc (~> 1.4)
|
|
46
56
|
oauth2 (1.4.2)
|
|
47
57
|
faraday (>= 0.8, < 2.0)
|
|
48
58
|
jwt (>= 1.0, < 3.0)
|
|
49
59
|
multi_json (~> 1.3)
|
|
50
60
|
multi_xml (~> 0.5)
|
|
51
61
|
rack (>= 1.2, < 3)
|
|
52
|
-
parallel (1.
|
|
53
|
-
parser (
|
|
54
|
-
ast (~> 2.4.
|
|
62
|
+
parallel (1.21.0)
|
|
63
|
+
parser (3.0.2.0)
|
|
64
|
+
ast (~> 2.4.1)
|
|
55
65
|
psych (3.1.0)
|
|
56
|
-
public_suffix (4.0.
|
|
57
|
-
|
|
66
|
+
public_suffix (4.0.6)
|
|
67
|
+
racc (1.5.2)
|
|
68
|
+
rack (2.2.3)
|
|
58
69
|
rainbow (3.0.0)
|
|
59
70
|
rake (13.0.0)
|
|
60
|
-
rdoc (6.2
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
rspec-
|
|
65
|
-
|
|
66
|
-
rspec-
|
|
67
|
-
rspec-
|
|
71
|
+
rdoc (6.3.2)
|
|
72
|
+
regexp_parser (2.1.1)
|
|
73
|
+
rexml (3.2.5)
|
|
74
|
+
rspec (3.10.0)
|
|
75
|
+
rspec-core (~> 3.10.0)
|
|
76
|
+
rspec-expectations (~> 3.10.0)
|
|
77
|
+
rspec-mocks (~> 3.10.0)
|
|
78
|
+
rspec-core (3.10.0)
|
|
79
|
+
rspec-support (~> 3.10.0)
|
|
80
|
+
rspec-expectations (3.10.0)
|
|
68
81
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
69
|
-
rspec-support (~> 3.
|
|
70
|
-
rspec-mocks (3.
|
|
82
|
+
rspec-support (~> 3.10.0)
|
|
83
|
+
rspec-mocks (3.10.0)
|
|
71
84
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
72
|
-
rspec-support (~> 3.
|
|
73
|
-
rspec-support (3.
|
|
74
|
-
rubocop (
|
|
75
|
-
jaro_winkler (~> 1.5.1)
|
|
85
|
+
rspec-support (~> 3.10.0)
|
|
86
|
+
rspec-support (3.10.0)
|
|
87
|
+
rubocop (1.22.0)
|
|
76
88
|
parallel (~> 1.10)
|
|
77
|
-
parser (>=
|
|
89
|
+
parser (>= 3.0.0.0)
|
|
78
90
|
rainbow (>= 2.2.2, < 4.0)
|
|
91
|
+
regexp_parser (>= 1.8, < 3.0)
|
|
92
|
+
rexml
|
|
93
|
+
rubocop-ast (>= 1.12.0, < 2.0)
|
|
79
94
|
ruby-progressbar (~> 1.7)
|
|
80
|
-
unicode-display_width (>= 1.4.0, <
|
|
81
|
-
rubocop-
|
|
82
|
-
|
|
83
|
-
rubocop-
|
|
95
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
|
96
|
+
rubocop-ast (1.12.0)
|
|
97
|
+
parser (>= 3.0.1.1)
|
|
98
|
+
rubocop-performance (1.11.5)
|
|
99
|
+
rubocop (>= 1.7.0, < 2.0)
|
|
100
|
+
rubocop-ast (>= 0.4.0)
|
|
101
|
+
rubocop-rails (2.12.2)
|
|
102
|
+
activesupport (>= 4.2.0)
|
|
84
103
|
rack (>= 1.1)
|
|
85
|
-
rubocop (>=
|
|
86
|
-
rubocop-rspec (
|
|
87
|
-
rubocop (
|
|
88
|
-
ruby-progressbar (1.
|
|
104
|
+
rubocop (>= 1.7.0, < 2.0)
|
|
105
|
+
rubocop-rspec (2.5.0)
|
|
106
|
+
rubocop (~> 1.19)
|
|
107
|
+
ruby-progressbar (1.11.0)
|
|
89
108
|
semver2 (3.4.2)
|
|
90
109
|
string-cases (0.0.4)
|
|
91
110
|
thread_safe (0.3.6)
|
|
92
|
-
|
|
111
|
+
tzinfo (2.0.4)
|
|
112
|
+
concurrent-ruby (~> 1.0)
|
|
113
|
+
unicode-display_width (2.1.0)
|
|
114
|
+
zeitwerk (2.4.2)
|
|
93
115
|
|
|
94
116
|
PLATFORMS
|
|
95
117
|
ruby
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.12
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: best_practice_project 0.0.
|
|
5
|
+
# stub: best_practice_project 0.0.12 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "best_practice_project".freeze
|
|
9
|
-
s.version = "0.0.
|
|
9
|
+
s.version = "0.0.12"
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
|
12
12
|
s.require_paths = ["lib".freeze]
|
|
13
13
|
s.authors = ["kaspernj".freeze]
|
|
14
|
-
s.date = "
|
|
14
|
+
s.date = "2021-10-03"
|
|
15
15
|
s.description = "A bundle of various linters and code inspection tools".freeze
|
|
16
16
|
s.email = "k@spernj.org".freeze
|
|
17
17
|
s.extra_rdoc_files = [
|
|
@@ -20,6 +20,7 @@ Gem::Specification.new do |s|
|
|
|
20
20
|
]
|
|
21
21
|
s.files = [
|
|
22
22
|
".document",
|
|
23
|
+
".github/dependabot.yml",
|
|
23
24
|
".rspec",
|
|
24
25
|
".rubocop.yml",
|
|
25
26
|
".ruby-version",
|
|
@@ -46,7 +47,7 @@ Gem::Specification.new do |s|
|
|
|
46
47
|
]
|
|
47
48
|
s.homepage = "http://github.com/kaspernj/best_practice_project".freeze
|
|
48
49
|
s.licenses = ["MIT".freeze]
|
|
49
|
-
s.rubygems_version = "3.0.
|
|
50
|
+
s.rubygems_version = "3.0.8".freeze
|
|
50
51
|
s.summary = "A bundle of various linters and code inspection tools".freeze
|
|
51
52
|
|
|
52
53
|
if s.respond_to? :specification_version then
|
|
@@ -15,10 +15,7 @@ require:
|
|
|
15
15
|
Layout/AccessModifierIndentation:
|
|
16
16
|
EnforcedStyle: outdent
|
|
17
17
|
|
|
18
|
-
Layout/
|
|
19
|
-
EnforcedStyle: with_fixed_indentation
|
|
20
|
-
|
|
21
|
-
Layout/AlignArguments:
|
|
18
|
+
Layout/ArgumentAlignment:
|
|
22
19
|
EnforcedStyle: with_fixed_indentation
|
|
23
20
|
|
|
24
21
|
Layout/CaseIndentation:
|
|
@@ -39,12 +36,21 @@ Layout/MultilineMethodCallIndentation:
|
|
|
39
36
|
Layout/MultilineOperationIndentation:
|
|
40
37
|
EnforcedStyle: indented
|
|
41
38
|
|
|
39
|
+
Layout/ParameterAlignment:
|
|
40
|
+
EnforcedStyle: with_fixed_indentation
|
|
41
|
+
|
|
42
42
|
Layout/RescueEnsureAlignment:
|
|
43
43
|
Enabled: false
|
|
44
44
|
|
|
45
45
|
Layout/SpaceInsideHashLiteralBraces:
|
|
46
46
|
EnforcedStyle: no_space
|
|
47
47
|
|
|
48
|
+
Lint/RaiseException:
|
|
49
|
+
Enabled: true
|
|
50
|
+
|
|
51
|
+
Lint/StructNewOverride:
|
|
52
|
+
Enabled: true
|
|
53
|
+
|
|
48
54
|
Metrics/AbcSize:
|
|
49
55
|
Max: 25
|
|
50
56
|
|
|
@@ -100,6 +106,10 @@ RSpec/NamedSubject:
|
|
|
100
106
|
RSpec/NestedGroups:
|
|
101
107
|
Enabled: false
|
|
102
108
|
|
|
109
|
+
# This can make expectaions look weird: Prefer using be_rvm_in_build_config matcher over rvm_in_build_config?
|
|
110
|
+
RSpec/PredicateMatcher:
|
|
111
|
+
Enabled: false
|
|
112
|
+
|
|
103
113
|
Style/ClassAndModuleChildren:
|
|
104
114
|
EnforcedStyle: compact
|
|
105
115
|
|
|
@@ -116,6 +126,15 @@ Style/FrozenStringLiteralComment:
|
|
|
116
126
|
Style/GuardClause:
|
|
117
127
|
Enabled: false
|
|
118
128
|
|
|
129
|
+
Style/HashEachMethods:
|
|
130
|
+
Enabled: true
|
|
131
|
+
|
|
132
|
+
Style/HashTransformKeys:
|
|
133
|
+
Enabled: true
|
|
134
|
+
|
|
135
|
+
Style/HashTransformValues:
|
|
136
|
+
Enabled: true
|
|
137
|
+
|
|
119
138
|
Style/Lambda:
|
|
120
139
|
Enabled: false
|
|
121
140
|
|
|
@@ -14,7 +14,7 @@ class BestPracticeProject::RubocopHandler < BestPracticeProject::BaseHandler
|
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
def command
|
|
17
|
-
command = "bundle exec rubocop --display-cop-names"
|
|
17
|
+
command = "bundle exec rubocop --display-cop-names --enable-pending-cops"
|
|
18
18
|
command << " --auto-correct" if ARGV.include?("auto-correct")
|
|
19
19
|
|
|
20
20
|
command
|
|
@@ -30,7 +30,7 @@ class BestPracticeProject::RubocopHandler < BestPracticeProject::BaseHandler
|
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
def generate_todo_config
|
|
33
|
-
rubocop_command = "rubocop --display-cop-names --auto-gen-config --config=#{@config_path}"
|
|
33
|
+
rubocop_command = "rubocop --display-cop-names --enable-pending-cops --auto-gen-config --config=#{@config_path}"
|
|
34
34
|
rubocop_command << " --rails" if rails?
|
|
35
35
|
|
|
36
36
|
system(rubocop_command)
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
namespace "best_practice_project" do
|
|
2
|
-
task "run" do |_t, _args|
|
|
2
|
+
task "run" do |_t, _args| # rubocop:disable Rails/RakeEnvironment
|
|
3
3
|
exit BestPracticeProject.new.execute
|
|
4
4
|
end
|
|
5
5
|
|
|
6
|
-
task "run_haml_lint" do
|
|
6
|
+
task "run_haml_lint" do # rubocop:disable Rails/RakeEnvironment
|
|
7
7
|
exit BestPracticeProject.new.haml_lint_handler.execute
|
|
8
8
|
end
|
|
9
9
|
|
|
10
|
-
task "run_rubocop" do
|
|
10
|
+
task "run_rubocop" do # rubocop:disable Rails/RakeEnvironment
|
|
11
11
|
exit BestPracticeProject.new.rubocop_handler.execute
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
task "run_scss_lint" do
|
|
14
|
+
task "run_scss_lint" do # rubocop:disable Rails/RakeEnvironment
|
|
15
15
|
exit BestPracticeProject.new.scss_lint_handler.execute
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
-
task "run_coffee_lint" do
|
|
18
|
+
task "run_coffee_lint" do # rubocop:disable Rails/RakeEnvironment
|
|
19
19
|
exit BestPracticeProject.new.coffee_lint_handler.execute
|
|
20
20
|
end
|
|
21
21
|
|
|
22
|
-
task "run_rails_best_practices" do
|
|
22
|
+
task "run_rails_best_practices" do # rubocop:disable Rails/RakeEnvironment
|
|
23
23
|
exit BestPracticeProject.new.rails_best_practices_handler.execute
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
-
task "generate_configs" do
|
|
26
|
+
task "generate_configs" do # rubocop:disable Rails/RakeEnvironment
|
|
27
27
|
BestPracticeProject.new.generate_configs
|
|
28
28
|
end
|
|
29
29
|
end
|
data/peak_flow.yml
CHANGED
data/spec/spec_helper.rb
CHANGED
|
@@ -6,7 +6,7 @@ require "best_practice_project"
|
|
|
6
6
|
|
|
7
7
|
# Requires supporting files with custom matchers and macros, etc,
|
|
8
8
|
# in ./support/ and its subdirectories.
|
|
9
|
-
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
|
9
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].sort.each { |f| require f }
|
|
10
10
|
|
|
11
11
|
RSpec.configure do |config|
|
|
12
12
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: best_practice_project
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.12
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- kaspernj
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-10-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: auto_autoloader
|
|
@@ -131,6 +131,7 @@ extra_rdoc_files:
|
|
|
131
131
|
- README.md
|
|
132
132
|
files:
|
|
133
133
|
- ".document"
|
|
134
|
+
- ".github/dependabot.yml"
|
|
134
135
|
- ".rspec"
|
|
135
136
|
- ".rubocop.yml"
|
|
136
137
|
- ".ruby-version"
|
|
@@ -173,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
173
174
|
- !ruby/object:Gem::Version
|
|
174
175
|
version: '0'
|
|
175
176
|
requirements: []
|
|
176
|
-
rubygems_version: 3.0.
|
|
177
|
+
rubygems_version: 3.0.8
|
|
177
178
|
signing_key:
|
|
178
179
|
specification_version: 4
|
|
179
180
|
summary: A bundle of various linters and code inspection tools
|