git-lint 6.2.1 → 7.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/README.adoc +234 -104
  4. data/git-lint.gemspec +12 -12
  5. data/lib/git/lint/analyzer.rb +8 -4
  6. data/lib/git/lint/analyzers/abstract.rb +3 -3
  7. data/lib/git/lint/analyzers/commit_author_capitalization.rb +1 -1
  8. data/lib/git/lint/analyzers/commit_body_bullet_capitalization.rb +1 -1
  9. data/lib/git/lint/analyzers/commit_body_bullet_delimiter.rb +1 -1
  10. data/lib/git/lint/analyzers/{commit_body_single_bullet.rb → commit_body_bullet_only.rb} +4 -4
  11. data/lib/git/lint/analyzers/commit_body_phrase.rb +2 -5
  12. data/lib/git/lint/analyzers/commit_body_presence.rb +3 -3
  13. data/lib/git/lint/analyzers/commit_body_tracker_shorthand.rb +2 -2
  14. data/lib/git/lint/analyzers/commit_body_word_repeat.rb +31 -0
  15. data/lib/git/lint/analyzers/commit_signature.rb +2 -2
  16. data/lib/git/lint/analyzers/commit_subject_prefix.rb +3 -3
  17. data/lib/git/lint/analyzers/commit_subject_suffix.rb +2 -2
  18. data/lib/git/lint/analyzers/commit_subject_word_repeat.rb +20 -0
  19. data/lib/git/lint/analyzers/commit_trailer_collaborator_capitalization.rb +2 -2
  20. data/lib/git/lint/analyzers/commit_trailer_collaborator_email.rb +3 -4
  21. data/lib/git/lint/analyzers/commit_trailer_collaborator_key.rb +4 -6
  22. data/lib/git/lint/analyzers/commit_trailer_collaborator_name.rb +2 -2
  23. data/lib/git/lint/analyzers/commit_trailer_format_key.rb +4 -6
  24. data/lib/git/lint/analyzers/commit_trailer_format_value.rb +4 -4
  25. data/lib/git/lint/analyzers/commit_trailer_issue_key.rb +4 -6
  26. data/lib/git/lint/analyzers/commit_trailer_issue_value.rb +4 -4
  27. data/lib/git/lint/analyzers/commit_trailer_milestone_key.rb +33 -0
  28. data/lib/git/lint/analyzers/commit_trailer_milestone_value.rb +35 -0
  29. data/lib/git/lint/analyzers/commit_trailer_order.rb +38 -0
  30. data/lib/git/lint/analyzers/commit_trailer_reviewer_key.rb +33 -0
  31. data/lib/git/lint/analyzers/commit_trailer_reviewer_value.rb +35 -0
  32. data/lib/git/lint/analyzers/commit_trailer_signer_capitalization.rb +2 -2
  33. data/lib/git/lint/analyzers/commit_trailer_signer_email.rb +3 -4
  34. data/lib/git/lint/analyzers/commit_trailer_signer_key.rb +4 -4
  35. data/lib/git/lint/analyzers/commit_trailer_signer_name.rb +2 -2
  36. data/lib/git/lint/analyzers/commit_trailer_tracker_key.rb +4 -6
  37. data/lib/git/lint/analyzers/commit_trailer_tracker_value.rb +4 -4
  38. data/lib/git/lint/commits/{systems → hosts}/circle_ci.rb +2 -2
  39. data/lib/git/lint/commits/{systems → hosts}/container.rb +2 -2
  40. data/lib/git/lint/commits/{systems → hosts}/git_hub_action.rb +2 -2
  41. data/lib/git/lint/commits/{systems → hosts}/import.rb +1 -1
  42. data/lib/git/lint/commits/{systems → hosts}/local.rb +2 -2
  43. data/lib/git/lint/commits/{systems → hosts}/netlify_ci.rb +2 -2
  44. data/lib/git/lint/commits/loader.rb +6 -6
  45. data/lib/git/lint/configuration/contract.rb +19 -11
  46. data/lib/git/lint/configuration/defaults.yml +43 -22
  47. data/lib/git/lint/configuration/model.rb +19 -11
  48. data/lib/git/lint/configuration/trailer.rb +10 -0
  49. data/lib/git/lint/container.rb +28 -6
  50. data/lib/git/lint/errors/severity.rb +6 -1
  51. data/lib/git/lint/kit/filter_list.rb +9 -4
  52. data/lib/git/lint/reporters/branch.rb +5 -5
  53. data/lib/git/lint/validators/name.rb +2 -2
  54. data/lib/git/lint/validators/repeated_word.rb +36 -0
  55. data.tar.gz.sig +0 -0
  56. metadata +40 -35
  57. metadata.gz.sig +0 -0
  58. 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: 617855a3e3ab47a5f4e831cfc6b8c3d8fa0cba5554ff0c5d3af7d53ad872fcc1
4
- data.tar.gz: 72b172b848660e05381833707645a193b996c381fd200b102eeb7e536787dfff
3
+ metadata.gz: 17df66c3c7286df7894959bd3ab1af46fe932845536e0c80cb1d85f9426c6e2f
4
+ data.tar.gz: 11a08b18db8799bd1ece0861be00cb50e870356fdfe923c2030b960048cc9199
5
5
  SHA512:
6
- metadata.gz: f6dca36573819ff8ca65210dad90ed5a8104a1b096c35ce3ce601dcf71b2b413a5bf1664a5b96e17fb9ef8913d4d6e33b25675cc7128aafe20fffbe37abc4b00
7
- data.tar.gz: 1dee5dc39b0c9f0aa54d436f27fb0b50306f33c71740dbd89a69b38e2c8f917ab23510e6b68210738c635a729ff364c404a45a75d0e06f9882eecc2d274098f9
6
+ metadata.gz: 110a65b2275958375760998b4f9b68943f57e6743886e2e229d0119ebfd297412e2283197851a016bcf246205ee3434a828ff622450efd814d1fb9f9c3edb7cd
7
+ data.tar.gz: a1f3c0a130b52e1400f7c7c76ae7c64c719abb7f5686d26ae0e9f6be1a574e11c3eefd4ebc1fd3eec142490c2e6554079c1c3305033132ec2bc0ea132ede4475
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
- bullet:
115
+ bullet_capitalization:
116
116
  enabled: true
117
117
  severity: error
118
- excludes:
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
- bullet_delimiter:
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
- - ASCII
243
- - Markdown
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,62 @@ 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 | excludes: `["\\*", ""]`
397
+ | true | error | includes: `["\\-", "\\*"]`
377
398
  |===
378
399
 
379
- Ensures commit message bodies use a standard Markdown syntax for bullet points. Markdown supports
380
- the following syntax for bullets:
400
+ Ensures commit body bullet lines are capitalized. Example:
381
401
 
382
402
  ....
383
- *
384
- -
385
- ....
403
+ # Disallowed
404
+ - an example bullet.
386
405
 
387
- It's best to use dashes for bullet point syntax as stars are easier to read when used for
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.
406
+ # Allowed
407
+ - An example bullet.
408
+ ....
390
409
 
391
- ==== Commit Body Bullet Capitalization
410
+ ==== Commit Body Bullet Delimiter
392
411
 
393
412
  [options="header"]
394
413
  |===
395
414
  | Enabled | Severity | Defaults
396
- | true | error | includes: `["\\-"]`
415
+ | true | error | includes: `["\\-", "\\*"]`
397
416
  |===
398
417
 
399
- Ensures commit body bullet lines are capitalized. Example:
418
+ Ensures commit body bullets are delimited by a space. Example:
400
419
 
401
420
  ....
402
421
  # Disallowed
403
- - an example bullet.
422
+ -An example bullet.
404
423
 
405
424
  # Allowed
