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