dependabot-linguist 0.0.1 → 0.212.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +25 -3
- data/Gemfile +0 -9
- data/Gemfile.lock +164 -7
- data/LICENSE +674 -1
- data/{LICENSE.Nonstandard → LICENSE.dependabot-core} +0 -0
- data/Makefile +8 -1
- data/README.md +66 -5
- data/demo_script.rb +50 -0
- data/dependabot-linguist.gemspec +17 -6
- data/devlog.md +186 -0
- data/exe/dependabot-linguist +145 -0
- data/lib/dependabot/linguist/dependabot_file_validator.rb +224 -0
- data/lib/dependabot/linguist/dependabot_patch.rb +8 -0
- data/lib/dependabot/linguist/file_fetchers/base.rb +48 -0
- data/lib/dependabot/linguist/file_fetchers/git_submodules.rb +63 -0
- data/lib/dependabot/linguist/file_fetchers/go_modules.rb +41 -0
- data/lib/dependabot/linguist/language.rb +62 -0
- data/lib/dependabot/linguist/languages_to_ecosystems/contexts.rb +234 -0
- data/lib/dependabot/linguist/languages_to_ecosystems/contexts_applied.rb +36 -0
- data/lib/dependabot/linguist/languages_to_ecosystems/languages.yaml +7950 -0
- data/lib/dependabot/linguist/languages_to_ecosystems/main.rb +55 -0
- data/lib/dependabot/linguist/languages_to_ecosystems/manager_ecosystem_maps.rb +154 -0
- data/lib/dependabot/linguist/languages_to_patch.txt +37 -0
- data/lib/dependabot/linguist/linguist_patch.rb +6 -0
- data/lib/dependabot/linguist/repository.rb +232 -0
- data/lib/dependabot/linguist/version.rb +1 -1
- data/lib/dependabot/linguist.rb +5 -2
- metadata +121 -6
- data/LICENSE.GPL-3.0-only +0 -674
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6e4b9d290d48ec36257a2fa25074269e76f9604f8683d6d3883c8dc190c0365
|
4
|
+
data.tar.gz: 2de3d9561c2630dcf5d14f8f6340a7c8c9077d5962b4bd72efe7fa467a8db4bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 703ba177b6cbcd215ebd918313d58f79d22f25fa62dcba0c698cd83ec0b481906922f718c8498034b71a2f9fd54c76dd5b94ae0f28b3daae4ddd38a692f38b22
|
7
|
+
data.tar.gz: 190889bc78fc791ff520538c397ff5b8f4f7c451903300ac6e309226d2204a2e2f7de97f64653c717425959ce31c202ec0b9ad219495206642853414206fed3a
|
data/.rubocop.yml
CHANGED
@@ -4,9 +4,15 @@ AllCops:
|
|
4
4
|
SuggestExtensions: false
|
5
5
|
# NewCops: enable # would silence the recommendation
|
6
6
|
# # to enable new, but would hide which ones were run
|
7
|
+
Exclude:
|
8
|
+
- 'vendor/**/*'
|
9
|
+
- 'smoke-test/**/*'
|
10
|
+
# - 'spec/dependabot/*_spec.rb'
|
7
11
|
|
8
12
|
Gemspec/DeprecatedAttributeAssignment:
|
9
13
|
Enabled: true
|
14
|
+
Gemspec/OrderedDependencies:
|
15
|
+
Enabled: false
|
10
16
|
Gemspec/RequireMFA:
|
11
17
|
Enabled: false
|
12
18
|
|
@@ -22,8 +28,10 @@ Security/IoMethods:
|
|
22
28
|
|
23
29
|
Layout/EmptyLineAfterGuardClause:
|
24
30
|
Enabled: false
|
31
|
+
Layout/HeredocIndentation:
|
32
|
+
Enabled: false
|
25
33
|
Layout/LineLength:
|
26
|
-
Max:
|
34
|
+
Max: 180
|
27
35
|
Layout/LineContinuationLeadingSpace:
|
28
36
|
Enabled: true
|
29
37
|
Layout/LineContinuationSpacing:
|
@@ -40,9 +48,11 @@ Layout/SpaceBeforeBrackets:
|
|
40
48
|
Metrics/AbcSize:
|
41
49
|
Enabled: false
|
42
50
|
Metrics/BlockLength:
|
43
|
-
AllowedMethods: ['describe', 'context']
|
51
|
+
AllowedMethods: ['describe', 'context', 'tap']
|
44
52
|
Metrics/BlockNesting:
|
45
53
|
Enabled: false
|
54
|
+
Metrics/ClassLength:
|
55
|
+
Enabled: false
|
46
56
|
Metrics/CyclomaticComplexity:
|
47
57
|
Enabled: false
|
48
58
|
Metrics/MethodLength:
|
@@ -64,6 +74,8 @@ Lint/DeprecatedConstants:
|
|
64
74
|
Enabled: true
|
65
75
|
Lint/DuplicateBranch:
|
66
76
|
Enabled: true
|
77
|
+
Lint/DuplicateMagicComment: # new in 1.37
|
78
|
+
Enabled: true
|
67
79
|
Lint/DuplicateRegexpCharacterClassElement:
|
68
80
|
Enabled: true
|
69
81
|
Lint/EmptyBlock:
|
@@ -136,7 +148,7 @@ Style/FetchEnvVar:
|
|
136
148
|
Style/FileRead:
|
137
149
|
Enabled: true
|
138
150
|
Style/FileWrite:
|
139
|
-
Enabled:
|
151
|
+
Enabled: false
|
140
152
|
Style/For:
|
141
153
|
Enabled: false
|
142
154
|
Style/HashConversion:
|
@@ -145,6 +157,8 @@ Style/HashExcept:
|
|
145
157
|
Enabled: true
|
146
158
|
Style/IfWithBooleanLiteralBranches:
|
147
159
|
Enabled: true
|
160
|
+
Style/IfUnlessModifier:
|
161
|
+
Enabled: false
|
148
162
|
Style/InPatternThen:
|
149
163
|
Enabled: true
|
150
164
|
Style/Lambda:
|
@@ -175,19 +189,27 @@ Style/ObjectThen:
|
|
175
189
|
Enabled: true
|
176
190
|
Style/OpenStructUse:
|
177
191
|
Enabled: true
|
192
|
+
Style/OperatorMethodCall: # new in 1.37
|
193
|
+
Enabled: true
|
178
194
|
Style/QuotedSymbols:
|
179
195
|
Enabled: true
|
180
196
|
Style/RedundantArgument:
|
181
197
|
Enabled: true
|
198
|
+
Style/RedundantEach: # new in 1.38
|
199
|
+
Enabled: true
|
182
200
|
Style/RedundantInitialize:
|
183
201
|
Enabled: true
|
184
202
|
Style/RedundantSelf:
|
185
203
|
Enabled: false
|
186
204
|
Style/RedundantSelfAssignmentBranch:
|
187
205
|
Enabled: true
|
206
|
+
Style/RedundantStringEscape: # new in 1.37
|
207
|
+
Enabled: true
|
188
208
|
Style/SelectByRegexp:
|
189
209
|
Enabled: true
|
190
210
|
Style/StringChars:
|
191
211
|
Enabled: true
|
192
212
|
Style/SwapValues:
|
193
213
|
Enabled: true
|
214
|
+
Style/WordArray:
|
215
|
+
Enabled: false
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,24 +1,170 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
dependabot-linguist (0.
|
4
|
+
dependabot-linguist (0.212.1)
|
5
|
+
dependabot-omnibus (= 0.212.0)
|
6
|
+
github-linguist (= 7.23.0)
|
7
|
+
rugged (~> 1.5.0)
|
5
8
|
|
6
9
|
GEM
|
7
10
|
remote: https://rubygems.org/
|
8
11
|
specs:
|
12
|
+
activesupport (7.0.4)
|
13
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
14
|
+
i18n (>= 1.6, < 2)
|
15
|
+
minitest (>= 5.1)
|
16
|
+
tzinfo (~> 2.0)
|
17
|
+
addressable (2.8.1)
|
18
|
+
public_suffix (>= 2.0.2, < 6.0)
|
9
19
|
ast (2.4.2)
|
20
|
+
aws-eventstream (1.2.0)
|
21
|
+
aws-partitions (1.668.0)
|
22
|
+
aws-sdk-codecommit (1.52.0)
|
23
|
+
aws-sdk-core (~> 3, >= 3.165.0)
|
24
|
+
aws-sigv4 (~> 1.1)
|
25
|
+
aws-sdk-core (3.168.2)
|
26
|
+
aws-eventstream (~> 1, >= 1.0.2)
|
27
|
+
aws-partitions (~> 1, >= 1.651.0)
|
28
|
+
aws-sigv4 (~> 1.5)
|
29
|
+
jmespath (~> 1, >= 1.6.1)
|
30
|
+
aws-sdk-ecr (1.57.0)
|
31
|
+
aws-sdk-core (~> 3, >= 3.165.0)
|
32
|
+
aws-sigv4 (~> 1.1)
|
33
|
+
aws-sigv4 (1.5.2)
|
34
|
+
aws-eventstream (~> 1, >= 1.0.2)
|
35
|
+
cgi (0.3.6)
|
36
|
+
charlock_holmes (0.7.7)
|
37
|
+
citrus (3.0.2)
|
38
|
+
commonmarker (0.23.6)
|
39
|
+
concurrent-ruby (1.1.10)
|
40
|
+
dependabot-bundler (0.212.0)
|
41
|
+
dependabot-common (= 0.212.0)
|
42
|
+
dependabot-cargo (0.212.0)
|
43
|
+
dependabot-common (= 0.212.0)
|
44
|
+
dependabot-common (0.212.0)
|
45
|
+
activesupport (>= 6.0.0)
|
46
|
+
aws-sdk-codecommit (~> 1.28)
|
47
|
+
aws-sdk-ecr (~> 1.5)
|
48
|
+
bundler (>= 1.16, < 3.0.0)
|
49
|
+
commonmarker (>= 0.20.1, < 0.24.0)
|
50
|
+
docker_registry2 (~> 1.11, >= 1.11.0)
|
51
|
+
excon (~> 0.75)
|
52
|
+
faraday (= 2.5.2)
|
53
|
+
gitlab (= 4.19.0)
|
54
|
+
nokogiri (~> 1.8)
|
55
|
+
octokit (>= 4.6, < 6.0)
|
56
|
+
parser (>= 2.5, < 4.0)
|
57
|
+
toml-rb (>= 1.1.2, < 3.0)
|
58
|
+
dependabot-composer (0.212.0)
|
59
|
+
dependabot-common (= 0.212.0)
|
60
|
+
dependabot-docker (0.212.0)
|
61
|
+
dependabot-common (= 0.212.0)
|
62
|
+
dependabot-elm (0.212.0)
|
63
|
+
dependabot-common (= 0.212.0)
|
64
|
+
dependabot-git_submodules (0.212.0)
|
65
|
+
dependabot-common (= 0.212.0)
|
66
|
+
parseconfig (~> 1.0, < 1.1.0)
|
67
|
+
dependabot-github_actions (0.212.0)
|
68
|
+
dependabot-common (= 0.212.0)
|
69
|
+
dependabot-go_modules (0.212.0)
|
70
|
+
dependabot-common (= 0.212.0)
|
71
|
+
dependabot-gradle (0.212.0)
|
72
|
+
dependabot-common (= 0.212.0)
|
73
|
+
dependabot-maven (= 0.212.0)
|
74
|
+
dependabot-hex (0.212.0)
|
75
|
+
dependabot-common (= 0.212.0)
|
76
|
+
dependabot-maven (0.212.0)
|
77
|
+
dependabot-common (= 0.212.0)
|
78
|
+
dependabot-npm_and_yarn (0.212.0)
|
79
|
+
dependabot-common (= 0.212.0)
|
80
|
+
dependabot-nuget (0.212.0)
|
81
|
+
dependabot-common (= 0.212.0)
|
82
|
+
dependabot-omnibus (0.212.0)
|
83
|
+
dependabot-bundler (= 0.212.0)
|
84
|
+
dependabot-cargo (= 0.212.0)
|
85
|
+
dependabot-common (= 0.212.0)
|
86
|
+
dependabot-composer (= 0.212.0)
|
87
|
+
dependabot-docker (= 0.212.0)
|
88
|
+
dependabot-elm (= 0.212.0)
|
89
|
+
dependabot-git_submodules (= 0.212.0)
|
90
|
+
dependabot-github_actions (= 0.212.0)
|
91
|
+
dependabot-go_modules (= 0.212.0)
|
92
|
+
dependabot-gradle (= 0.212.0)
|
93
|
+
dependabot-hex (= 0.212.0)
|
94
|
+
dependabot-maven (= 0.212.0)
|
95
|
+
dependabot-npm_and_yarn (= 0.212.0)
|
96
|
+
dependabot-nuget (= 0.212.0)
|
97
|
+
dependabot-pub (= 0.212.0)
|
98
|
+
dependabot-python (= 0.212.0)
|
99
|
+
dependabot-terraform (= 0.212.0)
|
100
|
+
dependabot-pub (0.212.0)
|
101
|
+
dependabot-common (= 0.212.0)
|
102
|
+
dependabot-python (0.212.0)
|
103
|
+
dependabot-common (= 0.212.0)
|
104
|
+
dependabot-terraform (0.212.0)
|
105
|
+
dependabot-common (= 0.212.0)
|
10
106
|
diff-lcs (1.5.0)
|
107
|
+
docker_registry2 (1.12.0)
|
108
|
+
rest-client (>= 1.8.0)
|
109
|
+
domain_name (0.5.20190701)
|
110
|
+
unf (>= 0.0.5, < 1.0.0)
|
111
|
+
excon (0.94.0)
|
112
|
+
faraday (2.5.2)
|
113
|
+
faraday-net_http (>= 2.0, < 3.1)
|
114
|
+
ruby2_keywords (>= 0.0.4)
|
115
|
+
faraday-net_http (3.0.2)
|
116
|
+
github-linguist (7.23.0)
|
117
|
+
cgi
|
118
|
+
charlock_holmes (~> 0.7.7)
|
119
|
+
mini_mime (~> 1.0)
|
120
|
+
rugged (~> 1.0)
|
121
|
+
gitlab (4.19.0)
|
122
|
+
httparty (~> 0.20)
|
123
|
+
terminal-table (>= 1.5.1)
|
124
|
+
http-accept (1.7.0)
|
125
|
+
http-cookie (1.0.5)
|
126
|
+
domain_name (~> 0.5)
|
127
|
+
httparty (0.20.0)
|
128
|
+
mime-types (~> 3.0)
|
129
|
+
multi_xml (>= 0.5.2)
|
130
|
+
i18n (1.12.0)
|
131
|
+
concurrent-ruby (~> 1.0)
|
132
|
+
jmespath (1.6.2)
|
11
133
|
json (2.6.2)
|
134
|
+
mime-types (3.4.1)
|
135
|
+
mime-types-data (~> 3.2015)
|
136
|
+
mime-types-data (3.2022.0105)
|
137
|
+
mini_mime (1.1.2)
|
138
|
+
mini_portile2 (2.8.0)
|
139
|
+
minitest (5.16.3)
|
140
|
+
multi_xml (0.6.0)
|
141
|
+
netrc (0.11.0)
|
142
|
+
nokogiri (1.13.9)
|
143
|
+
mini_portile2 (~> 2.8.0)
|
144
|
+
racc (~> 1.4)
|
145
|
+
nokogiri (1.13.9-x86_64-linux)
|
146
|
+
racc (~> 1.4)
|
147
|
+
octokit (5.6.1)
|
148
|
+
faraday (>= 1, < 3)
|
149
|
+
sawyer (~> 0.9)
|
12
150
|
parallel (1.22.1)
|
151
|
+
parseconfig (1.0.8)
|
13
152
|
parser (3.1.2.1)
|
14
153
|
ast (~> 2.4.1)
|
15
154
|
psych (4.0.6)
|
16
155
|
stringio
|
156
|
+
public_suffix (5.0.0)
|
157
|
+
racc (1.6.0)
|
17
158
|
rainbow (3.1.1)
|
18
159
|
rake (13.0.6)
|
19
160
|
rdoc (6.4.0)
|
20
161
|
psych (>= 4.0.0)
|
21
|
-
regexp_parser (2.6.
|
162
|
+
regexp_parser (2.6.1)
|
163
|
+
rest-client (2.1.0)
|
164
|
+
http-accept (>= 1.7.0, < 2.0)
|
165
|
+
http-cookie (>= 1.0.2, < 2.0)
|
166
|
+
mime-types (>= 1.16, < 4.0)
|
167
|
+
netrc (~> 0.8)
|
22
168
|
rexml (3.2.5)
|
23
169
|
rspec (3.12.0)
|
24
170
|
rspec-core (~> 3.12.0)
|
@@ -33,7 +179,7 @@ GEM
|
|
33
179
|
diff-lcs (>= 1.2.0, < 2.0)
|
34
180
|
rspec-support (~> 3.12.0)
|
35
181
|
rspec-support (3.12.0)
|
36
|
-
rubocop (1.
|
182
|
+
rubocop (1.39.0)
|
37
183
|
json (~> 2.3)
|
38
184
|
parallel (~> 1.10)
|
39
185
|
parser (>= 3.1.2.1)
|
@@ -46,15 +192,26 @@ GEM
|
|
46
192
|
rubocop-ast (1.23.0)
|
47
193
|
parser (>= 3.1.1.0)
|
48
194
|
ruby-progressbar (1.11.0)
|
195
|
+
ruby2_keywords (0.0.5)
|
196
|
+
rugged (1.5.0.1)
|
197
|
+
sawyer (0.9.2)
|
198
|
+
addressable (>= 2.3.5)
|
199
|
+
faraday (>= 0.17.3, < 3)
|
49
200
|
stringio (3.0.2)
|
201
|
+
terminal-table (3.0.2)
|
202
|
+
unicode-display_width (>= 1.1.1, < 3)
|
203
|
+
toml-rb (2.2.0)
|
204
|
+
citrus (~> 3.0, > 3.0)
|
205
|
+
tzinfo (2.0.5)
|
206
|
+
concurrent-ruby (~> 1.0)
|
207
|
+
unf (0.1.4)
|
208
|
+
unf_ext
|
209
|
+
unf_ext (0.0.8.2)
|
50
210
|
unicode-display_width (2.3.0)
|
51
211
|
|
52
212
|
PLATFORMS
|
213
|
+
ruby
|
53
214
|
x86_64-linux
|
54
|
-
x86_64-darwin-19
|
55
|
-
x64-mingw32
|
56
|
-
x64-mingw-ucrt
|
57
|
-
|
58
215
|
|
59
216
|
DEPENDENCIES
|
60
217
|
dependabot-linguist!
|