Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Pro Plan Feature

This feature is available exclusively as part of the Pro plan and is not included in the Lite plan. Please refer to ourpricing page for more information about our plans and features.

Docstrings

Docstrings generation is part of thefinishing touches initiative.

info

This feature is inbeta.

Usage

Once you are done with your pull request and its reviews, you may want to perform finishing touches to your code, such as adding in-code documentation. You can request CodeRabbit to generate docstrings by typing@coderabbitai generate docstrings in a comment under that pull request.

Once sent, CodeRabbit will perform the following actions:

  • All functions that are in the pull request's changes will be fetched usingast-grep
  • Docstrings will be generated for the functions where they are missing or incomplete
  • These docstrings will be committed in a new branch in the same repository
  • CodeRabbit will open a pull request from this new branch to the existing pull request

Here's an example of what a pull request may look like:

Docstrings PR

CodeRabbit cannot perform further modifications to opened pull requests. From there, it's your turn to checkout the branch and improve it to satisfaction. We believe that this workflow provides a significant headstart to documenting code.

We are testing this workflow internally to adjust the prompts, add more supported software forges, add more supported languages and craft an excellent user experience. However, you can use this preview and enjoy a sneak peek at the future of CodeRabbit. Additionally, you can provide feedback about this feature onDiscord.

Supported software forges

The checked software forges are supported:

  • Azure DevOps
  • Bitbucket
  • GitHub
  • GitLab

The presence of an unsupported software forge in this list does not constitute a commitment to support it in the future. Remember that the docstrings feature is inbeta.

Supported languages

The checked languages are supported:

  • Bash
  • C
  • C++
  • C#
  • Elixir
  • Go
  • Haskell
  • Java
  • JavaScript
  • Kotlin
  • Lua
  • Php
  • Python
  • React TypeScript
  • Ruby
  • Rust
  • Scala
  • Swift
  • TypeScript

The presence of an unsupported language in this list does not constitute a commitment to support it in the future. Remember that the docstrings feature is inbeta.

note

In the case of JavaScript and TypeScript, there are tons of ways to declare functions. At the moment, we only support the keywordfunction at the top level.


[8]ページ先頭

©2009-2025 Movatter.jp