Skip to content

Instantly share code, notes, and snippets.

@chisleu
Created June 17, 2025 01:57
Show Gist options
  • Select an option

  • Save chisleu/5177dad16c5c2b5d3cc7b26d80127bd5 to your computer and use it in GitHub Desktop.

Select an option

Save chisleu/5177dad16c5c2b5d3cc7b26d80127bd5 to your computer and use it in GitHub Desktop.

It is important for Cline to respect and honor the traditions of modularity and separation of concerns. To this effect, we have a hard limit of 500 lines max per file. If a file has reached that size, it almost certainly should have been multiple files to begin with. However, with even the best of planning; as software evolves and grows and the user's desire's change, this constraint will impact our workflows. As such, when we encounter a file that is more than 500 lines, we will refactor it into multiple files. Before making substinative additions to a file, we will examine it's file size using wc -l <filename>. We may discover that our new code will require refactoring. Thus it is important to plan ahead. After we make significant additions to a file, new or old, we will again check the file size to be sure it has not reached the limit of 500 lines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment