Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ast-grep docs with the new essential rules property #39

Merged
merged 4 commits into from
Apr 6, 2024

Conversation

petrisorcoderabbit
Copy link
Contributor

No description provided.

Copy link
Contributor

coderabbitaidev bot commented Apr 6, 2024

Walkthrough

Walkthrough

The changes in this update encompass a significant rebranding effort from "semgrep" to "ast-grep" across documentation and configurations. It includes adjustments to text formatting, YAML structure modifications, updates to package names, introduction of new properties for rules, and a focus on emphasizing security in package management.

Changes

Files Change Summary
docs/guides/review-instructions.md Text formatting, YAML structure modifications, package name updates, new properties for rules, security emphasis

Possibly related issues

  • coderabbitai/pr-reviewer-saas#700: The rebranding from "semgrep" to "ast-grep" in the documentation aligns with the objectives of updating references and ensuring tool functionality remains intact.

🐰✨

In the realm of code, where changes abound,
A rabbit hopped, making hardly a sound.
From "semgrep" to "ast-grep", it leaped with grace,
Ensuring each reference found its right place.
With a twitch of its nose, the deed was done,
In the world of code, a new name won.
🌟📝🐾


Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

netlify bot commented Apr 6, 2024

Deploy Preview for reliable-buttercream-0e11cf ready!

Name Link
🔨 Latest commit 02b2f38
🔍 Latest deploy log https://app.netlify.com/sites/reliable-buttercream-0e11cf/deploys/66116bfef97346000868e734
😎 Deploy Preview https://deploy-preview-39--reliable-buttercream-0e11cf.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

cloudflare-workers-and-pages bot commented Apr 6, 2024

Deploying coderabbit-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 02b2f38
Status: ✅  Deploy successful!
Preview URL: https://1ec9aa5e.coderabbit-docs.pages.dev
Branch Preview URL: https://update-ast-grep-docs.coderabbit-docs.pages.dev

View logs

Copy link
Contributor

@coderabbitaidev coderabbitaidev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

Review Status

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 8e0f9b3 and f702e72.
Files selected for processing (1)
  • docs/guides/review-instructions.md (8 hunks)
Additional comments not posted (2)
docs/guides/review-instructions.md (2)

88-92: The introduction of the essential_rules property and the custom package name under packages aligns well with the PR objectives of enhancing security and flexibility in rule management. Ensure that the format organization/repository for package names is consistently applied across all documentation and examples.


117-118: The addition of all and any composite rules enhances the expressiveness of rule definitions. This change supports the objective of providing users with more control over rule application. Ensure that examples of using these new properties are clear and accessible to users.

petrisorcoderabbit and others added 3 commits April 6, 2024 18:33
Co-authored-by: coderabbitaidev[bot] <142196860+coderabbitaidev[bot]@users.noreply.github.com>
Copy link
Contributor

@coderabbitaidev coderabbitaidev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

Review Status

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between f702e72 and ceb4534.
Files selected for processing (1)
  • docs/guides/review-instructions.md (8 hunks)

Copy link
Contributor

@coderabbitaidev coderabbitaidev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review Status

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between ceb4534 and 02b2f38.
Files selected for processing (1)
  • docs/guides/review-instructions.md (7 hunks)
Additional comments not posted (5)
docs/guides/review-instructions.md (5)

23-23: Add a space after the colon for consistency, as previously suggested.

-  **`instructions`**:Review the JavaScript code against the Google JavaScript
+  **`instructions`**: Review the JavaScript code against the Google JavaScript

88-92: Consider clarifying the purpose and usage of the essential_rules property in the YAML configuration. Explain how it affects the rule application process and what benefits it provides, especially in terms of security.


117-118: The all and any composite rules are well-defined. Ensure that examples provided in the documentation are consistent with these definitions and accurately demonstrate their usage.


308-311: Correct the possessive form of "it's" to "its" and consider rephrasing to avoid the comma splice before "because", as previously suggested.

- A set of essential security rules, because we value security, this package gets
+ A set of essential security rules. Because we value security, this package gets
- it's own property in the `.coderabbit.yml` file, to make it easier to install and not overwrite.
+ its own property in the `.coderabbit.yml` file, to make it easier to install and not overwrite.

347-348: Ensure that the sentence starts with a capital letter and consider adding a comma before "and" for clarity, as previously suggested.

- **rules** and **utils** directories are keywords and it should be the same.
+ **Rules** and **utils** directories are keywords, and it should be the same.

@petrisorcoderabbit petrisorcoderabbit merged commit ff69ede into master Apr 6, 2024
5 checks passed
@petrisorcoderabbit petrisorcoderabbit deleted the update_ast_grep_docs branch April 6, 2024 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants