IsValidModuleFilePath returns true if the given file path is a valid Module file path. This will be true if the file path represents a .proto file, license file, or documentation file. Note that license and documentation files must be at the root, and cannot be in subdirectories. That is, subdir/L
(filePath string)
| 100 | // Note that license and documentation files must be at the root, and cannot be in subdirectories. That is, |
| 101 | // subdir/LICENSE is not a valid module file (including on push), but LICENSE is. |
| 102 | func IsValidModuleFilePath(filePath string) bool { |
| 103 | _, err := FileTypeForPath(filePath) |
| 104 | return err == nil |
| 105 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…