-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bbdc43d
commit 89b6736
Showing
27 changed files
with
1,167 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Stream rules | ||
|
||
--swiftversion 5.7 | ||
|
||
# Use 'swiftformat --options' to list all of the possible options | ||
|
||
--header "\nValidator\nCopyright © {created.year} Space Code. All rights reserved.\n//" | ||
|
||
--enable blankLinesBetweenScopes | ||
--enable blankLinesAtStartOfScope | ||
--enable blankLinesAtEndOfScope | ||
--enable blankLinesAroundMark | ||
--enable anyObjectProtocol | ||
--enable consecutiveBlankLines | ||
--enable consecutiveSpaces | ||
--enable duplicateImports | ||
--enable elseOnSameLine | ||
--enable emptyBraces | ||
--enable initCoderUnavailable | ||
--enable leadingDelimiters | ||
--enable numberFormatting | ||
--enable preferKeyPath | ||
--enable redundantBreak | ||
--enable redundantExtensionACL | ||
--enable redundantFileprivate | ||
--enable redundantGet | ||
--enable redundantInit | ||
--enable redundantLet | ||
--enable redundantLetError | ||
--enable redundantNilInit | ||
--enable redundantObjc | ||
--enable redundantParens | ||
--enable redundantPattern | ||
--enable redundantRawValues | ||
--enable redundantReturn | ||
--enable redundantSelf | ||
--enable redundantVoidReturnType | ||
--enable semicolons | ||
--enable sortedImports | ||
--enable sortedSwitchCases | ||
--enable spaceAroundBraces | ||
--enable spaceAroundBrackets | ||
--enable spaceAroundComments | ||
--enable spaceAroundGenerics | ||
--enable spaceAroundOperators | ||
--enable spaceInsideBraces | ||
--enable spaceInsideBrackets | ||
--enable spaceInsideComments | ||
--enable spaceInsideGenerics | ||
--enable spaceInsideParens | ||
--enable strongOutlets | ||
--enable strongifiedSelf | ||
--enable todos | ||
--enable trailingClosures | ||
--enable unusedArguments | ||
--enable void | ||
--enable markTypes | ||
--enable isEmpty | ||
|
||
# format options | ||
|
||
--wraparguments before-first | ||
--wrapcollections before-first | ||
--maxwidth 140 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
excluded: | ||
- Tests | ||
- Package.swift | ||
- .build | ||
|
||
# Rules | ||
|
||
disabled_rules: | ||
- trailing_comma | ||
- todo | ||
- opening_brace | ||
|
||
opt_in_rules: # some rules are only opt-in | ||
- anyobject_protocol | ||
- array_init | ||
- closure_body_length | ||
- closure_end_indentation | ||
- closure_spacing | ||
- collection_alignment | ||
- contains_over_filter_count | ||
- contains_over_filter_is_empty | ||
- contains_over_first_not_nil | ||
- contains_over_range_nil_comparison | ||
- convenience_type | ||
- discouraged_object_literal | ||
- discouraged_optional_boolean | ||
- empty_collection_literal | ||
- empty_count | ||
- empty_string | ||
- empty_xctest_method | ||
- enum_case_associated_values_count | ||
- explicit_init | ||
- fallthrough | ||
- fatal_error_message | ||
- file_name | ||
- file_types_order | ||
- first_where | ||
- flatmap_over_map_reduce | ||
- force_unwrapping | ||
- ibinspectable_in_extension | ||
- identical_operands | ||
- implicit_return | ||
- inert_defer | ||
- joined_default_parameter | ||
- last_where | ||
- legacy_multiple | ||
- legacy_random | ||
- literal_expression_end_indentation | ||
- lower_acl_than_parent | ||
- multiline_arguments | ||
- multiline_function_chains | ||
- multiline_literal_brackets | ||
- multiline_parameters | ||
- multiline_parameters_brackets | ||
- no_space_in_method_call | ||
- operator_usage_whitespace | ||
- optional_enum_case_matching | ||
- orphaned_doc_comment | ||
- overridden_super_call | ||
- override_in_extension | ||
- pattern_matching_keywords | ||
- prefer_self_type_over_type_of_self | ||
- prefer_zero_over_explicit_init | ||
- prefixed_toplevel_constant | ||
- private_action | ||
- prohibited_super_call | ||
- quick_discouraged_call | ||
- quick_discouraged_focused_test | ||
- quick_discouraged_pending_test | ||
- reduce_into | ||
- redundant_nil_coalescing | ||
- redundant_objc_attribute | ||
- redundant_type_annotation | ||
- required_enum_case | ||
- single_test_class | ||
- sorted_first_last | ||
- sorted_imports | ||
- static_operator | ||
- strict_fileprivate | ||
- switch_case_on_newline | ||
- toggle_bool | ||
- unavailable_function | ||
- unneeded_parentheses_in_closure_argument | ||
- unowned_variable_capture | ||
- untyped_error_in_catch | ||
- vertical_parameter_alignment_on_call | ||
- vertical_whitespace_closing_braces | ||
- vertical_whitespace_opening_braces | ||
- xct_specific_matcher | ||
- yoda_condition | ||
|
||
force_cast: warning | ||
force_try: warning | ||
|
||
identifier_name: | ||
excluded: | ||
- id | ||
- URL | ||
|
||
analyzer_rules: | ||
- unused_import | ||
- unused_declaration | ||
|
||
line_length: | ||
warning: 130 | ||
error: 200 | ||
|
||
type_body_length: | ||
warning: 300 | ||
error: 400 | ||
|
||
file_length: | ||
warning: 500 | ||
error: 1200 | ||
|
||
function_body_length: | ||
warning: 30 | ||
error: 50 | ||
|
||
large_tuple: | ||
error: 3 | ||
|
||
nesting: | ||
type_level: | ||
warning: 2 | ||
statement_level: | ||
warning: 10 | ||
|
||
type_name: | ||
max_length: | ||
warning: 40 | ||
error: 50 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
123 changes: 123 additions & 0 deletions
123
.swiftpm/xcode/xcshareddata/xcschemes/Validator-Package.xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Scheme | ||
LastUpgradeVersion = "1410" | ||
version = "1.3"> | ||
<BuildAction | ||
parallelizeBuildables = "YES" | ||
buildImplicitDependencies = "YES"> | ||
<BuildActionEntries> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "YES" | ||
buildForProfiling = "YES" | ||
buildForArchiving = "YES" | ||
buildForAnalyzing = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "ValidatorCore" | ||
BuildableName = "ValidatorCore" | ||
BlueprintName = "ValidatorCore" | ||
ReferencedContainer = "container:"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "YES" | ||
buildForProfiling = "YES" | ||
buildForArchiving = "YES" | ||
buildForAnalyzing = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "ValidatorUI" | ||
BuildableName = "ValidatorUI" | ||
BlueprintName = "ValidatorUI" | ||
ReferencedContainer = "container:"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "YES" | ||
buildForProfiling = "NO" | ||
buildForArchiving = "NO" | ||
buildForAnalyzing = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "ValidatorTests" | ||
BuildableName = "ValidatorTests" | ||
BlueprintName = "ValidatorTests" | ||
ReferencedContainer = "container:"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
</BuildActionEntries> | ||
</BuildAction> | ||
<TestAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
codeCoverageEnabled = "YES" | ||
onlyGenerateCoverageForSpecifiedTargets = "YES"> | ||
<CodeCoverageTargets> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "ValidatorCore" | ||
BuildableName = "ValidatorCore" | ||
BlueprintName = "ValidatorCore" | ||
ReferencedContainer = "container:"> | ||
</BuildableReference> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "ValidatorUI" | ||
BuildableName = "ValidatorUI" | ||
BlueprintName = "ValidatorUI" | ||
ReferencedContainer = "container:"> | ||
</BuildableReference> | ||
</CodeCoverageTargets> | ||
<Testables> | ||
<TestableReference | ||
skipped = "NO"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "ValidatorTests" | ||
BuildableName = "ValidatorTests" | ||
BlueprintName = "ValidatorTests" | ||
ReferencedContainer = "container:"> | ||
</BuildableReference> | ||
</TestableReference> | ||
</Testables> | ||
</TestAction> | ||
<LaunchAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
launchStyle = "0" | ||
useCustomWorkingDirectory = "NO" | ||
ignoresPersistentStateOnLaunch = "NO" | ||
debugDocumentVersioning = "YES" | ||
debugServiceExtension = "internal" | ||
allowLocationSimulation = "YES"> | ||
</LaunchAction> | ||
<ProfileAction | ||
buildConfiguration = "Release" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
savedToolIdentifier = "" | ||
useCustomWorkingDirectory = "NO" | ||
debugDocumentVersioning = "YES"> | ||
<MacroExpansion> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "ValidatorCore" | ||
BuildableName = "ValidatorCore" | ||
BlueprintName = "ValidatorCore" | ||
ReferencedContainer = "container:"> | ||
</BuildableReference> | ||
</MacroExpansion> | ||
</ProfileAction> | ||
<AnalyzeAction | ||
buildConfiguration = "Debug"> | ||
</AnalyzeAction> | ||
<ArchiveAction | ||
buildConfiguration = "Release" | ||
revealArchiveInOrganizer = "YES"> | ||
</ArchiveAction> | ||
</Scheme> |
Oops, something went wrong.