Skip to content

Commit cba34a3

Browse files
committed
reorganized repo
1 parent 72961ff commit cba34a3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+4243
-1994
lines changed

.github/workflows/SyntaxKit.yml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -99,33 +99,33 @@ jobs:
9999
token: ${{ secrets.CODECOV_TOKEN }}
100100
flags: ${{ matrix.type && format('{0}{1}', matrix.type, matrix.osVersion) || 'spm' }}
101101

102-
# lint:
103-
# name: Linting
104-
# if: "!contains(github.event.head_commit.message, 'ci skip')"
105-
# runs-on: ubuntu-latest
106-
# needs: [build-ubuntu, build-macos]
107-
# env:
108-
# MINT_PATH: .mint/lib
109-
# MINT_LINK_PATH: .mint/bin
110-
# steps:
111-
# - uses: actions/checkout@v4
112-
# - name: Cache mint
113-
# id: cache-mint
114-
# uses: actions/cache@v4
115-
# env:
116-
# cache-name: cache
117-
# with:
118-
# path: |
119-
# .mint
120-
# Mint
121-
# key: ${{ runner.os }}-mint-${{ hashFiles('**/Mintfile') }}
122-
# restore-keys: |
123-
# ${{ runner.os }}-mint-
124-
# - name: Install mint
125-
# if: steps.cache-mint.outputs.cache-hit != 'true'
126-
# run: |
127-
# git clone https://github.com/yonaskolb/Mint.git
128-
# cd Mint
129-
# swift run mint install yonaskolb/mint
130-
# - name: Lint
131-
# run: ./Scripts/lint.sh
102+
lint:
103+
name: Linting
104+
if: "!contains(github.event.head_commit.message, 'ci skip')"
105+
runs-on: ubuntu-latest
106+
needs: [build-ubuntu, build-macos]
107+
env:
108+
MINT_PATH: .mint/lib
109+
MINT_LINK_PATH: .mint/bin
110+
steps:
111+
- uses: actions/checkout@v4
112+
- name: Cache mint
113+
id: cache-mint
114+
uses: actions/cache@v4
115+
env:
116+
cache-name: cache
117+
with:
118+
path: |
119+
.mint
120+
Mint
121+
key: ${{ runner.os }}-mint-${{ hashFiles('**/Mintfile') }}
122+
restore-keys: |
123+
${{ runner.os }}-mint-
124+
- name: Install mint
125+
if: steps.cache-mint.outputs.cache-hit != 'true'
126+
run: |
127+
git clone https://github.com/yonaskolb/Mint.git
128+
cd Mint
129+
swift run mint install yonaskolb/mint
130+
- name: Lint
131+
run: ./Scripts/lint.sh

.gitignore

Lines changed: 136 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,139 @@
1+
# Created by https://www.toptal.com/developers/gitignore/api/xcode,macos,swift
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=xcode,macos,swift
3+
4+
### macOS ###
5+
# General
16
.DS_Store
2-
/.build
3-
/Packages
7+
.AppleDouble
8+
.LSOverride
9+
10+
# Icon must end with two \r
11+
Icon
12+
13+
14+
# Thumbnails
15+
._*
16+
17+
# Files that might appear in the root of a volume
18+
.DocumentRevisions-V100
19+
.fseventsd
20+
.Spotlight-V100
21+
.TemporaryItems
22+
.Trashes
23+
.VolumeIcon.icns
24+
.com.apple.timemachine.donotpresent
25+
26+
# Directories potentially created on remote AFP share
27+
.AppleDB
28+
.AppleDesktop
29+
Network Trash Folder
30+
Temporary Items
31+
.apdisk
32+
33+
### Swift ###
34+
# Xcode
35+
#
36+
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
37+
38+
## User settings
439
xcuserdata/
40+
41+
## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
42+
*.xcscmblueprint
43+
*.xccheckout
44+
45+
## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
46+
build/
547
DerivedData/
6-
.swiftpm/configuration/registries.json
7-
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
8-
.netrc
48+
*.moved-aside
49+
*.pbxuser
50+
!default.pbxuser
51+
*.mode1v3
52+
!default.mode1v3
53+
*.mode2v3
54+
!default.mode2v3
55+
*.perspectivev3
56+
!default.perspectivev3
57+
58+
## Obj-C/Swift specific
59+
*.hmap
60+
61+
## App packaging
62+
*.ipa
63+
*.dSYM.zip
64+
*.dSYM
65+
66+
## Playgrounds
67+
timeline.xctimeline
68+
playground.xcworkspace
69+
70+
# Swift Package Manager
71+
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
72+
# Packages/
73+
# Package.pins
74+
# Package.resolved
75+
*.xcodeproj
76+
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
77+
# hence it is not needed unless you have added a package configuration file to your project
78+
.swiftpm
79+
80+
.build/
81+
82+
# CocoaPods
83+
# We recommend against adding the Pods directory to your .gitignore. However
84+
# you should judge for yourself, the pros and cons are mentioned at:
85+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
86+
# Pods/
87+
# Add this line if you want to avoid checking in source code from the Xcode workspace
88+
# *.xcworkspace
89+
90+
# Carthage
91+
# Add this line if you want to avoid checking in source code from Carthage dependencies.
92+
# Carthage/Checkouts
93+
94+
Carthage/Build/
95+
96+
# fastlane
97+
# It is recommended to not store the screenshots in the git repo.
98+
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
99+
# For more information about the recommended setup visit:
100+
# https://docs.fastlane.tools/best-practices/source-control/#source-control
101+
102+
fastlane/report.xml
103+
fastlane/Preview.html
104+
fastlane/screenshots/**/*.png
105+
fastlane/test_output
106+
fastlane/reviews.csv
107+
108+
# Code Injection
109+
# After new code Injection tools there's a generated folder /iOSInjectionProject
110+
# https://github.com/johnno1962/injectionforxcode
111+
112+
iOSInjectionProject/
113+
114+
### Xcode ###
115+
# Xcode
116+
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
117+
118+
119+
120+
121+
## Gcc Patch
122+
/*.gcno
123+
124+
### Xcode Patch ###
125+
*.xcodeproj/*
126+
#!*.xcodeproj/project.pbxproj
127+
#!*.xcodeproj/xcshareddata/
128+
#!*.xcworkspace/contents.xcworkspacedata
129+
**/xcshareddata/WorkspaceSettings.xcsettings
130+
131+
# End of https://www.toptal.com/developers/gitignore/api/xcode,macos,swift
132+
133+
Support/*/Info.plist
134+
Support/*/macOS.entitlements
135+
136+
vendor/ruby
137+
public
138+
.mint
139+
*.lcov

