diff --git a/packages/SwaLint-Tests.package/SLSmallLintPlugInTest.class/instance/testToDoWithIncrement.st b/packages/SwaLint-Tests.package/SLSmallLintPlugInTest.class/instance/testToDoWithIncrement.st new file mode 100644 index 0000000..8cc9d15 --- /dev/null +++ b/packages/SwaLint-Tests.package/SLSmallLintPlugInTest.class/instance/testToDoWithIncrement.st @@ -0,0 +1,7 @@ +testing +testToDoWithIncrement + + self + test: #smallLintToDoWithIncrement + on: {SLTestToDoWithIncrement01} + expectedResults: {4}. \ No newline at end of file diff --git a/packages/SwaLint-Tests.package/SLSmallLintPlugInTest.class/methodProperties.json b/packages/SwaLint-Tests.package/SLSmallLintPlugInTest.class/methodProperties.json index fa76a85..46f30d7 100644 --- a/packages/SwaLint-Tests.package/SLSmallLintPlugInTest.class/methodProperties.json +++ b/packages/SwaLint-Tests.package/SLSmallLintPlugInTest.class/methodProperties.json @@ -78,6 +78,7 @@ "testTestToDo" : "LG 5/31/2018 10:15", "testThreeElementPoint" : "LG 5/31/2018 09:48", "testToDo" : "LG 5/31/2018 11:33", + "testToDoWithIncrement" : "LG 5/31/2018 12:01", "testUnclassifiedMethods" : "fm 5/25/2018 08:26", "testUncommonMessageSend" : "fm 5/25/2018 08:52", "testUndeclaredReferenceRule" : "BD 5/25/2018 14:17", diff --git a/packages/SwaLint-Tests.package/SLTestToDoWithIncrement01.class/README.md b/packages/SwaLint-Tests.package/SLTestToDoWithIncrement01.class/README.md new file mode 100644 index 0000000..e69de29 diff --git a/packages/SwaLint-Tests.package/SLTestToDoWithIncrement01.class/instance/doNothing.st b/packages/SwaLint-Tests.package/SLTestToDoWithIncrement01.class/instance/doNothing.st new file mode 100644 index 0000000..a6b1acf --- /dev/null +++ b/packages/SwaLint-Tests.package/SLTestToDoWithIncrement01.class/instance/doNothing.st @@ -0,0 +1,2 @@ +as yet unclassified +doNothing \ No newline at end of file diff --git a/packages/SwaLint-Tests.package/SLTestToDoWithIncrement01.class/instance/method1.st b/packages/SwaLint-Tests.package/SLTestToDoWithIncrement01.class/instance/method1.st new file mode 100644 index 0000000..bebdab7 --- /dev/null +++ b/packages/SwaLint-Tests.package/SLTestToDoWithIncrement01.class/instance/method1.st @@ -0,0 +1,10 @@ +as yet unclassified +method1 + + | count | + count := 0. + + 1 to: 10 do: [:each | + self doNothing. + count := count + 1. + self doNothing.] \ No newline at end of file diff --git a/packages/SwaLint-Tests.package/SLTestToDoWithIncrement01.class/instance/method2.st b/packages/SwaLint-Tests.package/SLTestToDoWithIncrement01.class/instance/method2.st new file mode 100644 index 0000000..f36bc0b --- /dev/null +++ b/packages/SwaLint-Tests.package/SLTestToDoWithIncrement01.class/instance/method2.st @@ -0,0 +1,15 @@ +as yet unclassified +method2 + + | count i j k | + count := 0. + + i := 1. + j := 10. + k := 2. + + i to: j by: k do: [:each || temp | + temp := 1. + self doNothing. + count := count + k. + self doNothing.] \ No newline at end of file diff --git a/packages/SwaLint-Tests.package/SLTestToDoWithIncrement01.class/instance/method3.st b/packages/SwaLint-Tests.package/SLTestToDoWithIncrement01.class/instance/method3.st new file mode 100644 index 0000000..8239ede --- /dev/null +++ b/packages/SwaLint-Tests.package/SLTestToDoWithIncrement01.class/instance/method3.st @@ -0,0 +1,11 @@ +as yet unclassified +method3 + + | count | + count := 0. + + 1 to: 10 do: [:each || temp | + temp := 1. + self doNothing. + count := count - 1. + self doNothing.] \ No newline at end of file diff --git a/packages/SwaLint-Tests.package/SLTestToDoWithIncrement01.class/instance/method4.st b/packages/SwaLint-Tests.package/SLTestToDoWithIncrement01.class/instance/method4.st new file mode 100644 index 0000000..bf62e1b --- /dev/null +++ b/packages/SwaLint-Tests.package/SLTestToDoWithIncrement01.class/instance/method4.st @@ -0,0 +1,15 @@ +as yet unclassified +method4 + + | count i j k | + count := 0. + + i := 1. + j := 10. + k := 2. + + i to: j by: k do: [:each || temp | + temp := 1. + self doNothing. + count := count - k. + self doNothing.] \ No newline at end of file diff --git a/packages/SwaLint-Tests.package/SLTestToDoWithIncrement01.class/methodProperties.json b/packages/SwaLint-Tests.package/SLTestToDoWithIncrement01.class/methodProperties.json new file mode 100644 index 0000000..6ddfe58 --- /dev/null +++ b/packages/SwaLint-Tests.package/SLTestToDoWithIncrement01.class/methodProperties.json @@ -0,0 +1,9 @@ +{ + "class" : { + }, + "instance" : { + "doNothing" : "LG 5/31/2018 11:44", + "method1" : "LG 5/31/2018 12:01", + "method2" : "LG 5/31/2018 11:46", + "method3" : "LG 5/31/2018 11:47", + "method4" : "LG 5/31/2018 11:47" } } diff --git a/packages/SwaLint-Tests.package/SLTestToDoWithIncrement01.class/properties.json b/packages/SwaLint-Tests.package/SLTestToDoWithIncrement01.class/properties.json new file mode 100644 index 0000000..bbf74d2 --- /dev/null +++ b/packages/SwaLint-Tests.package/SLTestToDoWithIncrement01.class/properties.json @@ -0,0 +1,14 @@ +{ + "category" : "SwaLint-Tests-Data", + "classinstvars" : [ + ], + "classvars" : [ + ], + "commentStamp" : "", + "instvars" : [ + ], + "name" : "SLTestToDoWithIncrement01", + "pools" : [ + ], + "super" : "Object", + "type" : "normal" }