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 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);