@@ -16,7 +16,7 @@ func (r *HeadMaxLenRule) Name() string { return "header-max-length" }
1616
1717// Validate validates HeadMaxLenRule
1818func (r * HeadMaxLenRule ) Validate (msg * lint.Commit ) ([]string , bool ) {
19- return checkMaxLen (r .CheckLen , msg .Header . FullHeader )
19+ return checkMaxLen (r .CheckLen , msg .Header () )
2020}
2121
2222// Apply sets the needed argument for the rule
@@ -38,7 +38,7 @@ func (r *BodyMaxLenRule) Name() string { return "body-max-length" }
3838
3939// Validate validates BodyMaxLenRule
4040func (r * BodyMaxLenRule ) Validate (msg * lint.Commit ) ([]string , bool ) {
41- return checkMaxLen (r .CheckLen , msg .Body )
41+ return checkMaxLen (r .CheckLen , msg .Body () )
4242}
4343
4444// Apply sets the needed argument for the rule
@@ -60,7 +60,7 @@ func (r *FooterMaxLenRule) Name() string { return "footer-max-length" }
6060
6161// Validate validates FooterMaxLenRule
6262func (r * FooterMaxLenRule ) Validate (msg * lint.Commit ) ([]string , bool ) {
63- return checkMaxLen (r .CheckLen , msg .Footer . FullFooter )
63+ return checkMaxLen (r .CheckLen , msg .Footer () )
6464}
6565
6666// Apply sets the needed argument for the rule
@@ -82,7 +82,7 @@ func (r *TypeMaxLenRule) Name() string { return "type-max-length" }
8282
8383// Validate validates TypeMaxLenRule
8484func (r * TypeMaxLenRule ) Validate (msg * lint.Commit ) ([]string , bool ) {
85- return checkMaxLen (r .CheckLen , msg .Header . Type )
85+ return checkMaxLen (r .CheckLen , msg .Type () )
8686}
8787
8888// Apply sets the needed argument for the rule
@@ -104,7 +104,7 @@ func (r *ScopeMaxLenRule) Name() string { return "scope-max-length" }
104104
105105// Validate validates ScopeMaxLenRule
106106func (r * ScopeMaxLenRule ) Validate (msg * lint.Commit ) ([]string , bool ) {
107- return checkMaxLen (r .CheckLen , msg .Header . Scope )
107+ return checkMaxLen (r .CheckLen , msg .Scope () )
108108}
109109
110110// Apply sets the needed argument for the rule
@@ -126,7 +126,7 @@ func (r *DescriptionMaxLenRule) Name() string { return "description-max-length"
126126
127127// Validate validates DescriptionMaxLenRule
128128func (r * DescriptionMaxLenRule ) Validate (msg * lint.Commit ) ([]string , bool ) {
129- return checkMaxLen (r .CheckLen , msg .Header . Description )
129+ return checkMaxLen (r .CheckLen , msg .Description () )
130130}
131131
132132// Apply sets the needed argument for the rule
0 commit comments