X Tutup
Skip to content

Commit 2800c45

Browse files
author
Johan Brichau
committed
Ported Slime rule for referencing/using a non-portable class
1 parent 81bec5c commit 2800c45

File tree

29 files changed

+116
-32
lines changed

29 files changed

+116
-32
lines changed

repository/BaselineOfGrease.package/BaselineOfGrease.class/instance/baselineCommon..st

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
baselines
22
baselineCommon: spec
3+
34
spec
45
for: #common
56
do: [ spec blessing: #baseline.

repository/BaselineOfGrease.package/BaselineOfGrease.class/instance/baselineGemStone..st

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
baselines
22
baselineGemStone: spec
3+
34
spec
45
for: #'gemstone'
56
do: [

repository/Grease-Pharo110-Slime.package/GRReferencesNotPortableClassRule.class/README.md

Whitespace-only changes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
testing - interest
2+
checksMethod
3+
4+
^ true
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
running
2+
basicCheck: aMethod
3+
4+
(aMethod methodClass instanceSide category indexOfSubCollection: #'-Pharo-' startingAt: 1) ~= 0 ifTrue: [
5+
"classes in a -Pharo- package are per definition not portable and therefore allowed to use non-portable classes"
6+
^ false ].
7+
8+
^ aMethod literals anySatisfy: [ :each | each isVariableBinding and: [ self classNames includes: each key ] ]
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
accessing
2+
name
3+
4+
^ 'Uses not portable class'
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"commentStamp" : "",
3+
"super" : "GRUsesNotPortableClassRule",
4+
"category" : "Grease-Pharo110-Slime",
5+
"classinstvars" : [ ],
6+
"pools" : [ ],
7+
"classvars" : [ ],
8+
"instvars" : [ ],
9+
"name" : "GRReferencesNotPortableClassRule",
10+
"type" : "normal"
11+
}

repository/Grease-Pharo110-Slime.package/GRSubclassesNotPortableClassRule.class/README.md

Whitespace-only changes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
testing - interest
2+
checksClass
3+
4+
^ true
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
running
2+
basicCheck: aClass
3+
4+
^ aClass allSuperclasses anySatisfy: [ :each | self classNames includes: each name ]

0 commit comments

Comments
 (0)
X Tutup