Skip to content

Commit

Permalink
Simplify ReExcessiveArgumentsRule>>#basicCheck:
Browse files Browse the repository at this point in the history
Fix #7788
  • Loading branch information
astares committed Nov 20, 2020
1 parent 01fad2a commit f514e0d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/GeneralRules/ReExcessiveArgumentsRule.class.st
Expand Up @@ -32,9 +32,7 @@ ReExcessiveArgumentsRule >> argumentsCount [
ReExcessiveArgumentsRule >> basicCheck: aMethod [

"If method includes UFFI calls then it is OK to have high number of arguments"
(aMethod ast allChildren anySatisfy: [:node |
node isMessage and: [ FFICompilerPlugin ffiCalloutSelectors includes: node selector ]])
ifTrue: [ ^false ].
aMethod isFFIMethod ifTrue: [ ^false ].

^ aMethod numArgs >= self argumentsCount
]
Expand Down

0 comments on commit f514e0d

Please sign in to comment.