@@ -20,7 +20,7 @@ func (r *HeadMaxLenRule) Validate(msg *message.Commit) (string, bool) {
2020}
2121
2222// Apply sets the needed argument for the rule
23- func (r * HeadMaxLenRule ) Apply (arg interface {}) error {
23+ func (r * HeadMaxLenRule ) Apply (arg interface {}, flags map [ string ] interface {} ) error {
2424 return setIntArg (& r .CheckLen , arg , r .Name ())
2525}
2626
@@ -38,7 +38,7 @@ func (r *BodyMaxLenRule) Validate(msg *message.Commit) (string, bool) {
3838}
3939
4040// Apply sets the needed argument for the rule
41- func (r * BodyMaxLenRule ) Apply (arg interface {}) error {
41+ func (r * BodyMaxLenRule ) Apply (arg interface {}, flags map [ string ] interface {} ) error {
4242 return setIntArg (& r .CheckLen , arg , r .Name ())
4343}
4444
@@ -56,7 +56,7 @@ func (r *FooterMaxLenRule) Validate(msg *message.Commit) (string, bool) {
5656}
5757
5858// Apply sets the needed argument for the rule
59- func (r * FooterMaxLenRule ) Apply (arg interface {}) error {
59+ func (r * FooterMaxLenRule ) Apply (arg interface {}, flags map [ string ] interface {} ) error {
6060 return setIntArg (& r .CheckLen , arg , r .Name ())
6161}
6262
@@ -74,7 +74,7 @@ func (r *TypeMaxLenRule) Validate(msg *message.Commit) (string, bool) {
7474}
7575
7676// Apply sets the needed argument for the rule
77- func (r * TypeMaxLenRule ) Apply (arg interface {}) error {
77+ func (r * TypeMaxLenRule ) Apply (arg interface {}, flags map [ string ] interface {} ) error {
7878 return setIntArg (& r .CheckLen , arg , r .Name ())
7979}
8080
@@ -92,7 +92,7 @@ func (r *ScopeMaxLenRule) Validate(msg *message.Commit) (string, bool) {
9292}
9393
9494// Apply sets the needed argument for the rule
95- func (r * ScopeMaxLenRule ) Apply (arg interface {}) error {
95+ func (r * ScopeMaxLenRule ) Apply (arg interface {}, flags map [ string ] interface {} ) error {
9696 return setIntArg (& r .CheckLen , arg , r .Name ())
9797}
9898
@@ -110,7 +110,7 @@ func (r *DescriptionMaxLenRule) Validate(msg *message.Commit) (string, bool) {
110110}
111111
112112// Apply sets the needed argument for the rule
113- func (r * DescriptionMaxLenRule ) Apply (arg interface {}) error {
113+ func (r * DescriptionMaxLenRule ) Apply (arg interface {}, flags map [ string ] interface {} ) error {
114114 return setIntArg (& r .CheckLen , arg , r .Name ())
115115}
116116
0 commit comments