Skip to content

Commit

Permalink
Respect more Demeter
Browse files Browse the repository at this point in the history
  • Loading branch information
jecisc committed Apr 12, 2020
1 parent 8cd0dca commit 2156fcf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Chanel/ChanelEnsureSuperIsCalledCleaner.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ ChanelEnsureSuperIsCalledCleaner >> ensureSuperInitializeForMethods: methods [
select: [ :method |
method methodClass isInstanceSide
and: [ method selector = #initialize
and: [ method ast sendNodes
ifNotEmpty: [ :nodes | (nodes anySatisfy: [ :node | node isSuperSendTo: #initialize ]) not ]
and: [ method sendNodes
ifNotEmpty: [ :nodes | nodes noneSatisfy: [ :node | node isSuperSendTo: #initialize ] ]
ifEmpty: [ false ] ] ] ]
thenDo: [ :method |
| ast |
Expand All @@ -51,7 +51,7 @@ ChanelEnsureSuperIsCalledCleaner >> ensureSuperSetUpForMethods: methods [
select: [ :method |
method methodClass isTestCase
and: [ method selector = #setUp
and: [ method ast sendNodes
and: [ method sendNodes
ifNotEmpty: [ :nodes | (nodes first isSuperSendTo: #setUp) not ]
ifEmpty: [ false ] ] ] ]
thenDo: [ :method |
Expand All @@ -68,7 +68,7 @@ ChanelEnsureSuperIsCalledCleaner >> ensureSuperTearDownForMethods: methods [
select: [ :method |
method methodClass isTestCase
and: [ method selector = #tearDown
and: [ method ast sendNodes
and: [ method sendNodes
ifNotEmpty: [ :nodes | (nodes last isSuperSendTo: #tearDown) not ]
ifEmpty: [ false ] ] ] ]
thenDo: [ :method |
Expand Down

0 comments on commit 2156fcf

Please sign in to comment.