406
425
  - An example bullet.
407
426
  ....
408
427
 
409
- ==== Commit Body Bullet Delimiter
428
+ ==== Commit Body Bullet Only
410
429
 
411
430
  [options="header"]
412
431
  |===
413
432
  | Enabled | Severity | Defaults
414
- | true | error | includes: `["\\-"]`
433
+ | true | error | includes: `["\\-", "\\*"]`
415
434
  |===
416
435
 
417
- Ensures commit body bullets are delimited by a space. Example:
436
+ Ensures a single bullet is never used when a paragraph could be used instead. Example:
418
437
 
419
438
  ....
420
439
  # Disallowed
421
- -An example bullet.
440
+
441
+ - Pellentque morbi-trist sentus et netus et malesuada fames ac turpis egestas. Vestibulum tortor
442
+ quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu_libero sit amet quam.
422
443
 
423
444
  # Allowed
424
- - An example bullet.
445
+
446
+ Pellentque morbi-trist sentus et netus et malesuada fames ac turpis egestas. Vestibulum tortor
447
+ quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu_libero sit amet quam.
425
448
  ....
426
449
 
427
450
  ==== Commit Body Leading Line
@@ -521,28 +544,6 @@ Ensures a minimum number of lines are present within the commit body. Lines with
521
544
 
522
545
  Automatically ignores _fixup!_ commits as they are not meant to have bodies.
523
546
 
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
547
  ==== Commit Body Tracker Shorthand
547
548
 
548
549
  [options="header"]
@@ -568,6 +569,24 @@ Instead of using tracker shorthand syntax, take the time to write a short summar
568
569
  commit was made. Doing this will make it easier to understand _why_ the commit was made, keeps the
569
570
  commit self-contained, and makes learning about/debugging the commit faster.
570
571
 
572
+ ==== Commit Body Word Repeat
573
+
574
+ [options="header"]
575
+ |===
576
+ | Enabled | Severity
577
+ | true | error
578
+ |===
579
+
580
+ Ensures commit bodies don't contain repeated words. Example:
581
+
582
+ ....
583
+ # Disallowed
584
+ Necessary to to fix production error.
585
+
586
+ # Allowed
587
+ Necessary to fix production error.
588
+ ....
589
+
571
590
  ==== Commit Signature
572
591
 
573
592
  [options="header"]
@@ -665,6 +684,24 @@ the use of punctuation. This is handy when coupled with a tool, like
665
684
  link:https://alchemists.io/projects/milestoner[Milestoner], which automates project milestone
666
685
  releases.
667
686
 
687
+ ==== Commit Subject Word Repeat
688
+
689
+ [options="header"]
690
+ |===
691
+ | Enabled | Severity
692
+ | true | error
693
+ |===
694
+
695
+ Ensures commit subjects don't contain repeated words. Example:
696
+
697
+ ....
698
+ # Disallowed
699
+ Added specs specs
700
+
701
+ # Allowed
702
+ Added specs
703
+ ....
704
+
668
705
  ==== Commit Trailer Collaborator Capitalization
669
706
 
670
707
  [options="header"]
@@ -695,28 +732,28 @@ Ensures collaborator email address is valid for commit trailer.
695
732
 
696
733
  ....
697
734
  # Disallowed
698
- Co-Authored-By: River Tam <invalid>
735
+ Co-authored-by: River Tam <invalid>
699
736
 
700
737
  # Allowed
701
- Co-Authored-By: River Tam <river@firefly.com>
738
+ Co-authored-by: River Tam <river@firefly.com>
702
739
  ....
703
740
 
704
741
  ==== Commit Trailer Collaborator Key
705
742
 
706
743
  [options="header"]
707
744
  |===
708
- | Enabled | Severity | Defaults
709
- | true | error | includes: `["Co-Authored-By"]`
745
+ | Enabled | Severity
746
+ | true | error
710
747
  |===
711
748
 
712
749
  Ensures collaborator trailer key is correct format.
713
750
 
714
751
  ....
715
752
  # Disallowed
716
- Co-authored-by: River Tam <river@firefly.com>
753
+ co-authored-by: River Tam <river@firefly.com>
717
754
 
718
755
  # Allowed
719
- Co-Authored-By: River Tam <river@firefly.com>
756
+ Co-authored-by: River Tam <river@firefly.com>
720
757
  ....
721
758
 
722
759
  ==== Commit Trailer Collaborator Name
@@ -731,10 +768,10 @@ Ensures collaborator name consists of, at least, a first and last name. Example:
731
768
 
732
769
  ....
733
770
  # Disallowed
734
- Co-Authored-By: River <river@firefly.com>
771
+ Co-authored-by: River <river@firefly.com>
735
772
 
736
773
  # Allowed
737
- Co-Authored-By: River Tam <river@firefly.com>
774
+ Co-authored-by: River Tam <river@firefly.com>
738
775
  ....
739
776
 
740
777
  ==== Commit Trailer Duplicate
@@ -749,30 +786,30 @@ Ensures commit trailer keys are not duplicated. Example:
749
786
 
750
787
  ....
751
788
  # Disallowed
752
- Co-Authored-By: Shepherd Derrial Book <shepherd@firefly.com>
753
- Co-Authored-By: Shepherd Derrial Book <shepherd@firefly.com>
789
+ Co-authored-by: Shepherd Derrial Book <shepherd@firefly.com>
790
+ Co-authored-by: Shepherd Derrial Book <shepherd@firefly.com>
754
791
 
755
792
  # Allowed
756
- Co-Authored-By: Malcolm Reynolds <malcolm@firefly.com>
757
- Co-Authored-By: Shepherd Derrial Book <shepherd@firefly.com>
793
+ Co-authored-by: Malcolm Reynolds <malcolm@firefly.com>
794
+ Co-authored-by: Shepherd Derrial Book <shepherd@firefly.com>
758
795
  ....
759
796
 
760
797
  ==== Commit Trailer Format Key
761
798
 
762
799
  [options="header"]
763
800
  |===
764
- | Enabled | Severity | Defaults
765
- | true | error | includes: `["Format"]`
801
+ | Enabled | Severity
802
+ | true | error
766
803
  |===
767
804
 
768
805
  Ensures format trailer key is correct format.
769
806
 
770
807
  ....
771
808
  # Disallowed
772
- format: ASCII
809
+ format: markdown
773
810
 
774
811
  # Allowed
775
- Format: ASCII
812
+ Format: markdown
776
813
  ....
777
814
 
778
815
  ==== Commit Trailer Format Value
@@ -780,25 +817,25 @@ Format: ASCII
780
817
  [options="header"]
781
818
  |===
782
819
  | Enabled | Severity | Defaults
783
- | true | error | includes: `["ASCII", "Markdown"]`
820
+ | true | error | includes: `["asciidoc", "markdown"]`
784
821
  |===
785
822
 
786
823
  Ensures format trailer value is a valid value.
787
824
 
788
825
  ....
789
826
  # Disallowed
790
- Format: Plain
827
+ Format: plain
791
828
 
792
829
  # Allowed
793
- Format: ASCII
830
+ Format: asciidoc
794
831
  ....
795
832
 
796
833
  ==== Commit Trailer Issue Key
797
834
 
798
835
  [options="header"]
799
836
  |===
800
- | Enabled | Severity | Defaults
801
- | true | error | includes: `["Issue"]`
837
+ | Enabled | Severity
838
+ | true | error
802
839
  |===
803
840
 
804
841
  Ensures issue trailer key is correct format.
@@ -829,6 +866,100 @@ Issue: 123+45
829
866
  Issue: 123
830
867
  ....
831
868
 
869
+ ==== Commit Trailer Milestone Key
870
+
871
+ [options="header"]
872
+ |===
873
+ | Enabled | Severity
874
+ | true | error
875
+ |===
876
+
877
+ Ensures milestone trailer key is correct format.
878
+
879
+ ....
880
+ # Disallowed
881
+ milestone: patch
882
+
883
+ # Allowed
884
+ Milestone: patch
885
+ ....
886
+
887
+ ==== Commit Trailer Milestone Value
888
+
889
+ [options="header"]
890
+ |===
891
+ | Enabled | Severity | Defaults
892
+ | true | error | includes: `[major, minor, patch]`
893
+ |===
894
+
895
+ Ensures milestone trailer value is correct format for link:https://semver.org[semantic versioning] purposes.
896
+
897
+ ....
898
+ # Disallowed
899
+ Milestone: bogus
900
+
901
+ # Allowed
902
+ Milestone: patch
903
+ ....
904
+
905
+ ==== Commit Trailer Order
906
+
907
+ [options="header"]
908
+ |===
909
+ | Enabled | Severity
910
+ | true | error
911
+ |===
912
+
913
+ Ensures milestone trailers are alphabetically sorted.
914
+
915
+ ....
916
+ # Disallowed
917
+ Issue: 123
918
+ Milestone: patch
919
+ Format: asciidoc
920
+
921
+ # Allowed
922
+ Format: asciidoc
923
+ Issue: 123
924
+ Milestone: patch
925
+ ....
926
+
927
+ ==== Commit Trailer Reviewer Key
928
+
929
+ [options="header"]
930
+ |===
931
+ | Enabled | Severity
932
+ | true | error
933
+ |===
934
+
935
+ Ensures reviewer trailer key is correct format.
936
+
937
+ ....
938
+ # Disallowed
939
+ reviewer: tana
940
+
941
+ # Allowed
942
+ Reviewer: tana
943
+ ....
944
+
945
+ ==== Commit Trailer Reviewer Value
946
+
947
+ [options="header"]
948
+ |===
949
+ | Enabled | Severity | Defaults
950
+ | true | error | includes: `[clickup, github, jira, linear, shortcut, tana]`
951
+ |===
952
+
953
+ Ensures reviewer trailer value is correct format for linking/referencing the code review system.
954
+
955
+ ....
956
+ # Disallowed
957
+ Reviewer: bogus
958
+
959
+ # Allowed
960
+ Reviewer: tana
961
+ ....
962
+
832
963
  ==== Commit Trailer Signer Capitalization
833
964
 
834
965
  [options="header"]
@@ -841,10 +972,10 @@ Ensures commit signer trailer name is properly capitalized.
841
972
 
842
973
  ....
843
974
  # Disallowed
844
- Signed-By: jayne cobb
975
+ Signed-off-by: jayne cobb
845
976
 
846
977
  # Allowed
847
- Signed-By: Jayne Cobb
978
+ Signed-off-by: Jayne Cobb
848
979
  ....
849
980
 
850
981
  ==== Commit Trailer Signer Email
@@ -859,28 +990,28 @@ Ensures commit signer trailer email is properly capitalized.
859
990
 
860
991
  ....
861
992
  # Disallowed
862
- Signed-By: Jayne Cobb <invalid>
993
+ Signed-off-by: Jayne Cobb <invalid>
863
994
 
864
995
  # Allowed
865
- Signed-By: Jayne Cobb <jcobb@firefly.com>
996
+ Signed-off-by: Jayne Cobb <jcobb@firefly.com>
866
997
  ....
867
998
 
868
999
  ==== Commit Trailer Signer Key
869
1000
 
870
1001
  [options="header"]
871
1002
  |===
872
- | Enabled | Severity | Defaults
873
- | true | error | includes: `["Signed-By"]`
1003
+ | Enabled | Severity
1004
+ | true | error
874
1005
  |===
875
1006
 
876
1007
  Ensures signer trailer key is correct format.
877
1008
 
878
1009
  ....
