Skip to content

Feature/vocabulary#1012

Open
Fanirindrainy wants to merge 3 commits intopillar-markup:devfrom
Fanirindrainy:feature/vocabulary
Open

Feature/vocabulary#1012
Fanirindrainy wants to merge 3 commits intopillar-markup:devfrom
Fanirindrainy:feature/vocabulary

Conversation

@Fanirindrainy
Copy link

No description provided.

@Ducasse
Copy link
Contributor

Ducasse commented Mar 21, 2026

Oh excellent it will be easier to plug checkers configurations this way.

{ #category : 'running' }
MiCheckerEngineTest >> testEngineWithUnknownChecker [
| config results |
config := OrderedDictionary new.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes this is good to check that wrong input in checker name.

MicChecker allSubclasses do: [ :aClass |
| instance |
instance := aClass new.
(instance respondsTo: #checkerName) ifTrue: [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should make sure that all checkers inherit from MicChecker and that it implements on the class side the method checkerName.
By default it can return 'UnamedChecker'
This way we can avoid the

instance := aClass new 
and respondsTo: 

In Pharo class methods are dynamically looked up :)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah ok :)

]

{ #category : 'as yet unclassified' }
MicVocabularyChecker >> configureFrom: aConfiguration [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May be should check that we get an collection and not a boolean

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants