UNPKG

sfcoe-ailabs

Version:

AI-powered code review tool with static analysis integration for comprehensive code quality assessment.

53 lines (52 loc) 2.08 kB
import type { DocuSignIssue, TableEntry } from './index.js'; /** * Utility class for Docusign-specific code analysis rules */ export declare class DocuSignRuleUtils { /** * Check if file uses old test framework * * @param content - The file content to analyze * @returns True if the file uses old test framework patterns */ static hasOldTestFramework(content: string): boolean; /** * Check if file uses Schema.getGlobalDescribe() * * @param content - The file content to analyze * @returns Array of Docusign issues found related to Schema.getGlobalDescribe() usage */ static hasGlobalDescribeUsage(content: string): DocuSignIssue[]; /** * Get Docusign issues for a specific file * * @param filePath - The path of the file being analyzed * @param content - The content of the file to analyze * @returns Array of Docusign-specific issues found in the file */ static getDocuSignIssuesForFile(filePath: string, content: string): DocuSignIssue[]; /** * Create JavaScript-specific table entries for common issues * * @param fileName - The name of the JavaScript file being analyzed * @param content - The content of the file to analyze * @param addedEntries - Set of already processed entry keys to avoid duplicates * @returns Array of table entries for JavaScript-specific issues found */ static createJavaScriptTableEntries(fileName: string, content: string, addedEntries: Set<string>): TableEntry[]; /** * Extract rule type from hint ruleId * * @param ruleId - The rule identifier to extract type from * @returns The rule type category */ static extractRuleType(ruleId: string): string; /** * Get suggested fix for JavaScript rules * * @param ruleId - The rule identifier to get fix for * @param message - The rule message for context * @returns Suggested fix description for the rule */ static getSuggestedFixForJavaScript(ruleId: string, message: string): string; }