dependabot-linguist 0.212.1 → 0.303.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/.nvmrc +1 -0
- data/.rubocop.yml +137 -8
- data/.ruby-version +1 -0
- data/CONTRIBUTING.md +2 -0
- data/Gemfile.lock +266 -158
- data/Makefile +93 -19
- data/README.md +34 -5
- data/SECURITY.md +4 -2
- data/dependabot-linguist.gemspec +21 -11
- data/exe/dependabot-linguist +1 -1
- data/lib/dependabot/linguist/dependabot_file_validator.rb +3 -1
- data/lib/dependabot/linguist/dependabot_patch.rb +14 -2
- data/lib/dependabot/linguist/file_fetchers/bundler.rb +54 -0
- data/lib/dependabot/linguist/file_fetchers/git_submodules.rb +9 -7
- data/lib/dependabot/linguist/file_fetchers/go_modules.rb +2 -2
- data/lib/dependabot/linguist/language.rb +18 -14
- data/lib/dependabot/linguist/languages_to_ecosystems/contexts.rb +25 -21
- data/lib/dependabot/linguist/languages_to_ecosystems/contexts_applied.rb +1 -1
- data/lib/dependabot/linguist/languages_to_ecosystems/languages.yaml +841 -60
- data/lib/dependabot/linguist/languages_to_ecosystems/manager_ecosystem_maps.rb +33 -21
- data/lib/dependabot/linguist/languages_to_patch.txt +1 -0
- data/lib/dependabot/linguist/linguist_patch.rb +1 -1
- data/lib/dependabot/linguist/repository.rb +12 -3
- data/lib/dependabot/linguist/version.rb +1 -1
- metadata +67 -25
- data/lib/dependabot/linguist/file_fetchers/base.rb +0 -48
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8aa1bc5268f787027a40e8fbeaafaa28029f683bd0bac619b873e70e4fdcbb44
|
4
|
+
data.tar.gz: f6d744ba3485889384505f5e5ce07cc008ac7b41ab91368231499a30fbf5283a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 598666682b39e6891fea1021fae9bb191cb00b67010b5af09ba81f7291aadc94cfc7016f81725835b35f8116efe3eef62bb270b37fdec8d9e8e28569f51527e2
|
7
|
+
data.tar.gz: 28a400e395cadfbba4fa56de2711bcb527e8a21f48997137add288ccf4ce74a40aa268edbf0464f149b5d097d225b8bba00890bb115b7223ba168597d98b02aa
|
data/.nvmrc
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
v22.13.0
|
data/.rubocop.yml
CHANGED
@@ -1,5 +1,8 @@
|
|
1
|
+
# For any failing cops, whether new or old ones that have been changed, visit;
|
2
|
+
# https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/<Name_of_failing_cop>
|
3
|
+
|
1
4
|
AllCops:
|
2
|
-
TargetRubyVersion:
|
5
|
+
TargetRubyVersion: 3.1.0
|
3
6
|
UseCache: false
|
4
7
|
SuggestExtensions: false
|
5
8
|
# NewCops: enable # would silence the recommendation
|
@@ -9,8 +12,13 @@ AllCops:
|
|
9
12
|
- 'smoke-test/**/*'
|
10
13
|
# - 'spec/dependabot/*_spec.rb'
|
11
14
|
|
15
|
+
Gemspec/AddRuntimeDependency: # new in 1.65
|
16
|
+
Enabled: true
|
12
17
|
Gemspec/DeprecatedAttributeAssignment:
|
13
18
|
Enabled: true
|
19
|
+
Gemspec/DevelopmentDependencies:
|
20
|
+
Enabled: true
|
21
|
+
EnforcedStyle: gemspec
|
14
22
|
Gemspec/OrderedDependencies:
|
15
23
|
Enabled: false
|
16
24
|
Gemspec/RequireMFA:
|
@@ -53,6 +61,8 @@ Metrics/BlockNesting:
|
|
53
61
|
Enabled: false
|
54
62
|
Metrics/ClassLength:
|
55
63
|
Enabled: false
|
64
|
+
Metrics/CollectionLiteralLength: # new in 1.47
|
65
|
+
Enabled: true
|
56
66
|
Metrics/CyclomaticComplexity:
|
57
67
|
Enabled: false
|
58
68
|
Metrics/MethodLength:
|
@@ -68,36 +78,60 @@ Lint/AmbiguousOperatorPrecedence:
|
|
68
78
|
Enabled: true
|
69
79
|
Lint/AmbiguousRange:
|
70
80
|
Enabled: true
|
81
|
+
Lint/ArrayLiteralInRegexp: # new in 1.71
|
82
|
+
Enabled: true
|
71
83
|
Lint/ConstantOverwrittenInRescue:
|
72
84
|
Enabled: true
|
85
|
+
Lint/ConstantReassignment: # new in 1.70
|
86
|
+
Enabled: true
|
87
|
+
Lint/CopDirectiveSyntax: # new in 1.72
|
88
|
+
Enabled: true
|
73
89
|
Lint/DeprecatedConstants:
|
74
90
|
Enabled: true
|
75
91
|
Lint/DuplicateBranch:
|
76
92
|
Enabled: true
|
77
93
|
Lint/DuplicateMagicComment: # new in 1.37
|
78
94
|
Enabled: true
|
95
|
+
Lint/DuplicateMatchPattern: # new in 1.50
|
96
|
+
Enabled: true
|
79
97
|
Lint/DuplicateRegexpCharacterClassElement:
|
80
98
|
Enabled: true
|
99
|
+
Lint/DuplicateSetElement: # new in 1.67
|
100
|
+
Enabled: true
|
81
101
|
Lint/EmptyBlock:
|
82
102
|
Enabled: true
|
83
103
|
Lint/EmptyClass:
|
84
104
|
Enabled: true
|
85
105
|
Lint/EmptyInPattern:
|
86
106
|
Enabled: true
|
107
|
+
Lint/HashNewWithKeywordArgumentsAsDefault: # new in 1.69
|
108
|
+
Enabled: true
|
87
109
|
Lint/IncompatibleIoSelectWithFiberScheduler:
|
88
110
|
Enabled: true
|
111
|
+
Lint/ItWithoutArgumentsInBlock: # new in 1.59
|
112
|
+
Enabled: true
|
89
113
|
Lint/LambdaWithoutLiteralBlock:
|
90
114
|
Enabled: true
|
115
|
+
Lint/LiteralAssignmentInCondition: # new in 1.58
|
116
|
+
Enabled: true
|
117
|
+
Lint/MixedCaseRange: # new in 1.53
|
118
|
+
Enabled: true
|
91
119
|
Lint/NoReturnInBeginEndBlocks:
|
92
120
|
Enabled: true
|
93
121
|
Lint/NonAtomicFileOperation:
|
94
122
|
Enabled: true
|
95
123
|
Lint/NumberedParameterAssignment:
|
96
124
|
Enabled: true
|
125
|
+
Lint/NumericOperationWithConstantResult: # new in 1.69
|
126
|
+
Enabled: true
|
97
127
|
Lint/OrAssignmentToConstant:
|
98
128
|
Enabled: true
|
99
129
|
Lint/RedundantDirGlobSort:
|
100
130
|
Enabled: true
|
131
|
+
Lint/RedundantRegexpQuantifiers: # new in 1.53
|
132
|
+
Enabled: true
|
133
|
+
Lint/RedundantTypeConversion: # new in 1.72
|
134
|
+
Enabled: true
|
101
135
|
Lint/RefinementImportMethods:
|
102
136
|
Enabled: true
|
103
137
|
Lint/RequireRangeParentheses:
|
@@ -106,6 +140,10 @@ Lint/RequireRelativeSelfPath:
|
|
106
140
|
Enabled: true
|
107
141
|
Lint/ScriptPermission:
|
108
142
|
Enabled: false
|
143
|
+
Lint/SharedMutableDefault: # new in 1.70
|
144
|
+
Enabled: true
|
145
|
+
Lint/SuppressedExceptionInNumberConversion: # new in 1.72
|
146
|
+
Enabled: true
|
109
147
|
Lint/SymbolConversion:
|
110
148
|
Enabled: true
|
111
149
|
Lint/ToEnumArguments:
|
@@ -114,27 +152,48 @@ Lint/TripleQuotes:
|
|
114
152
|
Enabled: true
|
115
153
|
Lint/UnexpectedBlockArity:
|
116
154
|
Enabled: true
|
155
|
+
Lint/UnescapedBracketInRegexp: # new in 1.68
|
156
|
+
Enabled: true
|
117
157
|
Lint/UnmodifiedReduceAccumulator:
|
118
158
|
Enabled: true
|
119
|
-
Lint/
|
159
|
+
Lint/UselessConstantScoping: # new in 1.72
|
120
160
|
Enabled: true
|
121
|
-
|
122
|
-
|
123
|
-
Style/StringLiterals:
|
161
|
+
Lint/UselessDefined: # new in 1.69
|
124
162
|
Enabled: true
|
125
|
-
|
126
|
-
Style/StringLiteralsInInterpolation:
|
163
|
+
Lint/UselessNumericOperation: # new in 1.66
|
127
164
|
Enabled: true
|
128
|
-
|
165
|
+
Lint/UselessRescue: # new in 1.43
|
166
|
+
Enabled: true
|
167
|
+
Lint/UselessRuby2Keywords:
|
168
|
+
Enabled: true
|
169
|
+
|
129
170
|
Style/AccessModifierDeclarations:
|
130
171
|
EnforcedStyle: inline
|
131
172
|
AllowModifiersOnSymbols: false
|
173
|
+
Style/AmbiguousEndlessMethodDefinition: # new in 1.68
|
174
|
+
Enabled: true
|
132
175
|
Style/ArgumentsForwarding:
|
133
176
|
Enabled: true
|
177
|
+
Style/ArrayIntersect: # new in 1.40
|
178
|
+
Enabled: true
|
179
|
+
Style/BitwisePredicate: # new in 1.68
|
180
|
+
Enabled: true
|
134
181
|
Style/CollectionCompact:
|
135
182
|
Enabled: true
|
183
|
+
Style/CombinableDefined: # new in 1.68
|
184
|
+
Enabled: true
|
185
|
+
Style/ComparableClamp: # new in 1.44
|
186
|
+
Enabled: true
|
187
|
+
Style/ConcatArrayLiterals: # new in 1.41
|
188
|
+
Enabled: true
|
136
189
|
Style/ConditionalAssignment:
|
137
190
|
Enabled: false
|
191
|
+
Style/DataInheritance: # new in 1.49
|
192
|
+
Enabled: true
|
193
|
+
Style/DigChain: # new in 1.69
|
194
|
+
Enabled: true
|
195
|
+
Style/DirEmpty: # new in 1.48
|
196
|
+
Enabled: true
|
138
197
|
Style/DocumentDynamicEvalDefinition:
|
139
198
|
Enabled: true
|
140
199
|
Style/EmptyHeredoc:
|
@@ -143,10 +202,18 @@ Style/EndlessMethod:
|
|
143
202
|
Enabled: true
|
144
203
|
Style/EnvHome:
|
145
204
|
Enabled: true
|
205
|
+
Style/ExactRegexpMatch:
|
206
|
+
Enabled: false
|
146
207
|
Style/FetchEnvVar:
|
147
208
|
Enabled: true
|
209
|
+
Style/FileEmpty: # new in 1.48
|
210
|
+
Enabled: true
|
211
|
+
Style/FileNull: # new in 1.69
|
212
|
+
Enabled: true
|
148
213
|
Style/FileRead:
|
149
214
|
Enabled: true
|
215
|
+
Style/FileTouch: # new in 1.69
|
216
|
+
Enabled: true
|
150
217
|
Style/FileWrite:
|
151
218
|
Enabled: false
|
152
219
|
Style/For:
|
@@ -155,22 +222,40 @@ Style/HashConversion:
|
|
155
222
|
Enabled: true
|
156
223
|
Style/HashExcept:
|
157
224
|
Enabled: true
|
225
|
+
Style/HashSlice: # new in 1.71
|
226
|
+
Enabled: true
|
227
|
+
Style/HashSyntax:
|
228
|
+
Enabled: true
|
229
|
+
EnforcedStyle: ruby19_no_mixed_keys
|
230
|
+
EnforcedShorthandSyntax: 'never'
|
158
231
|
Style/IfWithBooleanLiteralBranches:
|
159
232
|
Enabled: true
|
160
233
|
Style/IfUnlessModifier:
|
161
234
|
Enabled: false
|
162
235
|
Style/InPatternThen:
|
163
236
|
Enabled: true
|
237
|
+
Style/ItAssignment: # new in 1.70
|
238
|
+
Enabled: true
|
239
|
+
Style/KeywordArgumentsMerging: # new in 1.68
|
240
|
+
Enabled: true
|
164
241
|
Style/Lambda:
|
165
242
|
EnforcedStyle: lambda
|
166
243
|
Style/MagicCommentFormat:
|
167
244
|
Enabled: true
|
168
245
|
Style/MapCompactWithConditionalBlock:
|
169
246
|
Enabled: true
|
247
|
+
Style/MapIntoArray: # new in 1.63
|
248
|
+
Enabled: true
|
170
249
|
Style/MapToHash:
|
171
250
|
Enabled: true
|
251
|
+
Style/MapToSet: # new in 1.42
|
252
|
+
Enabled: true
|
253
|
+
Style/MinMaxComparison: # new in 1.42
|
254
|
+
Enabled: true
|
172
255
|
Style/MultilineInPatternThen:
|
173
256
|
Enabled: true
|
257
|
+
Style/MutableConstant:
|
258
|
+
Enabled: true
|
174
259
|
Style/NegatedIfElseCondition:
|
175
260
|
Enabled: true
|
176
261
|
Style/NestedFileDirname:
|
@@ -195,21 +280,65 @@ Style/QuotedSymbols:
|
|
195
280
|
Enabled: true
|
196
281
|
Style/RedundantArgument:
|
197
282
|
Enabled: true
|
283
|
+
Style/RedundantArrayConstructor: # new in 1.52
|
284
|
+
Enabled: true
|
285
|
+
Style/RedundantConstantBase: # new in 1.40
|
286
|
+
Enabled: false
|
287
|
+
Style/RedundantCurrentDirectoryInPath: # new in 1.53
|
288
|
+
Enabled: true
|
289
|
+
Style/RedundantDoubleSplatHashBraces: # new in 1.41
|
290
|
+
Enabled: true
|
198
291
|
Style/RedundantEach: # new in 1.38
|
199
292
|
Enabled: true
|
293
|
+
Style/RedundantFilterChain: # new in 1.52
|
294
|
+
Enabled: true
|
295
|
+
Style/RedundantFormat: # new in 1.72
|
296
|
+
Enabled: true
|
297
|
+
Style/RedundantHeredocDelimiterQuotes: # new in 1.45
|
298
|
+
Enabled: true
|
200
299
|
Style/RedundantInitialize:
|
201
300
|
Enabled: true
|
301
|
+
Style/RedundantInterpolationUnfreeze: # new in 1.66
|
302
|
+
Enabled: true
|
303
|
+
Style/RedundantLineContinuation: # new in 1.49
|
304
|
+
Enabled: true
|
305
|
+
Style/RedundantParentheses:
|
306
|
+
Enabled: true
|
307
|
+
Style/RedundantRegexpArgument: # new in 1.53
|
308
|
+
Enabled: true
|
309
|
+
Style/RedundantRegexpConstructor: # new in 1.52
|
310
|
+
Enabled: true
|
202
311
|
Style/RedundantSelf:
|
203
312
|
Enabled: false
|
204
313
|
Style/RedundantSelfAssignmentBranch:
|
205
314
|
Enabled: true
|
206
315
|
Style/RedundantStringEscape: # new in 1.37
|
207
316
|
Enabled: true
|
317
|
+
Style/ReturnNilInPredicateMethodDefinition: # new in 1.53
|
318
|
+
Enabled: true
|
319
|
+
Style/SafeNavigationChainLength: # new in 1.68
|
320
|
+
Enabled: true
|
208
321
|
Style/SelectByRegexp:
|
209
322
|
Enabled: true
|
323
|
+
Style/SendWithLiteralMethodName: # new in 1.64
|
324
|
+
Enabled: true
|
325
|
+
Style/SingleLineDoEndBlock: # new in 1.57
|
326
|
+
Enabled: true
|
210
327
|
Style/StringChars:
|
211
328
|
Enabled: true
|
329
|
+
Style/StringLiterals:
|
330
|
+
Enabled: true
|
331
|
+
EnforcedStyle: double_quotes
|
332
|
+
Style/StringLiteralsInInterpolation:
|
333
|
+
Enabled: true
|
334
|
+
EnforcedStyle: double_quotes
|
335
|
+
Style/SuperArguments: # new in 1.64
|
336
|
+
Enabled: true
|
337
|
+
Style/SuperWithArgsParentheses: # new in 1.58
|
338
|
+
Enabled: true
|
212
339
|
Style/SwapValues:
|
213
340
|
Enabled: true
|
214
341
|
Style/WordArray:
|
215
342
|
Enabled: false
|
343
|
+
Style/YAMLFileRead: # new in 1.53
|
344
|
+
Enabled: true
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.3.6
|
data/CONTRIBUTING.md
CHANGED
@@ -6,6 +6,8 @@ The _quickest_ way to get the source _without_ contributing is;
|
|
6
6
|
git clone https://github.com/Skenvy/dependabot-linguist.git
|
7
7
|
```
|
8
8
|
If you want to _contribute_ to the source, you'll need to [fork this repository](https://github.com/Skenvy/dependabot-linguist/fork), clone it, and create a development branch. Contributions should be received as pull requests from your development branch on your fork.
|
9
|
+
## Develop the source
|
10
|
+
See the root README's [Developing](https://github.com/Skenvy/dependabot-linguist/blob/main/README.md#developing) section.
|
9
11
|
## Raise an issue
|
10
12
|
* [Bug Report](https://github.com/Skenvy/dependabot-linguist/issues/new?assignees=&labels=bug&template=bug-report.yaml)
|
11
13
|
* [Feature Request](https://github.com/Skenvy/dependabot-linguist/issues/new?assignees=&labels=enhancement&template=feature-request.yaml)
|