@@ -19,8 +19,8 @@ func (r *HeadMaxLenRule) Validate(msg *message.Commit) (string, bool) {
1919 return checkMaxLen (r .CheckLen , msg .Header .FullHeader )
2020}
2121
22- // SetAndCheckArgument sets the needed argument for the rule
23- func (r * HeadMaxLenRule ) SetAndCheckArgument (arg interface {}) error {
22+ // Apply sets the needed argument for the rule
23+ func (r * HeadMaxLenRule ) Apply (arg interface {}) error {
2424 return setIntArg (& r .CheckLen , arg , r .Name ())
2525}
2626
@@ -37,8 +37,8 @@ func (r *BodyMaxLenRule) Validate(msg *message.Commit) (string, bool) {
3737 return checkMaxLen (r .CheckLen , msg .Body )
3838}
3939
40- // SetAndCheckArgument sets the needed argument for the rule
41- func (r * BodyMaxLenRule ) SetAndCheckArgument (arg interface {}) error {
40+ // Apply sets the needed argument for the rule
41+ func (r * BodyMaxLenRule ) Apply (arg interface {}) error {
4242 return setIntArg (& r .CheckLen , arg , r .Name ())
4343}
4444
@@ -55,8 +55,8 @@ func (r *FooterMaxLenRule) Validate(msg *message.Commit) (string, bool) {
5555 return checkMaxLen (r .CheckLen , msg .Footer .FullFooter )
5656}
5757
58- // SetAndCheckArgument sets the needed argument for the rule
59- func (r * FooterMaxLenRule ) SetAndCheckArgument (arg interface {}) error {
58+ // Apply sets the needed argument for the rule
59+ func (r * FooterMaxLenRule ) Apply (arg interface {}) error {
6060 return setIntArg (& r .CheckLen , arg , r .Name ())
6161}
6262
@@ -73,8 +73,8 @@ func (r *TypeMaxLenRule) Validate(msg *message.Commit) (string, bool) {
7373 return checkMaxLen (r .CheckLen , msg .Header .Type )
7474}
7575
76- // SetAndCheckArgument sets the needed argument for the rule
77- func (r * TypeMaxLenRule ) SetAndCheckArgument (arg interface {}) error {
76+ // Apply sets the needed argument for the rule
77+ func (r * TypeMaxLenRule ) Apply (arg interface {}) error {
7878 return setIntArg (& r .CheckLen , arg , r .Name ())
7979}
8080
@@ -91,8 +91,8 @@ func (r *ScopeMaxLenRule) Validate(msg *message.Commit) (string, bool) {
9191 return checkMaxLen (r .CheckLen , msg .Header .Scope )
9292}
9393
94- // SetAndCheckArgument sets the needed argument for the rule
95- func (r * ScopeMaxLenRule ) SetAndCheckArgument (arg interface {}) error {
94+ // Apply sets the needed argument for the rule
95+ func (r * ScopeMaxLenRule ) Apply (arg interface {}) error {
9696 return setIntArg (& r .CheckLen , arg , r .Name ())
9797}
9898
@@ -109,8 +109,8 @@ func (r *DescriptionMaxLenRule) Validate(msg *message.Commit) (string, bool) {
109109 return checkMaxLen (r .CheckLen , msg .Header .Description )
110110}
111111
112- // SetAndCheckArgument sets the needed argument for the rule
113- func (r * DescriptionMaxLenRule ) SetAndCheckArgument (arg interface {}) error {
112+ // Apply sets the needed argument for the rule
113+ func (r * DescriptionMaxLenRule ) Apply (arg interface {}) error {
114114 return setIntArg (& r .CheckLen , arg , r .Name ())
115115}
116116
0 commit comments