-
Notifications
You must be signed in to change notification settings - Fork 0
[pull] master from honza:master #1
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
base: master
Are you sure you want to change the base?
Conversation
sorry to make a mistake in the last pr
Remove from ultisnips those that are already defined in snipmate format
since UltiSnips supports both
Add a small set of frequently used GTest macros
All other snippet files are doing this, and if it is not done at least UltiSnips complains about malformed snippet lines.
WalkthroughThis update enhances the snippet library across various programming languages and formats. Key changes include the addition of new snippets for co-authorship in Git commits, Google Test in C++, and debugging in Dart. There are also improvements in regex handling in Python snippets and the removal of less-used LaTeX snippets, streamlining the overall functionality while refining documentation and snippet clarity. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant SnippetLibrary
User->>SnippetLibrary: Request new snippet (e.g., Co-authored-by)
SnippetLibrary->>User: Provide snippet template
User->>SnippetLibrary: Insert snippet into file
SnippetLibrary->>User: Confirm snippet insertion
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
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)
Additionally, you can add CodeRabbit Configuration File (
|
There was a problem hiding this 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
Outside diff range, codebase verification and nitpick comments (12)
snippets/tex.snippets (2)
199-202
: Add a description for thepar*
snippet.Consider adding a brief description or comment to clarify the purpose of this snippet for users unfamiliar with unnumbered paragraphs in LaTeX.
+ // Unnumbered paragraph
209-212
: Add a description for thesubp*
snippet.Consider adding a brief description or comment to clarify the purpose of this snippet for users unfamiliar with unnumbered subparagraphs in LaTeX.
+ // Unnumbered subparagraph
snippets/ruby.snippets (1)
615-616
: Ensure theirb
snippet is documented.Adding a comment to explain the purpose of the
irb
snippet would be beneficial for users who might not be familiar with its usage in debugging.+ # Start an IRB session for debugging
snippets/systemverilog.snippets (9)
75-94
: Ensure UVM object snippet follows best practices.The
uvm_object
snippet provides a basic template for UVM objects. Ensure that the utility macros and constructor are correctly placed and documented.+ // UVM object utility macros and constructor
97-117
: Ensure UVM object with parameters snippet follows best practices.The
uvm_object_with_parameters
snippet provides a template for parameterized UVM objects. Ensure that the parameter handling and utility macros are correctly placed and documented.+ // Parameterized UVM object utility macros and constructor
120-146
: Ensure UVM component snippet follows best practices.The
uvm_component
snippet provides a basic template for UVM components. Ensure that the utility macros, configuration object, and constructor are correctly placed and documented.+ // UVM component utility macros, configuration, and constructor
149-174
: Ensure UVM component with parameters snippet follows best practices.The
uvm_component_with_parameters
snippet provides a template for parameterized UVM components. Ensure that the parameter handling, utility macros, and configuration object are correctly placed and documented.+ // Parameterized UVM component utility macros, configuration, and constructor
177-228
: Ensure UVM component extended snippet follows best practices.The
uvm_component_extended
snippet provides a template for extended UVM components with lifecycle phases. Ensure that the phase methods are correctly declared and documented.+ // Extended UVM component with lifecycle phases
289-355
: Ensure UVM sequence snippet follows best practices.The
uvm_sequence
snippet provides a template for UVM sequences. Ensure that the utility macros and task placeholders are correctly placed and documented.+ // UVM sequence utility macros and task placeholders
357-424
: Ensure UVM sequence with parameters snippet follows best practices.The
uvm_sequence_with_parameters
snippet provides a template for parameterized UVM sequences. Ensure that the parameter handling, utility macros, and task placeholders are correctly placed and documented.+ // Parameterized UVM sequence utility macros and task placeholders
460-495
: Ensure UVM sequence item snippet follows best practices.The
uvm_sequence_item
snippet provides a template for UVM sequence items. Ensure that the utility macros and function placeholders are correctly placed and documented.+ // UVM sequence item utility macros and function placeholders
511-546
: Ensure UVM sequence item with parameters snippet follows best practices.The
uvm_sequence_item_with_parameters
snippet provides a template for parameterized UVM sequence items. Ensure that the parameter handling, utility macros, and function placeholders are correctly placed and documented.+ // Parameterized UVM sequence item utility macros and function placeholders
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (15)
- README.md (1 hunks)
- UltiSnips/gitcommit.snippets (1 hunks)
- UltiSnips/java.snippets (1 hunks)
- UltiSnips/php.snippets (1 hunks)
- UltiSnips/tex.snippets (5 hunks)
- pythonx/vimsnippets.py (1 hunks)
- snippets/cpp.snippets (1 hunks)
- snippets/dart.snippets (1 hunks)
- snippets/gleam.snippets (1 hunks)
- snippets/go.snippets (2 hunks)
- snippets/markdown.snippets (1 hunks)
- snippets/ruby.snippets (1 hunks)
- snippets/scheme.snippets (1 hunks)
- snippets/systemverilog.snippets (1 hunks)
- snippets/tex.snippets (1 hunks)
Files skipped from review due to trivial changes (6)
- README.md
- UltiSnips/java.snippets
- UltiSnips/tex.snippets
- pythonx/vimsnippets.py
- snippets/gleam.snippets
- snippets/scheme.snippets
Additional comments not posted (11)
snippets/dart.snippets (1)
5-7
: New debugging snippet added for Dart.The addition of the
deb
snippet provides a convenient way to insert adebugger()
statement. This enhances the developer experience by facilitating quick debugging.snippets/markdown.snippets (1)
8-8
: Improved flexibility in Markdown link snippet.The removal of the
https://
prefix allows users to specify any protocol or none, enhancing the snippet's versatility.UltiSnips/gitcommit.snippets (1)
74-76
: New co-authorship snippet added for Git commits.The
Co-authored-by
snippet allows users to easily add co-authorship lines in commit messages, enhancing collaboration documentation.snippets/go.snippets (2)
62-64
: Correct usage of Go type declaration for interfaces.The snippet for defining an interface now correctly uses
type ${1:name} interface {
, which aligns with Go's syntax for declaring interfaces.
191-194
: Correct usage of Go type declaration for structs.The snippet for defining a struct now correctly uses
type ${1:name} struct {
, which aligns with Go's syntax for declaring structs.UltiSnips/php.snippets (1)
9-9
: Use of raw string for regex improves clarity.Switching to a raw string for the regex in
re.match
ensures that backslashes are treated correctly, enhancing the function's reliability in detecting PHP scalar types.snippets/cpp.snippets (5)
257-261
: Addition of GTest main function snippet.The
gtemain
snippet provides a template for a main function to initialize and run Google Test, streamlining test setup.
263-266
: Addition of GTest standard test case snippet.The
gtetest
snippet offers a template for creating a standard Google Test case, facilitating quick test creation.
268-271
: Addition of GTest fixture test snippet.The
gtefix
snippet provides a template for tests using fixtures, supporting setup and teardown processes.
273-276
: Addition of GTest parameterized test snippet.The
gtepar
snippet allows for creating parameterized tests, enabling tests to run with different parameters efficiently.
278-279
: Addition of GTest parameterized test instantiation snippet.The
gteparins
snippet facilitates the instantiation of parameterized tests, supporting diverse test scenarios.
See Commits and Changes for more details.
Created by
pull[bot]
Can you help keep this open source service alive? 💖 Please sponsor : )
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
Style
Chores