summaryrefslogtreecommitdiffhomepage
path: root/tools/nogo.json
blob: 09bda9212e6f69b63196536d47bb8adade08e7e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
  "assign": {
    "exclude_files": {
      "/external/bazel_gazelle/walk/walk.go": "allowed: false positive"
    }
  },
  "checkunsafe": {
    "exclude_files": {
      "/external/": "allowed: not subject to unsafe naming rules"
    }
  },
  "lostcancel": {
    "exclude_files": {
      "/pkg/tcpip/network/arp/arp_test.go": "fix: the cancel function returned by context.WithTimeout should be called, not discarded, to avoid a context leak",
      "/pkg/tcpip/stack/ndp_test.go": "fix: the cancel function returned by context.WithTimeout should be called, not discarded, to avoid a context leak",
      "/pkg/tcpip/transport/udp/udp_test.go": "fix: the cancel function returned by context.WithTimeout should be called, not discarded, to avoid a context leak",
      "/pkg/tcpip/transport/tcp/testing/context/context.go": "fix: the cancel function returned by context.WithTimeout should be called, not discarded, to avoid a context leak"
    }
  },
  "nilness": {
    "exclude_files": {
      "/com_github_vishvananda_netlink/route_linux.go": "allowed: false positive",
      "/external/bazel_gazelle/cmd/gazelle/.*": "allowed: false positive",
      "/org_golang_x_tools/go/packages/golist.go": "allowed: runtime internals",
      "/pkg/sentry/platform/kvm/kvm_test.go": "allowed: intentional",
      "/tools/bigquery/bigquery.go": "allowed: false positive",
      "/external/io_opencensus_go/tag/map_codec.go": "allowed: false positive"
    }
  },
  "structtag": {
    "exclude_files": {
      "/external/": "allowed: may use arbitrary tags"
    }
  },
  "unsafeptr": {
    "exclude_files": {
      ".*_test.go": "allowed: exclude tests",
      "/pkg/flipcall/flipcall_unsafe.go": "allowed: special case",
      "/pkg/gohacks/gohacks_unsafe.go": "allowed: special case",
      "/pkg/sentry/fs/fsutil/host_file_mapper_unsafe.go": "allowed: special case",
      "/pkg/sentry/platform/kvm/(bluepill|machine)_unsafe.go": "allowed: special case",
      "/pkg/sentry/platform/kvm/machine_arm64_unsafe.go": "fix: gvisor.dev/issue/22464",
      "/pkg/sentry/platform/ring0/pagetables/allocator_unsafe.go": "allowed: special case",
      "/pkg/sentry/platform/safecopy/safecopy_unsafe.go": "allowed: special case",
      "/pkg/sentry/vfs/mount_unsafe.go": "allowed: special case"
    }
  }
}