parameters: (src)
return_statement: return bad
docstring: Check the source directory if it passes the criteria for a valid
      build. This means all files should be utf8 with a bom and all language
      strings present in the sources should be present in all the language
      files
docstring_summary: Check the source directory if it passes the criteria for a valid
      build. This means all files should be utf8 with a bom and all language
      strings present in the sources should be present in all the language
      files
docstring_tokens: Check the source directory if it passes the criteria for a valid build . This means all files should be utf8 with a bom and all language strings present in the sources should be present in all the language files
function: def _get_bad_encoding_files(src):
      """Check the source directory if it passes the criteria for a valid
      build. This means all files should be utf8 with a bom and all language
      strings present in the sources should be present in all the language
      files"""
      files = os.walk(src)
      
      bad = []
      for base, dirs, files in os.walk(src):
          for file in [f for f in files if f.endswith(_text_exts)]:
              abs = os.path.join(base, file)
              if not _is_utf8(abs): bad.append(abs)
              
      return bad
function_tokens: def _get_bad_encoding_files ( src ) : files = os . walk ( src ) bad = [ ] for base , dirs , files in os . walk ( src ) : for file in [ f for f in files if f . endswith ( _text_exts ) ] : abs = os . path . join ( base , file ) if not _is_utf8 ( abs ) : bad . append ( abs ) return bad