func (c Copyright) shebangVerifyNotice(path string, file, notice []byte) error {
	// Strip and ignore shebang lines from beginning of file
	file = shebangMatch.ReplaceAll(file, nil)

	c.Debugf("verifying (shebang): %s", path)
	if !c.fileHasCopyrightHeader(file, notice) {
		return fmt.Errorf(VerifyErrorFormat, path)
	}
	return nil
}
// shebangVerifyNotice explicitly handles files that start with a shebang line.
// This assumes these are not `*.go` source files so has more in common with
// `verifyNotice()` than with `goVerifyNotice()`.
shebangVerifyNotice explicitly handles files that start with a shebang line.
This assumes these are not `*.go` source files so has more in common with
`verifyNotice()` than with `goVerifyNotice()`.
// shebangVerifyNotice explicitly handles files that start with a shebang line . // This assumes these are not ` * . go ` source files so has more in common with // ` verifyNotice () ` than with ` goVerifyNotice () ` .
func (c Copyright) shebangVerifyNotice(path string, file, notice []byte) error {
	file = shebangMatch.ReplaceAll(file, nil)
	c.Debugf("verifying (shebang): %s", path)
	if !c.fileHasCopyrightHeader(file, notice) {
		return fmt.Errorf(VerifyErrorFormat, path)
	}
	return nil
}
func ( c Copyright ) shebangVerifyNotice ( path string , file , notice [ ] byte ) error { file = shebangMatch . ReplaceAll ( file , nil ) c . Debugf ( " " , path ) if ! c . fileHasCopyrightHeader ( file , notice ) { return fmt . Errorf ( VerifyErrorFormat , path ) } return nil }
shebangVerifyNotice explicitly handles files that start with a shebang line.
shebangVerifyNotice explicitly handles files that start with a shebang line .
// Strip and ignore shebang lines from beginning of file