LintWarningsGuideSource Class — supabase Architecture
Architecture documentation for the LintWarningsGuideSource class in lint-warnings-guide.ts from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/docs/scripts/search/sources/lint-warnings-guide.ts lines 80–116
export class LintWarningsGuideSource extends BaseSource {
type = 'markdown' as const
constructor(
source: string,
path: string,
public lint: {
path: string
content: string
originalPath: string
}
) {
super(source, path)
}
async process() {
this.checksum = createHash('sha256').update(this.lint.content).digest('base64')
this.meta = {
title: `Database Advisor: Lint ${this.lint.path}`,
}
this.sections = [
{
content: this.lint.content,
},
]
return { checksum: this.checksum, meta: this.meta, sections: this.sections }
}
extractIndexedContent(): string {
const sections = this.sections ?? []
const sectionText = sections.map(({ content }) => content).join('\n\n')
return `# Database Advisor: Lint ${this.lint.path}\n\nThis is a database lint rule for Supabase, targeting the lint ID ${this.lint.path}. Lint rules help enforce performance and security best practices for your Supabase database.\n\n${sectionText}`
}
}
Domain
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free