Commit 57383fd
Fix Sorbet type errors and RuboCop linting issues
Fixed all Sorbet type errors and RuboCop linting issues:
Sorbet fixes:
- Wrapped Regexp.last_match(1) and Regexp.last_match(2) with T.must()
to assert non-nil values (safe since we're inside a regex match)
- This satisfies the T::Hash[String, String] type requirement
RuboCop fixes:
- Style/Next: Changed if block to use next unless pattern
- Lint/UnusedBlockArgument: Renamed unused env: to _env: in test mocks
- Layout/FirstMethodArgumentLineBreak: Added line break before first arg
- Style/PercentLiteralDelimiters: Changed %w[] to %w() delimiter
Verification:
- bundle exec srb tc: No errors!
- bundle exec rubocop: No offenses detected
Co-authored-by: kbukum1 <171620528+kbukum1@users.noreply.github.com>1 parent 74411ee commit 57383fd
2 files changed
Lines changed: 17 additions & 16 deletions
File tree
- gradle
- lib/dependabot/gradle/file_updater
- spec/dependabot/gradle
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
192 | 193 | | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
198 | 197 | | |
199 | 198 | | |
200 | 199 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
809 | 809 | | |
810 | 810 | | |
811 | 811 | | |
812 | | - | |
| 812 | + | |
813 | 813 | | |
814 | 814 | | |
815 | 815 | | |
| |||
885 | 885 | | |
886 | 886 | | |
887 | 887 | | |
888 | | - | |
| 888 | + | |
889 | 889 | | |
890 | 890 | | |
891 | 891 | | |
| |||
922 | 922 | | |
923 | 923 | | |
924 | 924 | | |
925 | | - | |
926 | | - | |
927 | | - | |
928 | | - | |
929 | | - | |
930 | | - | |
931 | | - | |
932 | | - | |
933 | | - | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
934 | 936 | | |
935 | 937 | | |
936 | 938 | | |
| |||
0 commit comments