Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update contributing guide for adding a new rule#22779

Merged
ntBre merged 2 commits intomainfrom
brent/new-rule-docs
Jan 21, 2026
Merged

Update contributing guide for adding a new rule#22779
ntBre merged 2 commits intomainfrom
brent/new-rule-docs

Conversation

@ntBre
Copy link
Contributor

@ntBre ntBre commented Jan 20, 2026

Summary

This is a follow-up to #21035 and #22732 to update the contribution guide for
adding a new rule for the changes to the violation_metadata attribute and also
to how we emit diagnostics.

Test Plan

Built and viewed the docs locally to make sure they render correctly

Summary
--

This is a follow-up to #21035 and #22732 to update the contribution guide for
adding a new rule for the changes to the `violation_metadata` attribute and also
to how we emit diagnostics.

Test Plan
--

Built and viewed the docs locally to make sure they render correctly
@ntBre ntBre added the documentation Improvements or additions to documentation label Jan 20, 2026
CONTRIBUTING.md Outdated
@@ -187,7 +189,8 @@ defined therein is a Python AST visitor, which iterates over the AST, building u
and calling out to lint rule analyzer functions as it goes.

If you need to inspect the AST, you can run `cargo dev print-ast` with a Python file. Grep
Copy link
Member

Choose a reason for hiding this comment

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

Very unrelated, but our playground might be more approachable than the CLI :) We could add a link to https://play.ruff.rs/?secondary=AST

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added!

@ntBre ntBre enabled auto-merge (squash) January 21, 2026 18:21
@ntBre ntBre merged commit f516d47 into main Jan 21, 2026
40 checks passed
@ntBre ntBre deleted the brent/new-rule-docs branch January 21, 2026 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants