Skip to content

Commit b1ccb6b

Browse files
committed
Reduce line length to <=120 in YAML files where feasible
120 columns is the recommended line length for YAML code in Arduino tooling projects. The yamllint tool used by the "Check YAML" template produces a warning when a line exceeds this length. This is not a hard limit and in some cases it is either impossible or not beneficial to make lines less than 120 in length so some violations of the guideline are unavoidable. However, a survey of the YAML files in the repository revealed some opportunities for improving the code by reducing the lengths.
1 parent 87ff1db commit b1ccb6b

File tree

4 files changed

+17
-7
lines changed

4 files changed

+17
-7
lines changed

.github/workflows/compare-performance.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,8 @@ jobs:
163163
# private repo. The `go.mod` file was added at the same time the dependency was removed, so its presence can
164164
# be used as the indicator.
165165
git config \
166-
--global url."https://${{ secrets.REPO_SCOPE_TOKEN }}:[email protected]/".insteadOf "https://github.com/"
166+
--global \
167+
url."https://${{ secrets.REPO_SCOPE_TOKEN }}:[email protected]/".insteadOf "https://github.com/"
167168
fi
168169
169170
- name: Build engine

.github/workflows/publish-go-tester-task.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ jobs:
6363
- name: Set environment variables
6464
run: |
6565
# See: https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable
66-
echo "BUILD_ARCHIVE_PATH=${{ runner.temp }}/libraries-repository-engine_${{ github.sha }}_Linux_64bit.zip" >> "$GITHUB_ENV"
66+
echo "BUILD_ARCHIVE_PATH=${{ runner.temp }}/libraries-repository-engine_${{ github.sha }}_Linux_64bit.zip" \
67+
>> "$GITHUB_ENV"
6768
6869
- name: Checkout repository
6970
uses: actions/checkout@v3

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ jobs:
2525
# See: https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable
2626
TAG_SHORT_NAME="${GITHUB_REF/refs\/tags\//}"
2727
echo "TAG_SHORT_NAME=$TAG_SHORT_NAME" >> "$GITHUB_ENV"
28-
echo "ARCHIVE_PATH=${{ runner.temp }}/libraries-repository-engine_${TAG_SHORT_NAME}_Linux_64bit.tar.gz" >> "$GITHUB_ENV"
28+
echo "ARCHIVE_PATH=${{ runner.temp }}/libraries-repository-engine_${TAG_SHORT_NAME}_Linux_64bit.tar.gz" \
29+
>> "$GITHUB_ENV"
2930
echo "CHANGELOG_PATH=${{ runner.temp }}/CHANGELOG.md" >> "$GITHUB_ENV"
3031
echo "SEMVER_TOOL_PATH=${{ runner.temp }}/semver" >> "$GITHUB_ENV"
3132

Taskfile.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ vars:
66
DEFAULT_GO_MODULE_PATH: ./
77
DEFAULT_GO_PACKAGES:
88
sh: |
9-
echo $(cd {{default .DEFAULT_GO_MODULE_PATH .GO_MODULE_PATH}} && go list ./... | tr '\n' ' ' || echo '"ERROR: Unable to discover Go packages"')
9+
echo $(
10+
cd {{default .DEFAULT_GO_MODULE_PATH .GO_MODULE_PATH}} &&
11+
go list ./... | tr '\n' ' ' ||
12+
echo '"ERROR: Unable to discover Go packages"'
13+
)
1014
LDFLAGS:
1115

1216
tasks:
@@ -49,7 +53,8 @@ tasks:
4953
cmds:
5054
- |
5155
if ! which ec &>/dev/null; then
52-
echo "ec not found or not in PATH. Please install: https://github.com/editorconfig-checker/editorconfig-checker#installation"
56+
echo "ec not found or not in PATH."
57+
echo "Please install: https://github.com/editorconfig-checker/editorconfig-checker#installation"
5358
exit 1
5459
fi
5560
- ec
@@ -146,7 +151,8 @@ tasks:
146151
# npx --call uses the native shell, which makes it too difficult to use npx for this application on Windows,
147152
# so the Windows user is required to have markdown-link-check installed and in PATH.
148153
if ! which markdown-link-check &>/dev/null; then
149-
echo "markdown-link-check not found or not in PATH. Please install: https://github.com/tcort/markdown-link-check#readme"
154+
echo "markdown-link-check not found or not in PATH."
155+
echo "Please install: https://github.com/tcort/markdown-link-check#readme"
150156
exit 1
151157
fi
152158
# Default behavior of the task on Windows is to exit the task when the first broken link causes a non-zero
@@ -254,7 +260,8 @@ tasks:
254260
echo "Licensed does not have Windows support."
255261
echo "Please use Linux/macOS or download the dependencies cache from the GitHub Actions workflow artifact."
256262
else
257-
echo "licensed not found or not in PATH. Please install: https://github.com/github/licensed#as-an-executable"
263+
echo "licensed not found or not in PATH."
264+
echo "Please install: https://github.com/github/licensed#as-an-executable"
258265
fi
259266
exit 1
260267
fi

0 commit comments

Comments
 (0)