You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Description
This is the first part of the refactoring effort to ensure that the
shell scripts:
- Follow a consistent convention,
- Pass the ShellCheck linting test (please run `make
shellscript-lint-all`), and
- Work either with the pre-installed CLI tooling or run commands using
Docker containers.
## Context
Information for a reviewer:
- The first two commits,
[a4517db](nhs-england-tools@a4517db)
and
[7b94f14](nhs-england-tools@7b94f14),
implement stylistic and linting recommendations.
- The last two commits,
[f8b9e84](nhs-england-tools@f8b9e84)
and
[22f7700](nhs-england-tools@22f7700),
refactor how tools like Gitleaks and SonarScanner are executed.
## Type of changes
- [x] Refactoring (non-breaking change)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would change existing
functionality)
- [ ] Bug fix (non-breaking change which fixes an issue)
## Checklist
- [x] I am familiar with the [contributing
guidelines](../docs/CONTRIBUTING.md)
- [x] I have followed the code style of the project
- [ ] I have added tests to cover my changes
- [ ] I have updated the documentation accordingly
- [ ] This PR is a result of pair or mob programming
---
## Sensitive Information Declaration
To ensure the utmost confidentiality and protect your and others
privacy, we kindly ask you to NOT including [PII (Personal Identifiable
Information) / PID (Personal Identifiable
Data)](https://digital.nhs.uk/data-and-information/keeping-data-safe-and-benefitting-the-public)
or any other sensitive data in this PR (Pull Request) and the codebase
changes. We will remove any PR that do contain any sensitive
information. We really appreciate your cooperation in this matter.
- [x] I confirm that neither PII/PID nor sensitive data are included in
this PR and the codebase changes.
---------
Co-authored-by: Alex Young <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,8 @@ The following software packages, or their equivalents, are expected to be instal
48
48
-[docker](https://www.docker.com/) container runtime or a compatible tool, e.g. [podman](https://podman.io/),
49
49
-[asdf](https://asdf-vm.com/) version manager,
50
50
-[GNU make](https://www.gnu.org/software/make/) 3.82 or later,
51
-
-[GNU coreutils](https://www.gnu.org/software/coreutils/) and [GNU binutils](https://www.gnu.org/software/binutils/) may be required to build dependencies like Python, which may need to be compiled during installation. For macOS users, this has been scripted and automated by the `dotfiles` project; please see this [script](https://github.com/nhs-england-tools/dotfiles/blob/main/assets/20-install-base-packages.macos.sh) for details.
51
+
-[GNU coreutils](https://www.gnu.org/software/coreutils/) and [GNU binutils](https://www.gnu.org/software/binutils/) may be required to build dependencies like Python, which may need to be compiled during installation. For macOS users, this has been scripted and automated by the `dotfiles` project; please see this [script](https://github.com/nhs-england-tools/dotfiles/blob/main/assets/20-install-base-packages.macos.sh) for details,
52
+
-[jq](https://jqlang.github.io/jq/) a lightweight and flexible command-line JSON processor.
52
53
53
54
> [!NOTE]<br>
54
55
> The version of GNU make available by default on macOS is earlier than 3.82. You will need to upgrade it or certain `make` tasks will fail. On macOS, you will need [homebrew](https://brew.sh/) installed, then to install `make`, like so:
Copy file name to clipboardExpand all lines: scripts/githooks/check-file-format.sh
+13-11Lines changed: 13 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
#!/bin/bash
2
2
3
-
set +e
3
+
# WARNING: Please, DO NOT edit this file! It is maintained in the Repository Template (https://github.com/nhs-england-tools/repository-template). Raise a PR instead.
4
+
5
+
set -euo pipefail
4
6
5
7
# Pre-commit git hook to check the EditorConfig rules compliance over changed
6
8
# files. It ensures all non-binary files across the codebase are formatted
@@ -17,7 +19,6 @@ set +e
17
19
# 0 - All files are formatted correctly
18
20
# 1 - Files are not formatted correctly
19
21
#
20
-
#
21
22
# The `check` parameter controls which files are checked, so you can
22
23
# limit the scope of the check according to what is appropriate at the
0 commit comments