When one file is coupled or dependent on many other files, it is called as file coupling. The dependency can be in the form of variables or functions. This applies to only those file-level variables or functions.
- Higher coupling with other files makes the code fragile. This is because the changes in other files may impact the concerned file and its logic.
- The file is dependent on multiple other files making it heavily coupled.
- Try to refactor the code so that the file is dependent on fewer files.
- The threshold value is 10.