jellydn / hurl.nvim

Hurl.nvim is a Neovim plugin designed to run HTTP requests directly from `.hurl` files. Elevate your API development workflow by executing and viewing responses without leaving your editor.
https://gyazo.com/19492e8b5366cec3f22d5fd97a63f37a
MIT License
152 stars 15 forks source link

Refactor Code for Consistency and Style Guide Adherence #32

Closed sweep-ai[bot] closed 10 months ago

sweep-ai[bot] commented 10 months ago

PR Feedback: 👎

I created this PR to address this rule:

"Code should be properly formatted and follow a consistent style guide."

Description

This PR addresses inconsistencies in the codebase and violations of the style guide. The changes include moving functions to appropriate files, updating import statements, and modifying function signatures and command usage.

Summary of Changes

These changes improve the organization of the code and ensure adherence to the style guide.

sweep-ai[bot] commented 10 months ago

Rollback Files For Sweep

sweep-ai[bot] commented 10 months ago

Sandbox Executions

trunk fmt lua/hurl/http_utils.lua || exit 0 1/2 ✓
 ✔ Formatted lua/hurl/http_utils.lua
Re-checking autofixed files...

Checked 1 file
✔ No issues
trunk check --fix --print-failures lua/hurl/http_utils.lua 2/2 ✓
Checked 1 file
✔ No issues
Run trunk upgrade to upgrade 4 linters

trunk fmt lua/hurl/main.lua || exit 0 1/2 ✓
Checked 1 file
✔ No issues
trunk check --fix --print-failures lua/hurl/main.lua 2/2 ✓
Checked 1 file
✔ No issues

changeset-bot[bot] commented 10 months ago

⚠️ No Changeset found

Latest commit: 88e78c1fbcaa4afef0df30b3a6aa2d45e595b886

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR