Skip to content

Commit

Permalink
Recommit the for some reason by GitHub or Squeak eaten categorization…
Browse files Browse the repository at this point in the history
… of tests and the class comment for the autolinter.
  • Loading branch information
bdaase committed Jul 27, 2018
1 parent dc80fb5 commit b26f856
Show file tree
Hide file tree
Showing 29 changed files with 30 additions and 28 deletions.
@@ -0,0 +1,2 @@
I am responsible for the autolinting of your code. You can not open me by hand but can access me when clicking the "Start Autolinting" button, when running the default linter.
I will register on code changes and update the number of shown defects whenever a corresponding class is changed.
@@ -1,4 +1,4 @@
as yet unclassified
instance-creation
basicOn: classes with: tests calledBy: aSystemWindow reopens: aSLDialog

^ self new
Expand Down
@@ -1,4 +1,4 @@
as yet unclassified
instance-creation
on: classes with: tests calledBy: aSystemWindow reopens: aSLDialog

^ (self basicOn: classes with: tests calledBy: aSystemWindow reopens: aSLDialog)
Expand Down
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "BD 7/27/2018 19:09",
"instvars" : [
"classesSelected",
"testsSelected",
Expand Down
@@ -1 +1 @@
I contain some high-level tests for a very general assessment of source code quality.
I contain tests imported from the RB package which had to be adjusted.
@@ -1,4 +1,4 @@
as yet unclassified
classTests
classNameInSelector: aSLClassTestObject

<slTestName: 'Redundant class name in selector'
Expand Down
@@ -1,4 +1,4 @@
as yet unclassified
methodTests
classNameInSelectorMethod: aMethodTestObject

<slTestHidden: true
Expand Down
@@ -1,4 +1,4 @@
as yet unclassified
classTests
collectionProtocolRule: aSLClassTestObject

<slTestName: 'Uses do: instead of collect: or select:'
Expand Down
@@ -1,4 +1,4 @@
as yet unclassified
methodTests
collectionProtocolRuleMethod: aMethodTestObject

<slTestHidden: true
Expand Down
@@ -1,4 +1,4 @@
as yet unclassified
classTests
ifTrueReturnsRule: aSLClassTestObject

<slTestName: 'ifTrue:/ifFalse: returns instead of and:/or:''s'
Expand Down
@@ -1,4 +1,4 @@
as yet unclassified
methodTests
ifTrueReturnsRuleMethod: aMethodTestObject

<slTestHidden: true
Expand Down
@@ -1,4 +1,4 @@
as yet unclassified
classTests
instVarInAllSubclasses: aSLClassTestObject

<slTestName: 'Instance variable defined in all subclasses'
Expand Down
@@ -1,4 +1,4 @@
as yet unclassified
classTests
instanceVariableCapitalizationRule: aSLClassTestObject

<slTestName: 'Instance variable capitalization'
Expand Down
@@ -1,4 +1,4 @@
as yet unclassified
helper
lawOfDemeterAllowedSelectors

^#(#+ #- #* #/ #// #\\)
@@ -1,4 +1,4 @@
as yet unclassified
classTests
lawOfDemeterRule: aSLClassTestObject

<slTestName: 'Law of Demeter'
Expand Down
@@ -1,4 +1,4 @@
as yet unclassified
methodTests
lawOfDemeterRuleMethod: aMethodTestObject

<slTestHidden: true
Expand Down
@@ -1,4 +1,4 @@
as yet unclassified
classTests
longMethod: aSLClassTestObject

<slTestName: 'Long Methods (without empty lines)'
Expand Down
@@ -1,4 +1,4 @@
as yet unclassified
methodTests
longMethodMethod: aMethodTestObject

<slTestHidden: true
Expand Down
@@ -1,4 +1,4 @@
as yet unclassified
helper
longMethodSize

^10
@@ -1,4 +1,4 @@
as yet unclassified
classTests
precedenceRule: aSLClassTestObject

<slTestName: 'Possible occurences of A + B * C should be A + (B * C) (Precedence)'
Expand Down
@@ -1,4 +1,4 @@
as yet unclassified
methodTests
precedenceRuleMethod: aMethodTestObject

<slTestHidden: true
Expand Down
@@ -1,4 +1,4 @@
as yet unclassified
classTests
toDoCollectRule: aSLClassTestObject

<slTestName: 'to:do: doesn''t use collect:'
Expand Down
@@ -1,4 +1,4 @@
as yet unclassified
methodTests
toDoCollectRuleMethod: aMethodTestObject

<slTestHidden: true
Expand Down
@@ -1,4 +1,4 @@
as yet unclassified
classTests
toDoRule: aSLClassTestObject

<slTestName: 'Uses to:do: instead of do:, with:do:'
Expand Down
@@ -1,4 +1,4 @@
as yet unclassified
classTests
toDoRuleMethod: aMethodTestObject

<slTestHidden: true
Expand Down
@@ -1,4 +1,4 @@
as yet unclassified
classTests
unnecessaryAssignmentRule: aSLClassTestObject

"If you have an older Squeak version and run the unneccessary assignment rule, you wil get an ERROR result, which is the intended behavior. Thats because older Squeak versions (5.1 or older) do not support getting tempNames of an variable (CompiledMethod >> tempNames)"
Expand Down
@@ -1,4 +1,4 @@
as yet unclassified
methodTests
unnecessaryAssignmentRuleMethod: aMethodTestObject

<slTestHidden: true
Expand Down
@@ -1,4 +1,4 @@
as yet unclassified
classTests
unreferencedVariable: aSLClassTestObject

<slTestName: 'Unreferenced variables'
Expand Down
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
"ShowSwaMetricTests" ],
"commentStamp" : "<historical>",
"commentStamp" : "BD 7/27/2018 19:11",
"instvars" : [
"globalSloccount" ],
"name" : "SLRBImportPlugIn",
Expand Down

0 comments on commit b26f856

Please sign in to comment.