Commit graph

22 commits

Author SHA1 Message Date
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
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