.spi.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
version: 1
2+
builder:
3+
configs:
4+
- documentation_targets: [SyntaxKit]
5+
swift_version: 6.1

.swift-format

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"fileScopedDeclarationPrivacy" : {
3+
"accessLevel" : "private"
4+
},
5+
"indentConditionalCompilationBlocks" : true,
6+
"indentSwitchCaseLabels" : false,
7+
"indentation" : {
8+
"spaces" : 2
9+
},
10+
"lineBreakAroundMultilineExpressionChainComponents" : false,
11+
"lineBreakBeforeControlFlowKeywords" : false,
12+
"lineBreakBeforeEachArgument" : false,
13+
"lineBreakBeforeEachGenericRequirement" : false,
14+
"lineLength" : 100,
15+
"maximumBlankLines" : 1,
16+
"multiElementCollectionTrailingCommas" : true,
17+
"noAssignmentInExpressions" : {
18+
"allowedFunctions" : [
19+
"XCTAssertNoThrow"
20+
]
21+
},
22+
"prioritizeKeepingFunctionOutputTogether" : false,
23+
"respectsExistingLineBreaks" : true,
24+
"rules" : {
25+
"AllPublicDeclarationsHaveDocumentation" : true,
26+
"AlwaysUseLiteralForEmptyCollectionInit" : false,
27+
"AlwaysUseLowerCamelCase" : true,
28+
"AmbiguousTrailingClosureOverload" : true,
29+
"BeginDocumentationCommentWithOneLineSummary" : false,
30+
"DoNotUseSemicolons" : true,
31+
"DontRepeatTypeInStaticProperties" : true,
32+
"FileScopedDeclarationPrivacy" : true,
33+
"FullyIndirectEnum" : true,
34+
"GroupNumericLiterals" : true,
35+
"IdentifiersMustBeASCII" : true,
36+
"NeverForceUnwrap" : false,
37+
"NeverUseForceTry" : false,
38+
"NeverUseImplicitlyUnwrappedOptionals" : false,
39+
"NoAccessLevelOnExtensionDeclaration" : true,
40+
"NoAssignmentInExpressions" : true,
41+
"NoBlockComments" : true,
42+
"NoCasesWithOnlyFallthrough" : true,
43+
"NoEmptyTrailingClosureParentheses" : true,
44+
"NoLabelsInCasePatterns" : true,
45+
"NoLeadingUnderscores" : true,
46+
"NoParensAroundConditions" : true,
47+
"NoPlaygroundLiterals" : true,
48+
"NoVoidReturnOnFunctionSignature" : true,
49+
"OmitExplicitReturns" : false,
50+
"OneCasePerLine" : true,
51+
"OneVariableDeclarationPerLine" : true,
52+
"OnlyOneTrailingClosureArgument" : true,
53+
"OrderedImports" : true,
54+
"ReplaceForEachWithForLoop" : true,
55+
"ReturnVoidInsteadOfEmptyTuple" : true,
56+
"TypeNamesShouldBeCapitalized" : true,
57+
"UseEarlyExits" : false,
58+
"UseExplicitNilCheckInConditions" : true,
59+
"UseLetInEveryBoundCaseVariable" : false,
60+
"UseShorthandTypeNames" : true,
61+
"UseSingleLinePropertyGetter" : true,
62+
"UseSynthesizedInitializer" : true,
63+
"UseTripleSlashForDocumentationComments" : true,
64+
"UseWhereClausesInForLoops" : true,
65+
"ValidateDocumentationComments" : false
66+
},
67+
"spacesAroundRangeFormationOperators" : false,
68+
"tabWidth" : 2,
69+
"version" : 1
70+
}

.swift-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
6.1

0 commit comments

Comments
 (0)