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
. 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.