chore: linter: embeddedstructfieldcheck
Signed-off-by: Jakob Borg <jakob@kastelo.net>
This commit is contained in:
@@ -340,6 +340,7 @@ func (*BasicFilesystem) underlying() (Filesystem, bool) {
|
||||
// basicFile implements the fs.File interface on top of an os.File
|
||||
type basicFile struct {
|
||||
*os.File
|
||||
|
||||
name string
|
||||
}
|
||||
|
||||
|
||||
@@ -749,6 +749,7 @@ func (fs *fakeFS) reportMetricsPer(b *testing.B, divisor float64, unit string) {
|
||||
// opened for reading or writing, it's all good.
|
||||
type fakeFile struct {
|
||||
*fakeEntry
|
||||
|
||||
mut *sync.Mutex
|
||||
rng io.Reader
|
||||
seed int64
|
||||
|
||||
@@ -16,6 +16,7 @@ import (
|
||||
|
||||
type logFilesystem struct {
|
||||
Filesystem
|
||||
|
||||
// Number of filesystem layers on top of logFilesystem to skip when looking
|
||||
// for the true caller of the filesystem
|
||||
layers int
|
||||
|
||||
@@ -19,6 +19,7 @@ type database interface {
|
||||
|
||||
type mtimeFS struct {
|
||||
Filesystem
|
||||
|
||||
chtimes func(string, time.Time, time.Time) error
|
||||
db database
|
||||
folderID string
|
||||
@@ -170,6 +171,7 @@ func (f *mtimeFS) load(name string) (ondisk, virtual time.Time) {
|
||||
|
||||
type mtimeFileInfo struct {
|
||||
FileInfo
|
||||
|
||||
mtime time.Time
|
||||
}
|
||||
|
||||
@@ -179,6 +181,7 @@ func (m mtimeFileInfo) ModTime() time.Time {
|
||||
|
||||
type mtimeFile struct {
|
||||
File
|
||||
|
||||
fs *mtimeFS
|
||||
}
|
||||
|
||||
|
||||
@@ -63,6 +63,7 @@ type WalkFunc func(path string, info FileInfo, err error) error
|
||||
|
||||
type walkFilesystem struct {
|
||||
Filesystem
|
||||
|
||||
checkInfiniteRecursion bool
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user