git-lint 5.0.0 → 5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/git-lint.gemspec +3 -2
- data/lib/git/lint/analyzers/abstract.rb +2 -1
- data/lib/git/lint/analyzers/commit_body_bullet_capitalization.rb +1 -1
- data/lib/git/lint/cli/parser.rb +2 -1
- data/lib/git/lint/cli/parsers/analyze.rb +2 -1
- data/lib/git/lint/cli/parsers/core.rb +2 -1
- data/lib/git/lint/cli/shell.rb +3 -1
- data/lib/git/lint/kit/filter_list.rb +3 -1
- data/lib/git/lint/reporters/line.rb +3 -1
- data/lib/git/lint/reporters/lines/paragraph.rb +3 -1
- data/lib/git/lint/reporters/lines/sentence.rb +3 -1
- data.tar.gz.sig +0 -0
- metadata +19 -5
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc491876ba93cedb8a7967eac82e6c3151a843e89fc600dbba4170d630ff4834
|
4
|
+
data.tar.gz: 423a17b3e635d73d3928d12d93551d84785eb3872f891495113ad396abefa6f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1b90dc230153a9829cb5a82e1f8e1139cb7c609862930197f1078f20aaf03fea3a46dbd2f8f6cb84f7262717db37b0b190370ab5a4bc9cb9f1150dd1670bd5f
|
7
|
+
data.tar.gz: 7d82ed24f2b13784a2d81c44884fdbb9065eb86c3ffe84a85135a7fc188c62ff3f7b89c92766ec4e395e7e2c0b6e3ef89c654e8bb64f64cd7244d91aac1db86f
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
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.
|
5
|
+
spec.version = "5.1.0"
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
8
8
|
spec.homepage = "https://www.alchemists.io/projects/git-lint"
|
@@ -24,9 +24,10 @@ Gem::Specification.new do |spec|
|
|
24
24
|
|
25
25
|
spec.required_ruby_version = "~> 3.2"
|
26
26
|
spec.add_dependency "cogger", "~> 0.5"
|
27
|
+
spec.add_dependency "core", "~> 0.1.0"
|
27
28
|
spec.add_dependency "dry-container", "~> 0.11"
|
28
29
|
spec.add_dependency "dry-monads", "~> 1.6"
|
29
|
-
spec.add_dependency "gitt", "~> 1.
|
30
|
+
spec.add_dependency "gitt", "~> 1.1"
|
30
31
|
spec.add_dependency "infusible", "~> 1.0"
|
31
32
|
spec.add_dependency "pastel", "~> 0.8"
|
32
33
|
spec.add_dependency "refinements", "~> 10.0"
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "core"
|
3
4
|
require "refinements/strings"
|
4
5
|
|
5
6
|
module Git
|
@@ -54,7 +55,7 @@ module Git
|
|
54
55
|
|
55
56
|
attr_reader :filter_list
|
56
57
|
|
57
|
-
def load_filter_list =
|
58
|
+
def load_filter_list = Core::EMPTY_ARRAY
|
58
59
|
|
59
60
|
def affected_commit_body_lines
|
60
61
|
commit.body_lines.each.with_object([]).with_index do |(line, lines), index|
|
@@ -5,7 +5,7 @@ module Git
|
|
5
5
|
module Analyzers
|
6
6
|
# Analyzes commit body for proper capitalization of bullet sentences.
|
7
7
|
class CommitBodyBulletCapitalization < Abstract
|
8
|
-
def valid? = lowercased_bullets.
|
8
|
+
def valid? = lowercased_bullets.empty?
|
9
9
|
|
10
10
|
def issue
|
11
11
|
return {} if valid?
|
data/lib/git/lint/cli/parser.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "core"
|
3
4
|
require "optparse"
|
4
5
|
|
5
6
|
module Git
|
@@ -19,7 +20,7 @@ module Git
|
|
19
20
|
@configuration_duplicate = configuration.dup
|
20
21
|
end
|
21
22
|
|
22
|
-
def call arguments =
|
23
|
+
def call arguments = Core::EMPTY_ARRAY
|
23
24
|
sections.each { |section| section.call configuration_duplicate, client: }
|
24
25
|
client.parse arguments
|
25
26
|
configuration_duplicate.freeze
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "core"
|
3
4
|
require "refinements/structs"
|
4
5
|
|
5
6
|
module Git
|
@@ -17,7 +18,7 @@ module Git
|
|
17
18
|
@client = client
|
18
19
|
end
|
19
20
|
|
20
|
-
def call arguments =
|
21
|
+
def call arguments = ::Core::EMPTY_ARRAY
|
21
22
|
client.separator "\nANALYZE OPTIONS:\n"
|
22
23
|
add_sha
|
23
24
|
client.parse arguments
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "core"
|
3
4
|
require "refinements/structs"
|
4
5
|
|
5
6
|
module Git
|
@@ -22,7 +23,7 @@ module Git
|
|
22
23
|
@client = client
|
23
24
|
end
|
24
25
|
|
25
|
-
def call arguments =
|
26
|
+
def call arguments = ::Core::EMPTY_ARRAY
|
26
27
|
client.banner = specification.labeled_summary
|
27
28
|
client.separator "\nUSAGE:\n"
|
28
29
|
collate
|
data/lib/git/lint/cli/shell.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "core"
|
4
|
+
|
3
5
|
module Git
|
4
6
|
module Lint
|
5
7
|
module CLI
|
@@ -19,7 +21,7 @@ module Git
|
|
19
21
|
@parser = parser
|
20
22
|
end
|
21
23
|
|
22
|
-
def call arguments =
|
24
|
+
def call arguments = Core::EMPTY_ARRAY
|
23
25
|
perform parser.call(arguments)
|
24
26
|
rescue OptionParser::ParseError, Errors::Base => error
|
25
27
|
logger.error { error.message }
|
@@ -1,11 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "core"
|
4
|
+
|
3
5
|
module Git
|
4
6
|
module Lint
|
5
7
|
module Kit
|
6
8
|
# Represents an regular expression list which may be used as an analyzer setting.
|
7
9
|
class FilterList
|
8
|
-
def initialize list =
|
10
|
+
def initialize list = Core::EMPTY_ARRAY
|
9
11
|
@list = Array list
|
10
12
|
end
|
11
13
|
|
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "core"
|
4
|
+
|
3
5
|
module Git
|
4
6
|
module Lint
|
5
7
|
module Reporters
|
@@ -7,7 +9,7 @@ module Git
|
|
7
9
|
class Line
|
8
10
|
DEFAULT_INDENT = " "
|
9
11
|
|
10
|
-
def initialize data =
|
12
|
+
def initialize data = Core::EMPTY_HASH
|
11
13
|
@data = data
|
12
14
|
end
|
13
15
|
|
@@ -1,12 +1,14 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "core"
|
4
|
+
|
3
5
|
module Git
|
4
6
|
module Lint
|
5
7
|
module Reporters
|
6
8
|
module Lines
|
7
9
|
# Reports paragraph details.
|
8
10
|
class Paragraph
|
9
|
-
def initialize data =
|
11
|
+
def initialize data = Core::EMPTY_HASH
|
10
12
|
@data = data
|
11
13
|
end
|
12
14
|
|
@@ -1,12 +1,14 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "core"
|
4
|
+
|
3
5
|
module Git
|
4
6
|
module Lint
|
5
7
|
module Reporters
|
6
8
|
module Lines
|
7
9
|
# Reports sentence details.
|
8
10
|
class Sentence
|
9
|
-
def initialize data =
|
11
|
+
def initialize data = Core::EMPTY_HASH
|
10
12
|
@data = data
|
11
13
|
end
|
12
14
|
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-lint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -28,7 +28,7 @@ cert_chain:
|
|
28
28
|
CxDe2+VuChj4I1nvIHdu+E6XoEVlanUPKmSg6nddhkKn2gC45Kyzh6FZqnzH/CRp
|
29
29
|
RFE=
|
30
30
|
-----END CERTIFICATE-----
|
31
|
-
date:
|
31
|
+
date: 2023-01-08 00:00:00.000000000 Z
|
32
32
|
dependencies:
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: cogger
|
@@ -44,6 +44,20 @@ dependencies:
|
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '0.5'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: core
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 0.1.0
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: 0.1.0
|
47
61
|
- !ruby/object:Gem::Dependency
|
48
62
|
name: dry-container
|
49
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -78,14 +92,14 @@ dependencies:
|
|
78
92
|
requirements:
|
79
93
|
- - "~>"
|
80
94
|
- !ruby/object:Gem::Version
|
81
|
-
version: '1.
|
95
|
+
version: '1.1'
|
82
96
|
type: :runtime
|
83
97
|
prerelease: false
|
84
98
|
version_requirements: !ruby/object:Gem::Requirement
|
85
99
|
requirements:
|
86
100
|
- - "~>"
|
87
101
|
- !ruby/object:Gem::Version
|
88
|
-
version: '1.
|
102
|
+
version: '1.1'
|
89
103
|
- !ruby/object:Gem::Dependency
|
90
104
|
name: infusible
|
91
105
|
requirement: !ruby/object:Gem::Requirement
|
@@ -283,7 +297,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
283
297
|
- !ruby/object:Gem::Version
|
284
298
|
version: '0'
|
285
299
|
requirements: []
|
286
|
-
rubygems_version: 3.4.
|
300
|
+
rubygems_version: 3.4.2
|
287
301
|
signing_key:
|
288
302
|
specification_version: 4
|
289
303
|
summary: A command line interface for linting Git commits.
|
metadata.gz.sig
CHANGED
Binary file
|