Skip to content

Commit 89b6736

Browse files
committed
Implement ValidatorCore
1 parent bbdc43d commit 89b6736

27 files changed

Lines changed: 1167 additions & 0 deletions

.swiftformat

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Stream rules
2+
3+
--swiftversion 5.7
4+
5+
# Use 'swiftformat --options' to list all of the possible options
6+
7+
--header "\nValidator\nCopyright © {created.year} Space Code. All rights reserved.\n//"
8+
9+
--enable blankLinesBetweenScopes
10+
--enable blankLinesAtStartOfScope
11+
--enable blankLinesAtEndOfScope
12+
--enable blankLinesAroundMark
13+
--enable anyObjectProtocol
14+
--enable consecutiveBlankLines
15+
--enable consecutiveSpaces
16+
--enable duplicateImports
17+
--enable elseOnSameLine
18+
--enable emptyBraces
19+
--enable initCoderUnavailable
20+
--enable leadingDelimiters
21+
--enable numberFormatting
22+
--enable preferKeyPath
23+
--enable redundantBreak
24+
--enable redundantExtensionACL
25+
--enable redundantFileprivate
26+
--enable redundantGet
27+
--enable redundantInit
28+
--enable redundantLet
29+
--enable redundantLetError
30+
--enable redundantNilInit
31+
--enable redundantObjc
32+
--enable redundantParens
33+
--enable redundantPattern
34+
--enable redundantRawValues
35+
--enable redundantReturn
36+
--enable redundantSelf
37+
--enable redundantVoidReturnType
38+
--enable semicolons
39+
--enable sortedImports
40+
--enable sortedSwitchCases
41+
--enable spaceAroundBraces
42+
--enable spaceAroundBrackets
43+
--enable spaceAroundComments
44+
--enable spaceAroundGenerics
45+
--enable spaceAroundOperators
46+
--enable spaceInsideBraces
47+
--enable spaceInsideBrackets
48+
--enable spaceInsideComments
49+
--enable spaceInsideGenerics
50+
--enable spaceInsideParens
51+
--enable strongOutlets
52+
--enable strongifiedSelf
53+
--enable todos
54+
--enable trailingClosures
55+
--enable unusedArguments
56+
--enable void
57+
--enable markTypes
58+
--enable isEmpty
59+
60+
# format options
61+
62+
--wraparguments before-first
63+
--wrapcollections before-first
64+
--maxwidth 140

.swiftlint.yml

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
excluded:
2+
- Tests
3+
- Package.swift
4+
- .build
5+
6+
# Rules
7+
8+
disabled_rules:
9+
- trailing_comma
10+
- todo
11+
- opening_brace
12+
13+
opt_in_rules: # some rules are only opt-in
14+
- anyobject_protocol
15+
- array_init
16+
- closure_body_length
17+
- closure_end_indentation
18+
- closure_spacing
19+
- collection_alignment
20+
- contains_over_filter_count
21+
- contains_over_filter_is_empty
22+
- contains_over_first_not_nil
23+
- contains_over_range_nil_comparison
24+
- convenience_type
25+
- discouraged_object_literal
26+
- discouraged_optional_boolean
27+
- empty_collection_literal
28+
- empty_count
29+
- empty_string
30+
- empty_xctest_method
31+
- enum_case_associated_values_count
32+
- explicit_init
33+
- fallthrough
34+
- fatal_error_message
35+
- file_name
36+
- file_types_order
37+
- first_where
38+
- flatmap_over_map_reduce
39+
- force_unwrapping
40+
- ibinspectable_in_extension
41+
- identical_operands
42+
- implicit_return
43+
- inert_defer
44+
- joined_default_parameter
45+
- last_where
46+
- legacy_multiple
47+
- legacy_random
48+
- literal_expression_end_indentation
49+
- lower_acl_than_parent
50+
- multiline_arguments
51+
- multiline_function_chains
52+
- multiline_literal_brackets
53+
- multiline_parameters
54+
- multiline_parameters_brackets
55+
- no_space_in_method_call
56+
- operator_usage_whitespace
57+
- optional_enum_case_matching
58+
- orphaned_doc_comment
59+
- overridden_super_call
60+
- override_in_extension
61+
- pattern_matching_keywords
62+
- prefer_self_type_over_type_of_self
63+
- prefer_zero_over_explicit_init
64+
- prefixed_toplevel_constant
65+
- private_action
66+
- prohibited_super_call
67+
- quick_discouraged_call
68+
- quick_discouraged_focused_test
69+
- quick_discouraged_pending_test
70+
- reduce_into
71+
- redundant_nil_coalescing
72+
- redundant_objc_attribute
73+
- redundant_type_annotation
74+
- required_enum_case
75+
- single_test_class
76+
- sorted_first_last
77+
- sorted_imports
78+
- static_operator
79+
- strict_fileprivate
80+
- switch_case_on_newline
81+
- toggle_bool
82+
- unavailable_function
83+
- unneeded_parentheses_in_closure_argument
84+
- unowned_variable_capture
85+
- untyped_error_in_catch
86+
- vertical_parameter_alignment_on_call
87+
- vertical_whitespace_closing_braces
88+
- vertical_whitespace_opening_braces
89+
- xct_specific_matcher
90+
- yoda_condition
91+
92+
force_cast: warning
93+
force_try: warning
94+
95+
identifier_name:
96+
excluded:
97+
- id
98+
- URL
99+
100+
analyzer_rules:
101+
- unused_import
102+
- unused_declaration
103+
104+
line_length:
105+
warning: 130
106+
error: 200
107+
108+
type_body_length:
109+
warning: 300
110+
error: 400
111+
112+
file_length:
113+
warning: 500
114+
error: 1200
115+
116+
function_body_length:
117+
warning: 30
118+
error: 50
119+
120+
large_tuple:
121+
error: 3
122+
123+
nesting:
124+
type_level:
125+
warning: 2
126+
statement_level:
127+
warning: 10
128+
129+
type_name:
130+
max_length:
131+
warning: 40
132+
error: 50

