Skip to content

Commit e008d95

Browse files
leogdionclaude
andcommitted
Address PR review: guard mise env, document asdf plugin, update CLAUDE.md versions
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 936e7ad commit e008d95

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.mise.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
[tools]
22
swiftlint = "0.63.2"
33
periphery = "3.7.2"
4+
# Community asdf plugin — builds swift-format from source (no official binary releases)
5+
# Plugin repo: https://github.com/eelcokoelewijn/asdf-swift-format
46
"asdf:eelcokoelewijn/asdf-swift-format" = "602.0.0"

CLAUDE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ Sources/SyntaxKit/
8282
- **SwiftDocC Plugin** (1.4.0+) - Documentation generation
8383

8484
### Quality Tools
85-
- **SwiftFormat** (600.0.0) - Code formatting
86-
- **SwiftLint** (0.58.2) - Static analysis (90+ opt-in rules)
87-
- **Periphery** (3.0.1) - Unused code detection
85+
- **SwiftFormat** (602.0.0) - Code formatting
86+
- **SwiftLint** (0.63.2) - Static analysis (90+ opt-in rules)
87+
- **Periphery** (3.7.2) - Unused code detection
8888

8989
## Project Structure
9090

Scripts/lint.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@ else
3939
STRINGSLINT_OPTIONS="--config .stringslint.yml"
4040
fi
4141

42-
pushd $PACKAGE_DIR
42+
pushd "$PACKAGE_DIR"
4343
if [ -z "$CI" ]; then
4444
mise install
4545
fi
46-
eval "$(mise env)"
46+
if command -v mise &> /dev/null; then
47+
eval "$(mise env)"
48+
fi
4749

4850
if [ -z "$CI" ]; then
4951
run_command swift-format format $SWIFTFORMAT_OPTIONS --recursive --parallel --in-place Sources Tests

0 commit comments

Comments
 (0)