BUCKYVERSE

Codexis Builder Modules Audit

This document lists all builder modules in the codebase as of the audit start. Update this list as new modules are discovered or added.

Standard Compliance Checklist for Builder Modules

To bring any builder module into compliance with Codexis core utility and path handling standards, perform the following steps:

  1. Replace All Direct File Operations
    • Replace File.mkdir_p! with FileManager.ensure_dir
    • Replace File.exists? with FileManager.exists? (or equivalent)
    • Replace File.stat with FileManager.stat (or equivalent)
    • Replace File.read!/File.read with FileManager.read_file
    • Replace File.write!/File.write with FileManager.write_file
    • Replace File.ls with FileManager.list_dir (or equivalent)
    • Replace File.cp, File.cp!, File.cp_r with FileManager.copy or FileManager.copy_directory
  2. Replace All Direct Path Operations
    • Replace all uses of Path, Path.join, Path.basename, Path.dirname, Path.wildcard, etc. with PathBuilder equivalents
  3. Add TODOs for Missing Core Utility Equivalents
    • For any file or path operation without a direct core utility equivalent, add a TODO comment and document in the audit
  4. Update Error Handling and Logging
    • Ensure all file/path operation errors are handled and logged via the Builder interface
    • Use tagged tuples and user-friendly, color-coded messages as per error handling standards
  5. Refactor Tests to Use Patch
    • Update all tests to use Patch for mocking file and path operations
  6. Update Audit and Documentation
    • Update this audit document and any relevant developer documentation to reflect the current state after each refactor step
    • Document any remaining TODOs or gaps in core utilities
  7. Verify and Run Tests
    • Run the test suite to ensure all changes are covered and passing

Repeat this checklist for every builder module to ensure full compliance with Codexis standards.

Builder Modules

Notes


Audit: Codexis.Builders.MarkdownBuilder

Direct File operations:

Direct Path operations:

PathBuilder usage:

FileManager usage:

Notes:


Audit: Codexis.Builders.HTMLBuilder

Direct File operations:

Direct Path operations:

PathBuilder usage:

FileManager usage:

Notes:


Audit: Codexis.Builders.EPUBBuilder

Direct File operations:

Direct Path operations:

PathBuilder usage:

FileManager usage:

Notes:


Audit: Codexis.Builders.PDFBuilder

Direct File operations:

Direct Path operations:

PathBuilder usage:

FileManager usage:

Notes:


Audit: Codexis.Builders.WikiJSBuilder

Direct File operations:

Direct Path operations:

PathBuilder usage:

FileManager usage:

Notes:


Audit: Codexis.Builders.RTFBuilder

Direct File operations:

Direct Path operations:

PathBuilder usage:

FileManager usage:

Notes:


Audit: Codexis.Builders.DOCXBuilder

Direct File operations:

Direct Path operations:

PathBuilder usage:

FileManager usage:

Notes:


Audit: Codexis.Builders.HtmlToMarkdownBuilder

Direct File operations:

Direct Path operations:

PathBuilder usage:

FileManager usage:

Notes:


Audit: Codexis.Builders.LaTeXToHTMLConverter

Direct File operations:

Direct Path operations:

PathBuilder usage:

FileManager usage:

Notes: