> For the complete documentation index, see [llms.txt](https://docs.metatrust.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.metatrust.io/docs-zh/introduction/metascan/code-style.md).

# Code Style

## &#x20;简介

Code Style引擎是一种代码质量分析工具，对合约代码进行静态分析，以识别编码问题、潜在错误和不符合规范的代码。主要特点包括：

1. 代码风格检查：确保代码遵循预设编码规范，提高一致性和可读性。
2. 潜在错误检测：静态分析揭示可能导致崩溃、性能降低或逻辑错误的问题，提供修复建议。
3. 代码优化建议：分析性能瓶颈和不必要的复杂度，提供结构和性能优化方案。
4. 可维护性分析：评估代码可维护性，识别需重构部分，提高可维护性和可扩展性。

使用Code Style引擎有助于确保合约代码的稳定性、可维护性，提高项目质量和可靠性。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.metatrust.io/docs-zh/introduction/metascan/code-style.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
