Package org.machanism.machai.gw.reviewer
Class MarkdownReviewer
java.lang.Object
org.machanism.machai.gw.reviewer.MarkdownReviewer
- All Implemented Interfaces:
Reviewer
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MarkdownReviewer
public MarkdownReviewer()
-
-
Method Details
-
getSupportedFileExtensions
Returns the file extensions supported by this reviewer.- Specified by:
getSupportedFileExtensionsin interfaceReviewer- Returns:
- an array containing
"md"
-
perform
Reviews the given Markdown file and returns a formatted prompt fragment when guidance is present.- Specified by:
performin interfaceReviewer- Parameters:
projectDir- the project root directory used to compute a project-relative path for contextguidancesFile- the Markdown file to analyze- Returns:
- a formatted prompt fragment, or
nullwhen the file does not contain guidance - Throws:
IOException- if an error occurs while reading the file
-