Home / Function/ createLintSummaryPrompt() — supabase Function Reference

createLintSummaryPrompt() — supabase Function Reference

Architecture documentation for the createLintSummaryPrompt() function in Linter.utils.tsx from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  a3fe7559_687a_ec25_9f22_e4770d80ac7e["createLintSummaryPrompt()"]
  8b8529fc_0b3c_e7bb_2e51_afd3b341b35f["LintDetail()"]
  8b8529fc_0b3c_e7bb_2e51_afd3b341b35f -->|calls| a3fe7559_687a_ec25_9f22_e4770d80ac7e
  style a3fe7559_687a_ec25_9f22_e4770d80ac7e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/studio/components/interfaces/Linter/Linter.utils.tsx lines 397–415

export const createLintSummaryPrompt = (lint: Lint) => {
  const title = lintInfoMap.find((item) => item.name === lint.name)?.title ?? lint.title
  const entity =
    (lint.metadata &&
      (lint.metadata.entity ||
        (lint.metadata.schema &&
          lint.metadata.name &&
          `${lint.metadata.schema}.${lint.metadata.name}`))) ||
    'N/A'
  const schema = lint.metadata?.schema ?? 'N/A'
  const issue = lint.detail ? lint.detail.replace(/\\`/g, '`') : 'N/A'
  const description = lint.description ? lint.description.replace(/\\`/g, '`') : 'N/A'
  return `Summarize the issue and suggest fixes for the following lint item:
Title: ${title}
Entity: ${entity}
Schema: ${schema}
Issue Details: ${issue}
Description: ${description}`
}

Subdomains

Called By

Frequently Asked Questions

What does createLintSummaryPrompt() do?
createLintSummaryPrompt() is a function in the supabase codebase.
What calls createLintSummaryPrompt()?
createLintSummaryPrompt() is called by 1 function(s): LintDetail.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free