Commit graph

28 commits

Author SHA1 Message Date
Ross Goldberg
f1a9cde9fd
Use double quotes around bash substitutions.
Use braces around bash variable uses.

Partial #638

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-11-16 14:47:15 -05:00
Ross Goldberg
67ca8f5404
Improve script/lint output.
Change YAML emoji to fix spacing issue.

Move YAML lint before Git lint to keep the names getting progressively shorter.

Partial #638

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-11-16 14:46:32 -05:00
Ross Goldberg
e9fcf2b254
Merge branch 'main' into upstream/releases/release-1.8.7
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>

# Manual Merge Cleanup:
#	.actrc
#	.github/workflows/pr-checks.yml
#	.github/workflows/release.yml
#	Brewfile
#	script/test
#	script/version_bump

# Conflicts:
#	.github/workflows/build-test.yml
#	.gitignore
#	.swiftlint.yml
#	Brewfile.lock.json
#	Package.resolved
#	Sources/mas/Package.swift
#	Tests/masTests/.swiftlint.yml
#	script/bootstrap
#	script/build
#	script/format
#	script/lint
#	script/uninstall
#	script/version
2024-10-27 01:25:38 -04:00
Ross Goldberg
9e3b079ec8
Update lint.
- Change Swift bird emoji to ensure consistent spacing.

- Suppress output on GitHub runners.

- Simplify `grep` patterns.

Partial #594

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-10-24 07:46:50 -04:00
Ross Goldberg
466ea67194
Improve scripts: bootstrap, build, format, lint, test & version.
Allow them to be run from any directory.

Call version from lint & test to create Package.swift with version info.

Fail when accessing unset variables.

Improve variable names.

Fix lint issues.

Improve lint & format scripts.

Don't require user input to continue linting.

Much cleaner lint output.

Reorder lint output.

Get swift-format from Brewfile instead of from Package.swift:

 - Speeds up linting.
 - Properly models dependency (not a code dependency).
 - swift-format depends on an old version of swift-argument-parser. Will refactor to use SAP soon.

Include some improvements from 1.8.7 PR.

Other scripts need improvement, too.

Resolve #545

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-10-05 20:33:45 -04:00
Ben Chatelain
34ab84f30e
🚨 Format scripts and yaml 2024-03-31 11:05:04 -06:00
Ben Chatelain
7415f738d0 🔨 Include YAML in lint, format scripts 2024-02-18 14:05:02 -07:00
Chris Araman
b87a998f11 🧹 Move Periphery configuration 2021-06-08 19:49:02 -07:00
Chris Araman
726b1868f2 🧹 Restore shellcheck (0.7.2) 2021-06-08 19:49:02 -07:00
Chris Araman
e7fbcffbab 🧹 Don't modify shell scripts with script/lint 2021-06-04 15:58:30 -07:00
Chris Araman
0b8acab235 🧹 Lint with periphery 2021-05-08 20:14:18 -07:00
Chris Araman
4848f422d6 🧹 Match swift-format to compiler version
Fixes #364.
2021-05-08 20:14:18 -07:00
Chris Araman
2bc19e3b9b
🖊 Lint markdown 2021-05-03 13:42:18 -07:00
Chris Araman
7a7f36ad9b
📦 Declare mas as a Swift Package 2021-04-26 21:19:30 -07:00
Chris Araman
d287c5cfd6
🚧 Move sources to typical SPM locations 2021-04-26 21:04:37 -07:00
Chris Araman
9add9a7e0e
🍺 Assume swiftlint has been installed 2021-03-28 18:05:12 -07:00
Chris Araman
5df8db3fd6
🧹 Separate format from lint 2021-03-28 17:16:37 -07:00
Chris Araman
af944e8caf
🧹 Emit a warning when a linter is not installed 2021-03-28 14:21:37 -07:00
Chris Araman
3bc25449b0
🧹 Lint with swiftformat 2021-03-28 14:21:37 -07:00
Chris Araman
df9730d65f
🧹 Lint with swift-format 2021-03-28 14:21:14 -07:00
Chris Araman
09d2e6d43d
🧹 Correct swiftlint violations automatically 2021-03-28 14:15:17 -07:00
Chris Araman
fc33738f0f
🧹 Use git diff --check as another linter 2021-03-28 14:15:17 -07:00
Chris Araman
64695e2457
📜 Lint 2021-03-28 14:12:02 -07:00
Chris Araman
7f3cb753b4
📜 Switch to shfmt 2021-03-28 14:11:05 -07:00
Ben Chatelain
e4123a5653 💡 Add file header doc comments to scripts 2019-01-18 21:37:51 -07:00
Ben Chatelain
7e6e879b64 📜 Externalize swiftlint_runscript 2019-01-15 18:31:51 -07:00
Ben Chatelain
fc1211f643 🚨📜 Add shellcheck 2019-01-15 18:15:55 -07:00
Ben Chatelain
803e321fe4 📜 Add lint script 2019-01-12 13:30:08 -07:00