Skip to content

Commit bbd8190

Browse files
Lowercase app name, add CI and linter configs (#2)
* Lowercase app name, add CI workflow and linter configs Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Reformat codebase to 2-space indentation via swift-format Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Use built-in swift format and SwiftLint action in CI Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Fix SwiftLint action version to v0.63.2 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Use pre-installed swiftlint on macOS runner Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Install swiftlint via brew in CI (not pre-installed on runner) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Relax SwiftLint rules for short identifiers and function length Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Fix redundant let, raise cyclomatic complexity threshold for parsers Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Install Swift 6.2 toolchain in CI for package compatibility Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Restore let _ in ViewBuilder body, suppress swiftlint for that line Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a96c5d1 commit bbd8190

20 files changed

Lines changed: 1798 additions & 1732 deletions

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
jobs:
12+
lint-and-build:
13+
runs-on: macos-15
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Install Swift 6.2
18+
uses: swift-actions/setup-swift@v2
19+
with:
20+
swift-version: '6.2'
21+
22+
- name: Swift Format
23+
run: swift format lint --strict --recursive Sources/
24+
25+
- name: SwiftLint
26+
run: brew install swiftlint && swiftlint lint --strict
27+
28+
- name: Build
29+
run: swift build

.swift-format

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"version": 1,
3+
"indentation": {
4+
"spaces": 2
5+
},
6+
"lineLength": 120,
7+
"indentConditionalCompilationBlocks": true,
8+
"lineBreakBeforeControlFlowKeywords": false,
9+
"lineBreakBeforeEachArgument": false,
10+
"respectsExistingLineBreaks": true
11+
}

.swiftlint.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
indentation: 2
2+
line_length:
3+
warning: 120
4+
error: 200
5+
function_body_length:
6+
warning: 80
7+
error: 120
8+
cyclomatic_complexity:
9+
warning: 25
10+
error: 40
11+
identifier_name:
12+
min_length: 1
13+
disabled_rules:
14+
- trailing_comma
15+
- opening_brace
16+
excluded:
17+
- .build

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Devtail
1+
# devtail
22

33
A macOS menu bar app for launching and monitoring local development processes.
44

0 commit comments

Comments
 (0)