Skip to content

Analyser API should be improved #986

@Ducasse

Description

@Ducasse

Currently MicAnalysisReportWriter is invoking the analyser as follows:

reportForFolder: folderReference startingFrom: fileReference
	"I perform several analyses starting from a root document file reference (e.g. index.md)"

	"In the future we should have a better way to add analysis. "	
	| reporter checker validator |
	reporter := self new.

	checker := MicReferenceChecker new.
	checker fileSystem: folderReference.
	checker checkProject: fileReference.

	reporter addResults: checker results.

	validator := MicCodeBlockValidator new.
	checker fileSystem: folderReference.
	checker checkProject: fileReference.

	reporter addResults: validator results.
	^ reporter
  • we will need a better way to handler analyser registration
  • but also checkProject: is reparsing and recollecting all the files so we should provide another API so that we can pass simply an object tree representing the document.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions