---
title: "spaced-compiler-directive"
description: "Detect compiler directives disabled by leading whitespace."
image: "https://strider.gempir.com/og.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://strider.gempir.com/llms.txt
> Use this file to discover all available pages before exploring further.

# spaced-compiler-directive

**Default severity:** `warning`

Purpose: detect top-level compiler directives that look intentional but are
ignored because whitespace appears between `//` and `go:`.

## Bad

```go
// go:noinline
func call() {}
```

## Good

```go
//go:noinline
func call() {}
```

Source: https://strider.gempir.com/lints/spaced-compiler-directive/index.mdx
