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

[CI] Run shellcheck and shfmt #2454

Merged
merged 5 commits into from
Jul 22, 2019
Merged

[CI] Run shellcheck and shfmt #2454

merged 5 commits into from
Jul 22, 2019

Conversation

Frenzie
Copy link
Member

@Frenzie Frenzie commented Jul 22, 2019

Cf. #2436 (comment)


I wrote this script years ago, long before these tools became a standard part of Travis. ShellCheck is a good idea on any script; shfmt has fewer obvious benefits given how few we have and how small they are but I'd say why not?

@Alkarex Alkarex added this to the 1.14.3 milestone Jul 22, 2019
.travis.yml Outdated Show resolved Hide resolved
.ci/helper_shellchecks.sh Outdated Show resolved Hide resolved
@Alkarex Alkarex merged commit ad92518 into FreshRSS:dev Jul 22, 2019

for shellscript in "${shellscript_locations[@]}"; do
echo -e "${ANSI_GREEN}Running shellcheck on ${shellscript}"
shellcheck "${shellscript}" || SHELLSCRIPT_ERROR=1
Copy link
Member

@Alkarex Alkarex Jul 23, 2019

Choose a reason for hiding this comment

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

It could be good to add a note in about this test in https://github.com/FreshRSS/FreshRSS/blob/dev/tests/README.md , and also that it requires installing shellcheck and shfmt

Alkarex added a commit that referenced this pull request Jul 23, 2019
#2454
#2455
#2456
+hadolint remove PIP warning
@Frenzie Frenzie deleted the shellcheck branch July 23, 2019 13:26
Frenzie added a commit to Frenzie/FreshRSS that referenced this pull request Jul 23, 2019
javerous pushed a commit to javerous/FreshRSS that referenced this pull request Jan 20, 2020
* [CI] Run shellcheck and shfmt

Cf. FreshRSS#2436 (comment)

* rename

* no need for disable anymore

* also remove leftover indentation flags even if it makes no difference to syntax checking

* define colors and reset before exit for local use
javerous pushed a commit to javerous/FreshRSS that referenced this pull request Jan 20, 2020
javerous pushed a commit to javerous/FreshRSS that referenced this pull request Jan 20, 2020
mdemoss pushed a commit to mdemoss/FreshRSS that referenced this pull request Mar 25, 2021
* [CI] Run shellcheck and shfmt

Cf. FreshRSS#2436 (comment)

* rename

* no need for disable anymore

* also remove leftover indentation flags even if it makes no difference to syntax checking

* define colors and reset before exit for local use
mdemoss pushed a commit to mdemoss/FreshRSS that referenced this pull request Mar 25, 2021
mdemoss pushed a commit to mdemoss/FreshRSS that referenced this pull request Mar 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants