parameters: (file_name, file_contents, solution_path)
docstring: Check license for given file name. Default ot open except it is in
      G_PROP_FILES list.
docstring_summary: Check license for given file name. Default ot open except it is in
      G_PROP_FILES list.
docstring_tokens: Check license for given file name . Default ot open except it is in G_PROP_FILES list .
function: def check_license_for_file(file_name, file_contents, solution_path):
      """
      Check license for given file name. Default ot open except it is in
      G_PROP_FILES list.
      """
  
      license_re = G_RE_LICENSE_TEMPLATE_OPEN
  
      for pattern in G_PROP_FILES:
          full_pattern = os.path.join(solution_path, pattern)
          if file_name.startswith(full_pattern):
              license_re = G_RE_LICENSE_TEMPLATE_PROP
              break
  
      if not check_specific_license_in_file(file_name, file_contents, license_re):
          common.log_warning("check_license_in_file", file_name, 1, "no valid license found")
function_tokens: def check_license_for_file ( file_name , file_contents , solution_path ) : license_re = G_RE_LICENSE_TEMPLATE_OPEN for pattern in G_PROP_FILES : full_pattern = os . path . join ( solution_path , pattern ) if file_name . startswith ( full_pattern ) : license_re = G_RE_LICENSE_TEMPLATE_PROP break if not check_specific_license_in_file ( file_name , file_contents , license_re ) : common . log_warning ( "check_license_in_file" , file_name , 1 , "no valid license found" )