dependabot-linguist 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/.rubocop.yml +193 -0
- data/CODE_OF_CONDUCT.md +84 -0
- data/CONTRIBUTING.md +27 -0
- data/Gemfile +14 -0
- data/Gemfile.lock +67 -0
- data/LICENSE +1 -0
- data/LICENSE.GPL-3.0-only +674 -0
- data/LICENSE.Nonstandard +39 -0
- data/Makefile +45 -0
- data/README.md +38 -0
- data/Rakefile +35 -0
- data/SECURITY.md +9 -0
- data/dependabot-linguist.gemspec +30 -0
- data/lib/dependabot/linguist/version.rb +7 -0
- data/lib/dependabot/linguist.rb +10 -0
- metadata +64 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 97b753d42bcbe72d9842e7f68bb8992a22d5bd28d0dc9e76305088687a0f6470
|
4
|
+
data.tar.gz: cb2e31bbd4601f988f585770874d3d2dbbcf8044af0bc4559815920f6e2b20d6
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4ad4063897197da71d3f0010ba61dd5f7082fe706d72208d4c24ba3cc3c55560a6341a6e4ac57e1059abd0d5a6f07cf3a60027ea61c7bb58ca5c47683b4fc86e
|
7
|
+
data.tar.gz: 8be6f9ce44bb450fe4562794f1cae9c96e52327b7b6b4011a7fdfe7e581384b84e125a4e51a02ef7bfb73f5f0d1fd6c8a43fa90c5bb5475666ee7d9b93f5e2cf
|
data/.rspec
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,193 @@
|
|
1
|
+
AllCops:
|
2
|
+
TargetRubyVersion: 2.7.0
|
3
|
+
UseCache: false
|
4
|
+
SuggestExtensions: false
|
5
|
+
# NewCops: enable # would silence the recommendation
|
6
|
+
# # to enable new, but would hide which ones were run
|
7
|
+
|
8
|
+
Gemspec/DeprecatedAttributeAssignment:
|
9
|
+
Enabled: true
|
10
|
+
Gemspec/RequireMFA:
|
11
|
+
Enabled: false
|
12
|
+
|
13
|
+
Naming/BlockForwarding:
|
14
|
+
Enabled: true
|
15
|
+
Naming/MethodParameterName:
|
16
|
+
MinNameLength: 1
|
17
|
+
|
18
|
+
Security/CompoundHash:
|
19
|
+
Enabled: true
|
20
|
+
Security/IoMethods:
|
21
|
+
Enabled: true
|
22
|
+
|
23
|
+
Layout/EmptyLineAfterGuardClause:
|
24
|
+
Enabled: false
|
25
|
+
Layout/LineLength:
|
26
|
+
Max: 120
|
27
|
+
Layout/LineContinuationLeadingSpace:
|
28
|
+
Enabled: true
|
29
|
+
Layout/LineContinuationSpacing:
|
30
|
+
Enabled: true
|
31
|
+
Layout/LineEndStringConcatenationIndentation:
|
32
|
+
Enabled: true
|
33
|
+
Layout/MultilineHashBraceLayout:
|
34
|
+
Enabled: false
|
35
|
+
Layout/SpaceAroundOperators:
|
36
|
+
Enabled: false
|
37
|
+
Layout/SpaceBeforeBrackets:
|
38
|
+
Enabled: true
|
39
|
+
|
40
|
+
Metrics/AbcSize:
|
41
|
+
Enabled: false
|
42
|
+
Metrics/BlockLength:
|
43
|
+
AllowedMethods: ['describe', 'context']
|
44
|
+
Metrics/BlockNesting:
|
45
|
+
Enabled: false
|
46
|
+
Metrics/CyclomaticComplexity:
|
47
|
+
Enabled: false
|
48
|
+
Metrics/MethodLength:
|
49
|
+
Enabled: false
|
50
|
+
Metrics/ParameterLists:
|
51
|
+
Enabled: false
|
52
|
+
Metrics/PerceivedComplexity:
|
53
|
+
Enabled: false
|
54
|
+
|
55
|
+
Lint/AmbiguousAssignment:
|
56
|
+
Enabled: true
|
57
|
+
Lint/AmbiguousOperatorPrecedence:
|
58
|
+
Enabled: true
|
59
|
+
Lint/AmbiguousRange:
|
60
|
+
Enabled: true
|
61
|
+
Lint/ConstantOverwrittenInRescue:
|
62
|
+
Enabled: true
|
63
|
+
Lint/DeprecatedConstants:
|
64
|
+
Enabled: true
|
65
|
+
Lint/DuplicateBranch:
|
66
|
+
Enabled: true
|
67
|
+
Lint/DuplicateRegexpCharacterClassElement:
|
68
|
+
Enabled: true
|
69
|
+
Lint/EmptyBlock:
|
70
|
+
Enabled: true
|
71
|
+
Lint/EmptyClass:
|
72
|
+
Enabled: true
|
73
|
+
Lint/EmptyInPattern:
|
74
|
+
Enabled: true
|
75
|
+
Lint/IncompatibleIoSelectWithFiberScheduler:
|
76
|
+
Enabled: true
|
77
|
+
Lint/LambdaWithoutLiteralBlock:
|
78
|
+
Enabled: true
|
79
|
+
Lint/NoReturnInBeginEndBlocks:
|
80
|
+
Enabled: true
|
81
|
+
Lint/NonAtomicFileOperation:
|
82
|
+
Enabled: true
|
83
|
+
Lint/NumberedParameterAssignment:
|
84
|
+
Enabled: true
|
85
|
+
Lint/OrAssignmentToConstant:
|
86
|
+
Enabled: true
|
87
|
+
Lint/RedundantDirGlobSort:
|
88
|
+
Enabled: true
|
89
|
+
Lint/RefinementImportMethods:
|
90
|
+
Enabled: true
|
91
|
+
Lint/RequireRangeParentheses:
|
92
|
+
Enabled: true
|
93
|
+
Lint/RequireRelativeSelfPath:
|
94
|
+
Enabled: true
|
95
|
+
Lint/ScriptPermission:
|
96
|
+
Enabled: false
|
97
|
+
Lint/SymbolConversion:
|
98
|
+
Enabled: true
|
99
|
+
Lint/ToEnumArguments:
|
100
|
+
Enabled: true
|
101
|
+
Lint/TripleQuotes:
|
102
|
+
Enabled: true
|
103
|
+
Lint/UnexpectedBlockArity:
|
104
|
+
Enabled: true
|
105
|
+
Lint/UnmodifiedReduceAccumulator:
|
106
|
+
Enabled: true
|
107
|
+
Lint/UselessRuby2Keywords:
|
108
|
+
Enabled: true
|
109
|
+
|
110
|
+
|
111
|
+
Style/StringLiterals:
|
112
|
+
Enabled: true
|
113
|
+
EnforcedStyle: double_quotes
|
114
|
+
Style/StringLiteralsInInterpolation:
|
115
|
+
Enabled: true
|
116
|
+
EnforcedStyle: double_quotes
|
117
|
+
Style/AccessModifierDeclarations:
|
118
|
+
EnforcedStyle: inline
|
119
|
+
AllowModifiersOnSymbols: false
|
120
|
+
Style/ArgumentsForwarding:
|
121
|
+
Enabled: true
|
122
|
+
Style/CollectionCompact:
|
123
|
+
Enabled: true
|
124
|
+
Style/ConditionalAssignment:
|
125
|
+
Enabled: false
|
126
|
+
Style/DocumentDynamicEvalDefinition:
|
127
|
+
Enabled: true
|
128
|
+
Style/EmptyHeredoc:
|
129
|
+
Enabled: true
|
130
|
+
Style/EndlessMethod:
|
131
|
+
Enabled: true
|
132
|
+
Style/EnvHome:
|
133
|
+
Enabled: true
|
134
|
+
Style/FetchEnvVar:
|
135
|
+
Enabled: true
|
136
|
+
Style/FileRead:
|
137
|
+
Enabled: true
|
138
|
+
Style/FileWrite:
|
139
|
+
Enabled: true
|
140
|
+
Style/For:
|
141
|
+
Enabled: false
|
142
|
+
Style/HashConversion:
|
143
|
+
Enabled: true
|
144
|
+
Style/HashExcept:
|
145
|
+
Enabled: true
|
146
|
+
Style/IfWithBooleanLiteralBranches:
|
147
|
+
Enabled: true
|
148
|
+
Style/InPatternThen:
|
149
|
+
Enabled: true
|
150
|
+
Style/Lambda:
|
151
|
+
EnforcedStyle: lambda
|
152
|
+
Style/MagicCommentFormat:
|
153
|
+
Enabled: true
|
154
|
+
Style/MapCompactWithConditionalBlock:
|
155
|
+
Enabled: true
|
156
|
+
Style/MapToHash:
|
157
|
+
Enabled: true
|
158
|
+
Style/MultilineInPatternThen:
|
159
|
+
Enabled: true
|
160
|
+
Style/NegatedIfElseCondition:
|
161
|
+
Enabled: true
|
162
|
+
Style/NestedFileDirname:
|
163
|
+
Enabled: true
|
164
|
+
Style/Next:
|
165
|
+
Enabled: false
|
166
|
+
Style/NilLambda:
|
167
|
+
Enabled: true
|
168
|
+
Style/NumberedParameters:
|
169
|
+
Enabled: true
|
170
|
+
Style/NumberedParametersLimit:
|
171
|
+
Enabled: true
|
172
|
+
Style/NumericLiterals:
|
173
|
+
Enabled: false
|
174
|
+
Style/ObjectThen:
|
175
|
+
Enabled: true
|
176
|
+
Style/OpenStructUse:
|
177
|
+
Enabled: true
|
178
|
+
Style/QuotedSymbols:
|
179
|
+
Enabled: true
|
180
|
+
Style/RedundantArgument:
|
181
|
+
Enabled: true
|
182
|
+
Style/RedundantInitialize:
|
183
|
+
Enabled: true
|
184
|
+
Style/RedundantSelf:
|
185
|
+
Enabled: false
|
186
|
+
Style/RedundantSelfAssignmentBranch:
|
187
|
+
Enabled: true
|
188
|
+
Style/SelectByRegexp:
|
189
|
+
Enabled: true
|
190
|
+
Style/StringChars:
|
191
|
+
Enabled: true
|
192
|
+
Style/SwapValues:
|
193
|
+
Enabled: true
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
6
|
+
|
7
|
+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
|
8
|
+
|
9
|
+
## Our Standards
|
10
|
+
|
11
|
+
Examples of behavior that contributes to a positive environment for our community include:
|
12
|
+
|
13
|
+
* Demonstrating empathy and kindness toward other people
|
14
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
15
|
+
* Giving and gracefully accepting constructive feedback
|
16
|
+
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
|
17
|
+
* Focusing on what is best not just for us as individuals, but for the overall community
|
18
|
+
|
19
|
+
Examples of unacceptable behavior include:
|
20
|
+
|
21
|
+
* The use of sexualized language or imagery, and sexual attention or
|
22
|
+
advances of any kind
|
23
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
24
|
+
* Public or private harassment
|
25
|
+
* Publishing others' private information, such as a physical or email
|
26
|
+
address, without their explicit permission
|
27
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
28
|
+
professional setting
|
29
|
+
|
30
|
+
## Enforcement Responsibilities
|
31
|
+
|
32
|
+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
|
33
|
+
|
34
|
+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
|
35
|
+
|
36
|
+
## Scope
|
37
|
+
|
38
|
+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
|
39
|
+
|
40
|
+
## Enforcement
|
41
|
+
|
42
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at `nathan.a.z.levett@gmail.com`. All complaints will be reviewed and investigated promptly and fairly.
|
43
|
+
|
44
|
+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
|
45
|
+
|
46
|
+
## Enforcement Guidelines
|
47
|
+
|
48
|
+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
|
49
|
+
|
50
|
+
### 1. Correction
|
51
|
+
|
52
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
|
53
|
+
|
54
|
+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
|
55
|
+
|
56
|
+
### 2. Warning
|
57
|
+
|
58
|
+
**Community Impact**: A violation through a single incident or series of actions.
|
59
|
+
|
60
|
+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
|
61
|
+
|
62
|
+
### 3. Temporary Ban
|
63
|
+
|
64
|
+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
|
65
|
+
|
66
|
+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
|
67
|
+
|
68
|
+
### 4. Permanent Ban
|
69
|
+
|
70
|
+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
|
71
|
+
|
72
|
+
**Consequence**: A permanent ban from any sort of public interaction within the community.
|
73
|
+
|
74
|
+
## Attribution
|
75
|
+
|
76
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
|
77
|
+
available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
78
|
+
|
79
|
+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
|
80
|
+
|
81
|
+
[homepage]: https://www.contributor-covenant.org
|
82
|
+
|
83
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
84
|
+
https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# Contributing
|
2
|
+
Welcome; If you'd like to contribute, firstly, thanks!
|
3
|
+
## Get the source
|
4
|
+
The _quickest_ way to get the source _without_ contributing is;
|
5
|
+
```
|
6
|
+
git clone https://github.com/Skenvy/dependabot-linguist.git
|
7
|
+
```
|
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
|
+
## Raise an issue
|
10
|
+
* [Bug Report](https://github.com/Skenvy/dependabot-linguist/issues/new?assignees=&labels=bug&template=bug-report.yaml)
|
11
|
+
* [Feature Request](https://github.com/Skenvy/dependabot-linguist/issues/new?assignees=&labels=enhancement&template=feature-request.yaml)
|
12
|
+
* [Security Vulnerability](https://github.com/Skenvy/dependabot-linguist/issues/new?assignees=&labels=security&template=security-vulnerability.yaml)
|
13
|
+
## Work on an existing issue
|
14
|
+
You may work on any existing issue, by forking this repository, creating a development branch, then adding a pull request.
|
15
|
+
|
16
|
+
Work on bugs is more likely to be accepted readily.
|
17
|
+
|
18
|
+
Before a feature request will be accepted and have any of its PRs reviewed, the ease with which its introduction into the set of the _next_ patch of a `<major>.<minor>` version's functionality affects the difficulty in obtaining the successive patch version for _all_ higher pinned versions will need to be considered.
|
19
|
+
|
20
|
+
If your feature request is meta to the gem's code, it won't need to be evaluated in this way, although will likely fall under higher scrutiny as it would impact the overall health of the repository, depending on how obvious an improvement it makes.
|
21
|
+
|
22
|
+
## Scrutiny
|
23
|
+
Any fix or new feature should include an appropriate set of testing, and should pass [the expected set of rubocop policies](https://github.com/Skenvy/dependabot-linguist/blob/main/.rubocop.yml).
|
24
|
+
|
25
|
+
The existing CICD attempts to verify the tests as well as the documentation, but the documentation test should be verified by running the local server provided for in the make recipes, to confirm nothing has altered how it will visually present this, as it is possible to pass the documentation producibility test with changes that would break the visual styling and readability, e.g. misplacing the CSS can happen between versions. Any reviewer for a significant change should also confirm that they also run the documentation server similarly.
|
26
|
+
## Version bumping
|
27
|
+
PRs should **not** bump the patch version for their `<major>.<minor>` target. These will be handled after the PR's merging.
|
data/Gemfile
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
# Specify your gem's dependencies in dependabot-linguist.gemspec
|
6
|
+
gemspec
|
7
|
+
|
8
|
+
gem "rake", "~> 13.0"
|
9
|
+
|
10
|
+
gem "rdoc", "~> 6.0"
|
11
|
+
|
12
|
+
gem "rspec", "~> 3.12"
|
13
|
+
|
14
|
+
gem "rubocop", "~> 1.37"
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
dependabot-linguist (0.0.1)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
ast (2.4.2)
|
10
|
+
diff-lcs (1.5.0)
|
11
|
+
json (2.6.2)
|
12
|
+
parallel (1.22.1)
|
13
|
+
parser (3.1.2.1)
|
14
|
+
ast (~> 2.4.1)
|
15
|
+
psych (4.0.6)
|
16
|
+
stringio
|
17
|
+
rainbow (3.1.1)
|
18
|
+
rake (13.0.6)
|
19
|
+
rdoc (6.4.0)
|
20
|
+
psych (>= 4.0.0)
|
21
|
+
regexp_parser (2.6.0)
|
22
|
+
rexml (3.2.5)
|
23
|
+
rspec (3.12.0)
|
24
|
+
rspec-core (~> 3.12.0)
|
25
|
+
rspec-expectations (~> 3.12.0)
|
26
|
+
rspec-mocks (~> 3.12.0)
|
27
|
+
rspec-core (3.12.0)
|
28
|
+
rspec-support (~> 3.12.0)
|
29
|
+
rspec-expectations (3.12.0)
|
30
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
31
|
+
rspec-support (~> 3.12.0)
|
32
|
+
rspec-mocks (3.12.0)
|
33
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
34
|
+
rspec-support (~> 3.12.0)
|
35
|
+
rspec-support (3.12.0)
|
36
|
+
rubocop (1.38.0)
|
37
|
+
json (~> 2.3)
|
38
|
+
parallel (~> 1.10)
|
39
|
+
parser (>= 3.1.2.1)
|
40
|
+
rainbow (>= 2.2.2, < 4.0)
|
41
|
+
regexp_parser (>= 1.8, < 3.0)
|
42
|
+
rexml (>= 3.2.5, < 4.0)
|
43
|
+
rubocop-ast (>= 1.23.0, < 2.0)
|
44
|
+
ruby-progressbar (~> 1.7)
|
45
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
46
|
+
rubocop-ast (1.23.0)
|
47
|
+
parser (>= 3.1.1.0)
|
48
|
+
ruby-progressbar (1.11.0)
|
49
|
+
stringio (3.0.2)
|
50
|
+
unicode-display_width (2.3.0)
|
51
|
+
|
52
|
+
PLATFORMS
|
53
|
+
x86_64-linux
|
54
|
+
x86_64-darwin-19
|
55
|
+
x64-mingw32
|
56
|
+
x64-mingw-ucrt
|
57
|
+
|
58
|
+
|
59
|
+
DEPENDENCIES
|
60
|
+
dependabot-linguist!
|
61
|
+
rake (~> 13.0)
|
62
|
+
rdoc (~> 6.0)
|
63
|
+
rspec (~> 3.12)
|
64
|
+
rubocop (~> 1.37)
|
65
|
+
|
66
|
+
BUNDLED WITH
|
67
|
+
2.3.24
|
data/LICENSE
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
GPL-3.0-only AND Nonstandard
|