Commit fd939cf
Daniel Mikusa
Fixes rubocop violations (#941)
- Disable empty blocks under spec tests
- Disable string concat style check
- Change lint name to MissingSuper
- Change `ENV[..]` usage to `ENV.fetch(..., nil)`
- Set max for RSpec/MultipleMemoizedHelpers to 10, some tests have a lot of `let(..)` blocks
- Set RSpec/VerifiedDoubleReference to enforce string style
- Consistently use Naming/VariableNumber, some outliers were snake_case and switched to normalcase
- Disable Lint/UselessMethodDefinition in a few specs where it's necessary
- Remove some unnecessary whitespace, char groups and escaping in regex blocks
- Use `be_nil` instead of `be nil`
- Disable Style/GlobalStdStream checks for spec helper
- Reduce complexity of versions_tasks and validate
- Disable helper limit MultipleMemoizedHelpers for droplet helper
- Make the order explicit in a few places by adding parends
- Switch from ifelse to case
- Use File.write
- Remove empty blocks
- Fixes all string alignment issues
- Fixes all string too long issues
- Ignore Ruby 2.6 lints about array slicing since we still need to support Ruby 2.5
- Use an explicit kwargs to be compatible with deprecations and removal in Ruby 2.7 and 3.0
- Bump RubyMine tests to reflect supported version 2.5, 2.7 and 3.0
- Include missing require in filtering_filename_spec.rb that caused it to fail in RubyMine
- Freeze const made from dynamics
- Adjust kwarg expansion so it's compliant for Ruby 3.0 (this requires some version specific behavior in the spec tests)
Signed-off-by: Daniel Mikusa <[email protected]>1 parent 80d599d commit fd939cf
File tree
87 files changed
+785
-574
lines changed- .idea/runConfigurations
- lib/java_buildpack
- component
- container
- tomcat
- framework
- java_memory_assistant
- jre
- logging
- repository
- util
- cache
- play
- rakelib
- spec
- java_buildpack
- component
- container
- tomcat
- framework
- java_memory_assistant
- jre
- util
- cache
- play
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
87 files changed
+785
-574
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | | - | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
56 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
57 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
18 | 17 | | |
| 18 | + | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
27 | 27 | | |
28 | | - | |
29 | | - | |
| 28 | + | |
| 29 | + | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
35 | 34 | | |
36 | | - | |
| 35 | + | |
37 | 36 | | |
| 37 | + | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
46 | 48 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
| |||
69 | 73 | | |
70 | 74 | | |
71 | 75 | | |
72 | | - | |
| 76 | + | |
0 commit comments