-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into sam/add-netp-subscription-auth-support
* main: (39 commits) Fix privacy config fetch in debug mode (#606) Expose Internal User managing from Config (#610) Add Sync feature flags (#607) Fix Networking import into TestUtils (#609) Add Sync Success Rate pixel (#605) Add new logger (#604) Prevent VPN server list persistence failures (#603) SwiftLint plugin (#393) Update autofill to 10.0.2 (#599) Remove the reconnect/disconnect logic from the connection tester Fix an IPv6 regression. (#598) Quality metrics for Sync (#597) Report NetP connection attempts, tunnel failures, and latency (#584) Implement deleteAccount Sync endpoint (#596) Ensure that LinkPresentation framework is called on main thread (#595) No longer excluding the 10.0.0.0/8 range (#594) Update autofill to 10.0.1 (#591) Implement deleteAccount Sync endpoint (#596) Ensure that LinkPresentation framework is called on main thread (#595) No longer excluding the 10.0.0.0/8 range (#594) ...
- Loading branch information
Showing
448 changed files
with
8,603 additions
and
3,573 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
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,22 +1,82 @@ | ||
allow_zero_lintable_files: true | ||
|
||
disabled_rules: | ||
- trailing_whitespace | ||
- no_space_in_method_call | ||
- multiple_closures_with_trailing_closure | ||
- block_based_kvo | ||
- compiler_protocol_init | ||
- unused_setter_value | ||
- line_length | ||
- type_name | ||
- implicit_getter | ||
- function_parameter_count | ||
- trailing_comma | ||
- nesting | ||
- opening_brace | ||
|
||
opt_in_rules: | ||
- file_header | ||
- explicit_init | ||
|
||
custom_rules: | ||
explicit_non_final_class: | ||
included: ".*\\.swift" | ||
name: "Implicitly non-final class" | ||
regex: "^\\s*(class) (?!func|var)" | ||
capture_group: 0 | ||
match_kinds: | ||
- keyword | ||
message: "Classes should be `final` by default, use explicit `internal` or `public` for non-final classes." | ||
severity: error | ||
enforce_os_log_wrapper: | ||
included: ".*\\.swift" | ||
name: "Use `import Common` for os_log instead of `import os.log`" | ||
regex: "^(import (?:os\\.log|os|OSLog))$" | ||
capture_group: 0 | ||
message: "os_log wrapper ensures log args are @autoclosures (computed when needed) and to be able to use String Interpolation." | ||
severity: error | ||
|
||
line_length: | ||
warning: 150 | ||
ignores_comments: true | ||
analyzer_rules: # Rules run by `swiftlint analyze` | ||
- explicit_self | ||
|
||
# Rule Config | ||
identifier_name: | ||
min_length: 1 | ||
max_length: 1000 | ||
file_length: | ||
warning: 1200 | ||
error: 1200 | ||
type_body_length: | ||
warning: 500 | ||
error: 500 | ||
large_tuple: | ||
warning: 4 | ||
error: 5 | ||
file_header: | ||
required_pattern: | | ||
\/\/ | ||
\/\/ SWIFTLINT_CURRENT_FILENAME | ||
\/\/ | ||
\/\/ Copyright © \d{4} DuckDuckGo\. All rights reserved\. | ||
\/\/ | ||
\/\/ Licensed under the Apache License, Version 2\.0 \(the \"License\"\); | ||
\/\/ you may not use this file except in compliance with the License\. | ||
\/\/ You may obtain a copy of the License at | ||
\/\/ | ||
\/\/ http:\/\/www\.apache\.org\/licenses\/LICENSE-2\.0 | ||
\/\/ | ||
\/\/ Unless required by applicable law or agreed to in writing, software | ||
\/\/ distributed under the License is distributed on an \"AS IS\" BASIS, | ||
\/\/ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\. | ||
\/\/ See the License for the specific language governing permissions and | ||
\/\/ limitations under the License\. | ||
\/\/ | ||
type_name: | ||
min_length: 3 | ||
max_length: | ||
warning: 80 | ||
error: 100 | ||
|
||
# General Config | ||
excluded: | ||
- Package.swift | ||
- .build | ||
- scripts/ | ||
- Sources/RemoteMessaging/Model/AnyDecodable.swift | ||
- Sources/Common/Concurrency/AsyncStream.swift | ||
|
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.