-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
143 changed files
with
804 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: CI | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request events on every branch | ||
on: [push, pull_request] | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
strategy: | ||
matrix: | ||
# Select platform(s) | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
# Select compatible Smalltalk image(s) | ||
smalltalk: [Squeak64-trunk, Squeak64-5.3, Squeak64-5.2, Squeak64-5.1] | ||
# The type of runner that the job will run on | ||
runs-on: ${{ matrix.os }} | ||
name: ${{ matrix.smalltalk }} on ${{ matrix.os }} | ||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
- name: Setup smalltalkCI | ||
uses: hpi-swa/setup-smalltalkCI@v1 | ||
with: | ||
smalltalk-version: ${{ matrix.smalltalk }} | ||
- name: Test MorphicAPIExplorer | ||
run: smalltalkci -s ${{ matrix.smalltalk }} | ||
shell: bash | ||
timeout-minutes: 15 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Linter | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request events on every branch | ||
on: [push, pull_request] | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
name: Squeak64-5.3 on ubuntu-latest | ||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
- name: Setup smalltalkCI | ||
uses: hpi-swa/setup-smalltalkCI@v1 | ||
with: | ||
smalltalk-version: Squeak64-5.3 | ||
- name: Test MorphicAPIExplorer | ||
run: smalltalkci -s Squeak64-5.3 .linter.ston | ||
shell: bash | ||
timeout-minutes: 15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
SmalltalkCISpec { | ||
#preLoading : 'scripts/preLoading.st', | ||
#loading : [ | ||
SCIMetacelloLoadSpec { | ||
#baseline : 'MorphicAPIExplorer', | ||
#directory : 'packages', | ||
#load : 'tests', | ||
#platforms : [ #squeak ] | ||
} | ||
], | ||
#testing : { | ||
#classes : [ #MEXLinter ] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
SmalltalkCISpec { | ||
#preLoading : 'scripts/preLoading.st', | ||
#loading : [ | ||
SCIMetacelloLoadSpec { | ||
#baseline : 'MorphicAPIExplorer', | ||
#platforms : [ #squeak ], | ||
#directory : 'packages', | ||
#load : [ 'tests' ] | ||
#load : 'tests' | ||
} | ||
] | ||
], | ||
#testing : { | ||
#exclude : { | ||
#classes : [ #MEXLinter ] | ||
}, | ||
#coverage : { | ||
#packages : [ 'MorphicAPIExplorer-Core.*' ] | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...elineOfMorphicAPIExplorer.package/BaselineOfMorphicAPIExplorer.class/instance/postLoad.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
baseline | ||
postLoad | ||
|
||
(Smalltalk globals at: #SwaLint) perform: #install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/MorphicAPIExplorer-Core.package/MEXMethod.class/instance/splitMethodOnParameters.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
creation | ||
splitMethodOnParameters | ||
|
||
^ self name findTokens: #: | ||
^ self name findTokens: $: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
packages/MorphicAPIExplorer-Tests.package/MEXLinter.class/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
I'm the class that is used to test the package 'MorphicAPIExplorer-Core' with the linting rules provided by SwaLint and in accordance with the coding standards. Apart from being your typical linter class for squeak, I don't offer any other functionality. | ||
|
||
Instance Variables | ||
classes: A Collection of classes that are supposed to be checked by the linting rules |
4 changes: 4 additions & 0 deletions
4
packages/MorphicAPIExplorer-Tests.package/MEXLinter.class/class/mexCorePackage.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
packages | ||
mexCorePackage | ||
|
||
^ self namedPackage: 'MorphicAPIExplorer-Core' |
4 changes: 4 additions & 0 deletions
4
packages/MorphicAPIExplorer-Tests.package/MEXLinter.class/class/mexTestsPackage.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
packages | ||
mexTestsPackage | ||
|
||
^ self namedPackage: 'MorphicAPIExplorer-Tests' |
4 changes: 4 additions & 0 deletions
4
packages/MorphicAPIExplorer-Tests.package/MEXLinter.class/class/namedPackage..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
packages | ||
namedPackage: aString | ||
|
||
^ PackageOrganizer default packageNamed: aString ifAbsent: [self error: aString , ' package is missing'] |
4 changes: 4 additions & 0 deletions
4
...MorphicAPIExplorer-Tests.package/MEXLinter.class/instance/assertAll.areBelowThreshold..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
testing-utils | ||
assertAll: aCollectionOfNumbers areBelowThreshold: aNumber | ||
|
||
self assert: (aCollectionOfNumbers allSatisfy: [:each | each < aNumber]) |
4 changes: 4 additions & 0 deletions
4
packages/MorphicAPIExplorer-Tests.package/MEXLinter.class/instance/assertAll.areEqualTo..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
testing-utils | ||
assertAll: aCollectionOfObjects areEqualTo: anObject | ||
|
||
self assert: (aCollectionOfObjects allSatisfy: [:each | each = anObject]) |
4 changes: 4 additions & 0 deletions
4
.../MorphicAPIExplorer-Tests.package/MEXLinter.class/instance/assertAll.areOverThreshold..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
testing-utils | ||
assertAll: aCollectionOfNumbers areOverThreshold: aNumber | ||
|
||
self assert: (aCollectionOfNumbers allSatisfy: [:each | each > aNumber]) |
4 changes: 4 additions & 0 deletions
4
packages/MorphicAPIExplorer-Tests.package/MEXLinter.class/instance/assertAllAreFalse..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
testing-utils | ||
assertAllAreFalse: aCollectionOfBooleans | ||
|
||
self assertAll: aCollectionOfBooleans areEqualTo: false |
4 changes: 4 additions & 0 deletions
4
packages/MorphicAPIExplorer-Tests.package/MEXLinter.class/instance/assertAllAreZero..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
testing-utils | ||
assertAllAreZero: aCollectionOfNumbers | ||
|
||
self assertAll: aCollectionOfNumbers areEqualTo: 0 |
5 changes: 5 additions & 0 deletions
5
packages/MorphicAPIExplorer-Tests.package/MEXLinter.class/instance/brokenTestBrainMethod.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
test-for-disharmonies | ||
brokenTestBrainMethod | ||
"wrong SL Type" | ||
|
||
self assertAllAreFalse: (self runLinterRule: #brainMethod:) |
5 changes: 5 additions & 0 deletions
5
.../MorphicAPIExplorer-Tests.package/MEXLinter.class/instance/brokenTestDispersedCoupling.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
test-for-disharmonies | ||
brokenTestDispersedCoupling | ||
"wrong SL Type" | ||
|
||
self assertAllAreFalse: (self runLinterRule: #dispersedCoupling:) |
5 changes: 5 additions & 0 deletions
5
packages/MorphicAPIExplorer-Tests.package/MEXLinter.class/instance/brokenTestFeatureEnvy.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
test-for-disharmonies | ||
brokenTestFeatureEnvy | ||
"wrong SL Type" | ||
|
||
self assertAllAreFalse: (self runLinterRule: #featureEnvy:) |
5 changes: 5 additions & 0 deletions
5
...er-Tests.package/MEXLinter.class/instance/brokenTestInstanceVariablesNotReadAndWritten.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
test-unnecessary-code | ||
brokenTestInstanceVariablesNotReadAndWritten | ||
"literally broken" | ||
|
||
self assertAllAreZero: (self runLinterRule: #smallLintOnlyReadOrWrittenVariable) |
5 changes: 5 additions & 0 deletions
5
.../MorphicAPIExplorer-Tests.package/MEXLinter.class/instance/brokenTestIntensiveCoupling.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
test-for-disharmonies | ||
brokenTestIntensiveCoupling | ||
"wrong SL Type" | ||
|
||
self assertAllAreFalse: (self runLinterRule: #intensiveCoupling:) |
5 changes: 5 additions & 0 deletions
5
...ages/MorphicAPIExplorer-Tests.package/MEXLinter.class/instance/brokenTestLiteralValues.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
test-for-spelling | ||
brokenTestLiteralValues | ||
"literally inherently broken" | ||
|
||
self assertAllAreZero: (self runLinterRule: #smallLintLiteralValuesSpelling) |
5 changes: 5 additions & 0 deletions
5
...es/MorphicAPIExplorer-Tests.package/MEXLinter.class/instance/brokenTestMethodSelectors.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
test-for-spelling | ||
brokenTestMethodSelectors | ||
"literally inherently broken" | ||
|
||
self assertAllAreZero: (self runLinterRule: #smallLintMethodSelectorsSpelling) |
5 changes: 5 additions & 0 deletions
5
...orphicAPIExplorer-Tests.package/MEXLinter.class/instance/brokenTestNamespaceSimulation.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
test-for-coding-styles | ||
brokenTestNamespaceSimulation | ||
"wrong SL Type" | ||
|
||
self assertAllAreZero: (self runLinterRule: #namespaceSimulation:) |
5 changes: 5 additions & 0 deletions
5
...ges/MorphicAPIExplorer-Tests.package/MEXLinter.class/instance/brokenTestShotgunSurgery.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
test-for-disharmonies | ||
brokenTestShotgunSurgery | ||
"wrong SL Type" | ||
|
||
self assertAllAreFalse: (self runLinterRule: #shotgunSurgery:) |
5 changes: 5 additions & 0 deletions
5
...hicAPIExplorer-Tests.package/MEXLinter.class/instance/brokenTestSignificantDuplication.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
test-for-disharmonies | ||
brokenTestSignificantDuplication | ||
"wrong SL Type" | ||
|
||
self assertAllAreFalse: (self runLinterRule: #significantDuplication:) |
5 changes: 5 additions & 0 deletions
5
...s/MorphicAPIExplorer-Tests.package/MEXLinter.class/instance/brokenTestTraditionBreaker.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
test-for-disharmonies | ||
brokenTestTraditionBreaker | ||
"literally doesn't work" | ||
|
||
self assertAllAreFalse: (self runLinterRule: #traditionBreaker:) |
4 changes: 4 additions & 0 deletions
4
...lorer-Tests.package/MEXLinter.class/instance/brokenVariableIsOnlyAssignedALiteralValue.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
test-for-miscellaneous | ||
brokenVariableIsOnlyAssignedALiteralValue | ||
|
||
self assertAllAreZero: (self runLinterRule: #smallLintVariableAssignedLiteral) |
4 changes: 4 additions & 0 deletions
4
packages/MorphicAPIExplorer-Tests.package/MEXLinter.class/instance/classes..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
classes: aCollection | ||
|
||
classes := aCollection |
4 changes: 4 additions & 0 deletions
4
packages/MorphicAPIExplorer-Tests.package/MEXLinter.class/instance/classes.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
classes | ||
|
||
^ classes |
4 changes: 4 additions & 0 deletions
4
packages/MorphicAPIExplorer-Tests.package/MEXLinter.class/instance/defaultTimeout.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
test-for-spelling | ||
defaultTimeout | ||
|
||
^ 30 "seconds" |
5 changes: 5 additions & 0 deletions
5
packages/MorphicAPIExplorer-Tests.package/MEXLinter.class/instance/dontTestClassComments.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
test-for-spelling | ||
dontTestClassComments | ||
"triggers even when we can't find any spelling mistakes so we're taking it out" | ||
|
||
self assertAllAreZero: (self runLinterRule: #smallLintClassCommentsSpelling) |
5 changes: 5 additions & 0 deletions
5
...cAPIExplorer-Tests.package/MEXLinter.class/instance/dontTestExcessiveNumberOfArguments.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
test-for-miscellaneous | ||
dontTestExcessiveNumberOfArguments | ||
"This triggers for the buildButtonWith:label:action:help:enabled: method, which does have many names, but only because buttons have so many properties." | ||
|
||
self assertAllAreZero: (self runLinterRule: #smallLintExcessiveArguments) |
5 changes: 5 additions & 0 deletions
5
...hicAPIExplorer-Tests.package/MEXLinter.class/instance/dontTestExcessiveNumberOfMethods.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
test-for-miscellaneous | ||
dontTestExcessiveNumberOfMethods | ||
"Turns out, the CRLinter has quite a big number of statements." | ||
|
||
self assertAllAreZero: (self runLinterRule: #smallLintExcessiveMethods) |
5 changes: 5 additions & 0 deletions
5
packages/MorphicAPIExplorer-Tests.package/MEXLinter.class/instance/dontTestLawOfDemeter.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
test-for-intention-revealing | ||
dontTestLawOfDemeter | ||
"Incorrectly triggers when chaining multiple collection protocol methods." | ||
|
||
self assertAllAreZero: (self runLinterRule: #lawOfDemeterRule:) |
5 changes: 5 additions & 0 deletions
5
packages/MorphicAPIExplorer-Tests.package/MEXLinter.class/instance/dontTestLongMethods.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
test-for-coding-styles | ||
dontTestLongMethods | ||
"this one sucks because we can't really do something about it" | ||
|
||
self assertAllAreZero: (self runLinterRule: #longMethods:) |
5 changes: 5 additions & 0 deletions
5
...icAPIExplorer-Tests.package/MEXLinter.class/instance/dontTestLongMethodsOnlyStatements.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
test-for-coding-styles | ||
dontTestLongMethodsOnlyStatements | ||
"Some methods, like testSetItemSelectionAtTo have more than 10 statements and that's fine." | ||
|
||
self assertAllAreZero: (self runLinterRule: #longMethod:) |
Oops, something went wrong.