import type { CheckTarget } from "../../lib/check";
import { MODULE_PATHS } from "../../lib/paths";
import { MODULE_SCHEMAS } from "../schemas";

export function buildModuleCheckTargets(root: string): CheckTarget[] {
  return [
    {
      glob: `${root}/[a-zA-Z]*/${MODULE_PATHS.docs.feature}/*.md`,
      schemaPath: MODULE_SCHEMAS.feature,
    },
    {
      glob: `${root}/[a-zA-Z]*/${MODULE_PATHS.docs.command}/*.md`,
      schemaPath: MODULE_SCHEMAS.command,
    },
    { glob: `${root}/[a-zA-Z]*/${MODULE_PATHS.docs.model}/*.md`, schemaPath: MODULE_SCHEMAS.model },
    { glob: `${root}/[a-zA-Z]*/${MODULE_PATHS.docs.query}/*.md`, schemaPath: MODULE_SCHEMAS.query },
    { glob: `${root}/[a-zA-Z]*/README.md`, schemaPath: MODULE_SCHEMAS.module },
  ];
}
