libgocryptfs/internal/fusefrontend
Jakob Unterwurzacher c86981342b golangci-lint: fix issues found by gosimple
Everything except the

	if err2.Err == syscall.EOPNOTSUPP

case. Gets too confusing when collapsed into a single line.

Issues were:

$ golangci-lint run --disable-all --enable gosimple
mount.go:473:2: S1008: should use 'return strings.HasPrefix(v, "fusermount version")' instead of 'if strings.HasPrefix(v, "fusermount version") { return true }; return false' (gosimple)
	if strings.HasPrefix(v, "fusermount version") {
	^
cli_args.go:258:5: S1002: should omit comparison to bool constant, can be simplified to `args.forcedecode` (gosimple)
	if args.forcedecode == true {
	   ^
cli_args.go:263:6: S1002: should omit comparison to bool constant, can be simplified to `args.aessiv` (gosimple)
		if args.aessiv == true {
		   ^
cli_args.go:267:6: S1002: should omit comparison to bool constant, can be simplified to `args.reverse` (gosimple)
		if args.reverse == true {
		   ^
internal/stupidgcm/stupidgcm.go:227:6: S1002: should omit comparison to bool constant, can be simplified to `g.forceDecode` (gosimple)
		if g.forceDecode == true {
		   ^
gocryptfs-xray/xray_tests/xray_test.go:23:5: S1004: should use !bytes.Equal(out, expected) instead (gosimple)
	if bytes.Compare(out, expected) != 0 {
	   ^
gocryptfs-xray/xray_tests/xray_test.go:40:5: S1004: should use !bytes.Equal(out, expected) instead (gosimple)
	if bytes.Compare(out, expected) != 0 {
	   ^
gocryptfs-xray/paths_ctlsock.go:34:20: S1002: should omit comparison to bool constant, can be simplified to `!eof` (gosimple)
	for eof := false; eof == false; line++ {
	                  ^
tests/reverse/xattr_test.go:19:2: S1008: should use 'return err2.Err != syscall.EOPNOTSUPP' instead of 'if err2.Err == syscall.EOPNOTSUPP { return false }; return true' (gosimple)
	if err2.Err == syscall.EOPNOTSUPP {
	^
internal/fusefrontend/node.go:459:45: S1002: should omit comparison to bool constant, can be simplified to `!nameFileAlreadyThere` (gosimple)
		if nametransform.IsLongContent(cName2) && nameFileAlreadyThere == false {
		                                          ^
tests/xattr/xattr_integration_test.go:221:2: S1008: should use 'return err2.Err != syscall.EOPNOTSUPP' instead of 'if err2.Err == syscall.EOPNOTSUPP { return false }; return true' (gosimple)
	if err2.Err == syscall.EOPNOTSUPP {
	^
tests/test_helpers/helpers.go:338:19: S1002: should omit comparison to bool constant, can be simplified to `open` (gosimple)
	if err != nil && open == true {
	                 ^
tests/matrix/concurrency_test.go:121:7: S1004: should use !bytes.Equal(buf, content) instead (gosimple)
			if bytes.Compare(buf, content) != 0 {
			   ^
2021-08-19 08:34:44 +02:00
..
args.go reverse mode: implement -one-file-system 2021-08-16 19:23:58 +02:00
ctlsock_interface.go fusefrontend: ctlsock: get rid of unneccessary wrapper function 2021-06-26 18:49:54 +02:00
dircache.go fusefrontend: implement recursive diriv caching 2021-06-25 13:56:53 +02:00
file_allocate_truncate.go v2api: rename "File2" to just "File" 2020-08-16 12:50:33 +02:00
file_api_check.go v2api: clean up api TODOs 2020-08-16 13:52:27 +02:00
file_holes.go fusefrontend: rewrite Lseek SEEK_DATA / SEEK_HOLE 2021-05-29 16:05:36 +02:00
file_setattr.go v2api: rename "File2" to just "File" 2020-08-16 12:50:33 +02:00
file.go Fix issues found by ineffassign 2021-08-18 15:48:01 +02:00
node_api_check.go v2api: implement Getxattr, Setxattr, Removexattr, Listxattr 2020-07-14 19:55:20 +02:00
node_dir_ops.go fusefrontend: convert last callers from openBackingDir to prepareAtSyscall 2021-06-26 18:49:54 +02:00
node_helpers.go syscallcompat: move quirks logic here & fix darwin 2021-08-11 20:23:35 +02:00
node_open_create.go fusefrontend: implement recursive diriv caching 2021-06-25 13:56:53 +02:00
node_prepare_syscall.go fusefrontend: prepareAtSyscall: handle error when opening ourselves 2021-07-31 10:53:32 +02:00
node_xattr_darwin.go fusefrontend: implement recursive diriv caching 2021-06-25 13:56:53 +02:00
node_xattr_linux.go fusefrontend: implement recursive diriv caching 2021-06-25 13:56:53 +02:00
node_xattr.go fusefrontend: run acl Setxattr in user context 2021-06-02 19:10:36 +02:00
node.go golangci-lint: fix issues found by gosimple 2021-08-19 08:34:44 +02:00
prepare_syscall_test.go Fix issues found by ineffassign 2021-08-18 15:48:01 +02:00
root_node.go syscallcompat: move quirks logic here & fix darwin 2021-08-11 20:23:35 +02:00
xattr_unit_test.go nametransform: pass badname patterns via New 2021-06-20 19:09:46 +02:00