dsi-clinic / cocoa

Clinic Opinionated Codebase Oversight and Analysis
1 stars 0 forks source link

Test/fix linting.is_code_in_functions_or_main #22

Closed timhannifan closed 4 months ago

timhannifan commented 4 months ago

This function is falsely flagging some files as not properly encapsulated. For example, test it on the the current linting.py file, is_code_in_functions_or_main returns false when it should return true.

After some initial digging, I see that the docstrings at the top of the file are causing an issue. If you comment out those lines, the function returns true.

timhannifan commented 4 months ago

Fixed in #25