code: def hacking_has_correct_license(physical_line, filename, lines, line_number):
      
      # don't work about init files for now
      # TODO(sdague): enforce license in init file if it's not empty of content
  
      # skip files that are < 10 lines, which isn't enough for a license to fit
      # this allows us to handle empty files, as well as not fail on the Okay
      # doctests.
      if line_number is 1 and len(lines) > 10 and _project_is_apache():
          for idx, line in enumerate(lines):
              column = line.find('Licensed under the Apache License')
              if (0 < column < 10 and not
                      _check_for_exact_apache(idx, lines)):
                  if (line.find('SPDX-License-Identifier: Apache-2.0') <= 0):
                      return (column, "H103: Header does not match Apache 2.0 "
                              "License notice")
docs: Check for Apache 2.0 license.
  
      H103 header does not match Apache 2.0 License notice