pkg/syncthing/syncthing.go
Function StartServer
has 94 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func StartServer(ctx context.Context, detach bool, remoteDir string) error {
if err := MakeSureGui(); err != nil {
return err
}
Function StartClient
has 91 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func StartClient(ctx context.Context, localDir string, localAddr, remoteAddr string) error {
if err := MakeSureGui(); err != nil {
return err
}
err := cmdutil.SetConfigDataLocationsFromFlags(pkgconfig.GetSyncthingPath(), "", "")
Function StartClient
has 6 return statements (exceeds 4 allowed). Open
Open
func StartClient(ctx context.Context, localDir string, localAddr, remoteAddr string) error {
if err := MakeSureGui(); err != nil {
return err
}
err := cmdutil.SetConfigDataLocationsFromFlags(pkgconfig.GetSyncthingPath(), "", "")
Function StartServer
has 6 return statements (exceeds 4 allowed). Open
Open
func StartServer(ctx context.Context, detach bool, remoteDir string) error {
if err := MakeSureGui(); err != nil {
return err
}