git-lint 6.2.1 → 7.1.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
- checksums.yaml.gz.sig +0 -0
- data/README.adoc +239 -102
- data/git-lint.gemspec +12 -12
- data/lib/git/lint/analyzer.rb +8 -4
- data/lib/git/lint/analyzers/abstract.rb +3 -3
- data/lib/git/lint/analyzers/commit_author_capitalization.rb +1 -1
- data/lib/git/lint/analyzers/commit_body_bullet_capitalization.rb +1 -1
- data/lib/git/lint/analyzers/commit_body_bullet_delimiter.rb +1 -1
- data/lib/git/lint/analyzers/{commit_body_single_bullet.rb → commit_body_bullet_only.rb} +4 -4
- data/lib/git/lint/analyzers/commit_body_phrase.rb +2 -5
- data/lib/git/lint/analyzers/commit_body_presence.rb +3 -3
- data/lib/git/lint/analyzers/commit_body_tracker_shorthand.rb +2 -2
- data/lib/git/lint/analyzers/commit_body_word_repeat.rb +31 -0
- data/lib/git/lint/analyzers/commit_signature.rb +2 -2
- data/lib/git/lint/analyzers/commit_subject_prefix.rb +3 -3
- data/lib/git/lint/analyzers/commit_subject_suffix.rb +2 -2
- data/lib/git/lint/analyzers/commit_subject_word_repeat.rb +20 -0
- data/lib/git/lint/analyzers/commit_trailer_collaborator_capitalization.rb +2 -2
- data/lib/git/lint/analyzers/commit_trailer_collaborator_email.rb +3 -4
- data/lib/git/lint/analyzers/commit_trailer_collaborator_key.rb +4 -6
- data/lib/git/lint/analyzers/commit_trailer_collaborator_name.rb +2 -2
- data/lib/git/lint/analyzers/commit_trailer_format_key.rb +4 -6
- data/lib/git/lint/analyzers/commit_trailer_format_value.rb +4 -4
- data/lib/git/lint/analyzers/commit_trailer_issue_key.rb +4 -6
- data/lib/git/lint/analyzers/commit_trailer_issue_value.rb +4 -4
- data/lib/git/lint/analyzers/commit_trailer_milestone_key.rb +33 -0
- data/lib/git/lint/analyzers/commit_trailer_milestone_value.rb +35 -0
- data/lib/git/lint/analyzers/commit_trailer_order.rb +38 -0
- data/lib/git/lint/analyzers/commit_trailer_reviewer_key.rb +33 -0
- data/lib/git/lint/analyzers/commit_trailer_reviewer_value.rb +35 -0
- data/lib/git/lint/analyzers/commit_trailer_signer_capitalization.rb +2 -2
- data/lib/git/lint/analyzers/commit_trailer_signer_email.rb +3 -4
- data/lib/git/lint/analyzers/commit_trailer_signer_key.rb +4 -4
- data/lib/git/lint/analyzers/commit_trailer_signer_name.rb +2 -2
- data/lib/git/lint/analyzers/commit_trailer_tracker_key.rb +4 -6
- data/lib/git/lint/analyzers/commit_trailer_tracker_value.rb +4 -4
- data/lib/git/lint/commits/{systems → hosts}/circle_ci.rb +2 -2
- data/lib/git/lint/commits/{systems → hosts}/container.rb +2 -2
- data/lib/git/lint/commits/{systems → hosts}/git_hub_action.rb +2 -2
- data/lib/git/lint/commits/{systems → hosts}/import.rb +1 -1
- data/lib/git/lint/commits/{systems → hosts}/local.rb +2 -2
- data/lib/git/lint/commits/{systems → hosts}/netlify_ci.rb +2 -2
- data/lib/git/lint/commits/loader.rb +6 -6
- data/lib/git/lint/configuration/contract.rb +19 -11
- data/lib/git/lint/configuration/defaults.yml +45 -24
- data/lib/git/lint/configuration/model.rb +19 -11
- data/lib/git/lint/configuration/trailer.rb +10 -0
- data/lib/git/lint/container.rb +28 -6
- data/lib/git/lint/errors/severity.rb +6 -1
- data/lib/git/lint/kit/filter_list.rb +9 -4
- data/lib/git/lint/reporters/branch.rb +5 -5
- data/lib/git/lint/validators/name.rb +2 -2
- data/lib/git/lint/validators/repeated_word.rb +45 -0
- data.tar.gz.sig +0 -0
- metadata +40 -35
- metadata.gz.sig +0 -0
- data/lib/git/lint/analyzers/commit_body_bullet.rb +0 -34
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fbecb342f45a5216dfdbf7c947467c6d565d8a1f98481d8a7765f2de1b7cc621
|
|
4
|
+
data.tar.gz: cd56aed86788d514cde91d342fc9acdafa4d4d42957a473902d361782bb98375
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9a6d9d4edb2b3410956f8e47ea213c35702be39bcbc2a0321565f5f029a59a5deede96a89f81ba64d749e4316d4be85455c81a9262dd2c2a8498ef47a32e40bc
|
|
7
|
+
data.tar.gz: e3a1bcf8e6e06877b53b50b151734b3770fa7be872e3496918810328e772390d9c6f59dc1a21f3ca7242f1667baafea45e41af230ccf11419834d6be2f56e324
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/README.adoc
CHANGED
|
@@ -112,22 +112,24 @@ commits:
|
|
|
112
112
|
severity: error
|
|
113
113
|
minimum: 2
|
|
114
114
|
body:
|
|
115
|
-
|
|
115
|
+
bullet_capitalization:
|
|
116
116
|
enabled: true
|
|
117
117
|
severity: error
|
|
118
|
-
|
|
118
|
+
includes:
|
|
119
|
+
- "\\-"
|
|
119
120
|
- "\\*"
|
|
120
|
-
|
|
121
|
-
bullet_capitalization:
|
|
121
|
+
bullet_delimiter:
|
|
122
122
|
enabled: true
|
|
123
123
|
severity: error
|
|
124
124
|
includes:
|
|
125
125
|
- "\\-"
|
|
126
|
-
|
|
126
|
+
- "\\*"
|
|
127
|
+
bullet_only:
|
|
127
128
|
enabled: true
|
|
128
129
|
severity: error
|
|
129
130
|
includes:
|
|
130
131
|
- "\\-"
|
|
132
|
+
- "\\*"
|
|
131
133
|
leading_line:
|
|
132
134
|
enabled: true
|
|
133
135
|
severity: warn
|
|
@@ -148,6 +150,7 @@ commits:
|
|
|
148
150
|
- "along the lines"
|
|
149
151
|
- "at this moment in time"
|
|
150
152
|
- "basically"
|
|
153
|
+
- "blacklist"
|
|
151
154
|
- "each and every one"
|
|
152
155
|
- "everyone knows"
|
|
153
156
|
- "fact of the matter"
|
|
@@ -162,6 +165,7 @@ commits:
|
|
|
162
165
|
- "really"
|
|
163
166
|
- "simply"
|
|
164
167
|
- "things being equal"
|
|
168
|
+
- "whitelist"
|
|
165
169
|
- "would like to"
|
|
166
170
|
- "\\beasy\\b"
|
|
167
171
|
- "\\bjust\\b"
|
|
@@ -172,11 +176,6 @@ commits:
|
|
|
172
176
|
enabled: true
|
|
173
177
|
severity: warn
|
|
174
178
|
minimum: 1
|
|
175
|
-
single_bullet:
|
|
176
|
-
enabled: true
|
|
177
|
-
severity: error
|
|
178
|
-
includes:
|
|
179
|
-
- "\\-"
|
|
180
179
|
tracker_shorthand:
|
|
181
180
|
enabled: true
|
|
182
181
|
severity: error
|
|
@@ -184,6 +183,9 @@ commits:
|
|
|
184
183
|
- "(f|F)ix(es|ed)?\\s\\#\\d+"
|
|
185
184
|
- "(c|C)lose(s|d)?\\s\\#\\d+"
|
|
186
185
|
- "(r|R)esolve(s|d)?\\s\\#\\d+"
|
|
186
|
+
word_repeat:
|
|
187
|
+
enabled: true
|
|
188
|
+
severity: error
|
|
187
189
|
signature:
|
|
188
190
|
enabled: false
|
|
189
191
|
severity: error
|
|
@@ -211,6 +213,9 @@ commits:
|
|
|
211
213
|
- "\\."
|
|
212
214
|
- "\\?"
|
|
213
215
|
- "\\!"
|
|
216
|
+
word_repeat:
|
|
217
|
+
enabled: true
|
|
218
|
+
severity: error
|
|
214
219
|
trailer:
|
|
215
220
|
collaborator_capitalization:
|
|
216
221
|
enabled: true
|
|
@@ -221,8 +226,6 @@ commits:
|
|
|
221
226
|
collaborator_key:
|
|
222
227
|
enabled: true
|
|
223
228
|
severity: error
|
|
224
|
-
includes:
|
|
225
|
-
- Co-Authored-By
|
|
226
229
|
collaborator_name:
|
|
227
230
|
enabled: true
|
|
228
231
|
severity: error
|
|
@@ -233,24 +236,46 @@ commits:
|
|
|
233
236
|
format_key:
|
|
234
237
|
enabled: true
|
|
235
238
|
severity: error
|
|
236
|
-
includes:
|
|
237
|
-
- Format
|
|
238
239
|
format_value:
|
|
239
240
|
enabled: true
|
|
240
241
|
severity: error
|
|
241
242
|
includes:
|
|
242
|
-
-
|
|
243
|
-
-
|
|
243
|
+
- asciidoc
|
|
244
|
+
- markdown
|
|
244
245
|
issue_key:
|
|
245
246
|
enabled: true
|
|
246
247
|
severity: error
|
|
247
|
-
includes:
|
|
248
|
-
- Issue
|
|
249
248
|
issue_value:
|
|
250
249
|
enabled: true
|
|
251
250
|
severity: error
|
|
252
251
|
includes:
|
|
253
252
|
- "[\\w-]+"
|
|
253
|
+
milestone_key:
|
|
254
|
+
enabled: true
|
|
255
|
+
severity: error
|
|
256
|
+
milestone_value:
|
|
257
|
+
enabled: true
|
|
258
|
+
severity: error
|
|
259
|
+
includes:
|
|
260
|
+
- major
|
|
261
|
+
- minor
|
|
262
|
+
- patch
|
|
263
|
+
order:
|
|
264
|
+
enabled: true
|
|
265
|
+
severity: error
|
|
266
|
+
reviewer_key:
|
|
267
|
+
enabled: true
|
|
268
|
+
severity: error
|
|
269
|
+
reviewer_value:
|
|
270
|
+
enabled: true
|
|
271
|
+
severity: error
|
|
272
|
+
includes:
|
|
273
|
+
- clickup
|
|
274
|
+
- github
|
|
275
|
+
- jira
|
|
276
|
+
- linear
|
|
277
|
+
- shortcut
|
|
278
|
+
- tana
|
|
254
279
|
signer_capitalization:
|
|
255
280
|
enabled: true
|
|
256
281
|
severity: error
|
|
@@ -260,8 +285,6 @@ commits:
|
|
|
260
285
|
signer_key:
|
|
261
286
|
enabled: true
|
|
262
287
|
severity: error
|
|
263
|
-
includes:
|
|
264
|
-
- Signed-By
|
|
265
288
|
signer_name:
|
|
266
289
|
enabled: true
|
|
267
290
|
severity: error
|
|
@@ -269,8 +292,6 @@ commits:
|
|
|
269
292
|
tracker_key:
|
|
270
293
|
enabled: true
|
|
271
294
|
severity: error
|
|
272
|
-
includes:
|
|
273
|
-
- Tracker
|
|
274
295
|
tracker_value:
|
|
275
296
|
enabled: true
|
|
276
297
|
severity: error
|
|
@@ -368,60 +389,69 @@ Kaylee
|
|
|
368
389
|
Kaywinnet Lee Frye
|
|
369
390
|
....
|
|
370
391
|
|
|
371
|
-
==== Commit Body Bullet
|
|
392
|
+
==== Commit Body Bullet Capitalization
|
|
372
393
|
|
|
373
394
|
[options="header"]
|
|
374
395
|
|===
|
|
375
396
|
| Enabled | Severity | Defaults
|
|
376
|
-
| true | error |
|
|
397
|
+
| true | error | includes: `["\\*", "\\-"]`
|
|
377
398
|
|===
|
|
378
399
|
|
|
379
|
-
Ensures commit
|
|
380
|
-
the following syntax for bullets:
|
|
400
|
+
Ensures commit body bullet lines are capitalized. Example:
|
|
381
401
|
|
|
382
402
|
....
|
|
383
|
-
|
|
384
|
-
-
|
|
403
|
+
# Disallowed
|
|
404
|
+
- an example bullet.
|
|
405
|
+
|
|
406
|
+
# Allowed
|
|
407
|
+
* An ASCII Doc bullet.
|
|
408
|
+
* link:https://demo.com[Demo]
|
|
409
|
+
* link:https://demo.com[demo]
|
|
410
|
+
- A Markdown bullet.
|
|
411
|
+
- [Demo](https://demo.com)
|
|
412
|
+
- [demo](https://demo.com)
|
|
385
413
|
....
|
|
386
414
|
|
|
387
|
-
|
|
388
|
-
_emphasis_. This makes parsing the Markdown syntax easier when reviewing a Git commit as the syntax
|
|
389
|
-
used for bullet points and _emphasis_ are now, distinctly, unique.
|
|
415
|
+
In general, using ASCII Doc or Markdown syntax directly after a bullet will cause capitalization checks to be ignored because there can be valid reasons for wanting to avoid capitalization in those situations.
|
|
390
416
|
|
|
391
|
-
==== Commit Body Bullet
|
|
417
|
+
==== Commit Body Bullet Delimiter
|
|
392
418
|
|
|
393
419
|
[options="header"]
|
|
394
420
|
|===
|
|
395
421
|
| Enabled | Severity | Defaults
|
|
396
|
-
| true | error | includes: `["\\-"]`
|
|
422
|
+
| true | error | includes: `["\\*", "\\-"]`
|
|
397
423
|
|===
|
|
398
424
|
|
|
399
|
-
Ensures commit body
|
|
425
|
+
Ensures commit body bullets are delimited by a space. Example:
|
|
400
426
|
|
|
401
427
|
....
|
|
402
428
|
# Disallowed
|
|
403
|
-
-
|
|
429
|
+
-An example bullet.
|
|
404
430
|
|
|
405
431
|
# Allowed
|
|
406
432
|
- An example bullet.
|
|
407
433
|
....
|
|
408
434
|
|
|
409
|
-
==== Commit Body Bullet
|
|
435
|
+
==== Commit Body Bullet Only
|
|
410
436
|
|
|
411
437
|
[options="header"]
|
|
412
438
|
|===
|
|
413
439
|
| Enabled | Severity | Defaults
|
|
414
|
-
| true | error | includes: `["\\-"]`
|
|
440
|
+
| true | error | includes: `["\\*", "\\-"]`
|
|
415
441
|
|===
|
|
416
442
|
|
|
417
|
-
Ensures
|
|
443
|
+
Ensures a single bullet is never used when a paragraph could be used instead. Example:
|
|
418
444
|
|
|
419
445
|
....
|
|
420
446
|
# Disallowed
|
|
421
|
-
|
|
447
|
+
|
|
448
|
+
- Pellentque morbi-trist sentus et netus et malesuada fames ac turpis egestas. Vestibulum tortor
|
|
449
|
+
quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu_libero sit amet quam.
|
|
422
450
|
|
|
423
451
|
# Allowed
|
|
424
|
-
|
|
452
|
+
|
|
453
|
+
Pellentque morbi-trist sentus et netus et malesuada fames ac turpis egestas. Vestibulum tortor
|
|
454
|
+
quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu_libero sit amet quam.
|
|
425
455
|
....
|
|
426
456
|
|
|
427
457
|
==== Commit Body Leading Line
|
|
@@ -521,28 +551,6 @@ Ensures a minimum number of lines are present within the commit body. Lines with
|
|
|
521
551
|
|
|
522
552
|
Automatically ignores _fixup!_ commits as they are not meant to have bodies.
|
|
523
553
|
|
|
524
|
-
==== Commit Body Single Bullet
|
|
525
|
-
|
|
526
|
-
[options="header"]
|
|
527
|
-
|===
|
|
528
|
-
| Enabled | Severity | Defaults
|
|
529
|
-
| true | error | includes: `"\\-"`
|
|
530
|
-
|===
|
|
531
|
-
|
|
532
|
-
Ensures a single bullet is never used when a paragraph could be used instead. Example:
|
|
533
|
-
|
|
534
|
-
....
|
|
535
|
-
# Disallowed
|
|
536
|
-
|
|
537
|
-
- Pellentque morbi-trist sentus et netus et malesuada fames ac turpis egestas. Vestibulum tortor
|
|
538
|
-
quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu_libero sit amet quam.
|
|
539
|
-
|
|
540
|
-
# Allowed
|
|
541
|
-
|
|
542
|
-
Pellentque morbi-trist sentus et netus et malesuada fames ac turpis egestas. Vestibulum tortor
|
|
543
|
-
quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu_libero sit amet quam.
|
|
544
|
-
....
|
|
545
|
-
|
|
546
554
|
==== Commit Body Tracker Shorthand
|
|
547
555
|
|
|
548
556
|
[options="header"]
|
|
@@ -568,6 +576,24 @@ Instead of using tracker shorthand syntax, take the time to write a short summar
|
|
|
568
576
|
commit was made. Doing this will make it easier to understand _why_ the commit was made, keeps the
|
|
569
577
|
commit self-contained, and makes learning about/debugging the commit faster.
|
|
570
578
|
|
|
579
|
+
==== Commit Body Word Repeat
|
|
580
|
+
|
|
581
|
+
[options="header"]
|
|
582
|
+
|===
|
|
583
|
+
| Enabled | Severity
|
|
584
|
+
| true | error
|
|
585
|
+
|===
|
|
586
|
+
|
|
587
|
+
Ensures commit bodies don't contain repeated words. Example:
|
|
588
|
+
|
|
589
|
+
....
|
|
590
|
+
# Disallowed
|
|
591
|
+
Necessary to to fix production error.
|
|
592
|
+
|
|
593
|
+
# Allowed
|
|
594
|
+
Necessary to fix production error.
|
|
595
|
+
....
|
|
596
|
+
|
|
571
597
|
==== Commit Signature
|
|
572
598
|
|
|
573
599
|
[options="header"]
|
|
@@ -657,7 +683,7 @@ a Git Hook in order to not disturb interactive rebase workflows.
|
|
|
657
683
|
[options="header"]
|
|
658
684
|
|===
|
|
659
685
|
| Enabled | Severity | Defaults
|
|
660
|
-
| true | error | excludes: `["
|
|
686
|
+
| true | error | excludes: `["\\!", "\\.", "\\?"]`
|
|
661
687
|
|===
|
|
662
688
|
|
|
663
689
|
Ensures commit subjects are suffixed consistently. The exclude list _is_ case sensitive and prevents
|
|
@@ -665,6 +691,24 @@ the use of punctuation. This is handy when coupled with a tool, like
|
|
|
665
691
|
link:https://alchemists.io/projects/milestoner[Milestoner], which automates project milestone
|
|
666
692
|
releases.
|
|
667
693
|
|
|
694
|
+
==== Commit Subject Word Repeat
|
|
695
|
+
|
|
696
|
+
[options="header"]
|
|
697
|
+
|===
|
|
698
|
+
| Enabled | Severity
|
|
699
|
+
| true | error
|
|
700
|
+
|===
|
|
701
|
+
|
|
702
|
+
Ensures commit subjects don't contain repeated words. Example:
|
|
703
|
+
|
|
704
|
+
....
|
|
705
|
+
# Disallowed
|
|
706
|
+
Added specs specs
|
|
707
|
+
|
|
708
|
+
# Allowed
|
|
709
|
+
Added specs
|
|
710
|
+
....
|
|
711
|
+
|
|
668
712
|
==== Commit Trailer Collaborator Capitalization
|
|
669
713
|
|
|
670
714
|
[options="header"]
|
|
@@ -695,28 +739,28 @@ Ensures collaborator email address is valid for commit trailer.
|
|
|
695
739
|
|
|
696
740
|
....
|
|
697
741
|
# Disallowed
|
|
698
|
-
Co-
|
|
742
|
+
Co-authored-by: River Tam <invalid>
|
|
699
743
|
|
|
700
744
|
# Allowed
|
|
701
|
-
Co-
|
|
745
|
+
Co-authored-by: River Tam <river@firefly.com>
|
|
702
746
|
....
|
|
703
747
|
|
|
704
748
|
==== Commit Trailer Collaborator Key
|
|
705
749
|
|
|
706
750
|
[options="header"]
|
|
707
751
|
|===
|
|
708
|
-
| Enabled | Severity
|
|
709
|
-
| true | error
|
|
752
|
+
| Enabled | Severity
|
|
753
|
+
| true | error
|
|
710
754
|
|===
|
|
711
755
|
|
|
712
756
|
Ensures collaborator trailer key is correct format.
|
|
713
757
|
|
|
714
758
|
....
|
|
715
759
|
# Disallowed
|
|
716
|
-
|
|
760
|
+
co-authored-by: River Tam <river@firefly.com>
|
|
717
761
|
|
|
718
762
|
# Allowed
|
|
719
|
-
Co-
|
|
763
|
+
Co-authored-by: River Tam <river@firefly.com>
|
|
720
764
|
....
|
|
721
765
|
|
|
722
766
|
==== Commit Trailer Collaborator Name
|
|
@@ -731,10 +775,10 @@ Ensures collaborator name consists of, at least, a first and last name. Example:
|
|
|
731
775
|
|
|
732
776
|
....
|
|
733
777
|
# Disallowed
|
|
734
|
-
Co-
|
|
778
|
+
Co-authored-by: River <river@firefly.com>
|
|
735
779
|
|
|
736
780
|
# Allowed
|
|
737
|
-
Co-
|
|
781
|
+
Co-authored-by: River Tam <river@firefly.com>
|
|
738
782
|
....
|
|
739
783
|
|
|
740
784
|
==== Commit Trailer Duplicate
|
|
@@ -749,30 +793,30 @@ Ensures commit trailer keys are not duplicated. Example:
|
|
|
749
793
|
|
|
750
794
|
....
|
|
751
795
|
# Disallowed
|
|
752
|
-
Co-
|
|
753
|
-
Co-
|
|
796
|
+
Co-authored-by: Shepherd Derrial Book <shepherd@firefly.com>
|
|
797
|
+
Co-authored-by: Shepherd Derrial Book <shepherd@firefly.com>
|
|
754
798
|
|
|
755
799
|
# Allowed
|
|
756
|
-
Co-
|
|
757
|
-
Co-
|
|
800
|
+
Co-authored-by: Malcolm Reynolds <malcolm@firefly.com>
|
|
801
|
+
Co-authored-by: Shepherd Derrial Book <shepherd@firefly.com>
|
|
758
802
|
....
|
|
759
803
|
|
|
760
804
|
==== Commit Trailer Format Key
|
|
761
805
|
|
|
762
806
|
[options="header"]
|
|
763
807
|
|===
|
|
764
|
-
| Enabled | Severity
|
|
765
|
-
| true | error
|
|
808
|
+
| Enabled | Severity
|
|
809
|
+
| true | error
|
|
766
810
|
|===
|
|
767
811
|
|
|
768
812
|
Ensures format trailer key is correct format.
|
|
769
813
|
|
|
770
814
|
....
|
|
771
815
|
# Disallowed
|
|
772
|
-
format:
|
|
816
|
+
format: markdown
|
|
773
817
|
|
|
774
818
|
# Allowed
|
|
775
|
-
Format:
|
|
819
|
+
Format: markdown
|
|
776
820
|
....
|
|
777
821
|
|
|
778
822
|
==== Commit Trailer Format Value
|
|
@@ -780,25 +824,25 @@ Format: ASCII
|
|
|
780
824
|
[options="header"]
|
|
781
825
|
|===
|
|
782
826
|
| Enabled | Severity | Defaults
|
|
783
|
-
| true | error | includes: `["
|
|
827
|
+
| true | error | includes: `["asciidoc", "markdown"]`
|
|
784
828
|
|===
|
|
785
829
|
|
|
786
830
|
Ensures format trailer value is a valid value.
|
|
787
831
|
|
|
788
832
|
....
|
|
789
833
|
# Disallowed
|
|
790
|
-
Format:
|
|
834
|
+
Format: plain
|
|
791
835
|
|
|
792
836
|
# Allowed
|
|
793
|
-
Format:
|
|
837
|
+
Format: asciidoc
|
|
794
838
|
....
|
|
795
839
|
|
|
796
840
|
==== Commit Trailer Issue Key
|
|
797
841
|
|
|
798
842
|
[options="header"]
|
|
799
843
|
|===
|
|
800
|
-
| Enabled | Severity
|
|
801
|
-
| true | error
|
|
844
|
+
| Enabled | Severity
|
|
845
|
+
| true | error
|
|
802
846
|
|===
|
|
803
847
|
|
|
804
848
|
Ensures issue trailer key is correct format.
|
|
@@ -829,6 +873,100 @@ Issue: 123+45
|
|
|
829
873
|
Issue: 123
|
|
830
874
|
....
|
|
831
875
|
|
|
876
|
+
==== Commit Trailer Milestone Key
|
|
877
|
+
|
|
878
|
+
[options="header"]
|
|
879
|
+
|===
|
|
880
|
+
| Enabled | Severity
|
|
881
|
+
| true | error
|
|
882
|
+
|===
|
|
883
|
+
|
|
884
|
+
Ensures milestone trailer key is correct format.
|
|
885
|
+
|
|
886
|
+
....
|
|
887
|
+
# Disallowed
|
|
888
|
+
milestone: patch
|
|
889
|
+
|
|
890
|
+
# Allowed
|
|
891
|
+
Milestone: patch
|
|
892
|
+
....
|
|
893
|
+
|
|
894
|
+
==== Commit Trailer Milestone Value
|
|
895
|
+
|
|
896
|
+
[options="header"]
|
|
897
|
+
|===
|
|
898
|
+
| Enabled | Severity | Defaults
|
|
899
|
+
| true | error | includes: `[major, minor, patch]`
|
|
900
|
+
|===
|
|
901
|
+
|
|
902
|
+
Ensures milestone trailer value is correct format for link:https://semver.org[semantic versioning] purposes.
|
|
903
|
+
|
|
904
|
+
....
|
|
905
|
+
# Disallowed
|
|
906
|
+
Milestone: bogus
|
|
907
|
+
|
|
908
|
+
# Allowed
|
|
909
|
+
Milestone: patch
|
|
910
|
+
....
|
|
911
|
+
|
|
912
|
+
==== Commit Trailer Order
|
|
913
|
+
|
|
914
|
+
[options="header"]
|
|
915
|
+
|===
|
|
916
|
+
| Enabled | Severity
|
|
917
|
+
| true | error
|
|
918
|
+
|===
|
|
919
|
+
|
|
920
|
+
Ensures milestone trailers are alphabetically sorted.
|
|
921
|
+
|
|
922
|
+
....
|
|
923
|
+
# Disallowed
|
|
924
|
+
Issue: 123
|
|
925
|
+
Milestone: patch
|
|
926
|
+
Format: asciidoc
|
|
927
|
+
|
|
928
|
+
# Allowed
|
|
929
|
+
Format: asciidoc
|
|
930
|
+
Issue: 123
|
|
931
|
+
Milestone: patch
|
|
932
|
+
....
|
|
933
|
+
|
|
934
|
+
==== Commit Trailer Reviewer Key
|
|
935
|
+
|
|
936
|
+
[options="header"]
|
|
937
|
+
|===
|
|
938
|
+
| Enabled | Severity
|
|
939
|
+
| true | error
|
|
940
|
+
|===
|
|
941
|
+
|
|
942
|
+
Ensures reviewer trailer key is correct format.
|
|
943
|
+
|
|
944
|
+
....
|
|
945
|
+
# Disallowed
|
|
946
|
+
reviewer: tana
|
|
947
|
+
|
|
948
|
+
# Allowed
|
|
949
|
+
Reviewer: tana
|
|
950
|
+
....
|
|
951
|
+
|
|
952
|
+
==== Commit Trailer Reviewer Value
|
|
953
|
+
|
|
954
|
+
[options="header"]
|
|
955
|
+
|===
|
|
956
|
+
| Enabled | Severity | Defaults
|
|
957
|
+
| true | error | includes: `[clickup, github, jira, linear, shortcut, tana]`
|
|
958
|
+
|===
|
|
959
|
+
|
|
960
|
+
Ensures reviewer trailer value is correct format for linking/referencing the code review system.
|
|
961
|
+
|
|
962
|
+
....
|
|
963
|
+
# Disallowed
|
|
964
|
+
Reviewer: bogus
|
|
965
|
+
|
|
966
|
+
# Allowed
|
|
967
|
+
Reviewer: tana
|
|
968
|
+
....
|
|
969
|
+
|
|
832
970
|
==== Commit Trailer Signer Capitalization
|
|
833
971
|
|
|
834
972
|
[options="header"]
|
|
@@ -841,10 +979,10 @@ Ensures commit signer trailer name is properly capitalized.
|
|
|
841
979
|
|
|
842
980
|
....
|
|
843
981
|
# Disallowed
|
|
844
|
-
Signed-
|
|
982
|
+
Signed-off-by: jayne cobb
|
|
845
983
|
|
|
846
984
|
# Allowed
|
|
847
|
-
Signed-
|
|
985
|
+
Signed-off-by: Jayne Cobb
|
|
848
986
|
....
|
|
849
987
|
|
|
850
988
|
==== Commit Trailer Signer Email
|
|
@@ -859,28 +997,28 @@ Ensures commit signer trailer email is properly capitalized.
|
|
|
859
997
|
|
|
860
998
|
....
|
|
861
999
|
# Disallowed
|
|
862
|
-
Signed-
|
|
1000
|
+
Signed-off-by: Jayne Cobb <invalid>
|
|
863
1001
|
|
|
864
1002
|
# Allowed
|
|
865
|
-
Signed-
|
|
1003
|
+
Signed-off-by: Jayne Cobb <jcobb@firefly.com>
|
|
866
1004
|
....
|
|
867
1005
|
|
|
868
1006
|
==== Commit Trailer Signer Key
|
|
869
1007
|
|
|
870
1008
|
[options="header"]
|
|
871
1009
|
|===
|
|
872
|
-
| Enabled | Severity
|
|
873
|
-
| true | error
|
|
1010
|
+
| Enabled | Severity
|
|
1011
|
+
| true | error
|
|
874
1012
|
|===
|
|
875
1013
|
|
|
876
1014
|
Ensures signer trailer key is correct format.
|
|
877
1015
|
|
|
878
1016
|
....
|
|
879
1017
|
# Disallowed
|
|
880
|
-
signed-by: Jayne Cobb
|
|
1018
|
+
signed-off-by: Jayne Cobb
|
|
881
1019
|
|
|
882
1020
|
# Allowed
|
|
883
|
-
Signed-
|
|
1021
|
+
Signed-off-by: Jayne Cobb
|
|
884
1022
|
....
|
|
885
1023
|
|
|
886
1024
|
==== Commit Trailer Signer Name
|
|
@@ -895,28 +1033,28 @@ Ensures signer name consists of, at least, a first and last name.
|
|
|
895
1033
|
|
|
896
1034
|
....
|
|
897
1035
|
# Disallowed
|
|
898
|
-
Signed-
|
|
1036
|
+
Signed-off-by: Jayne
|
|
899
1037
|
|
|
900
1038
|
# Allowed
|
|
901
|
-
Signed-
|
|
1039
|
+
Signed-off-by: Jayne Cobb
|
|
902
1040
|
....
|
|
903
1041
|
|
|
904
1042
|
==== Commit Trailer Tracker Key
|
|
905
1043
|
|
|
906
1044
|
[options="header"]
|
|
907
1045
|
|===
|
|
908
|
-
| Enabled | Severity
|
|
909
|
-
| true | error
|
|
1046
|
+
| Enabled | Severity
|
|
1047
|
+
| true | error
|
|
910
1048
|
|===
|
|
911
1049
|
|
|
912
1050
|
Ensures tracker trailer key is correct format.
|
|
913
1051
|
|
|
914
1052
|
....
|
|
915
1053
|
# Disallowed
|
|
916
|
-
tracker:
|
|
1054
|
+
tracker: linear
|
|
917
1055
|
|
|
918
1056
|
# Allowed
|
|
919
|
-
Tracker:
|
|
1057
|
+
Tracker: linear
|
|
920
1058
|
....
|
|
921
1059
|
|
|
922
1060
|
==== Commit Trailer Tracker Value
|
|
@@ -1065,8 +1203,7 @@ This gem automatically configures itself for known CI build servers (see below f
|
|
|
1065
1203
|
have a build server that is not listed, please log an issue or provide an implementation with
|
|
1066
1204
|
support.
|
|
1067
1205
|
|
|
1068
|
-
Calculation of commits is done by
|
|
1069
|
-
from `main`.
|
|
1206
|
+
Calculation of commits is done by analyzing all feature branch commits ahead of the default branch (i.e. "main"). In other words, `git log --oneline main..your_feature_branch`.
|
|
1070
1207
|
|
|
1071
1208
|
==== link:https://circleci.com[Circle CI]
|
|
1072
1209
|
|
|
@@ -1092,9 +1229,9 @@ jobs:
|
|
|
1092
1229
|
image: ruby:latest
|
|
1093
1230
|
steps:
|
|
1094
1231
|
- name: Checkout
|
|
1095
|
-
uses: actions/checkout@
|
|
1232
|
+
uses: actions/checkout@v3
|
|
1096
1233
|
with:
|
|
1097
|
-
fetch-depth:
|
|
1234
|
+
fetch-depth: 0
|
|
1098
1235
|
ref: ${{github.head_ref}}
|
|
1099
1236
|
- name: Install
|
|
1100
1237
|
run: gem install git-lint
|
data/git-lint.gemspec
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |spec|
|
|
4
4
|
spec.name = "git-lint"
|
|
5
|
-
spec.version = "
|
|
5
|
+
spec.version = "7.1.0"
|
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
|
8
8
|
spec.homepage = "https://alchemists.io/projects/git-lint"
|
|
@@ -22,20 +22,20 @@ Gem::Specification.new do |spec|
|
|
|
22
22
|
spec.signing_key = Gem.default_key_path
|
|
23
23
|
spec.cert_chain = [Gem.default_cert_path]
|
|
24
24
|
|
|
25
|
-
spec.required_ruby_version =
|
|
26
|
-
spec.add_dependency "cogger", "~> 0.
|
|
27
|
-
spec.add_dependency "core", "~> 0
|
|
25
|
+
spec.required_ruby_version = "~> 3.3"
|
|
26
|
+
spec.add_dependency "cogger", "~> 0.15"
|
|
27
|
+
spec.add_dependency "core", "~> 1.0"
|
|
28
28
|
spec.add_dependency "dry-container", "~> 0.11"
|
|
29
29
|
spec.add_dependency "dry-monads", "~> 1.6"
|
|
30
30
|
spec.add_dependency "dry-schema", "~> 1.13"
|
|
31
|
-
spec.add_dependency "etcher", "~> 0
|
|
32
|
-
spec.add_dependency "gitt", "~> 2
|
|
33
|
-
spec.add_dependency "infusible", "~>
|
|
34
|
-
spec.add_dependency "refinements", "~>
|
|
35
|
-
spec.add_dependency "runcom", "~>
|
|
36
|
-
spec.add_dependency "sod", "~> 0.
|
|
37
|
-
spec.add_dependency "spek", "~>
|
|
38
|
-
spec.add_dependency "tone", "~> 0
|
|
31
|
+
spec.add_dependency "etcher", "~> 1.0"
|
|
32
|
+
spec.add_dependency "gitt", "~> 3.2"
|
|
33
|
+
spec.add_dependency "infusible", "~> 3.0"
|
|
34
|
+
spec.add_dependency "refinements", "~> 12.0"
|
|
35
|
+
spec.add_dependency "runcom", "~> 11.0"
|
|
36
|
+
spec.add_dependency "sod", "~> 0.4"
|
|
37
|
+
spec.add_dependency "spek", "~> 3.0"
|
|
38
|
+
spec.add_dependency "tone", "~> 1.0"
|
|
39
39
|
spec.add_dependency "zeitwerk", "~> 2.6"
|
|
40
40
|
|
|
41
41
|
spec.bindir = "exe"
|