Skip to content

[CI] Run shellcheck and shfmt#2454

Merged
Alkarex merged 5 commits intoFreshRSS:devfrom
Frenzie:shellcheck
Jul 22, 2019
Merged

[CI] Run shellcheck and shfmt#2454
Alkarex merged 5 commits intoFreshRSS:devfrom
Frenzie:shellcheck

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
@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
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.

2 participants