From 34c7196fe13215c813c354e762713b7ba5a88c4c Mon Sep 17 00:00:00 2001 From: jichangjun Date: Thu, 4 Jul 2024 14:56:40 +0800 Subject: [PATCH] doc: mirror enhance --- docs/website/docs/components/go/golangci-lint.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/website/docs/components/go/golangci-lint.md b/docs/website/docs/components/go/golangci-lint.md index c2f95661..80241e1f 100644 --- a/docs/website/docs/components/go/golangci-lint.md +++ b/docs/website/docs/components/go/golangci-lint.md @@ -7,9 +7,11 @@ sidebar_position: 1 **Reviewbot** 也使用 **golangci-lint** 来规范 go 代码的编写。 +不过,从简化配置以及适配各种场景的角度,`Reviewbot` 本身也引入了一些设计。 + ### 执行逻辑 -从简化配置以及适配结果的角度,执行器有两类核心逻辑: +有两种模式: - **缺省模式** 如果没有设置 Command, 或者 Command 唯一且为`golangci-lint`, 那么 Args 参数在子命令是`run`的情况下,会做如下检验(其他子命令,不会做处理)