> For the complete documentation index, see [llms.txt](https://ilogtail.gitbook.io/ilogtail-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ilogtail.gitbook.io/ilogtail-docs/1.3.0/developer-guide/code-check/check-codestyle.md).

# 检查代码规范

## 检查Go代码规范

LogtailPlugin 使用 [golangci-lint](https://golangci-lint.run/) 检查代码风格。 `SCOPE` 定义是 可选，默认范围是根目录。

```makefile
SCOPE=xxx make lint
```

xxx为限定的目录名称。
