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
151 stars 15 forks source link

Fix Indentation in lua/hurl/init.lua #47

Closed sweep-ai[bot] closed 9 months ago

sweep-ai[bot] commented 9 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 the issue of inconsistent indentation in the file lua/hurl/init.lua. The changes made involve adjusting the leading spaces on each line to ensure that the indentation is consistent throughout the file. The common practice of using two spaces for each level of indentation has been followed.

Summary of Changes

These changes improve the readability of the code and adhere to good coding practices.

sweep-ai[bot] commented 9 months ago

Rollback Files For Sweep

sweep-ai[bot] commented 9 months ago

Sandbox Executions

Ran GitHub Actions for 7da49c4f6dda728b6310dd92c1f3a4b553ebdd50:

changeset-bot[bot] commented 9 months ago

⚠️ No Changeset found

Latest commit: f4da1c4158189a3b5b1105dd0ee300f09c0dc59c

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

sweep-ai[bot] commented 9 months ago

The command: Run JohnnyMorganz/stylua-action@v3 yielded the following error: ##[error]The process '/home/runner/work/_temp/e04f8a29-c917-4394-9289-c7423c2c8fff/stylua' failed with exit code 1 Here are the logs:

[command]/usr/bin/unzip -o -q /home/runner/work/_temp/01f5a489-9491-4d13-8bc7-41e3485d9b5d
[command]/usr/bin/chmod +x /home/runner/work/_temp/e04f8a29-c917-4394-9289-c7423c2c8fff/stylua
[command]/home/runner/work/_temp/e04f8a29-c917-4394-9289-c7423c2c8fff/stylua --check .
Diff in ./lua/hurl/init.lua:
5   5    |   mode = 'split',
6   6    |   auto_close = true,
7   7    |   -- Default split options
8        |-    split_position = 'right',
9        |-    split_size = '50%',
8    |+  split_position = 'right',
9    |+  split_size = '50%',
10  10   |   -- Default popup options
11       |-    popup_position = '50%',
12       |-    popup_size = {
11   |+  popup_position = '50%',
12   |+  popup_size = {
13  13   |     width = 80,
14  14   |     height = 40,
15  15   |   },
16       |-    env_file = { 'vars.env' },
17       |-    formatters = {
18       |-      json = { 'jq' },
19       |-      html = {
20       |-        'prettier',
21       |-        '--parser',
22       |-        'html',
16   |+  env_file = { 'vars.env' },
17   |+  formatters = {
18   |+    json = { 'jq' },
19   |+    html = {
20   |+      'prettier',
21   |+      '--parser',
22   |+      'html',
23  23   |     },
24  24   |   },
25  25   | }
--------------------------------------------------------------------------------
33  33   | --       - mode: ('popup' | 'split') default: popup.
34  34   | function M.setup(options)
35  35   |   if options and options.env_file ~= nil and type(options.env_file) == 'string' then
36       |-      utils.log_warn('env_file should be a table')
37       |-      options.env_file = { options.env_file }
36   |+    utils.log_warn('env_file should be a table')
37   |+    options.env_file = { options.env_file }
38  38   |   end
39  39   |
40  40   |   _HURL_GLOBAL_CONFIG = vim.tbl_extend('force', _HURL_GLOBAL_CONFIG, options or default_config)
sweep-ai[bot] commented 9 months ago

🚀 Wrote Changes

Done.