-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Themes: Fix shellcheck
(SC2154); Part C
#1954
base: master
Are you sure you want to change the base?
Conversation
c8c0d26
to
75400ec
Compare
75400ec
to
af0f1ff
Compare
This is ready to review and hopefully ready to merge 😃 NOTE: All the commits in this PR are single-file changes, so it may be easier to review per commit rather than all at once. I'm open to pulling some files out to separate PRs if needed. |
3fd1c02
to
6d58c8a
Compare
56e179e
to
5b2d40f
Compare
After going through all these themes, I have this suspicion that a lot of the themes are broken. |
ae7b9df
to
6d481fe
Compare
@davidpfarrell, @cornfeedhobo, @NoahGorny, I'd love to get some feedback on this one when any of you have time! I've used A couple of things I've noticed:
|
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.
I find this PR to be too large and risky - Although not optimal, I might like to see per-theme PR's here.
Or maybe make a few bigger PRs with easy to review changes and leave the more complex changes for single-theme PRs ...
c9ef7b9
to
91ae581
Compare
bed56d8
to
7ab4167
Compare
@davidpfarrell, @NoahGorny, this PR is now much smaller since the intermediate PRs have been merged. |
25d2612
to
2213a04
Compare
e99e1b2
to
e23d239
Compare
Hi @gaelicWizard, I think we should probably split this up for even more parts, this will make it much easier to review for me (the changes are unrelated to each other) |
@NoahGorny, most of these already have open PRs. The "base" theme has #2038, pure has #2068, &c. I expect this PR to shrink even more as those are merged and leave only a few tidbits after. |
e8a14db
to
e3dc418
Compare
0dacbcb
to
7d77c74
Compare
Handle all unbound parameters, even colors! Alsö, fix some local variables and variable assignments. The unicode/emoji symbols don’t show up for me so that makes me think they won’t work, but it *looks* like the history has these characters in them so…I dunno
Handle all unbound parameters, even colors! Local some variables, &c
Handle all unbound parameters, even colors!
This bad boy has shrunk down pretty small. Three files left: bargbuk, binaryanomaly, and modern. I think that's fair to review together. |
I'll gladly review it if you could please merge the latest master, there are some conflicts in barbuk. |
Please review commit notes as appropriate.
Description
As a follow on to my work removing
.shellcheckrc
(#1947) from hiding problems, this PR addresses these problems inside individual themes.Motivation and Context
Due to the nature of themes, they use a huge number of variables from the themes lib and colors lib, but
shellcheck
is unable to follow the code flow so can't tell if these variables are defined or not. This patchset is meant to improve code so thatshellcheck
can either see the variables properly, or can trust that we have it under control.NOTE: All the commits in this PR are single-file changes, so it may be easier to review per commit rather than all at once. I'm open to pulling some files out to separate PRs if needed.
How Has This Been Tested?
VIRTUAL_ENV= THEME_SHOW_CLOCK= RBFU_RUBY_VERSION= BASH_IT_THEME=teh_them bash -u
and all tests pass.Types of changes
Checklist:
clean_files.txt
and formatted it usinglint_clean_files.sh
.