# 10.4.Portlint

在提交之前，请使用 [`portlint`](https://docs.freebsd.org/en/books/porters-handbook/quick-porting/#porting-portlint) 检查该 Port。`portlint` 会告警许多常见的错误，包括功能性和风格上的问题。对于新 Port，`portlint -A` 是最全面的；对于现有 Port，`portlint -C` 足矣。

由于 `portlint` 使用启发式方法来检测错误，它可能会产生误报。此外，有时标记为问题的内容由于 Port 框架的限制，无法以其他方式解决。如果有疑问，最好的做法是向 [FreeBSD ports 邮件列表](https://lists.freebsd.org/subscription/freebsd-ports) 提问。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://porters-handbook.bsdcn.org/di-10-zhang-ce-shi-port/10.4.portlint.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
