Skip to content

Commit

Permalink
ReGlobalVariablesUsageRule : switch around test
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusDenker committed Jul 17, 2020
1 parent cac870f commit 84ac45d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GeneralRules/ReGlobalVariablesUsageRule.class.st
Expand Up @@ -20,8 +20,8 @@ ReGlobalVariablesUsageRule >> check: aMethod forCritiquesDo: aCriticBlock [
select: [ :node |
node isVariable and: [
node variable isGlobalVariable and: [
(self isKnownGlobal: node name) not and: [
node variable isGlobalClassNameBinding not ] ] ] ]
node variable isGlobalClassNameBinding not and: [
(self isKnownGlobal: node name) not ] ] ] ]
thenDo: [ :node |
aCriticBlock cull: (self
createTrivialCritiqueOn: aMethod
Expand Down

0 comments on commit 84ac45d

Please sign in to comment.