trailblazer 2.1.0 → 2.1.2
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 +6 -0
- data/.github/workflows/ci.yml +19 -0
- data/.github/workflows/ci_jruby.yml +19 -0
- data/.github/workflows/ci_legacy.yml +19 -0
- data/.github/workflows/ci_truffleruby.yml +19 -0
- data/CHANGES.md +9 -0
- data/README.md +16 -16
- data/lib/trailblazer/version.rb +1 -1
- data/trailblazer.gemspec +14 -4
- metadata +42 -15
- data/.rubocop-https---raw-githubusercontent-com-trailblazer-meta-master-rubocop-yml +0 -101
- data/.rubocop.yml +0 -20
- data/.rubocop_todo.yml +0 -556
- data/.travis.yml +0 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9408be91d18dd6ffcfd37798706abcd9c3ec53ec60b6b99aff17368bc2c8cba1
|
|
4
|
+
data.tar.gz: 545fbb44de7d6078941e0304c4390e28c92984a7b44cc75dc74f7c160917bffc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fc0cc222a82c69e04bfe3c53ee0f166a9705acb09d665a49418b9a61a1e7ae61531609d36d4444e0db386828871fdc6ee9a13ad6df215e96e3560e8d65bd3e8c
|
|
7
|
+
data.tar.gz: af02a1954582ca6c9b767d98613b51b1ca96922b988c3b6a24cd122caf7d998d8a8d60a0c945b01392432983e2cc94eb2921a6b5982796a497e72df15cc7a12a
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
## This file is managed by Terraform.
|
|
2
|
+
## Do not modify this file directly, as it may be overwritten.
|
|
3
|
+
## Please open an issue instead.
|
|
4
|
+
name: CI
|
|
5
|
+
on: [push, pull_request]
|
|
6
|
+
jobs:
|
|
7
|
+
test:
|
|
8
|
+
strategy:
|
|
9
|
+
fail-fast: false
|
|
10
|
+
matrix:
|
|
11
|
+
ruby: [2.7, '3.0', '3.1']
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v3
|
|
15
|
+
- uses: ruby/setup-ruby@v1
|
|
16
|
+
with:
|
|
17
|
+
ruby-version: ${{ matrix.ruby }}
|
|
18
|
+
bundler-cache: true
|
|
19
|
+
- run: bundle exec rake
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
## This file is managed by Terraform.
|
|
2
|
+
## Do not modify this file directly, as it may be overwritten.
|
|
3
|
+
## Please open an issue instead.
|
|
4
|
+
name: CI JRuby
|
|
5
|
+
on: [push, pull_request]
|
|
6
|
+
jobs:
|
|
7
|
+
test:
|
|
8
|
+
strategy:
|
|
9
|
+
fail-fast: false
|
|
10
|
+
matrix:
|
|
11
|
+
ruby: [jruby, jruby-head]
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v3
|
|
15
|
+
- uses: ruby/setup-ruby@v1
|
|
16
|
+
with:
|
|
17
|
+
ruby-version: ${{ matrix.ruby }}
|
|
18
|
+
bundler-cache: true
|
|
19
|
+
- run: bundle exec rake
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
## This file is managed by Terraform.
|
|
2
|
+
## Do not modify this file directly, as it may be overwritten.
|
|
3
|
+
## Please open an issue instead.
|
|
4
|
+
name: CI with EOL ruby versions
|
|
5
|
+
on: [push, pull_request]
|
|
6
|
+
jobs:
|
|
7
|
+
test:
|
|
8
|
+
strategy:
|
|
9
|
+
fail-fast: false
|
|
10
|
+
matrix:
|
|
11
|
+
ruby: [2.5, 2.6]
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v3
|
|
15
|
+
- uses: ruby/setup-ruby@v1
|
|
16
|
+
with:
|
|
17
|
+
ruby-version: ${{ matrix.ruby }}
|
|
18
|
+
bundler-cache: true
|
|
19
|
+
- run: bundle exec rake
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
## This file is managed by Terraform.
|
|
2
|
+
## Do not modify this file directly, as it may be overwritten.
|
|
3
|
+
## Please open an issue instead.
|
|
4
|
+
name: CI TruffleRuby
|
|
5
|
+
on: [push, pull_request]
|
|
6
|
+
jobs:
|
|
7
|
+
test:
|
|
8
|
+
strategy:
|
|
9
|
+
fail-fast: false
|
|
10
|
+
matrix:
|
|
11
|
+
ruby: [truffleruby, truffleruby-head]
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v3
|
|
15
|
+
- uses: ruby/setup-ruby@v1
|
|
16
|
+
with:
|
|
17
|
+
ruby-version: ${{ matrix.ruby }}
|
|
18
|
+
bundler-cache: true
|
|
19
|
+
- run: bundle exec rake
|
data/CHANGES.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
1
3
|
# 2.1
|
|
2
4
|
|
|
3
5
|
* Macros now always have to provide an `:id`. This was a bit fuzzy in 2.0.
|
|
@@ -30,6 +32,13 @@ document Task API and define step API
|
|
|
30
32
|
deprecate step->(options) ?
|
|
31
33
|
injectable, per-operation step arguments strategy?
|
|
32
34
|
|
|
35
|
+
# 2.1.2
|
|
36
|
+
|
|
37
|
+
* Use `trailblazer-activity-dsl-linear` >= 1.1.0.
|
|
38
|
+
|
|
39
|
+
# 2.1.1
|
|
40
|
+
|
|
41
|
+
* Use `trailblazer-activity-dsl-linear` >= 1.0.0.
|
|
33
42
|
|
|
34
43
|
# 2.1.0
|
|
35
44
|
|
data/README.md
CHANGED
|
@@ -2,21 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
_Trailblazer provides new high-level abstractions for Ruby frameworks. It gently enforces encapsulation, an intuitive code structure and approaches the modeling of complex business workflows with a functional mind-set._
|
|
4
4
|
|
|
5
|
-
[](https://trailblazer.zulipchat.com)
|
|
6
6
|
[](http://trailblazer.to/newsletter/)
|
|
7
7
|
[](http://badge.fury.io/rb/trailblazer)
|
|
8
8
|
[](https://www.codetriage.com/trailblazer/trailblazer)
|
|
9
9
|
|
|
10
10
|
## Documentation
|
|
11
11
|
|
|
12
|
-
**
|
|
12
|
+
* **The current version is Trailblazer 2.1.** We do have [comprehensive API documenation](https://trailblazer.to/2.1/docs/trailblazer.html) ready for you. If you're new to TRB start with our [LEARN page](https://trailblazer.to/2.1/learn.html).
|
|
13
|
+
* A migration guide from 2.0 can be found [on our website](https://trailblazer.to/2.1/docs/trailblazer.html#trailblazer-2-1-migration).
|
|
14
|
+
* The [1.x documentation is here](http://trailblazer.to/2.0/gems/operation/1.1/index.html).
|
|
13
15
|
|
|
14
|
-
|
|
16
|
+
Make sure to check out the new beginner's guide to learning Trailblazer. The [brand-new book](https://leanpub.com/buildalib) discusses all aspects in a step-wise approach you need to understand Trailblazer's mechanics and design ideas.
|
|
15
17
|
|
|
16
|
-
|
|
17
|
-
* *BPMN and workflows* shows in-detail how the new 2.1 features in Trailblazer are used.
|
|
18
|
+
<a href="https://leanpub.com/buildalib"><img src="https://trailblazer.to/images/2.1/buildalib-cover.png"></a>
|
|
18
19
|
|
|
19
|
-
|
|
20
|
+
## Screencasts
|
|
21
|
+
|
|
22
|
+
Watch our series of screencasts [**TRAILBLAZER TALES**](https://www.youtube.com/channel/UCi2P0tFMtjMUsWLYAD1Ezsw) if you prefer learning from videos!
|
|
23
|
+
|
|
24
|
+
<a href="https://www.youtube.com/embed/9elpobV4HSw"><img src="https://trailblazer.to/images/2.1/01-operation-basics.png"></a>
|
|
20
25
|
|
|
21
26
|
## Trailblazer In A Nutshell
|
|
22
27
|
|
|
@@ -26,8 +31,6 @@ The [1.x documentation is here](http://trailblazer.to/gems/operation/1.1/).
|
|
|
26
31
|
5. The presentation layer offers optional [view models](#views) (Cells) and [representers](#representers) for document APIs.
|
|
27
32
|
6. More complex business flows and life-cycles are modeled using workflows.
|
|
28
33
|
|
|
29
|
-
Trailblazer is designed to handle different contexts like user roles by applying [inheritance](#inheritance) between and [composing](#composing) of operations, form objects, policies, representers and callbacks.
|
|
30
|
-
|
|
31
34
|
Want code? Jump [right here](#controllers)!
|
|
32
35
|
|
|
33
36
|
## Mission
|
|
@@ -150,9 +153,9 @@ You cannot instantiate them per design. The only way to invoke them is `call`.
|
|
|
150
153
|
Song::Create.(params: {whatever: "goes", in: "here"})
|
|
151
154
|
```
|
|
152
155
|
|
|
153
|
-
Their high degree of encapsulation makes them a [replacement for test factories](#
|
|
156
|
+
Their high degree of encapsulation makes them a [replacement for test factories](#tests), too.
|
|
154
157
|
|
|
155
|
-
[Learn more.](
|
|
158
|
+
[Learn more.](https://2019.trailblazer.to/2.1/docs/operation.html#operation-overview)
|
|
156
159
|
|
|
157
160
|
## Models
|
|
158
161
|
|
|
@@ -182,13 +185,10 @@ describe Song::Update do
|
|
|
182
185
|
end
|
|
183
186
|
```
|
|
184
187
|
|
|
185
|
-
##
|
|
186
|
-
|
|
187
|
-
Operations are a great way to clean up controllers and models. However, Trailblazer goes further and provides an approach to model entire life-cycles of business objects, such as "a song" or "the root user".
|
|
188
|
-
|
|
189
|
-
Those workflows dramatically reduce the usage of control flow logic in your code and allow for visually designing and discussing flows.
|
|
188
|
+
## Workflow
|
|
189
|
+
Operations are a great way to clean up controllers and models. However, Trailblazer goes further and provides an approach to model entire life-cycles of business objects, such as "a song" or "the root user" using workflow ([`pro feature`](https://2019.trailblazer.to/2.1/docs/pro.html#pro-1)). Also, you don't have to use the DSL but can use the [`editor`](https://2019.trailblazer.to/2.1/docs/pro.html#pro-editor) instead (cool for more complex, long-running flows). Here comes a sample screenshot.
|
|
190
190
|
|
|
191
|
-
|
|
191
|
+
<img src="http://2019.trailblazer.to/2.1/dist/img/flow.png">
|
|
192
192
|
|
|
193
193
|
## Installation
|
|
194
194
|
|
data/lib/trailblazer/version.rb
CHANGED
data/trailblazer.gemspec
CHANGED
|
@@ -11,20 +11,30 @@ Gem::Specification.new do |spec|
|
|
|
11
11
|
spec.summary = %q{A high-level architecture for Ruby and Rails.}
|
|
12
12
|
spec.homepage = "http://trailblazer.to"
|
|
13
13
|
spec.license = "LGPL-3.0"
|
|
14
|
-
|
|
14
|
+
spec.metadata = {
|
|
15
|
+
"bug_tracker_uri" => "https://github.com/trailblazer/trailblazer/issues",
|
|
16
|
+
"changelog_uri" => "https://github.com/trailblazer/trailblazer/blob/master/CHANGES.md",
|
|
17
|
+
"documentation_uri" => "https://trailblazer.to/docs",
|
|
18
|
+
"homepage_uri" => "https://trailblazer.to/",
|
|
19
|
+
"mailing_list_uri" => "https://trailblazer.zulipchat.com/",
|
|
20
|
+
"source_code_uri" => "https://github.com/trailblazer/trailblazer",
|
|
21
|
+
"wiki_uri" => "https://github.com/trailblazer/trailblazer/wiki"
|
|
22
|
+
}
|
|
23
|
+
|
|
15
24
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
|
16
25
|
f.match(%r{^(test|doc)/})
|
|
17
26
|
end
|
|
18
27
|
spec.test_files = `git ls-files -z test`.split("\x0")
|
|
19
28
|
spec.require_paths = ["lib"]
|
|
20
29
|
|
|
21
|
-
spec.add_dependency "trailblazer-macro",
|
|
22
|
-
spec.add_dependency "trailblazer-macro-contract", ">= 2.1.
|
|
23
|
-
spec.add_dependency "trailblazer-operation"
|
|
30
|
+
spec.add_dependency "trailblazer-macro", ">= 2.1.12", "< 2.2.0"
|
|
31
|
+
spec.add_dependency "trailblazer-macro-contract", ">= 2.1.4", "< 2.2.0"
|
|
32
|
+
spec.add_dependency "trailblazer-operation", ">= 0.9.0", "< 1.0.0"
|
|
24
33
|
|
|
25
34
|
spec.add_development_dependency "bundler"
|
|
26
35
|
spec.add_development_dependency "rake"
|
|
27
36
|
spec.add_development_dependency "minitest"
|
|
37
|
+
spec.add_development_dependency "minitest-line"
|
|
28
38
|
|
|
29
39
|
spec.required_ruby_version = '>= 2.1.0'
|
|
30
40
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: trailblazer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nick Sutterer
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-12-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: trailblazer-macro
|
|
@@ -16,7 +16,7 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 2.1.
|
|
19
|
+
version: 2.1.12
|
|
20
20
|
- - "<"
|
|
21
21
|
- !ruby/object:Gem::Version
|
|
22
22
|
version: 2.2.0
|
|
@@ -26,7 +26,7 @@ dependencies:
|
|
|
26
26
|
requirements:
|
|
27
27
|
- - ">="
|
|
28
28
|
- !ruby/object:Gem::Version
|
|
29
|
-
version: 2.1.
|
|
29
|
+
version: 2.1.12
|
|
30
30
|
- - "<"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
32
|
version: 2.2.0
|
|
@@ -36,7 +36,7 @@ dependencies:
|
|
|
36
36
|
requirements:
|
|
37
37
|
- - ">="
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: 2.1.
|
|
39
|
+
version: 2.1.4
|
|
40
40
|
- - "<"
|
|
41
41
|
- !ruby/object:Gem::Version
|
|
42
42
|
version: 2.2.0
|
|
@@ -46,7 +46,7 @@ dependencies:
|
|
|
46
46
|
requirements:
|
|
47
47
|
- - ">="
|
|
48
48
|
- !ruby/object:Gem::Version
|
|
49
|
-
version: 2.1.
|
|
49
|
+
version: 2.1.4
|
|
50
50
|
- - "<"
|
|
51
51
|
- !ruby/object:Gem::Version
|
|
52
52
|
version: 2.2.0
|
|
@@ -56,14 +56,20 @@ dependencies:
|
|
|
56
56
|
requirements:
|
|
57
57
|
- - ">="
|
|
58
58
|
- !ruby/object:Gem::Version
|
|
59
|
-
version:
|
|
59
|
+
version: 0.9.0
|
|
60
|
+
- - "<"
|
|
61
|
+
- !ruby/object:Gem::Version
|
|
62
|
+
version: 1.0.0
|
|
60
63
|
type: :runtime
|
|
61
64
|
prerelease: false
|
|
62
65
|
version_requirements: !ruby/object:Gem::Requirement
|
|
63
66
|
requirements:
|
|
64
67
|
- - ">="
|
|
65
68
|
- !ruby/object:Gem::Version
|
|
66
|
-
version:
|
|
69
|
+
version: 0.9.0
|
|
70
|
+
- - "<"
|
|
71
|
+
- !ruby/object:Gem::Version
|
|
72
|
+
version: 1.0.0
|
|
67
73
|
- !ruby/object:Gem::Dependency
|
|
68
74
|
name: bundler
|
|
69
75
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -106,6 +112,20 @@ dependencies:
|
|
|
106
112
|
- - ">="
|
|
107
113
|
- !ruby/object:Gem::Version
|
|
108
114
|
version: '0'
|
|
115
|
+
- !ruby/object:Gem::Dependency
|
|
116
|
+
name: minitest-line
|
|
117
|
+
requirement: !ruby/object:Gem::Requirement
|
|
118
|
+
requirements:
|
|
119
|
+
- - ">="
|
|
120
|
+
- !ruby/object:Gem::Version
|
|
121
|
+
version: '0'
|
|
122
|
+
type: :development
|
|
123
|
+
prerelease: false
|
|
124
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
125
|
+
requirements:
|
|
126
|
+
- - ">="
|
|
127
|
+
- !ruby/object:Gem::Version
|
|
128
|
+
version: '0'
|
|
109
129
|
description: A high-level architecture introducing new abstractions such as operations
|
|
110
130
|
and control flow, form objects and policies.
|
|
111
131
|
email:
|
|
@@ -114,11 +134,12 @@ executables: []
|
|
|
114
134
|
extensions: []
|
|
115
135
|
extra_rdoc_files: []
|
|
116
136
|
files:
|
|
137
|
+
- ".github/dependabot.yml"
|
|
138
|
+
- ".github/workflows/ci.yml"
|
|
139
|
+
- ".github/workflows/ci_jruby.yml"
|
|
140
|
+
- ".github/workflows/ci_legacy.yml"
|
|
141
|
+
- ".github/workflows/ci_truffleruby.yml"
|
|
117
142
|
- ".gitignore"
|
|
118
|
-
- ".rubocop-https---raw-githubusercontent-com-trailblazer-meta-master-rubocop-yml"
|
|
119
|
-
- ".rubocop.yml"
|
|
120
|
-
- ".rubocop_todo.yml"
|
|
121
|
-
- ".travis.yml"
|
|
122
143
|
- CHANGES.md
|
|
123
144
|
- COMM-LICENSE
|
|
124
145
|
- CONTRIBUTING.md
|
|
@@ -134,7 +155,14 @@ files:
|
|
|
134
155
|
homepage: http://trailblazer.to
|
|
135
156
|
licenses:
|
|
136
157
|
- LGPL-3.0
|
|
137
|
-
metadata:
|
|
158
|
+
metadata:
|
|
159
|
+
bug_tracker_uri: https://github.com/trailblazer/trailblazer/issues
|
|
160
|
+
changelog_uri: https://github.com/trailblazer/trailblazer/blob/master/CHANGES.md
|
|
161
|
+
documentation_uri: https://trailblazer.to/docs
|
|
162
|
+
homepage_uri: https://trailblazer.to/
|
|
163
|
+
mailing_list_uri: https://trailblazer.zulipchat.com/
|
|
164
|
+
source_code_uri: https://github.com/trailblazer/trailblazer
|
|
165
|
+
wiki_uri: https://github.com/trailblazer/trailblazer/wiki
|
|
138
166
|
post_install_message:
|
|
139
167
|
rdoc_options: []
|
|
140
168
|
require_paths:
|
|
@@ -150,8 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
150
178
|
- !ruby/object:Gem::Version
|
|
151
179
|
version: '0'
|
|
152
180
|
requirements: []
|
|
153
|
-
|
|
154
|
-
rubygems_version: 2.7.6
|
|
181
|
+
rubygems_version: 3.2.3
|
|
155
182
|
signing_key:
|
|
156
183
|
specification_version: 4
|
|
157
184
|
summary: A high-level architecture for Ruby and Rails.
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
AllCops:
|
|
2
|
-
DisplayCopNames: true
|
|
3
|
-
Layout/CaseIndentation:
|
|
4
|
-
IndentOneStep: true
|
|
5
|
-
Layout/FirstArrayElementLineBreak:
|
|
6
|
-
Enabled: true
|
|
7
|
-
Layout/FirstHashElementLineBreak:
|
|
8
|
-
Enabled: true
|
|
9
|
-
Layout/FirstMethodArgumentLineBreak:
|
|
10
|
-
Enabled: true
|
|
11
|
-
Layout/FirstMethodParameterLineBreak:
|
|
12
|
-
Enabled: true
|
|
13
|
-
Layout/MultilineAssignmentLayout:
|
|
14
|
-
Enabled: true
|
|
15
|
-
EnforcedStyle: same_line
|
|
16
|
-
Layout/SpaceInsideHashLiteralBraces:
|
|
17
|
-
EnforcedStyle: no_space
|
|
18
|
-
Metrics/LineLength:
|
|
19
|
-
Max: 130
|
|
20
|
-
Metrics/ParameterLists:
|
|
21
|
-
Max: 5
|
|
22
|
-
Naming/VariableNumber:
|
|
23
|
-
EnforcedStyle: snake_case
|
|
24
|
-
Style/AndOr:
|
|
25
|
-
EnforcedStyle: conditionals
|
|
26
|
-
Style/AutoResourceCleanup:
|
|
27
|
-
Enabled: true
|
|
28
|
-
Style/CollectionMethods:
|
|
29
|
-
Enabled: true
|
|
30
|
-
Style/Documentation:
|
|
31
|
-
Enabled: false
|
|
32
|
-
Style/EmptyLiteral:
|
|
33
|
-
Enabled: false
|
|
34
|
-
Style/EmptyMethod:
|
|
35
|
-
EnforcedStyle: expanded
|
|
36
|
-
Style/FormatStringToken:
|
|
37
|
-
EnforcedStyle: template
|
|
38
|
-
Style/ImplicitRuntimeError:
|
|
39
|
-
Enabled: true
|
|
40
|
-
Style/MethodCalledOnDoEndBlock:
|
|
41
|
-
Enabled: true
|
|
42
|
-
Style/MethodDefParentheses:
|
|
43
|
-
EnforcedStyle: require_parentheses
|
|
44
|
-
Style/MissingElse:
|
|
45
|
-
Enabled: true
|
|
46
|
-
EnforcedStyle: case
|
|
47
|
-
Style/NumericLiterals:
|
|
48
|
-
Enabled: false
|
|
49
|
-
Style/OptionHash:
|
|
50
|
-
Enabled: true
|
|
51
|
-
Style/PercentLiteralDelimiters:
|
|
52
|
-
PreferredDelimiters:
|
|
53
|
-
"%w": "[]"
|
|
54
|
-
"%W": "[]"
|
|
55
|
-
"%i": "[]"
|
|
56
|
-
"%I": "[]"
|
|
57
|
-
"%r": "()"
|
|
58
|
-
Style/ReturnNil:
|
|
59
|
-
Enabled: true
|
|
60
|
-
Style/SafeNavigation:
|
|
61
|
-
Enabled: false
|
|
62
|
-
Style/Send:
|
|
63
|
-
Enabled: true
|
|
64
|
-
Style/SignalException:
|
|
65
|
-
EnforcedStyle: semantic
|
|
66
|
-
Style/StringLiterals:
|
|
67
|
-
EnforcedStyle: double_quotes
|
|
68
|
-
Style/StringLiteralsInInterpolation:
|
|
69
|
-
EnforcedStyle: double_quotes
|
|
70
|
-
Style/StringMethods:
|
|
71
|
-
Enabled: true
|
|
72
|
-
Style/SymbolArray:
|
|
73
|
-
Enabled: true
|
|
74
|
-
# this allows in rspec to have expect { } with multiple lines
|
|
75
|
-
Style/BlockDelimiters:
|
|
76
|
-
EnforcedStyle: braces_for_chaining
|
|
77
|
-
Layout/EndOfLine:
|
|
78
|
-
Enabled: false
|
|
79
|
-
# don't need these checks in test folders
|
|
80
|
-
Metrics/ModuleLength:
|
|
81
|
-
Exclude:
|
|
82
|
-
- "spec/**/*"
|
|
83
|
-
- "test/**/*"
|
|
84
|
-
Metrics/BlockLength:
|
|
85
|
-
Exclude:
|
|
86
|
-
- "spec/**/*"
|
|
87
|
-
- "test/**/*"
|
|
88
|
-
- "*.gemspec" # definitely not in the gemspec
|
|
89
|
-
Metrics/MethodLength:
|
|
90
|
-
Max: 20
|
|
91
|
-
Lint/UnreachableCode:
|
|
92
|
-
Description: 'Unreachable code.'
|
|
93
|
-
Enabled: false
|
|
94
|
-
Lint/Void:
|
|
95
|
-
Enabled: false
|
|
96
|
-
Layout/AlignHash:
|
|
97
|
-
EnforcedLastArgumentHashStyle: ignore_implicit
|
|
98
|
-
Metrics/AbcSize:
|
|
99
|
-
Max: 25
|
|
100
|
-
Style/LambdaCall:
|
|
101
|
-
Enabled: false
|
data/.rubocop.yml
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
inherit_from:
|
|
2
|
-
- https://raw.githubusercontent.com/trailblazer/meta/master/rubocop.yml
|
|
3
|
-
- .rubocop_todo.yml
|
|
4
|
-
|
|
5
|
-
# Trailblazer uses constant named methods for macros.
|
|
6
|
-
# Ignore the false positives in these files.
|
|
7
|
-
Naming/MethodName:
|
|
8
|
-
Exclude:
|
|
9
|
-
- 'test/docs/macro_test.rb'
|
|
10
|
-
- 'lib/trailblazer/operation/model.rb'
|
|
11
|
-
- 'lib/trailblazer/operation/contract.rb'
|
|
12
|
-
- 'lib/trailblazer/operation/auto_inject.rb'
|
|
13
|
-
- 'lib/trailblazer/operation/wrap.rb'
|
|
14
|
-
- 'lib/trailblazer/operation/validate.rb'
|
|
15
|
-
- 'lib/trailblazer/operation/pundit.rb'
|
|
16
|
-
- 'lib/trailblazer/operation/persist.rb'
|
|
17
|
-
- 'lib/trailblazer/operation/rescue.rb'
|
|
18
|
-
- 'lib/trailblazer/operation/callback.rb'
|
|
19
|
-
- 'lib/trailblazer/operation/nested.rb'
|
|
20
|
-
- 'lib/trailblazer/operation/guard.rb'
|
data/.rubocop_todo.yml
DELETED
|
@@ -1,556 +0,0 @@
|
|
|
1
|
-
# This configuration was generated by
|
|
2
|
-
# `rubocop --auto-gen-config`
|
|
3
|
-
# on 2018-06-20 07:55:52 +0800 using RuboCop version 0.57.2.
|
|
4
|
-
# The point is for the user to remove these configuration records
|
|
5
|
-
# one by one as the offenses are removed from the code base.
|
|
6
|
-
# Note that changes in the inspected code, or installation of new
|
|
7
|
-
# versions of RuboCop, may require this file to be generated again.
|
|
8
|
-
|
|
9
|
-
# Offense count: 9
|
|
10
|
-
# Configuration parameters: Include.
|
|
11
|
-
# Include: **/*.gemfile, **/Gemfile, **/gems.rb
|
|
12
|
-
Bundler/DuplicatedGem:
|
|
13
|
-
Exclude:
|
|
14
|
-
- 'Gemfile'
|
|
15
|
-
|
|
16
|
-
# Offense count: 4
|
|
17
|
-
# Cop supports --auto-correct.
|
|
18
|
-
# Configuration parameters: Include, TreatCommentsAsGroupSeparators.
|
|
19
|
-
# Include: **/*.gemfile, **/Gemfile, **/gems.rb
|
|
20
|
-
Bundler/OrderedGems:
|
|
21
|
-
Exclude:
|
|
22
|
-
- 'Gemfile'
|
|
23
|
-
|
|
24
|
-
# Offense count: 1
|
|
25
|
-
# Cop supports --auto-correct.
|
|
26
|
-
# Configuration parameters: Include, TreatCommentsAsGroupSeparators.
|
|
27
|
-
# Include: **/*.gemspec
|
|
28
|
-
Gemspec/OrderedDependencies:
|
|
29
|
-
Exclude:
|
|
30
|
-
- 'trailblazer.gemspec'
|
|
31
|
-
|
|
32
|
-
# Offense count: 1
|
|
33
|
-
# Configuration parameters: Include.
|
|
34
|
-
# Include: **/*.gemspec
|
|
35
|
-
Gemspec/RequiredRubyVersion:
|
|
36
|
-
Exclude:
|
|
37
|
-
- 'trailblazer.gemspec'
|
|
38
|
-
|
|
39
|
-
# Offense count: 1
|
|
40
|
-
# Cop supports --auto-correct.
|
|
41
|
-
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
42
|
-
# SupportedStyles: outdent, indent
|
|
43
|
-
Layout/AccessModifierIndentation:
|
|
44
|
-
Exclude:
|
|
45
|
-
- 'lib/trailblazer/dsl.rb'
|
|
46
|
-
|
|
47
|
-
# Offense count: 1
|
|
48
|
-
# Cop supports --auto-correct.
|
|
49
|
-
Layout/BlockEndNewline:
|
|
50
|
-
Exclude:
|
|
51
|
-
- 'lib/trailblazer/operation/module.rb'
|
|
52
|
-
|
|
53
|
-
# Offense count: 19
|
|
54
|
-
# Cop supports --auto-correct.
|
|
55
|
-
Layout/CommentIndentation:
|
|
56
|
-
Exclude:
|
|
57
|
-
- 'test/docs/fast_test.rb'
|
|
58
|
-
- 'test/docs/operation_test.rb'
|
|
59
|
-
- 'test/docs/trace_test.rb'
|
|
60
|
-
- 'test/variables_test.rb'
|
|
61
|
-
|
|
62
|
-
# Offense count: 5
|
|
63
|
-
# Cop supports --auto-correct.
|
|
64
|
-
# Configuration parameters: EnforcedStyle.
|
|
65
|
-
# SupportedStyles: leading, trailing
|
|
66
|
-
Layout/DotPosition:
|
|
67
|
-
Exclude:
|
|
68
|
-
- 'test/variables_test.rb'
|
|
69
|
-
|
|
70
|
-
# Offense count: 7
|
|
71
|
-
# Cop supports --auto-correct.
|
|
72
|
-
# Configuration parameters: AllowAdjacentOneLineDefs, NumberOfEmptyLines.
|
|
73
|
-
Layout/EmptyLineBetweenDefs:
|
|
74
|
-
Exclude:
|
|
75
|
-
- 'test/docs/fast_test.rb'
|
|
76
|
-
- 'test/test_helper.rb'
|
|
77
|
-
|
|
78
|
-
# Offense count: 17
|
|
79
|
-
# Cop supports --auto-correct.
|
|
80
|
-
Layout/EmptyLines:
|
|
81
|
-
Exclude:
|
|
82
|
-
- 'test/benchmark.rb'
|
|
83
|
-
- 'test/docs/fast_test.rb'
|
|
84
|
-
- 'test/docs/operation_test.rb'
|
|
85
|
-
- 'test/dsl/contract_test.rb'
|
|
86
|
-
- 'test/module_test.rb'
|
|
87
|
-
|
|
88
|
-
# Offense count: 2
|
|
89
|
-
# Cop supports --auto-correct.
|
|
90
|
-
Layout/EmptyLinesAroundAccessModifier:
|
|
91
|
-
Exclude:
|
|
92
|
-
- 'lib/trailblazer/dsl.rb'
|
|
93
|
-
- 'lib/trailblazer/operation/test.rb'
|
|
94
|
-
|
|
95
|
-
# Offense count: 2
|
|
96
|
-
# Cop supports --auto-correct.
|
|
97
|
-
# Configuration parameters: EnforcedStyle.
|
|
98
|
-
# SupportedStyles: empty_lines, no_empty_lines
|
|
99
|
-
Layout/EmptyLinesAroundBlockBody:
|
|
100
|
-
Exclude:
|
|
101
|
-
- 'lib/trailblazer/operation/module.rb'
|
|
102
|
-
- 'test/dsl/contract_test.rb'
|
|
103
|
-
|
|
104
|
-
# Offense count: 1
|
|
105
|
-
# Cop supports --auto-correct.
|
|
106
|
-
Layout/EmptyLinesAroundMethodBody:
|
|
107
|
-
Exclude:
|
|
108
|
-
- 'lib/trailblazer/operation/test.rb'
|
|
109
|
-
|
|
110
|
-
# Offense count: 24
|
|
111
|
-
# Configuration parameters: EnforcedStyle.
|
|
112
|
-
# SupportedStyles: native, lf, crlf
|
|
113
|
-
Layout/EndOfLine:
|
|
114
|
-
Enabled: false
|
|
115
|
-
|
|
116
|
-
# Offense count: 16
|
|
117
|
-
# Cop supports --auto-correct.
|
|
118
|
-
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
|
|
119
|
-
Layout/ExtraSpacing:
|
|
120
|
-
Exclude:
|
|
121
|
-
- 'lib/trailblazer/deprecation/context.rb'
|
|
122
|
-
- 'test/benchmark.rb'
|
|
123
|
-
- 'test/docs/fast_test.rb'
|
|
124
|
-
- 'test/docs/operation_test.rb'
|
|
125
|
-
- 'test/dsl/contract_test.rb'
|
|
126
|
-
- 'test/variables_test.rb'
|
|
127
|
-
|
|
128
|
-
# Offense count: 1
|
|
129
|
-
# Cop supports --auto-correct.
|
|
130
|
-
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
131
|
-
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
|
132
|
-
Layout/IndentHash:
|
|
133
|
-
Exclude:
|
|
134
|
-
- 'test/variables_test.rb'
|
|
135
|
-
|
|
136
|
-
# Offense count: 10
|
|
137
|
-
# Cop supports --auto-correct.
|
|
138
|
-
# Configuration parameters: EnforcedStyle.
|
|
139
|
-
# SupportedStyles: normal, rails
|
|
140
|
-
Layout/IndentationConsistency:
|
|
141
|
-
Exclude:
|
|
142
|
-
- 'test/docs/operation_test.rb'
|
|
143
|
-
|
|
144
|
-
# Offense count: 12
|
|
145
|
-
# Cop supports --auto-correct.
|
|
146
|
-
Layout/LeadingCommentSpace:
|
|
147
|
-
Exclude:
|
|
148
|
-
- 'test/docs/fast_test.rb'
|
|
149
|
-
- 'test/docs/operation_test.rb'
|
|
150
|
-
- 'test/dsl/contract_test.rb'
|
|
151
|
-
- 'test/variables_test.rb'
|
|
152
|
-
- 'trailblazer.gemspec'
|
|
153
|
-
|
|
154
|
-
# Offense count: 8
|
|
155
|
-
# Cop supports --auto-correct.
|
|
156
|
-
Layout/SpaceAfterColon:
|
|
157
|
-
Exclude:
|
|
158
|
-
- 'test/docs/fast_test.rb'
|
|
159
|
-
|
|
160
|
-
# Offense count: 42
|
|
161
|
-
# Cop supports --auto-correct.
|
|
162
|
-
Layout/SpaceAfterComma:
|
|
163
|
-
Exclude:
|
|
164
|
-
- 'lib/trailblazer/deprecation/context.rb'
|
|
165
|
-
- 'test/docs/fast_test.rb'
|
|
166
|
-
|
|
167
|
-
# Offense count: 5
|
|
168
|
-
# Cop supports --auto-correct.
|
|
169
|
-
# Configuration parameters: .
|
|
170
|
-
# SupportedStyles: space, no_space
|
|
171
|
-
Layout/SpaceAroundEqualsInParameterDefault:
|
|
172
|
-
EnforcedStyle: no_space
|
|
173
|
-
|
|
174
|
-
# Offense count: 16
|
|
175
|
-
# Cop supports --auto-correct.
|
|
176
|
-
# Configuration parameters: AllowForAlignment.
|
|
177
|
-
Layout/SpaceAroundOperators:
|
|
178
|
-
Exclude:
|
|
179
|
-
- 'test/benchmark.rb'
|
|
180
|
-
- 'test/deprecation/call_test.rb'
|
|
181
|
-
- 'test/deprecation/context_test.rb'
|
|
182
|
-
- 'test/docs/operation_test.rb'
|
|
183
|
-
- 'test/dsl/contract_test.rb'
|
|
184
|
-
- 'test/variables_test.rb'
|
|
185
|
-
|
|
186
|
-
# Offense count: 3
|
|
187
|
-
# Cop supports --auto-correct.
|
|
188
|
-
Layout/SpaceBeforeComma:
|
|
189
|
-
Exclude:
|
|
190
|
-
- 'test/variables_test.rb'
|
|
191
|
-
|
|
192
|
-
# Offense count: 4
|
|
193
|
-
# Cop supports --auto-correct.
|
|
194
|
-
Layout/SpaceBeforeComment:
|
|
195
|
-
Exclude:
|
|
196
|
-
- 'lib/trailblazer/dsl.rb'
|
|
197
|
-
- 'test/dsl/contract_test.rb'
|
|
198
|
-
- 'trailblazer.gemspec'
|
|
199
|
-
|
|
200
|
-
# Offense count: 4
|
|
201
|
-
# Cop supports --auto-correct.
|
|
202
|
-
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
|
|
203
|
-
# SupportedStyles: space, no_space, compact
|
|
204
|
-
# SupportedStylesForEmptyBrackets: space, no_space
|
|
205
|
-
Layout/SpaceInsideArrayLiteralBrackets:
|
|
206
|
-
Exclude:
|
|
207
|
-
- 'lib/trailblazer/deprecation/context.rb'
|
|
208
|
-
- 'test/benchmark.rb'
|
|
209
|
-
|
|
210
|
-
# Offense count: 26
|
|
211
|
-
# Cop supports --auto-correct.
|
|
212
|
-
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
|
213
|
-
# SupportedStyles: space, no_space, compact
|
|
214
|
-
# SupportedStylesForEmptyBraces: space, no_space
|
|
215
|
-
Layout/SpaceInsideHashLiteralBraces:
|
|
216
|
-
Exclude:
|
|
217
|
-
- 'lib/trailblazer/deprecation/call.rb'
|
|
218
|
-
- 'test/deprecation/call_test.rb'
|
|
219
|
-
- 'test/docs/fast_test.rb'
|
|
220
|
-
- 'test/docs/operation_test.rb'
|
|
221
|
-
|
|
222
|
-
# Offense count: 93
|
|
223
|
-
# Cop supports --auto-correct.
|
|
224
|
-
# Configuration parameters: EnforcedStyle.
|
|
225
|
-
# SupportedStyles: space, no_space
|
|
226
|
-
Layout/SpaceInsideParens:
|
|
227
|
-
Exclude:
|
|
228
|
-
- 'lib/trailblazer/deprecation/call.rb'
|
|
229
|
-
- 'lib/trailblazer/deprecation/context.rb'
|
|
230
|
-
- 'test/deprecation/call_test.rb'
|
|
231
|
-
- 'test/deprecation/context_test.rb'
|
|
232
|
-
- 'test/docs/fast_test.rb'
|
|
233
|
-
- 'test/docs/operation_test.rb'
|
|
234
|
-
- 'test/docs/trace_test.rb'
|
|
235
|
-
- 'test/dsl/contract_test.rb'
|
|
236
|
-
- 'test/variables_test.rb'
|
|
237
|
-
|
|
238
|
-
# Offense count: 1
|
|
239
|
-
# Cop supports --auto-correct.
|
|
240
|
-
# Configuration parameters: EnforcedStyle.
|
|
241
|
-
# SupportedStyles: final_newline, final_blank_line
|
|
242
|
-
Layout/TrailingBlankLines:
|
|
243
|
-
Exclude:
|
|
244
|
-
- 'lib/trailblazer/operation/module.rb'
|
|
245
|
-
|
|
246
|
-
# Offense count: 2
|
|
247
|
-
Lint/NestedMethodDefinition:
|
|
248
|
-
Exclude:
|
|
249
|
-
- 'test/benchmark.rb'
|
|
250
|
-
|
|
251
|
-
# Offense count: 1
|
|
252
|
-
Lint/ReturnInVoidContext:
|
|
253
|
-
Exclude:
|
|
254
|
-
- 'lib/trailblazer/deprecation/context.rb'
|
|
255
|
-
|
|
256
|
-
# Offense count: 1
|
|
257
|
-
# Configuration parameters: IgnoreImplicitReferences.
|
|
258
|
-
Lint/ShadowedArgument:
|
|
259
|
-
Exclude:
|
|
260
|
-
- 'lib/trailblazer/deprecation/call.rb'
|
|
261
|
-
|
|
262
|
-
# Offense count: 1
|
|
263
|
-
Lint/ShadowingOuterLocalVariable:
|
|
264
|
-
Exclude:
|
|
265
|
-
- 'lib/trailblazer/deprecation/context.rb'
|
|
266
|
-
|
|
267
|
-
# Offense count: 2
|
|
268
|
-
# Cop supports --auto-correct.
|
|
269
|
-
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
|
270
|
-
Lint/UnusedBlockArgument:
|
|
271
|
-
Exclude:
|
|
272
|
-
- 'test/test_helper.rb'
|
|
273
|
-
|
|
274
|
-
# Offense count: 9
|
|
275
|
-
# Cop supports --auto-correct.
|
|
276
|
-
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
|
|
277
|
-
Lint/UnusedMethodArgument:
|
|
278
|
-
Exclude:
|
|
279
|
-
- 'lib/trailblazer/deprecation/call.rb'
|
|
280
|
-
- 'lib/trailblazer/dsl.rb'
|
|
281
|
-
- 'test/docs/fast_test.rb'
|
|
282
|
-
- 'test/docs/trace_test.rb'
|
|
283
|
-
|
|
284
|
-
# Offense count: 3
|
|
285
|
-
Lint/UselessAssignment:
|
|
286
|
-
Exclude:
|
|
287
|
-
- 'test/deprecation/call_test.rb'
|
|
288
|
-
- 'test/deprecation/context_test.rb'
|
|
289
|
-
|
|
290
|
-
# Offense count: 1
|
|
291
|
-
Metrics/AbcSize:
|
|
292
|
-
Max: 18
|
|
293
|
-
|
|
294
|
-
# Offense count: 2
|
|
295
|
-
# Configuration parameters: CountComments, ExcludedMethods.
|
|
296
|
-
Metrics/BlockLength:
|
|
297
|
-
Max: 32
|
|
298
|
-
|
|
299
|
-
# Offense count: 1
|
|
300
|
-
Metrics/CyclomaticComplexity:
|
|
301
|
-
Max: 10
|
|
302
|
-
|
|
303
|
-
# Offense count: 30
|
|
304
|
-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
|
305
|
-
# URISchemes: http, https
|
|
306
|
-
Metrics/LineLength:
|
|
307
|
-
Max: 290
|
|
308
|
-
|
|
309
|
-
# Offense count: 3
|
|
310
|
-
# Configuration parameters: CountComments.
|
|
311
|
-
Metrics/MethodLength:
|
|
312
|
-
Max: 16
|
|
313
|
-
|
|
314
|
-
# Offense count: 1
|
|
315
|
-
Metrics/PerceivedComplexity:
|
|
316
|
-
Max: 11
|
|
317
|
-
|
|
318
|
-
# Offense count: 10
|
|
319
|
-
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
|
320
|
-
# AllowedNames: io, id, to, by, on, in, at
|
|
321
|
-
Naming/UncommunicativeMethodParamName:
|
|
322
|
-
Exclude:
|
|
323
|
-
- 'test/benchmark.rb'
|
|
324
|
-
- 'test/docs/fast_test.rb'
|
|
325
|
-
|
|
326
|
-
# Offense count: 2
|
|
327
|
-
# Configuration parameters: AllowedChars.
|
|
328
|
-
Style/AsciiComments:
|
|
329
|
-
Exclude:
|
|
330
|
-
- 'test/benchmark.rb'
|
|
331
|
-
|
|
332
|
-
# Offense count: 12
|
|
333
|
-
# Cop supports --auto-correct.
|
|
334
|
-
Style/BlockComments:
|
|
335
|
-
Exclude:
|
|
336
|
-
- 'test/docs/operation_test.rb'
|
|
337
|
-
- 'test/variables_test.rb'
|
|
338
|
-
|
|
339
|
-
# Offense count: 3
|
|
340
|
-
# Cop supports --auto-correct.
|
|
341
|
-
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods.
|
|
342
|
-
# SupportedStyles: line_count_based, semantic, braces_for_chaining
|
|
343
|
-
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
|
344
|
-
# FunctionalMethods: let, let!, subject, watch
|
|
345
|
-
# IgnoredMethods: lambda, proc, it
|
|
346
|
-
Style/BlockDelimiters:
|
|
347
|
-
Exclude:
|
|
348
|
-
- 'lib/trailblazer/operation/auto_inject.rb'
|
|
349
|
-
- 'lib/trailblazer/operation/module.rb'
|
|
350
|
-
- 'test/dsl/contract_test.rb'
|
|
351
|
-
|
|
352
|
-
# Offense count: 2
|
|
353
|
-
# Cop supports --auto-correct.
|
|
354
|
-
# Configuration parameters: EnforcedStyle.
|
|
355
|
-
# SupportedStyles: braces, no_braces, context_dependent
|
|
356
|
-
Style/BracesAroundHashParameters:
|
|
357
|
-
Exclude:
|
|
358
|
-
- 'test/docs/operation_test.rb'
|
|
359
|
-
- 'test/dsl/contract_test.rb'
|
|
360
|
-
|
|
361
|
-
# Offense count: 11
|
|
362
|
-
# Cop supports --auto-correct.
|
|
363
|
-
# Configuration parameters: AutoCorrect, EnforcedStyle.
|
|
364
|
-
# SupportedStyles: nested, compact
|
|
365
|
-
Style/ClassAndModuleChildren:
|
|
366
|
-
Exclude:
|
|
367
|
-
- 'lib/trailblazer/operation/auto_inject.rb'
|
|
368
|
-
- 'lib/trailblazer/operation/module.rb'
|
|
369
|
-
- 'test/docs/fast_test.rb'
|
|
370
|
-
- 'test/docs/operation_test.rb'
|
|
371
|
-
|
|
372
|
-
# Offense count: 1
|
|
373
|
-
# Cop supports --auto-correct.
|
|
374
|
-
# Configuration parameters: EnforcedStyle.
|
|
375
|
-
# SupportedStyles: is_a?, kind_of?
|
|
376
|
-
Style/ClassCheck:
|
|
377
|
-
Exclude:
|
|
378
|
-
- 'lib/trailblazer/dsl.rb'
|
|
379
|
-
|
|
380
|
-
# Offense count: 1
|
|
381
|
-
# Cop supports --auto-correct.
|
|
382
|
-
# Configuration parameters: PreferredMethods.
|
|
383
|
-
Style/CollectionMethods:
|
|
384
|
-
Exclude:
|
|
385
|
-
- 'lib/trailblazer/deprecation/context.rb'
|
|
386
|
-
|
|
387
|
-
# Offense count: 1
|
|
388
|
-
# Cop supports --auto-correct.
|
|
389
|
-
# Configuration parameters: Keywords.
|
|
390
|
-
# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW
|
|
391
|
-
Style/CommentAnnotation:
|
|
392
|
-
Exclude:
|
|
393
|
-
- 'test/variables_test.rb'
|
|
394
|
-
|
|
395
|
-
# Offense count: 2
|
|
396
|
-
Style/CommentedKeyword:
|
|
397
|
-
Exclude:
|
|
398
|
-
- 'lib/trailblazer/operation/deprecations.rb'
|
|
399
|
-
- 'lib/trailblazer/operation/module.rb'
|
|
400
|
-
|
|
401
|
-
# Offense count: 1
|
|
402
|
-
# Cop supports --auto-correct.
|
|
403
|
-
# Configuration parameters: EnforcedStyle.
|
|
404
|
-
# SupportedStyles: compact, expanded
|
|
405
|
-
Style/EmptyMethod:
|
|
406
|
-
Exclude:
|
|
407
|
-
- 'test/docs/fast_test.rb'
|
|
408
|
-
|
|
409
|
-
# Offense count: 1
|
|
410
|
-
# Cop supports --auto-correct.
|
|
411
|
-
Style/ExpandPathArguments:
|
|
412
|
-
Exclude:
|
|
413
|
-
- 'trailblazer.gemspec'
|
|
414
|
-
|
|
415
|
-
# Offense count: 1
|
|
416
|
-
# Configuration parameters: MinBodyLength.
|
|
417
|
-
Style/GuardClause:
|
|
418
|
-
Exclude:
|
|
419
|
-
- 'test/docs/fast_test.rb'
|
|
420
|
-
|
|
421
|
-
# Offense count: 6
|
|
422
|
-
# Cop supports --auto-correct.
|
|
423
|
-
# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
|
424
|
-
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
|
425
|
-
Style/HashSyntax:
|
|
426
|
-
Exclude:
|
|
427
|
-
- 'Rakefile'
|
|
428
|
-
- 'test/docs/operation_test.rb'
|
|
429
|
-
|
|
430
|
-
# Offense count: 1
|
|
431
|
-
Style/ImplicitRuntimeError:
|
|
432
|
-
Exclude:
|
|
433
|
-
- 'lib/trailblazer/operation/test.rb'
|
|
434
|
-
|
|
435
|
-
# Offense count: 70
|
|
436
|
-
# Cop supports --auto-correct.
|
|
437
|
-
# Configuration parameters: .
|
|
438
|
-
# SupportedStyles: call, braces
|
|
439
|
-
Style/LambdaCall:
|
|
440
|
-
EnforcedStyle: braces
|
|
441
|
-
|
|
442
|
-
# Offense count: 1
|
|
443
|
-
Style/MethodMissingSuper:
|
|
444
|
-
Exclude:
|
|
445
|
-
- 'lib/trailblazer/operation/module.rb'
|
|
446
|
-
|
|
447
|
-
# Offense count: 1
|
|
448
|
-
Style/MissingRespondToMissing:
|
|
449
|
-
Exclude:
|
|
450
|
-
- 'lib/trailblazer/operation/module.rb'
|
|
451
|
-
|
|
452
|
-
# Offense count: 1
|
|
453
|
-
# Cop supports --auto-correct.
|
|
454
|
-
Style/MutableConstant:
|
|
455
|
-
Exclude:
|
|
456
|
-
- 'lib/trailblazer/version.rb'
|
|
457
|
-
|
|
458
|
-
# Offense count: 2
|
|
459
|
-
Style/OptionalArguments:
|
|
460
|
-
Exclude:
|
|
461
|
-
- 'lib/trailblazer/dsl.rb'
|
|
462
|
-
|
|
463
|
-
# Offense count: 1
|
|
464
|
-
# Cop supports --auto-correct.
|
|
465
|
-
Style/ParallelAssignment:
|
|
466
|
-
Exclude:
|
|
467
|
-
- 'lib/trailblazer/deprecation/call.rb'
|
|
468
|
-
|
|
469
|
-
# Offense count: 47
|
|
470
|
-
# Cop supports --auto-correct.
|
|
471
|
-
# Configuration parameters: PreferredDelimiters.
|
|
472
|
-
Style/PercentLiteralDelimiters:
|
|
473
|
-
Exclude:
|
|
474
|
-
- 'test/deprecation/call_test.rb'
|
|
475
|
-
- 'test/deprecation/context_test.rb'
|
|
476
|
-
- 'test/docs/fast_test.rb'
|
|
477
|
-
- 'test/docs/operation_test.rb'
|
|
478
|
-
- 'test/docs/trace_test.rb'
|
|
479
|
-
- 'test/dsl/contract_test.rb'
|
|
480
|
-
- 'test/variables_test.rb'
|
|
481
|
-
- 'trailblazer.gemspec'
|
|
482
|
-
|
|
483
|
-
# Offense count: 2
|
|
484
|
-
# Cop supports --auto-correct.
|
|
485
|
-
# Configuration parameters: AllowMultipleReturnValues.
|
|
486
|
-
Style/RedundantReturn:
|
|
487
|
-
Exclude:
|
|
488
|
-
- 'lib/trailblazer/deprecation/call.rb'
|
|
489
|
-
- 'test/docs/fast_test.rb'
|
|
490
|
-
|
|
491
|
-
# Offense count: 8
|
|
492
|
-
# Cop supports --auto-correct.
|
|
493
|
-
# Configuration parameters: AllowAsExpressionSeparator.
|
|
494
|
-
Style/Semicolon:
|
|
495
|
-
Exclude:
|
|
496
|
-
- 'test/docs/fast_test.rb'
|
|
497
|
-
|
|
498
|
-
# Offense count: 1
|
|
499
|
-
Style/Send:
|
|
500
|
-
Exclude:
|
|
501
|
-
- 'lib/trailblazer/operation/module.rb'
|
|
502
|
-
|
|
503
|
-
# Offense count: 1
|
|
504
|
-
# Cop supports --auto-correct.
|
|
505
|
-
# Configuration parameters: EnforcedStyle.
|
|
506
|
-
# SupportedStyles: only_raise, only_fail, semantic
|
|
507
|
-
Style/SignalException:
|
|
508
|
-
Exclude:
|
|
509
|
-
- 'lib/trailblazer/operation/test.rb'
|
|
510
|
-
|
|
511
|
-
# Offense count: 20
|
|
512
|
-
# Cop supports --auto-correct.
|
|
513
|
-
# Configuration parameters: AllowIfMethodIsEmpty.
|
|
514
|
-
Style/SingleLineMethods:
|
|
515
|
-
Exclude:
|
|
516
|
-
- 'test/docs/fast_test.rb'
|
|
517
|
-
- 'test/docs/operation_test.rb'
|
|
518
|
-
- 'test/test_helper.rb'
|
|
519
|
-
|
|
520
|
-
# Offense count: 14
|
|
521
|
-
# Cop supports --auto-correct.
|
|
522
|
-
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
|
523
|
-
# SupportedStyles: single_quotes, double_quotes
|
|
524
|
-
Style/StringLiterals:
|
|
525
|
-
Exclude:
|
|
526
|
-
- 'Gemfile'
|
|
527
|
-
- 'Rakefile'
|
|
528
|
-
- 'trailblazer.gemspec'
|
|
529
|
-
|
|
530
|
-
# Offense count: 1
|
|
531
|
-
# Cop supports --auto-correct.
|
|
532
|
-
# Configuration parameters: EnforcedStyleForMultiline.
|
|
533
|
-
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
|
534
|
-
Style/TrailingCommaInHashLiteral:
|
|
535
|
-
Exclude:
|
|
536
|
-
- 'test/variables_test.rb'
|
|
537
|
-
|
|
538
|
-
# Offense count: 2
|
|
539
|
-
# Cop supports --auto-correct.
|
|
540
|
-
# Configuration parameters: AllowNamedUnderscoreVariables.
|
|
541
|
-
Style/TrailingUnderscoreVariable:
|
|
542
|
-
Exclude:
|
|
543
|
-
- 'lib/trailblazer/deprecation/context.rb'
|
|
544
|
-
|
|
545
|
-
# Offense count: 2
|
|
546
|
-
# Cop supports --auto-correct.
|
|
547
|
-
Style/UnneededPercentQ:
|
|
548
|
-
Exclude:
|
|
549
|
-
- 'trailblazer.gemspec'
|
|
550
|
-
|
|
551
|
-
# Offense count: 1
|
|
552
|
-
# Cop supports --auto-correct.
|
|
553
|
-
# Configuration parameters: MinSize, WordRegex.
|
|
554
|
-
# SupportedStyles: percent, brackets
|
|
555
|
-
Style/WordArray:
|
|
556
|
-
EnforcedStyle: brackets
|