You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Write KindName instead of kind_name on error values - #3655
Tests and website examples still called the error method with its old snake_case spelling, which draws W175. They now use KindName. Free functions that only share the substring (docgen, semantic, toml, graphql, editor, gui_style test helpers) are untouched, as is the generated stdlib index.
Summary by CodeRabbit
Documentation
Updated error-handling examples across the guides to display error kinds consistently with the current API.
Tests
Updated error-reporting checks across the test suite to use the same API, while keeping existing scenarios and expected output unchanged.
No actionable comments were generated in the recent review.
Walkthrough
Tests and website examples now retrieve error kind names with KindName() instead of kind_name(). Other error details, messages, and test expectations remain unchanged.
SalamLang/Salam#2476: Adds website examples for Error methods, including kind_name; this change updates overlapping examples to use KindName().
Suggested reviewers:bdadmehr0
Merge Risk: Minimal · up to e622c
This change renames the error-kind accessor calls in tests and website examples to the canonical spelling. No production behavior changes, and no concrete merge-blocking risk was found.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the primary change: error values now use the KindName method instead of kind_name. The raw summary and PR description both show the changeset is a rename of this call across tests …
Description check
The description states the purpose: tests and website examples used the snake_case kind_name spelling, which triggers warning W175, and they now use KindName. It also explains which similarly name…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the primary change: error values now use the KindName method instead of kind_name. The raw summary and PR description both show the changeset is a rename of this call across tests and website examples, so the title matches the main change.
Full details: Description check
Explanation
The description states the purpose: tests and website examples used the snake_case kind_name spelling, which triggers warning W175, and they now use KindName. It also explains which similarly named free functions and the generated stdlib index were left unchanged. It does not fill in the template's Related Issue, Proposed Changes list, How Was This Tested, or Checklist sections, so it is only partly complete against the template.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Fix failing CI checks
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tests and website examples still called the error method with its old snake_case spelling, which draws W175. They now use KindName. Free functions that only share the substring (docgen, semantic, toml, graphql, editor, gui_style test helpers) are untouched, as is the generated stdlib index.
Summary by CodeRabbit