ignore golint for some stutter that we want to keep as-is

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
Davanum Srinivas 2020-04-10 07:19:17 -04:00 committed by Srini Brahmaroutu
parent e2ef310046
commit 93189a19bc
2 changed files with 4 additions and 4 deletions

View File

@ -77,7 +77,7 @@ type Interface interface {
var _ Interface = &Mounter{} var _ Interface = &Mounter{}
// MountPoint represents a single line in /proc/mounts or /etc/fstab. // MountPoint represents a single line in /proc/mounts or /etc/fstab.
type MountPoint struct { type MountPoint struct { // nolint: golint
Device string Device string
Path string Path string
Type string Type string
@ -86,7 +86,7 @@ type MountPoint struct {
Pass int Pass int
} }
type MountErrorType string type MountErrorType string // nolint: golint
const ( const (
FilesystemMismatch MountErrorType = "FilesystemMismatch" FilesystemMismatch MountErrorType = "FilesystemMismatch"
@ -97,7 +97,7 @@ const (
UnknownMountError MountErrorType = "UnknownMountError" UnknownMountError MountErrorType = "UnknownMountError"
) )
type MountError struct { type MountError struct { // nolint: golint
Type MountErrorType Type MountErrorType
Message string Message string
} }

View File

@ -56,7 +56,7 @@ func IsCorruptedMnt(err error) bool {
} }
// MountInfo represents a single line in /proc/<pid>/mountinfo. // MountInfo represents a single line in /proc/<pid>/mountinfo.
type MountInfo struct { type MountInfo struct { // nolint: golint
// Unique ID for the mount (maybe reused after umount). // Unique ID for the mount (maybe reused after umount).
ID int ID int
// The ID of the parent mount (or of self for the root of this mount namespace's mount tree). // The ID of the parent mount (or of self for the root of this mount namespace's mount tree).