Browse Source

Disable swiftlint rule on line, configuration does not work

Florian Friedrich 5 years ago
parent
commit
e7dacc3a42
2 changed files with 1 additions and 2 deletions
  1. 0 1
      .swiftlint.yml
  2. 1 1
      Sources/CocoaLumberjackSwiftLogBackend/DDLogHandler.swift

+ 0 - 1
.swiftlint.yml

@@ -11,4 +11,3 @@ nesting:
 
 identifier_name:
   allowed_symbols: "_"
-  validates_start_with_lowercase: false

+ 1 - 1
Sources/CocoaLumberjackSwiftLogBackend/DDLogHandler.swift

@@ -170,7 +170,7 @@ public struct DDLogHandler: LogHandler {
     ///   - metadata: The metadata associated with the message.
     /// - Returns: Whether to log the message asynchronous.
     @usableFromInline
-    func _logAsync(level: Logger.Level, metadata: Logger.Metadata?) -> Bool {
+    func _logAsync(level: Logger.Level, metadata: Logger.Metadata?) -> Bool { // swiftlint:disable:this identifier_name
         if level >= config.syncLogging.tresholdLevel {
             // Easiest check -> level is above treshold. Not async.
             return false