Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/Microdown-BookTester/MicAnchorResult.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ MicAnchorResult >> explanation [

]

{ #category : 'accessing' }
MicAnchorResult >> headerString [

^ 'Anchor'
]

{ #category : 'accessing' }
MicAnchorResult >> isWhat [
^ 'anchor problem'
Expand Down
6 changes: 6 additions & 0 deletions src/Microdown-BookTester/MicBookTestResult.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ MicBookTestResult >> fragmentedText: aText [
fragmentedText := aText
]

{ #category : 'accessing' }
MicBookTestResult >> headerString [

^ 'Book Test'
]

{ #category : 'initialization' }
MicBookTestResult >> initialize [

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ MicBrokenSyncDefinitionResult >> explanation [
^ 'The sync definition has the following broken value: ', syncValue, ' .'
]

{ #category : 'initialization' }
MicBrokenSyncDefinitionResult >> headerString [

^ 'Broken Sync Definition'
]

{ #category : 'initialization' }
MicBrokenSyncDefinitionResult >> initialize [

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ MicBrokenSyncOriginDefinitionResult >> explanation [
^ 'The sync origin in the definition is bogus it should be C [class]>> #selector and we get: ', origin
]

{ #category : 'kinds' }
MicBrokenSyncOriginDefinitionResult >> headerString [

^ 'Broken Sync Origin Definition'
]

{ #category : 'initialization' }
MicBrokenSyncOriginDefinitionResult >> initialize [
super initialize.
Expand Down
2 changes: 0 additions & 2 deletions src/Microdown-BookTester/MicChecker.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ MicChecker >> isOkay [
]

{ #category : 'accessing' }

MicChecker >> reportWriter [

^ reportWriter
Expand All @@ -142,7 +141,6 @@ MicChecker >> resultHeaderStrings [
]

{ #category : 'visiting' }

MicChecker >> results [

^ results
Expand Down
27 changes: 13 additions & 14 deletions src/Microdown-BookTester/MicCheckerDashboard.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,19 @@ Class {
#tag : 'UI'
}

{ #category : 'examples' }
MicCheckerDashboard class >> example [

<script>
self new open
]

{ #category : 'initialization' }
MicCheckerDashboard >> checkerClasses [

^ MicChecker allSubclasses reject: [ :cls | cls isAbstract ]

]

{ #category : 'accessing' }
MicCheckerDashboard >> checkerList [
Expand All @@ -42,20 +55,6 @@ MicCheckerDashboard >> checkerResults: aDict [
checkerResults:= aDict
]

{ #category : 'examples' }
MicCheckerDashboard class >> example [

<script>
self new open
]

{ #category : 'initialization' }
MicCheckerDashboard >> checkerClasses [

^ MicChecker allSubclasses reject: [ :cls | cls isAbstract ]

]

{ #category : 'initialization' }
MicCheckerDashboard >> connectPresenters [
checkerList presenters do: [ :cb |
Expand Down
6 changes: 6 additions & 0 deletions src/Microdown-BookTester/MicCodeIndentationResult.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,9 @@ MicCodeIndentationResult >> explanation [
, detail
, '] should use tabs instead of spaces for indentation.'
]

{ #category : 'kinds' }
MicCodeIndentationResult >> headerString [

^ 'Code Indentation'
]
6 changes: 6 additions & 0 deletions src/Microdown-BookTester/MicDesynchronizedCodeResult.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ MicDesynchronizedCodeResult >> explanation [
^ 'The code block body of ', originString , ' is not in sync with the version in Pharo ', pharoVersion, 'in file: ', self inFile fullName
]

{ #category : 'kinds' }
MicDesynchronizedCodeResult >> headerString [

^ 'Desynchronized Code'
]

{ #category : 'accessing' }
MicDesynchronizedCodeResult >> imageContent: aString [
imageContents := aString
Expand Down
6 changes: 6 additions & 0 deletions src/Microdown-BookTester/MicDoublePeriodResult.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ MicDoublePeriodResult >> explanation [

^ 'Text: "' , micElement text , '" in file' , self inFile fullName , ' contains two periods.'
]

{ #category : 'accessing' }
MicDoublePeriodResult >> headerString [

^ 'Double Period'
]
6 changes: 6 additions & 0 deletions src/Microdown-BookTester/MicDuplicatedAnchorResult.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ MicDuplicatedAnchorResult class >> headerString [
^ 'Duplicated Anchors:'
]

{ #category : 'accessing' }
MicDuplicatedAnchorResult >> headerString [

^ 'Duplicated Anchor'
]

{ #category : 'accessing' }
MicDuplicatedAnchorResult >> isWhat [
^ 'duplicated'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ Class {
MicElementAfterColonIsNotCapitalizedResult >> explanation [
^ 'Header: "' , micElement text , '" in file' , self inFile fullName , ' contains a mistake: ', detail , ' as first letter after a colon should be uppercased.'
]

{ #category : 'kinds' }
MicElementAfterColonIsNotCapitalizedResult >> headerString [

^ 'Element After Conolis Not Capitalized'
]
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ Class {
MicElementOfHeaderIsNotCapitalizedResult >> explanation [
^ 'Header: "' , micElement text , '" in file' , self inFile fullName , ' contains a mistake: ' , detail , ' should be capitalized.'
]

{ #category : 'kinds' }
MicElementOfHeaderIsNotCapitalizedResult >> headerString [

^ 'Element Of Header Is Not Capitalized'
]
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,9 @@ MicFirstElementOfHeaderIsNotCapitalizedResult >> explanation [
^ 'Header: "' , micElement text , '" in file' , self inFile fullName , ' contains a mistake: ', detail, ' as first word of the header should be uppercased.'

]

{ #category : 'kinds' }
MicFirstElementOfHeaderIsNotCapitalizedResult >> headerString [

^ 'First Element Of Header Is Not Capitalized'
]
6 changes: 6 additions & 0 deletions src/Microdown-BookTester/MicFrenchTypographyResult.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,9 @@ MicFrenchTypographyResult >> explanation [
, '" in file' , self inFile fullName
, ' contains a mistake: ' , detail
]

{ #category : 'kinds' }
MicFrenchTypographyResult >> headerString [

^ 'French Typography'
]
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,9 @@ MicHeaderWronglyLowercasedResult >> explanation [
^ 'Header: "' , micElement text , '" in file' , self inFile fullName , ' contains a mistake: ', detail, ' should not be lowercased.'

]

{ #category : 'kinds' }
MicHeaderWronglyLowercasedResult >> headerString [

^ 'Header Wrongly Lowercased'
]
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,9 @@ MicHeaderWronglyUppercasedResult >> explanation [
^ 'Header: "' , micElement text , '" in file' , self inFile fullName , ' contains a mistake: ', detail, ' should not be uppercased.'

]

{ #category : 'kinds' }
MicHeaderWronglyUppercasedResult >> headerString [

^ 'Header Wrongly Uppercased'
]
6 changes: 6 additions & 0 deletions src/Microdown-BookTester/MicLastPeriodResult.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,9 @@ MicLastPeriodResult >> codeShouldEndWithPeriod: aBoolean [

codeShouldEndWithPeriod := aBoolean
]

{ #category : 'kinds' }
MicLastPeriodResult >> headerString [

^ 'Last Period'
]
6 changes: 6 additions & 0 deletions src/Microdown-BookTester/MicMethodReferenceResult.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,9 @@ MicMethodReferenceResult >> explanation [
, '" in file' , self inFile fullName
, ' contains a mistake: method references must be consistent, either always with # or always without #.'
]

{ #category : 'kinds' }
MicMethodReferenceResult >> headerString [

^ 'Method Reference'
]
6 changes: 6 additions & 0 deletions src/Microdown-BookTester/MicMethodStructureResult.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,9 @@ MicMethodStructureResult >> explanation [
, detail
, '] should have an empty line after the selector when is no comment.'
]

{ #category : 'kinds' }
MicMethodStructureResult >> headerString [

^ 'Method Structure'
]
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,9 @@ MicMissingFigureCaptionResult >> figure [
MicMissingFigureCaptionResult >> figure: aFigure [
figure := aFigure
]

{ #category : 'kinds' }
MicMissingFigureCaptionResult >> headerString [

^ 'Missing Figure Caption'
]
6 changes: 6 additions & 0 deletions src/Microdown-BookTester/MicParagraphLabelResult.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ MicParagraphLabelResult >> explanation [
), 'be terminated with a period (.).'
]

{ #category : 'kinds' }
MicParagraphLabelResult >> headerString [

^ 'Paragraph Label'
]

{ #category : 'accessing' }
MicParagraphLabelResult >> labelShouldEndWithPeriod: aBoolean [

Expand Down
6 changes: 6 additions & 0 deletions src/Microdown-BookTester/MicPeriodInCodeResult.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,9 @@ MicPeriodInCodeResult >> explanation [
ifFalse: [ ' not ' ]
ifTrue: [ ' ' ]) , 'be terminated with a period (.).'
]

{ #category : 'explanation' }
MicPeriodInCodeResult >> headerString [

^ 'Period Code'
]
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ MicReferenceToUnexistingAnchorResult class >> headerString [
^ 'Undefined Anchors:'
]

{ #category : 'accessing' }
MicReferenceToUnexistingAnchorResult >> headerString [

^ 'Reference To Unexisting Anchor'
]

{ #category : 'accessing' }
MicReferenceToUnexistingAnchorResult >> isWhat [
^ 'undefined'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ MicUndefinedFigureFileResult >> figureFileString: aString [
figureFileString := aString
]

{ #category : 'accessing' }
MicUndefinedFigureFileResult >> headerString [

^ 'Underfined Figure File'
]

{ #category : 'accessing' }
MicUndefinedFigureFileResult >> what [

Expand Down
6 changes: 6 additions & 0 deletions src/Microdown-BookTester/MicUndefinedInputFileResult.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ MicUndefinedInputFileResult >> explanation [

]

{ #category : 'kinds' }
MicUndefinedInputFileResult >> headerString [

^ 'Undefined Input File'
]

{ #category : 'inputFileBlock:' }
MicUndefinedInputFileResult >> inputFile [

Expand Down
6 changes: 6 additions & 0 deletions src/Microdown-BookTester/MicUnreferencedFigureResult.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ MicUnreferencedFigureResult >> figurePath: aString [
figurePath := aString
]

{ #category : 'kinds' }
MicUnreferencedFigureResult >> headerString [

^ 'Unreferenced Figure'
]

{ #category : 'accessing' }
MicUnreferencedFigureResult >> what [

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ MicUseofWrongVocabularyResult >> explanation [
, '] should not be used. We should use ' , goodWord
]

{ #category : 'kinds' }
MicUseofWrongVocabularyResult >> headerString [

^ 'USe of Wrong Vocabulary'
]

{ #category : 'accessing' }
MicUseofWrongVocabularyResult >> patternPair: anAssociation [
patternPair := anAssociation
Expand Down
6 changes: 6 additions & 0 deletions src/Microdown-BookTester/MicWithDetailResult.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ MicWithDetailResult >> detail: aString [
detail := aString
]

{ #category : 'kinds' }
MicWithDetailResult >> headerString [

^ 'With detail'
]

{ #category : 'printing' }
MicWithDetailResult >> printOn: aStream [

Expand Down
6 changes: 6 additions & 0 deletions src/Microdown-BookTester/MicWrongCaseFileResult.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ MicWrongCaseFileResult >> figureFileString: aString [
figureFileString := aString
]

{ #category : 'kinds' }
MicWrongCaseFileResult >> headerString [

^ 'Wrong Case File'
]

{ #category : 'accessing' }
MicWrongCaseFileResult >> what [
^ figureFileString
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ MicWrongReferenceToFigSectTableAnchorResult >> explanation [
, expected , '].'
]

{ #category : 'kinds' }
MicWrongReferenceToFigSectTableAnchorResult >> headerString [

^ 'Wrong Reference To Fig Sect Table Anchor'
]

{ #category : 'accessing' }
MicWrongReferenceToFigSectTableAnchorResult >> micElement: anObject [
micElement := anObject
Expand Down
Loading