From 3d47fa95ff6b98c3e1af3fe7c3c04e550ee46db3 Mon Sep 17 00:00:00 2001 From: Ruhan Date: Fri, 16 Aug 2024 20:55:23 +0530 Subject: [PATCH 1/2] buf docs --- docs/tools/buf.md | 33 +++++++++++++++++++++++++++++++++ docs/tools/tools.md | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 docs/tools/buf.md diff --git a/docs/tools/buf.md b/docs/tools/buf.md new file mode 100644 index 00000000..51fbb446 --- /dev/null +++ b/docs/tools/buf.md @@ -0,0 +1,33 @@ +--- +title: Buf +sidebar_label: Buf +description: CodeRabbit's guide to Buf. +--- + +[Buf](https://buf.build/) offers linting for Protobuf files. + +## Files + +Buf will run on files with the following extensions: + +- `.proto` + +## Configuration + +Buf uses a YAML style configuration file. We look for the following file anywhere in the repository: + +- `buf.yaml` + +If no config file is found, CodeRabbit will consider the following categories of strictness based on the profile selected: + +### Chill + +- `MINIMAL` + +### Assertive + +- `BASIC` + +## Links + +- [Buf Configuration](https://buf.build/docs/configuration/v2/buf-yaml#lint) diff --git a/docs/tools/tools.md b/docs/tools/tools.md index d174ab88..ed811e0e 100644 --- a/docs/tools/tools.md +++ b/docs/tools/tools.md @@ -60,6 +60,7 @@ Remove extraneous f prefix | Typescript | [Biome][Biome] | | YAML | [YamlLint][YamlLint] | | Ruby | [Rubocop][Rubocop] | +| Buf | [Buf][Buf] | [ShellCheck]: ./shellcheck.md [Ruff]: ./ruff.md @@ -75,3 +76,4 @@ Remove extraneous f prefix [Checkov]: ./checkov.md [Detekt]: ./detekt.md [Rubocop]: ./rubocop.md +[Buf]: ./buf.md \ No newline at end of file From 713fedacd2658559a38e9381d7fc1a0ca9d4e676 Mon Sep 17 00:00:00 2001 From: Ruhan Date: Fri, 16 Aug 2024 21:51:31 +0530 Subject: [PATCH 2/2] yaml editor extra line remove --- src/components/YamlEditor/YamlEditor.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/YamlEditor/YamlEditor.tsx b/src/components/YamlEditor/YamlEditor.tsx index 2308f8c9..1b483547 100644 --- a/src/components/YamlEditor/YamlEditor.tsx +++ b/src/components/YamlEditor/YamlEditor.tsx @@ -30,7 +30,6 @@ reviews: drafts: false chat: auto_reply: true - `; export default function YamlEditor() { const [value, setValue] = useState(initialValue);