Versions in this module Expand all Collapse all v2 v2.7.3 Nov 3, 2023 Changes in this version + const DefaultMimeType + func AddToFiles(filePaths []string, filePath string, config config.Config) []string + func GetContentType(path string, config config.Config) (string, error) + func GetContentTypeBytes(rawFileContent []byte, config config.Config) (string, error) + func GetFiles(config config.Config) ([]string, error) + func GetRelativePath(filePath string) (string, error) + func IsAllowedContentType(contentType string, config config.Config) bool + func IsExcluded(filePath string, config config.Config) (bool, error) + func PathExists(filePath string) bool + func ReadLines(content string) []string + type FileInformation struct + Content string + Editorconfig *editorconfig.Definition + FilePath string + Line string + LineNumber int