overleaf/services/web/bin
Antoine Clausse fe03d8d7fd Add shellcheck to web, server-pro, server-ce (#23823)
* Update shellcheck files to include non ".sh" files having the sh shebang

* Add shellcheck to root Makefile

* `make shellcheck_fix`

* Add shellcheck to server-ce and server-pro

* Exclude SC1091 (Not following) in SP/CE

* Fix errors in SP

* Fix errors in CE

* Update root shellcheck to ignore all failing rules. We can later remove rules one by one.

* Add shellcheck to web

* Add shellcheck step for server-ce and server-pro in cloudbuild.yaml

* Revert "Add shellcheck to root Makefile"

This reverts commit e0fa56f2

* Revert "`make shellcheck_fix`"

This reverts commit eb179245c109a9e742a7fdeeb75a4bdd03963587.

* `make shellcheck_fix` in server-ce

* Fix: Use $(...) notation instead of legacy backticked

```
In init_scripts/100_set_docker_host_ipaddress.sh line 5:
echo "`route -n | awk '/UG[ \t]/{print $2}'` dockerhost" >> /etc/hosts
      ^-- SC2006 (style): Use $(...) notation instead of legacy backticks `...`.

Did you mean:
echo "$(route -n | awk '/UG[ \t]/{print $2}') dockerhost" >> /etc/hosts

For more information:
  https://www.shellcheck.net/wiki/SC2006 -- Use $(...) notation instead of le...
```

* `make shellcheck_fix` in web

* Manual corrections on autofix

* Update SHELLCHECK_FILES to Perl regex so it matches at start of file

GitOrigin-RevId: 815d53f319a3792efa22703beb75570de5977450
2025-02-26 09:05:02 +00:00
..
cdn_upload [web] fix waiting for cdn upload on staging-main (#23729) 2025-02-20 09:06:09 +00:00
cdn_upload_batch Add shellcheck to web, server-pro, server-ce (#23823) 2025-02-26 09:05:02 +00:00
check_extracted_translations Add shellcheck to web, server-pro, server-ce (#23823) 2025-02-26 09:05:02 +00:00
compress_assets Merge pull request #5670 from overleaf/jpa-cdn-pre-compress 2021-11-04 09:03:32 +00:00
compress_batch_of_assets Merge pull request #5670 from overleaf/jpa-cdn-pre-compress 2021-11-04 09:03:32 +00:00
copy_external_pages Merge pull request #1044 from sharelatex/ja-merge-modules 2018-10-24 10:29:57 +00:00
lint_flag_res_send_usage Convert app.js to ES modules 2024-10-14 11:04:23 +00:00
lint_locales Merge pull request #13981 from overleaf/jpa-i18n-ci-lint-fix 2023-07-21 08:05:01 +00:00
lint_pug_templates Merge pull request #3774 from overleaf/jpa-meta 2021-03-23 03:05:12 +00:00
push-translations-changes.sh Add shellcheck to web, server-pro, server-ce (#23823) 2025-02-26 09:05:02 +00:00
routes Merge pull request #6258 from overleaf/bg-improve-routes-tool 2022-01-13 09:03:40 +00:00
run Add shellcheck to web, server-pro, server-ce (#23823) 2025-02-26 09:05:02 +00:00
sentry_upload Only use sentry-cli sourcemaps upload (#20852) 2024-10-14 11:06:41 +00:00