.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1410"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "ValidatorCore"
18+
BuildableName = "ValidatorCore"
19+
BlueprintName = "ValidatorCore"
20+
ReferencedContainer = "container:">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
<BuildActionEntry
24+
buildForTesting = "YES"
25+
buildForRunning = "YES"
26+
buildForProfiling = "YES"
27+
buildForArchiving = "YES"
28+
buildForAnalyzing = "YES">
29+
<BuildableReference
30+
BuildableIdentifier = "primary"
31+
BlueprintIdentifier = "ValidatorUI"
32+
BuildableName = "ValidatorUI"
33+
BlueprintName = "ValidatorUI"
34+
ReferencedContainer = "container:">
35+
</BuildableReference>
36+
</BuildActionEntry>
37+
<BuildActionEntry
38+
buildForTesting = "YES"
39+
buildForRunning = "YES"
40+
buildForProfiling = "NO"
41+
buildForArchiving = "NO"
42+
buildForAnalyzing = "YES">
43+
<BuildableReference
44+
BuildableIdentifier = "primary"
45+
BlueprintIdentifier = "ValidatorTests"
46+
BuildableName = "ValidatorTests"
47+
BlueprintName = "ValidatorTests"
48+
ReferencedContainer = "container:">
49+
</BuildableReference>
50+
</BuildActionEntry>
51+
</BuildActionEntries>
52+
</BuildAction>
53+
<TestAction
54+
buildConfiguration = "Debug"
55+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
56+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
57+
shouldUseLaunchSchemeArgsEnv = "YES"
58+
codeCoverageEnabled = "YES"
59+
onlyGenerateCoverageForSpecifiedTargets = "YES">
60+
<CodeCoverageTargets>
61+
<BuildableReference
62+
BuildableIdentifier = "primary"
63+
BlueprintIdentifier = "ValidatorCore"
64+
BuildableName = "ValidatorCore"
65+
BlueprintName = "ValidatorCore"
66+
ReferencedContainer = "container:">
67+
</BuildableReference>
68+
<BuildableReference
69+
BuildableIdentifier = "primary"
70+
BlueprintIdentifier = "ValidatorUI"
71+
BuildableName = "ValidatorUI"
72+
BlueprintName = "ValidatorUI"
73+
ReferencedContainer = "container:">
74+
</BuildableReference>
75+
</CodeCoverageTargets>
76+
<Testables>
77+
<TestableReference
78+
skipped = "NO">
79+
<BuildableReference
80+
BuildableIdentifier = "primary"
81+
BlueprintIdentifier = "ValidatorTests"
82+
BuildableName = "ValidatorTests"
83+
BlueprintName = "ValidatorTests"
84+
ReferencedContainer = "container:">
85+
</BuildableReference>
86+
</TestableReference>
87+
</Testables>
88+
</TestAction>
89+
<LaunchAction
90+
buildConfiguration = "Debug"
91+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
92+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
93+
launchStyle = "0"
94+
useCustomWorkingDirectory = "NO"
95+
ignoresPersistentStateOnLaunch = "NO"
96+
debugDocumentVersioning = "YES"
97+
debugServiceExtension = "internal"
98+
allowLocationSimulation = "YES">
99+
</LaunchAction>
100+
<ProfileAction
101+
buildConfiguration = "Release"
102+
shouldUseLaunchSchemeArgsEnv = "YES"
103+
savedToolIdentifier = ""
104+
useCustomWorkingDirectory = "NO"
105+
debugDocumentVersioning = "YES">
106+
<MacroExpansion>
107+
<BuildableReference
108+
BuildableIdentifier = "primary"
109+
BlueprintIdentifier = "ValidatorCore"
110+
BuildableName = "ValidatorCore"
111+
BlueprintName = "ValidatorCore"
112+
ReferencedContainer = "container:">
113+
</BuildableReference>
114+
</MacroExpansion>
115+
</ProfileAction>
116+
<AnalyzeAction
117+
buildConfiguration = "Debug">
118+
</AnalyzeAction>
119+
<ArchiveAction
120+
buildConfiguration = "Release"
121+
revealArchiveInOrganizer = "YES">
122+
</ArchiveAction>
123+
</Scheme>

0 commit comments

Comments
 (0)