Use consistent naming patterns throughout the codebase. When adding new identifiers, follow existing patterns in similar contexts. This includes: 1. Consistent prefix/suffix patterns in related identifiers
Use consistent naming patterns throughout the codebase. When adding new identifiers, follow existing patterns in similar contexts. This includes:
Example of inconsistent naming:
// Inconsistent - mixing patterns
alwaysAllowReadOnly: true,
alwaysAllowWrite: true,
alwaysApproveResubmit: true, // Should be alwaysAllowResubmit
// Inconsistent casing
const getLmStudioModels = ...
const getLMStudioModels = ... // Inconsistent LM vs LM
// Inconsistent constant naming pattern
const SEARCH_MIN_SCORE = 0.4
const DEFAULT_MAX_SEARCH_RESULTS = 50 // Pattern mismatch
Corrected version:
// Consistent prefix pattern
alwaysAllowReadOnly: true,
alwaysAllowWrite: true,
alwaysAllowResubmit: true, // Follows established pattern
// Consistent casing
const getLMStudioModels = ... // Standardized on LM
const getLMStudioModels = ...
// Consistent constant naming pattern
const DEFAULT_SEARCH_MIN_SCORE = 0.4
const DEFAULT_MAX_SEARCH_RESULTS = 50 // Consistent pattern
When adding new identifiers:
Enter the URL of a public GitHub repository