@@ -20,8 +20,8 @@ func (r *HeadMaxLenRule) Validate(msg *lint.Commit) ([]string, bool) {
2020}
2121
2222// Apply sets the needed argument for the rule
23- func (r * HeadMaxLenRule ) Apply (arg interface {}, flags map [ string ] interface {} ) error {
24- err := setIntArg (& r .CheckLen , arg )
23+ func (r * HeadMaxLenRule ) Apply (setting lint. RuleSetting ) error {
24+ err := setIntArg (& r .CheckLen , setting . Argument )
2525 if err != nil {
2626 return errInvalidArg (r .Name (), err )
2727 }
@@ -42,8 +42,8 @@ func (r *BodyMaxLenRule) Validate(msg *lint.Commit) ([]string, bool) {
4242}
4343
4444// Apply sets the needed argument for the rule
45- func (r * BodyMaxLenRule ) Apply (arg interface {}, flags map [ string ] interface {} ) error {
46- err := setIntArg (& r .CheckLen , arg )
45+ func (r * BodyMaxLenRule ) Apply (setting lint. RuleSetting ) error {
46+ err := setIntArg (& r .CheckLen , setting . Argument )
4747 if err != nil {
4848 return errInvalidArg (r .Name (), err )
4949 }
@@ -64,8 +64,8 @@ func (r *FooterMaxLenRule) Validate(msg *lint.Commit) ([]string, bool) {
6464}
6565
6666// Apply sets the needed argument for the rule
67- func (r * FooterMaxLenRule ) Apply (arg interface {}, flags map [ string ] interface {} ) error {
68- err := setIntArg (& r .CheckLen , arg )
67+ func (r * FooterMaxLenRule ) Apply (setting lint. RuleSetting ) error {
68+ err := setIntArg (& r .CheckLen , setting . Argument )
6969 if err != nil {
7070 return errInvalidArg (r .Name (), err )
7171 }
@@ -86,8 +86,8 @@ func (r *TypeMaxLenRule) Validate(msg *lint.Commit) ([]string, bool) {
8686}
8787
8888// Apply sets the needed argument for the rule
89- func (r * TypeMaxLenRule ) Apply (arg interface {}, flags map [ string ] interface {} ) error {
90- err := setIntArg (& r .CheckLen , arg )
89+ func (r * TypeMaxLenRule ) Apply (setting lint. RuleSetting ) error {
90+ err := setIntArg (& r .CheckLen , setting . Argument )
9191 if err != nil {
9292 return errInvalidArg (r .Name (), err )
9393 }
@@ -108,8 +108,8 @@ func (r *ScopeMaxLenRule) Validate(msg *lint.Commit) ([]string, bool) {
108108}
109109
110110// Apply sets the needed argument for the rule
111- func (r * ScopeMaxLenRule ) Apply (arg interface {}, flags map [ string ] interface {} ) error {
112- err := setIntArg (& r .CheckLen , arg )
111+ func (r * ScopeMaxLenRule ) Apply (setting lint. RuleSetting ) error {
112+ err := setIntArg (& r .CheckLen , setting . Argument )
113113 if err != nil {
114114 return errInvalidArg (r .Name (), err )
115115 }
@@ -130,8 +130,8 @@ func (r *DescriptionMaxLenRule) Validate(msg *lint.Commit) ([]string, bool) {
130130}
131131
132132// Apply sets the needed argument for the rule
133- func (r * DescriptionMaxLenRule ) Apply (arg interface {}, flags map [ string ] interface {} ) error {
134- err := setIntArg (& r .CheckLen , arg )
133+ func (r * DescriptionMaxLenRule ) Apply (setting lint. RuleSetting ) error {
134+ err := setIntArg (& r .CheckLen , setting . Argument )
135135 if err != nil {
136136 return errInvalidArg (r .Name (), err )
137137 }
0 commit comments