Skip to content
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

grammar fixes, quote vars in bash, fix README links #241

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

taimoorgit
Copy link
Contributor

@taimoorgit taimoorgit commented Jan 21, 2024

No description provided.

@taimoorgit taimoorgit added the enhancement New feature or request label Jan 21, 2024
@taimoorgit taimoorgit self-assigned this Jan 21, 2024
@taimoorgit taimoorgit changed the base branch from main to ta/smallfixesremovelingeringtodos January 21, 2024 19:30
Copy link

codecov bot commented Jan 21, 2024

Codecov Report

Attention: Patch coverage is 71.87500% with 18 lines in your changes are missing coverage. Please review.

Project coverage is 18.58%. Comparing base (2cc73a6) to head (fdfb631).
Report is 5 commits behind head on main.

❗ Current head fdfb631 differs from pull request most recent head 26726fb. Consider uploading reports for the commit 26726fb to get more accurate results

Files Patch % Lines
src/common/grammar.go 61.90% 12 Missing and 4 partials ⚠️
src/common/helpers.go 80.00% 1 Missing ⚠️
src/common/prompts.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            main     #241       +/-   ##
==========================================
+ Coverage   6.29%   18.58%   +12.29%     
==========================================
  Files          5        7        +2     
  Lines        254      312       +58     
==========================================
+ Hits          16       58       +42     
- Misses       238      250       +12     
- Partials       0        4        +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@taimoorgit taimoorgit changed the title Fixes for staticcheck Address staticcheck/GoLand warnings Jan 21, 2024
@taimoorgit taimoorgit added go Pull requests that update Go code code_quality Improves code quality and removed enhancement New feature or request labels Jan 22, 2024
@taimoorgit taimoorgit force-pushed the ta/smallfixesremovelingeringtodos branch 2 times, most recently from 4064a3d to 8752e3b Compare January 22, 2024 19:39
Base automatically changed from ta/smallfixesremovelingeringtodos to main January 22, 2024 19:42
@@ -1,21 +1,23 @@
#!/bin/bash

set -e
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added so that the CI can just exit if an error is encountered, preventing the script from trying to continue to run.

@taimoorgit taimoorgit changed the title Address staticcheck/GoLand warnings grammar fixes, quote vars in bash, fix README links Feb 27, 2024
@taimoorgit taimoorgit marked this pull request as ready for review February 27, 2024 22:19
DEBIAN_RELEASES=$(debian-distro-info --supported)
UBUNTU_RELEASES=$(ubuntu-distro-info --supported-esm)

mkdir -p cli-repo/deb
cd cli-repo/deb

for release in ${DEBIAN_RELEASES[@]} ${UBUNTU_RELEASES[@]}; do
for release in "${DEBIAN_RELEASES[@]}" "${UBUNTU_RELEASES[@]}"; do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This raises the question.
What bash/shell linters are we using for this project?

I know that my shell linter config is different than Kyle's config, and our "format on save" features are overwriting each others quote / curly braces defaults. This is a small annoyance that we should reconcile as a team.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@davidbloss great question - I used GoLand and it pointed out these errors to me.

I am pretty sure that it is using shellcheck under the hood.

Having a CI routine that runs shellcheck on all bash/sh programs would be an excellent thing to add.

We added something like this at my old job that really helped prevent potentially bad code script changes from merging in.

Copy link
Contributor

@davidbloss davidbloss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🎉

@taimoorgit taimoorgit merged commit a704033 into main Feb 28, 2024
4 checks passed
@taimoorgit taimoorgit deleted the ta/staticcheck-cli branch February 28, 2024 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code_quality Improves code quality go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants