kevinlu1248 / armbian-build

The Armbian Linux Build Framework under Kreyren's Management
GNU General Public License v2.0
0 stars 0 forks source link

Sweep: Replace x-hack in shellcheck and artifact scripts #70

Open sweep-nightly[bot] opened 10 months ago

sweep-nightly[bot] commented 10 months ago

Parent issue: #11

Checklist - [X] `lib/tools/shellcheck.sh` ❌ Failed
• Search for all instances of 'x-hack' in the script. • Replace each instance with the modern approach by enclosing variable references and command substitutions in double quotes. • Test the script to ensure it's still functioning as expected.
- [X] `lib/functions/artifacts/artifact-armbian-bsp-cli.sh` ✅ Commit [`93ef10a`](https://github.com/kevinlu1248/armbian-build/commit/93ef10ad06a60fb07a0e4fa0381aa5798475b4e2)
• Repeat the same steps as for shellcheck.sh.
Sandbox Execution Logs
trunk init 1/3 ✓
⡿ Downloading Trunk 1.16.0...
⡿ Downloading Trunk 1.16.0...
⢿ Downloading Trunk 1.16.0...
⣻ Downloading Trunk 1.16.0...
⣽ Downloading Trunk 1.16.0...
⣾ Downloading Trunk 1.16.0...
⣷ Downloading Trunk 1.16.0...
⣯ Downloading Trunk 1.16.0...
⣟ Downloading Trunk 1.16.0...
⡿ Downloading Trunk 1.16.0...
⢿ Downloading Trunk 1.16.0...
⣻ Downloading Trunk 1.16.0...
⣽ Downloading Trunk 1.16.0...
⣾ Downloading Trunk 1.16.0...
⣷ Downloading Trunk 1.16.0...
⣯ Downloading Trunk 1.16.0...
⣟ Downloading Trunk 1.16.0...
⡿ Downloading Trunk 1.16.0...
⢿ Downloading Trunk 1.16.0...
⣻ Downloading Trunk 1.16.0...
⣽ Downloading Trunk 1.16.0...
⣾ Downloading Trunk 1.16.0...
⣷ Downloading Trunk 1.16.0...
⣯ Downloading Trunk 1.16.0...
⣟ Downloading Trunk 1.16.0...
⡿ Downloading Trunk 1.16.0...
⢿ Downloading Trunk 1.16.0...
⣻ Downloading Trunk 1.16.0...
⣽ Downloading Trunk 1.16.0...
⣾ Downloading Trunk 1.16.0...
⣷ Downloading Trunk 1.16.0...
⣯ Downloading Trunk 1.16.0...
✔ Downloading Trunk 1.16.0... done
⡿ Verifying Trunk sha256...
✔ Verifying Trunk sha256... done
⡿ Unpacking Trunk...
✔ Unpacking Trunk... done

✔ 16 linters were enabled (.trunk/trunk.yaml)
  bandit 1.7.5 (57 python files)
  black 23.9.1 (57 python files)
  checkov 2.4.9 (3 json, 11 yaml files)
  git-diff-check (10143 files)
  isort 5.12.0 (57 python files) (created .isort.cfg)
  markdownlint 0.36.0 (12 markdown files) (created .markdownlint.yaml)
  nixpkgs-fmt 1.3.0 (2 nix files)
  oxipng 8.0.0 (27 png files)
  prettier 3.0.3 (3 html, 2 javascript, 3 json, 12 markdown, 11 yaml files)
  ruff 0.0.290 (57 python files) (created ruff.toml)
  shellcheck 0.9.0 (458 shell files) (created .shellcheckrc)
  shfmt 3.6.0 (458 shell files)
  svgo 3.0.2 (1 svg file) (created svgo.config.js)
  trivy 0.45.1 (11 yaml files)
  trufflehog 3.56.1 (10143 files)
  yamllint 1.32.0 (11 yaml files) (created .yamllint.yaml)
Next Steps
 1. Read documentation
    Our documentation can be found at https://docs.trunk.io
 2. Get help and give feedback
    Join the Trunk community at https://slack.trunk.io
trunk fmt lib/functions/artifacts/artifact-armbian-bsp-cli.sh 2/3 ✓

 ✔ Formatted lib/functions/artifacts/artifact-armbian-bsp-cli.sh
Re-checking autofixed files...

Checked 1 file
✔ No issues
trunk check --fix lib/functions/artifacts/artifact-armbian-bsp-cli.sh 3/3 ✓

  ISSUES  
lib/functions/artifacts/artifact-armbian-bsp-cli.sh:13:2
  13:2   medium  artifact_input_variables appears unused. Verify use (or export if used externally).   shellcheck/SC2034
  30:10  low     Consider invoking this command separately to avoid masking its return value (or use   shellcheck/SC2312
                 '|| true' to ignore).                                                                                  
  34:45  low     Consider invoking this command separately to avoid masking its return value (or use   shellcheck/SC2312
                 '|| true' to ignore).                                                                                  
  90:2   medium  artifact_version appears unused. Verify use (or export if used externally).           shellcheck/SC2034
 103:2   medium  artifact_version_reason appears unused. Verify use (or export if used externally).    shellcheck/SC2034
 105:2   medium  artifact_deb_repo appears unused. Verify use (or export if used externally).          shellcheck/SC2034
 106:2   medium  artifact_deb_arch appears unused. Verify use (or export if used externally).          shellcheck/SC2034
 108:2   medium  artifact_type appears unused. Verify use (or export if used externally).              shellcheck/SC2034
 134:13  medium  ARMBIAN_COMMAND_REQUIRE_BASIC_DEPS appears unused. Verify use (or export if used      shellcheck/SC2034
                 externally).                                                                                           
 146:2   medium  artifact_oci_target_base appears unused. Verify use (or export if used externally).   shellcheck/SC2034
Checked 1 file
10 existing issues
- [X] `lib/functions/artifacts/artifact-firmware.sh` ✅ Commit [`84af6bc`](https://github.com/kevinlu1248/armbian-build/commit/84af6bc414d0fb3fe32762938503c2373e160805)
• Repeat the same steps as for shellcheck.sh.
Sandbox Execution Logs
trunk init 1/3 ✓
⡿ Downloading Trunk 1.16.0...
⡿ Downloading Trunk 1.16.0...
⢿ Downloading Trunk 1.16.0...
⣻ Downloading Trunk 1.16.0...
⣽ Downloading Trunk 1.16.0...
⣾ Downloading Trunk 1.16.0...
⣷ Downloading Trunk 1.16.0...
⣯ Downloading Trunk 1.16.0...
⣟ Downloading Trunk 1.16.0...
⡿ Downloading Trunk 1.16.0...
⢿ Downloading Trunk 1.16.0...
⣻ Downloading Trunk 1.16.0...
⣽ Downloading Trunk 1.16.0...
⣾ Downloading Trunk 1.16.0...
⣷ Downloading Trunk 1.16.0...
⣯ Downloading Trunk 1.16.0...
⣟ Downloading Trunk 1.16.0...
⡿ Downloading Trunk 1.16.0...
⢿ Downloading Trunk 1.16.0...
⣻ Downloading Trunk 1.16.0...
⣽ Downloading Trunk 1.16.0...
⣾ Downloading Trunk 1.16.0...
⣷ Downloading Trunk 1.16.0...
⣯ Downloading Trunk 1.16.0...
⣟ Downloading Trunk 1.16.0...
⡿ Downloading Trunk 1.16.0...
⢿ Downloading Trunk 1.16.0...
⣻ Downloading Trunk 1.16.0...
⣽ Downloading Trunk 1.16.0...
⣾ Downloading Trunk 1.16.0...
⣷ Downloading Trunk 1.16.0...
⣯ Downloading Trunk 1.16.0...
✔ Downloading Trunk 1.16.0... done
⡿ Verifying Trunk sha256...
✔ Verifying Trunk sha256... done
⡿ Unpacking Trunk...
✔ Unpacking Trunk... done

✔ 16 linters were enabled (.trunk/trunk.yaml)
  bandit 1.7.5 (57 python files)
  black 23.9.1 (57 python files)
  checkov 2.4.9 (3 json, 11 yaml files)
  git-diff-check (10143 files)
  isort 5.12.0 (57 python files) (created .isort.cfg)
  markdownlint 0.36.0 (12 markdown files) (created .markdownlint.yaml)
  nixpkgs-fmt 1.3.0 (2 nix files)
  oxipng 8.0.0 (27 png files)
  prettier 3.0.3 (3 html, 2 javascript, 3 json, 12 markdown, 11 yaml files)
  ruff 0.0.290 (57 python files) (created ruff.toml)
  shellcheck 0.9.0 (458 shell files) (created .shellcheckrc)
  shfmt 3.6.0 (458 shell files)
  svgo 3.0.2 (1 svg file) (created svgo.config.js)
  trivy 0.45.1 (11 yaml files)
  trufflehog 3.56.1 (10143 files)
  yamllint 1.32.0 (11 yaml files) (created .yamllint.yaml)
Next Steps
 1. Read documentation
    Our documentation can be found at https://docs.trunk.io
 2. Get help and give feedback
    Join the Trunk community at https://slack.trunk.io
trunk fmt lib/functions/artifacts/artifact-firmware.sh 2/3 ✓

 ✔ Formatted lib/functions/artifacts/artifact-firmware.sh
Re-checking autofixed files...

Checked 1 file
✔ No issues
trunk check --fix lib/functions/artifacts/artifact-firmware.sh 3/3 ✓

  ISSUES  
lib/functions/artifacts/artifact-firmware.sh:45:2
 45:2   medium  artifact_version appears unused. Verify use (or export if used externally).            shellcheck/SC2034
 52:2   medium  artifact_version_reason appears unused. Verify use (or export if used externally).     shellcheck/SC2034
 54:2   medium  artifact_map_packages appears unused. Verify use (or export if used externally).       shellcheck/SC2034
 56:2   medium  artifact_name appears unused. Verify use (or export if used externally).               shellcheck/SC2034
 57:2   medium  artifact_type appears unused. Verify use (or export if used externally).               shellcheck/SC2034
 58:2   medium  artifact_deb_repo appears unused. Verify use (or export if used externally).           shellcheck/SC2034
 59:2   medium  artifact_deb_arch appears unused. Verify use (or export if used externally).           shellcheck/SC2034
 69:13  medium  ARMBIAN_COMMAND_REQUIRE_BASIC_DEPS appears unused. Verify use (or export if used       shellcheck/SC2034
                externally).                                                                                            
 80:2   medium  artifact_oci_target_base appears unused. Verify use (or export if used externally).    shellcheck/SC2034
Checked 1 file
9 existing issues
- [X] `lib/functions/artifacts/artifacts-obtain.sh` ✅ Commit [`d1e9de0`](https://github.com/kevinlu1248/armbian-build/commit/d1e9de02639f67305e18be44fe4baee2bef540a3)
• Repeat the same steps as for shellcheck.sh.
- [X] `lib/functions/artifacts/artifacts-reversion.sh` ✅ Commit [`7172767`](https://github.com/kevinlu1248/armbian-build/commit/71727671580588adc7632602c277b2cf273371f1)
• Repeat the same steps as for shellcheck.sh.
Sandbox Execution Logs
trunk init 1/3 ✓
⡿ Downloading Trunk 1.16.0...
⡿ Downloading Trunk 1.16.0...
⢿ Downloading Trunk 1.16.0...
⣻ Downloading Trunk 1.16.0...
⣽ Downloading Trunk 1.16.0...
⣾ Downloading Trunk 1.16.0...
⣷ Downloading Trunk 1.16.0...
⣯ Downloading Trunk 1.16.0...
⣟ Downloading Trunk 1.16.0...
⡿ Downloading Trunk 1.16.0...
⢿ Downloading Trunk 1.16.0...
⣻ Downloading Trunk 1.16.0...
⣽ Downloading Trunk 1.16.0...
⣾ Downloading Trunk 1.16.0...
⣷ Downloading Trunk 1.16.0...
⣯ Downloading Trunk 1.16.0...
⣟ Downloading Trunk 1.16.0...
⡿ Downloading Trunk 1.16.0...
⢿ Downloading Trunk 1.16.0...
⣻ Downloading Trunk 1.16.0...
⣽ Downloading Trunk 1.16.0...
⣾ Downloading Trunk 1.16.0...
⣷ Downloading Trunk 1.16.0...
⣯ Downloading Trunk 1.16.0...
⣟ Downloading Trunk 1.16.0...
⡿ Downloading Trunk 1.16.0...
⢿ Downloading Trunk 1.16.0...
⣻ Downloading Trunk 1.16.0...
⣽ Downloading Trunk 1.16.0...
⣾ Downloading Trunk 1.16.0...
⣷ Downloading Trunk 1.16.0...
⣯ Downloading Trunk 1.16.0...
✔ Downloading Trunk 1.16.0... done
⡿ Verifying Trunk sha256...
✔ Verifying Trunk sha256... done
⡿ Unpacking Trunk...
✔ Unpacking Trunk... done

✔ 16 linters were enabled (.trunk/trunk.yaml)
  bandit 1.7.5 (57 python files)
  black 23.9.1 (57 python files)
  checkov 2.4.9 (3 json, 11 yaml files)
  git-diff-check (10143 files)
  isort 5.12.0 (57 python files) (created .isort.cfg)
  markdownlint 0.36.0 (12 markdown files) (created .markdownlint.yaml)
  nixpkgs-fmt 1.3.0 (2 nix files)
  oxipng 8.0.0 (27 png files)
  prettier 3.0.3 (3 html, 2 javascript, 3 json, 12 markdown, 11 yaml files)
  ruff 0.0.290 (57 python files) (created ruff.toml)
  shellcheck 0.9.0 (458 shell files) (created .shellcheckrc)
  shfmt 3.6.0 (458 shell files)
  svgo 3.0.2 (1 svg file) (created svgo.config.js)
  trivy 0.45.1 (11 yaml files)
  trufflehog 3.56.1 (10143 files)
  yamllint 1.32.0 (11 yaml files) (created .yamllint.yaml)
Next Steps
 1. Read documentation
    Our documentation can be found at https://docs.trunk.io
 2. Get help and give feedback
    Join the Trunk community at https://slack.trunk.io
trunk fmt lib/functions/artifacts/artifacts-reversion.sh 2/3 ✓

 ✔ Formatted lib/functions/artifacts/artifacts-reversion.sh
Re-checking autofixed files...

Checked 1 file
✔ No issues
trunk check --fix lib/functions/artifacts/artifacts-reversion.sh 3/3 ✓

  ISSUES  
lib/functions/artifacts/artifacts-reversion.sh:1:1
  1:1  high    Tips depend on target shell and yours is unknown. Add a shebang or a 'shell'            shellcheck/SC2148
               directive.                                                                                               
 17:2  medium  artifact_reversioning_hash appears unused. Verify use (or export if used externally).   shellcheck/SC2034
Checked 1 file
2 existing issues
- [X] `lib/functions/artifacts/artifact-uboot.sh` ✅ Commit [`d01511e`](https://github.com/kevinlu1248/armbian-build/commit/d01511ec63b4bd5da480182f5d3645f4f9a84ced)
• Repeat the same steps as for shellcheck.sh.
- [X] `lib/functions/artifacts/artifact-armbian-base-files.sh` ✅ Commit [`349f978`](https://github.com/kevinlu1248/armbian-build/commit/349f97834b9246460a8f3eb6e3f7b8105d37fcd8)
• Repeat the same steps as for shellcheck.sh.
Sandbox Execution Logs
- [X] `lib/functions/artifacts/artifact-rootfs.sh` ❌ Failed
• Repeat the same steps as for shellcheck.sh.
- [X] `lib/functions/artifacts/artifact-kernel.sh` ✅ Commit [`1ce5884`](https://github.com/kevinlu1248/armbian-build/commit/1ce588405566a190f7b9f359a1b88c1ad7c09edc)
• Repeat the same steps as for shellcheck.sh.
Sandbox Execution Logs
- [X] `lib/functions/artifacts/artifact-full_firmware.sh` ✅ Commit [`41886d8`](https://github.com/kevinlu1248/armbian-build/commit/41886d87130da89f0aca18131406f03cd85db82c)
• Repeat the same steps as for shellcheck.sh.
Sandbox Execution Logs
sweep-nightly[bot] commented 10 months ago

Here's the PR! https://github.com/kevinlu1248/armbian-build/pull/75.

💎 Sweep Pro: I used GPT-4 to create this ticket. You have unlimited GPT-4 tickets.


Actions (click)


Step 1: 🔎 Searching

I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.

Some code snippets I looked at (click to expand). If some file is missing from here, you can mention the path in the ticket description. https://github.com/kevinlu1248/armbian-build/blob/e13c915efd6b71179224c064bd1c07fbbcb8b81b/lib/tools/shellcheck.sh#L1-L146 https://github.com/kevinlu1248/armbian-build/blob/e13c915efd6b71179224c064bd1c07fbbcb8b81b/lib/functions/artifacts/artifact-full_firmware.sh#L1-L106 https://github.com/kevinlu1248/armbian-build/blob/e13c915efd6b71179224c064bd1c07fbbcb8b81b/lib/functions/artifacts/artifact-kernel.sh#L1-L265 https://github.com/kevinlu1248/armbian-build/blob/e13c915efd6b71179224c064bd1c07fbbcb8b81b/lib/functions/artifacts/artifact-firmware.sh#L1-L96 https://github.com/kevinlu1248/armbian-build/blob/e13c915efd6b71179224c064bd1c07fbbcb8b81b/lib/functions/artifacts/artifact-armbian-base-files.sh#L1-L246

Step 2: ⌨️ Coding

trunk init 1/3 ✓
⡿ Downloading Trunk 1.16.0...
⡿ Downloading Trunk 1.16.0...
⢿ Downloading Trunk 1.16.0...
⣻ Downloading Trunk 1.16.0...
⣽ Downloading Trunk 1.16.0...
⣾ Downloading Trunk 1.16.0...
⣷ Downloading Trunk 1.16.0...
⣯ Downloading Trunk 1.16.0...
⣟ Downloading Trunk 1.16.0...
⡿ Downloading Trunk 1.16.0...
⢿ Downloading Trunk 1.16.0...
⣻ Downloading Trunk 1.16.0...
⣽ Downloading Trunk 1.16.0...
⣾ Downloading Trunk 1.16.0...
⣷ Downloading Trunk 1.16.0...
⣯ Downloading Trunk 1.16.0...
⣟ Downloading Trunk 1.16.0...
⡿ Downloading Trunk 1.16.0...
⢿ Downloading Trunk 1.16.0...
⣻ Downloading Trunk 1.16.0...
⣽ Downloading Trunk 1.16.0...
⣾ Downloading Trunk 1.16.0...
⣷ Downloading Trunk 1.16.0...
⣯ Downloading Trunk 1.16.0...
⣟ Downloading Trunk 1.16.0...
⡿ Downloading Trunk 1.16.0...
⢿ Downloading Trunk 1.16.0...
⣻ Downloading Trunk 1.16.0...
⣽ Downloading Trunk 1.16.0...
⣾ Downloading Trunk 1.16.0...
⣷ Downloading Trunk 1.16.0...
⣯ Downloading Trunk 1.16.0...
✔ Downloading Trunk 1.16.0... done
⡿ Verifying Trunk sha256...
✔ Verifying Trunk sha256... done
⡿ Unpacking Trunk...
✔ Unpacking Trunk... done

✔ 16 linters were enabled (.trunk/trunk.yaml)
  bandit 1.7.5 (57 python files)
  black 23.9.1 (57 python files)
  checkov 2.4.9 (3 json, 11 yaml files)
  git-diff-check (10143 files)
  isort 5.12.0 (57 python files) (created .isort.cfg)
  markdownlint 0.36.0 (12 markdown files) (created .markdownlint.yaml)
  nixpkgs-fmt 1.3.0 (2 nix files)
  oxipng 8.0.0 (27 png files)
  prettier 3.0.3 (3 html, 2 javascript, 3 json, 12 markdown, 11 yaml files)
  ruff 0.0.290 (57 python files) (created ruff.toml)
  shellcheck 0.9.0 (458 shell files) (created .shellcheckrc)
  shfmt 3.6.0 (458 shell files)
  svgo 3.0.2 (1 svg file) (created svgo.config.js)
  trivy 0.45.1 (11 yaml files)
  trufflehog 3.56.1 (10143 files)
  yamllint 1.32.0 (11 yaml files) (created .yamllint.yaml)
Next Steps
 1. Read documentation
    Our documentation can be found at https://docs.trunk.io
 2. Get help and give feedback
    Join the Trunk community at https://slack.trunk.io
trunk fmt lib/functions/artifacts/artifact-armbian-bsp-cli.sh 2/3 ✓

 ✔ Formatted lib/functions/artifacts/artifact-armbian-bsp-cli.sh
Re-checking autofixed files...

Checked 1 file
✔ No issues
trunk check --fix lib/functions/artifacts/artifact-armbian-bsp-cli.sh 3/3 ✓

  ISSUES  
lib/functions/artifacts/artifact-armbian-bsp-cli.sh:13:2
  13:2   medium  artifact_input_variables appears unused. Verify use (or export if used externally).   shellcheck/SC2034
  30:10  low     Consider invoking this command separately to avoid masking its return value (or use   shellcheck/SC2312
                 '|| true' to ignore).                                                                                  
  34:45  low     Consider invoking this command separately to avoid masking its return value (or use   shellcheck/SC2312
                 '|| true' to ignore).                                                                                  
  90:2   medium  artifact_version appears unused. Verify use (or export if used externally).           shellcheck/SC2034
 103:2   medium  artifact_version_reason appears unused. Verify use (or export if used externally).    shellcheck/SC2034
 105:2   medium  artifact_deb_repo appears unused. Verify use (or export if used externally).          shellcheck/SC2034
 106:2   medium  artifact_deb_arch appears unused. Verify use (or export if used externally).          shellcheck/SC2034
 108:2   medium  artifact_type appears unused. Verify use (or export if used externally).              shellcheck/SC2034
 134:13  medium  ARMBIAN_COMMAND_REQUIRE_BASIC_DEPS appears unused. Verify use (or export if used      shellcheck/SC2034
                 externally).                                                                                           
 146:2   medium  artifact_oci_target_base appears unused. Verify use (or export if used externally).   shellcheck/SC2034
Checked 1 file
10 existing issues

trunk init 1/3 ✓
⡿ Downloading Trunk 1.16.0...
⡿ Downloading Trunk 1.16.0...
⢿ Downloading Trunk 1.16.0...
⣻ Downloading Trunk 1.16.0...
⣽ Downloading Trunk 1.16.0...
⣾ Downloading Trunk 1.16.0...
⣷ Downloading Trunk 1.16.0...
⣯ Downloading Trunk 1.16.0...
⣟ Downloading Trunk 1.16.0...
⡿ Downloading Trunk 1.16.0...
⢿ Downloading Trunk 1.16.0...
⣻ Downloading Trunk 1.16.0...
⣽ Downloading Trunk 1.16.0...
⣾ Downloading Trunk 1.16.0...
⣷ Downloading Trunk 1.16.0...
⣯ Downloading Trunk 1.16.0...
⣟ Downloading Trunk 1.16.0...
⡿ Downloading Trunk 1.16.0...
⢿ Downloading Trunk 1.16.0...
⣻ Downloading Trunk 1.16.0...
⣽ Downloading Trunk 1.16.0...
⣾ Downloading Trunk 1.16.0...
⣷ Downloading Trunk 1.16.0...
⣯ Downloading Trunk 1.16.0...
⣟ Downloading Trunk 1.16.0...
⡿ Downloading Trunk 1.16.0...
⢿ Downloading Trunk 1.16.0...
⣻ Downloading Trunk 1.16.0...
⣽ Downloading Trunk 1.16.0...
⣾ Downloading Trunk 1.16.0...
⣷ Downloading Trunk 1.16.0...
⣯ Downloading Trunk 1.16.0...
✔ Downloading Trunk 1.16.0... done
⡿ Verifying Trunk sha256...
✔ Verifying Trunk sha256... done
⡿ Unpacking Trunk...
✔ Unpacking Trunk... done

✔ 16 linters were enabled (.trunk/trunk.yaml)
  bandit 1.7.5 (57 python files)
  black 23.9.1 (57 python files)
  checkov 2.4.9 (3 json, 11 yaml files)
  git-diff-check (10143 files)
  isort 5.12.0 (57 python files) (created .isort.cfg)
  markdownlint 0.36.0 (12 markdown files) (created .markdownlint.yaml)
  nixpkgs-fmt 1.3.0 (2 nix files)
  oxipng 8.0.0 (27 png files)
  prettier 3.0.3 (3 html, 2 javascript, 3 json, 12 markdown, 11 yaml files)
  ruff 0.0.290 (57 python files) (created ruff.toml)
  shellcheck 0.9.0 (458 shell files) (created .shellcheckrc)
  shfmt 3.6.0 (458 shell files)
  svgo 3.0.2 (1 svg file) (created svgo.config.js)
  trivy 0.45.1 (11 yaml files)
  trufflehog 3.56.1 (10143 files)
  yamllint 1.32.0 (11 yaml files) (created .yamllint.yaml)
Next Steps
 1. Read documentation
    Our documentation can be found at https://docs.trunk.io
 2. Get help and give feedback
    Join the Trunk community at https://slack.trunk.io
trunk fmt lib/functions/artifacts/artifact-firmware.sh 2/3 ✓

 ✔ Formatted lib/functions/artifacts/artifact-firmware.sh
Re-checking autofixed files...

Checked 1 file
✔ No issues
trunk check --fix lib/functions/artifacts/artifact-firmware.sh 3/3 ✓

  ISSUES  
lib/functions/artifacts/artifact-firmware.sh:45:2
 45:2   medium  artifact_version appears unused. Verify use (or export if used externally).            shellcheck/SC2034
 52:2   medium  artifact_version_reason appears unused. Verify use (or export if used externally).     shellcheck/SC2034
 54:2   medium  artifact_map_packages appears unused. Verify use (or export if used externally).       shellcheck/SC2034
 56:2   medium  artifact_name appears unused. Verify use (or export if used externally).               shellcheck/SC2034
 57:2   medium  artifact_type appears unused. Verify use (or export if used externally).               shellcheck/SC2034
 58:2   medium  artifact_deb_repo appears unused. Verify use (or export if used externally).           shellcheck/SC2034
 59:2   medium  artifact_deb_arch appears unused. Verify use (or export if used externally).           shellcheck/SC2034
 69:13  medium  ARMBIAN_COMMAND_REQUIRE_BASIC_DEPS appears unused. Verify use (or export if used       shellcheck/SC2034
                externally).                                                                                            
 80:2   medium  artifact_oci_target_base appears unused. Verify use (or export if used externally).    shellcheck/SC2034
Checked 1 file
9 existing issues

trunk init 1/3 ✓
⡿ Downloading Trunk 1.16.0...
⡿ Downloading Trunk 1.16.0...
⢿ Downloading Trunk 1.16.0...
⣻ Downloading Trunk 1.16.0...
⣽ Downloading Trunk 1.16.0...
⣾ Downloading Trunk 1.16.0...
⣷ Downloading Trunk 1.16.0...
⣯ Downloading Trunk 1.16.0...
⣟ Downloading Trunk 1.16.0...
⡿ Downloading Trunk 1.16.0...
⢿ Downloading Trunk 1.16.0...
⣻ Downloading Trunk 1.16.0...
⣽ Downloading Trunk 1.16.0...
⣾ Downloading Trunk 1.16.0...
⣷ Downloading Trunk 1.16.0...
⣯ Downloading Trunk 1.16.0...
⣟ Downloading Trunk 1.16.0...
⡿ Downloading Trunk 1.16.0...
⢿ Downloading Trunk 1.16.0...
⣻ Downloading Trunk 1.16.0...
⣽ Downloading Trunk 1.16.0...
⣾ Downloading Trunk 1.16.0...
⣷ Downloading Trunk 1.16.0...
⣯ Downloading Trunk 1.16.0...
⣟ Downloading Trunk 1.16.0...
⡿ Downloading Trunk 1.16.0...
⢿ Downloading Trunk 1.16.0...
⣻ Downloading Trunk 1.16.0...
⣽ Downloading Trunk 1.16.0...
⣾ Downloading Trunk 1.16.0...
⣷ Downloading Trunk 1.16.0...
⣯ Downloading Trunk 1.16.0...
✔ Downloading Trunk 1.16.0... done
⡿ Verifying Trunk sha256...
✔ Verifying Trunk sha256... done
⡿ Unpacking Trunk...
✔ Unpacking Trunk... done

✔ 16 linters were enabled (.trunk/trunk.yaml)
  bandit 1.7.5 (57 python files)
  black 23.9.1 (57 python files)
  checkov 2.4.9 (3 json, 11 yaml files)
  git-diff-check (10143 files)
  isort 5.12.0 (57 python files) (created .isort.cfg)
  markdownlint 0.36.0 (12 markdown files) (created .markdownlint.yaml)
  nixpkgs-fmt 1.3.0 (2 nix files)
  oxipng 8.0.0 (27 png files)
  prettier 3.0.3 (3 html, 2 javascript, 3 json, 12 markdown, 11 yaml files)
  ruff 0.0.290 (57 python files) (created ruff.toml)
  shellcheck 0.9.0 (458 shell files) (created .shellcheckrc)
  shfmt 3.6.0 (458 shell files)
  svgo 3.0.2 (1 svg file) (created svgo.config.js)
  trivy 0.45.1 (11 yaml files)
  trufflehog 3.56.1 (10143 files)
  yamllint 1.32.0 (11 yaml files) (created .yamllint.yaml)
Next Steps
 1. Read documentation
    Our documentation can be found at https://docs.trunk.io
 2. Get help and give feedback
    Join the Trunk community at https://slack.trunk.io
trunk fmt lib/functions/artifacts/artifacts-reversion.sh 2/3 ✓

 ✔ Formatted lib/functions/artifacts/artifacts-reversion.sh
Re-checking autofixed files...

Checked 1 file
✔ No issues
trunk check --fix lib/functions/artifacts/artifacts-reversion.sh 3/3 ✓

  ISSUES  
lib/functions/artifacts/artifacts-reversion.sh:1:1
  1:1  high    Tips depend on target shell and yours is unknown. Add a shebang or a 'shell'            shellcheck/SC2148
               directive.                                                                                               
 17:2  medium  artifact_reversioning_hash appears unused. Verify use (or export if used externally).   shellcheck/SC2034
Checked 1 file
2 existing issues


Step 3: 🔁 Code Review

I have finished reviewing the code for completeness. I did not find errors for sweep/replace-x-hack_9.

.


🎉 Latest improvements to Sweep:


💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request. Join Our Discord