X Tutup
Skip to content

Commit e34bcc2

Browse files
author
Johan Brichau
committed
Two more Slime rules ported
1 parent 18a37b0 commit e34bcc2

File tree

16 files changed

+69
-7
lines changed

16 files changed

+69
-7
lines changed

repository/Grease-Pharo110-Slime.package/GRUsesCanPerformOrUnderstandRule.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+
accessing
2+
group
3+
4+
^ 'Grease Portability'
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
initialization
2+
initialize
3+
4+
super initialize.
5+
self matchesAny: #(
6+
'`@receiver canPerform: `@selector'
7+
'`@receiver canUnderstand: `@selector' )
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
accessing
2+
name
3+
4+
^ 'Sends #canPerform: or #canUnderstand:'
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
accessing
2+
rationale
3+
4+
^ '#canPerform: or #canUnderstand: are not portable.'
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"commentStamp" : "",
3+
"super" : "GRReSlimeParseTreeLintRule",
4+
"category" : "Grease-Pharo110-Slime",
5+
"classinstvars" : [ ],
6+
"pools" : [ ],
7+
"classvars" : [ ],
8+
"instvars" : [ ],
9+
"name" : "GRUsesCanPerformOrUnderstandRule",
10+
"type" : "normal"
11+
}

repository/Grease-Pharo110-Slime.package/GRUsesClassForHashRule.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+
hooks
2+
afterCheck: aNode mappings: mappingDict
3+
4+
^ aNode methodNode selector = #hash
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
accessing
2+
group
3+
4+
^ 'Grease Portability'
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
initialization
2+
initialize
3+
4+
super initialize.
5+
self matches: '`@receiver class hash'

0 commit comments

Comments
 (0)
X Tutup