-
-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial swiftlint file and fixes (#781)
- Loading branch information
1 parent
12b22b5
commit a4b6cf1
Showing
107 changed files
with
546 additions
and
397 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,68 @@ | ||
included: | ||
- Sources | ||
- Tests | ||
- Package.swift | ||
excluded: | ||
- Tests/Fixtures | ||
- Tests/AccessibilityTests/AccessibilityProject | ||
- Tests/XcodeTests/UIKitProject | ||
|
||
# Enabled/disabled rules | ||
analyzer_rules: | ||
- all | ||
opt_in_rules: | ||
- all | ||
disabled_rules: | ||
- anyobject_protocol | ||
- inert_defer | ||
- unused_capture_list | ||
- explicit_acl | ||
- explicit_type_interface | ||
- missing_docs | ||
- required_deinit | ||
- line_length | ||
- type_contents_order | ||
- prefer_nimble | ||
- explicit_top_level_acl | ||
- anonymous_argument_in_multiline_closure | ||
- one_declaration_per_file | ||
- conditional_returns_on_newline | ||
- vertical_whitespace_between_cases | ||
- no_grouping_extension | ||
- explicit_enum_raw_value | ||
- file_types_order | ||
- indentation_width | ||
- identifier_name | ||
- trailing_closure | ||
- multiline_arguments_brackets | ||
- multiline_function_chains | ||
- no_extension_access_modifier | ||
- force_try | ||
- switch_case_on_newline | ||
- sorted_enum_cases | ||
- prefer_self_in_static_references | ||
- superfluous_else | ||
- force_unwrapping | ||
- file_name | ||
- todo | ||
- no_magic_numbers | ||
- prefixed_toplevel_constant | ||
- untyped_error_in_catch | ||
- cyclomatic_complexity | ||
- closure_body_length | ||
- function_body_length | ||
- type_body_length | ||
- file_length | ||
- contrasted_opening_brace | ||
- unused_parameter | ||
- no_empty_block | ||
- prefer_key_path | ||
|
||
balanced_xctest_lifecycle: &unit_test_configuration | ||
test_parent_classes: | ||
- SourceGraphTestCase | ||
- FixtureSourceGraphTestCase | ||
- XCTestCase | ||
empty_xctest_method: *unit_test_configuration | ||
final_test_case: *unit_test_configuration | ||
single_test_class: *unit_test_configuration |
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import Foundation | ||
import Shared | ||
import PeripheryKit | ||
import Shared | ||
import SourceGraph | ||
|
||
final class Scan { | ||
|
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import Foundation | ||
import ArgumentParser | ||
import Foundation | ||
import Shared | ||
|
||
Logger.configureBuffering() | ||
|
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
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
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
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
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
Oops, something went wrong.