Skip to content

Commit

Permalink
Fix another test
Browse files Browse the repository at this point in the history
  • Loading branch information
jecisc committed May 29, 2024
1 parent d363f0c commit 4582dc4
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/Renraku/ReProperMethodProtocolNameRule.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,8 @@ ReProperMethodProtocolNameRule class >> rationale [

{ #category : 'accessing' }
ReProperMethodProtocolNameRule class >> ruleName [
^ 'Method categorization: use '''
, self class goodMethodProtocolName
, ''' as protocol name instead of '''
, self methodProtocolName asString , ''''

^ 'Method categorization: use ''' , self goodMethodProtocolName , ''' as protocol name instead of ''' , self badMethodProtocolNames asString , ''''
]

{ #category : 'private - utilities' }
Expand Down Expand Up @@ -109,6 +107,12 @@ ReProperMethodProtocolNameRule >> methodProtocolName: anObject [
methodProtocolName := anObject
]

{ #category : 'accessing' }
ReProperMethodProtocolNameRule >> ruleName [

^ 'Method categorization: use ''' , self class goodMethodProtocolName , ''' as protocol name instead of ''' , self methodProtocolName asString , ''''
]

{ #category : 'private - utilities' }
ReProperMethodProtocolNameRule >> use: valid insteadOf: arrayOfInvalid [
"Instead of directly creating an array we use this utility method for better readability in senders of this method"
Expand Down

0 comments on commit 4582dc4

Please sign in to comment.