Conversation
* The `dumb-jump-extra-search-paths-function` docstring has a long line that
triggers the docstring-wide warning. Since it's difficult to refactor the
example text, I disabled the compiler docstring-wide around the defcustom
explicitly:
- I started using `(let ((byte-compile-warnings '(not docstrings-wide))) )`
block to surround the defcustom form, but that only work in Emacs 30 and
later.
- So I ended up using a with-no-warnings wrapping instead.
This will unfortunately disable all warnings inside that code...
Maybe you can find a way to express the example in
* The `dumb-jump-get-project-root` either call the new `project-root` if
available or `project-roots` in Emacs 26.x. However that triggers a warning
when compiled in later Emacs versions. I surround the code in a
`with-no-warnings` form to prevent the warning.
* In `dumb-jump-find-references`: prevent warning about `dump-jump-go`
as in the other functions using it.
* Reduced the length of the `dumb-jump-populate-regex-for-emacs` doctring
first line.
* Also removed the trailing spaces.
I would recommend to byte-compile the code with warnings treated as errors now
that warnings were eliminated from the code base.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThis change modifies Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
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. Comment Tip CodeRabbit can suggest fixes for GitHub Check annotations.Configure the |
The
dumb-jump-extra-search-paths-functiondocstring has a long line that triggers the docstring-wide warning. Since it's difficult to refactor the example text, I disabled the compiler docstring-wide around the defcustom explicitly:(let ((byte-compile-warnings '(not docstrings-wide))) )block to surround the defcustom form, but that only work in Emacs 30 and later.The
dumb-jump-get-project-rooteither call the newproject-rootif available orproject-rootsin Emacs 26.x. However that triggers a warning when compiled in later Emacs versions. I surround the code in awith-no-warningsform to prevent the warning.In
dumb-jump-find-references: prevent warning aboutdump-jump-goas in the other functions using it.Reduced the length of the
dumb-jump-populate-regex-for-emacsdoctring first line.Also removed the trailing spaces.
I would recommend to byte-compile the code with warnings treated as errors now that warnings were eliminated from the code base.
Summary by CodeRabbit
Documentation
Style