This repository has been archived by the owner on Aug 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #190 from spring-media/feature/get-rid-of-queue-as…
…suming-logic Get rid of queue hopping
- Loading branch information
Showing
117 changed files
with
3,295 additions
and
3,243 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,38 @@ | ||
# file options | ||
|
||
--exclude Carthage,Build,.build,.swiftpm,SourcePackages | ||
--symlinks ignore | ||
--swiftversion 5.3 | ||
|
||
# format options | ||
|
||
--allman false | ||
--binarygrouping 4,8 | ||
--commas inline | ||
--comments indent | ||
--decimalgrouping 3,6 | ||
--elseposition same-line | ||
--empty void | ||
--exponentcase lowercase | ||
--exponentgrouping disabled | ||
--fractiongrouping disabled | ||
--guardelse same-line | ||
--header ignore | ||
--hexgrouping 4,8 | ||
--hexliteralcase uppercase | ||
--ifdef indent | ||
--indent 2 | ||
--indentcase false | ||
--importgrouping testable-bottom | ||
--linebreaks lf | ||
--maxwidth none | ||
--octalgrouping 4,8 | ||
--patternlet hoist | ||
--operatorfunc spaced | ||
--nospaceoperators ..<, ... | ||
--self remove | ||
--semicolons inline | ||
--stripunusedargs always | ||
--trimwhitespace always | ||
--wraparguments before-first | ||
--wrapcollections before-first |
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,92 @@ | ||
disabled_rules: | ||
- redundant_string_enum_value | ||
- line_length | ||
- trailing_whitespace | ||
- identifier_name | ||
- opening_brace | ||
|
||
opt_in_rules: | ||
- closure_spacing | ||
- conditional_returns_on_newline | ||
- empty_count | ||
- explicit_init | ||
- fatal_error_message | ||
- first_where | ||
- force_unwrapping | ||
- overridden_super_call | ||
- prohibited_super_call | ||
- redundant_nil_coalescing | ||
- operator_usage_whitespace | ||
|
||
- array_init | ||
- contains_over_first_not_nil | ||
- joined_default_parameter | ||
- line_length | ||
- literal_expression_end_indentation | ||
- multiline_parameters | ||
- override_in_extension | ||
- pattern_matching_keywords | ||
- redundant_string_enum_value | ||
- sorted_first_last | ||
- unneeded_parentheses_in_closure_argument | ||
- vertical_parameter_alignment_on_call | ||
|
||
- nimble_operator | ||
- quick_discouraged_call | ||
- quick_discouraged_focused_test | ||
- quick_discouraged_pending_test | ||
- single_test_class | ||
|
||
# TODO: maybe turn it on one day... (a lot of fixes) | ||
# - closure_end_indentation | ||
# - let_var_whitespace | ||
# - implicitly_unwrapped_optional | ||
# - private_outlet | ||
# - object_literal | ||
# - sorted_imports | ||
# - strict_fileprivate | ||
# - switch_case_on_newline | ||
|
||
included: | ||
- Sources | ||
- Tests | ||
- Example | ||
|
||
excluded: | ||
- SourcePackages | ||
- .build | ||
- Build | ||
- .swiftpm | ||
- Carthage | ||
|
||
|
||
cyclomatic_complexity: | ||
warning: 25 | ||
|
||
type_body_length: | ||
warning: 300 | ||
error: 500 | ||
|
||
file_length: | ||
warning: 500 | ||
error: 800 | ||
|
||
type_name: | ||
min_length: 3 | ||
max_length: | ||
warning: 50 | ||
error: 60 | ||
excluded: | ||
- Id | ||
- Ad | ||
|
||
nesting: | ||
type_level: | ||
warning: 3 | ||
error: 5 | ||
|
||
superfluous_disable_command: warning | ||
force_unwrapping: error | ||
trailing_semicolon: error | ||
|
||
reporter: "xcode" |
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,11 +1,9 @@ | ||
import Cocoa | ||
|
||
class ViewController: NSViewController { | ||
|
||
override func viewDidLoad() { | ||
if #available(OSX 10.10, *) { | ||
super.viewDidLoad() | ||
} | ||
} | ||
} | ||
|
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,5 @@ | ||
import WatchKit | ||
|
||
class ExtensionDelegate: NSObject, WKExtensionDelegate { | ||
func applicationDidFinishLaunching() { | ||
} | ||
func applicationDidFinishLaunching() {} | ||
} |
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,20 +1,19 @@ | ||
import UIKit | ||
import Carlos | ||
import UIKit | ||
|
||
@UIApplicationMain | ||
class AppDelegate: UIResponder, UIApplicationDelegate { | ||
|
||
var window: UIWindow? | ||
|
||
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { | ||
return true | ||
func application(_: UIApplication, didFinishLaunchingWithOptions _: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { | ||
true | ||
} | ||
} | ||
|
||
func simpleCache() -> BasicCache<URL, NSData> { | ||
return CacheProvider.dataCache() | ||
CacheProvider.dataCache() | ||
} | ||
|
||
func delayedNetworkCache() -> BasicCache<URL, NSData> { | ||
return MemoryCacheLevel().compose(DiskCacheLevel()).compose(DelayedNetworkFetcher()) | ||
MemoryCacheLevel().compose(DiskCacheLevel()).compose(DelayedNetworkFetcher()) | ||
} |
Oops, something went wrong.