/** * Validate Modified Files Executor * * Validates that modified files don't exceed a maximum line count (default 900). * This encourages keeping files small and focused - when you touch a file, * you must bring it under the limit. * * Usage: * nx affected --target=validate-modified-files --base=origin/main * * Escape hatch: Add webpieces-disable max-lines-modified-files comment with date and justification * Format: // webpieces-disable max-lines-modified-files 2025/01/15 -- [reason] * The disable expires after 1 month from the date specified. */ import type { ExecutorContext } from '@nx/devkit'; export type FileMaxLimitMode = 'OFF' | 'MODIFIED_FILES'; export interface ValidateModifiedFilesOptions { limit?: number; mode?: FileMaxLimitMode; disableAllowed?: boolean; } export interface ExecutorResult { success: boolean; } export default function runExecutor(options: ValidateModifiedFilesOptions, context: ExecutorContext): Promise;