879
1010
  # Disallowed
880
- signed-by: Jayne Cobb
1011
+ signed-off-by: Jayne Cobb
881
1012
 
882
1013
  # Allowed
883
- Signed-By: Jayne Cobb
1014
+ Signed-off-by: Jayne Cobb
884
1015
  ....
885
1016
 
886
1017
  ==== Commit Trailer Signer Name
@@ -895,28 +1026,28 @@ Ensures signer name consists of, at least, a first and last name.
895
1026
 
896
1027
  ....
897
1028
  # Disallowed
898
- Signed-By: Jayne
1029
+ Signed-off-by: Jayne
899
1030
 
900
1031
  # Allowed
901
- Signed-By: Jayne Cobb
1032
+ Signed-off-by: Jayne Cobb
902
1033
  ....
903
1034
 
904
1035
  ==== Commit Trailer Tracker Key
905
1036
 
906
1037
  [options="header"]
907
1038
  |===
908
- | Enabled | Severity | Defaults
909
- | true | error | includes: `["Tracker"]`
1039
+ | Enabled | Severity
1040
+ | true | error
910
1041
  |===
911
1042
 
912
1043
  Ensures tracker trailer key is correct format.
913
1044
 
914
1045
  ....
915
1046
  # Disallowed
916
- tracker: Linear
1047
+ tracker: linear
917
1048
 
918
1049
  # Allowed
919
- Tracker: Linear
1050
+ Tracker: linear
920
1051
  ....
921
1052
 
922
1053
  ==== Commit Trailer Tracker Value
@@ -1045,12 +1176,12 @@ You can add Rake support by adding the following to your `Rakefile`:
1045
1176
  [source,ruby]
1046
1177
  ----
1047
1178
  begin
1048
- require "git/lint/rake/register"
1179
+ # require "git/lint/rake/register"
1049
1180
  rescue LoadError => error
1050
1181
  puts error.message
1051
1182
  end
1052
1183
 
1053
- Git::Lint::Rake::Register.call
1184
+ # Git::Lint::Rake::Register.call
1054
1185
  ----
1055
1186
 
1056
1187
  Once required and registered, the following tasks will be available (i.e. `bundle exec rake -T`):
@@ -1065,8 +1196,7 @@ This gem automatically configures itself for known CI build servers (see below f
1065
1196
  have a build server that is not listed, please log an issue or provide an implementation with
1066
1197
  support.
1067
1198
 
1068
- Calculation of commits is done by reviewing all commits made on the feature branch since branching
1069
- from `main`.
1199
+ 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
1200
 
1071
1201
  ==== link:https://circleci.com[Circle CI]
1072
1202
 
@@ -1092,9 +1222,9 @@ jobs:
1092
1222
  image: ruby:latest
1093
1223
  steps:
1094
1224
  - name: Checkout
1095
- uses: actions/checkout@v2
1225
+ uses: actions/checkout@v3
1096
1226
  with:
1097
- fetch-depth: '0'
1227
+ fetch-depth: 0
1098
1228
  ref: ${{github.head_ref}}
1099
1229
  - name: Install
1100
1230
  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 = "6.2.1"
5
+ spec.version = "7.0.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 = [">= 3.2", "<= 3.3"]
26
- spec.add_dependency "cogger", "~> 0.12"
27
- spec.add_dependency "core", "~> 0.1"
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.2"
32
- spec.add_dependency "gitt", "~> 2.0"
33
- spec.add_dependency "infusible", "~> 2.2"
34
- spec.add_dependency "refinements", "~> 11.0"
35
- spec.add_dependency "runcom", "~> 10.0"
36
- spec.add_dependency "sod", "~> 0.0"
37
- spec.add_dependency "spek", "~> 2.0"
38
- spec.add_dependency "tone", "~> 0.3"
31
+ spec.add_dependency "etcher", "~> 1.0"
32
+ spec.add_dependency "gitt", "~> 3.0"
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"