Skip to content

Add optional prefer_self_in_static_references rule - #3732

Merged
jpsim merged 4 commits into
realm:masterfrom
SimplyDanny:prefer-self-in-static-references-rule
Nov 29, 2021
Merged

jpsim merged 4 commits into
realm:masterfrom
SimplyDanny:prefer-self-in-static-references-rule

Conversation

@SimplyDanny

Copy link
Copy Markdown
Collaborator

Add optional prefer_self_in_static_references rule to warn if the class/struct/enum name is used to reference static variables/functions in the class/struct/enum. The advice is to use Self instead which is not effected by renamings.

One simple example is

class C {
    static let i = 0
    static let j = C.i
}

wherein C.i is used to reference the static i in this class. The rule would suggest to write Self.i instead.

@SwiftLintBot

SwiftLintBot commented Oct 5, 2021 •

Copy link
Copy Markdown
1371 Warnings
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Aerial.swift:110:29: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Cache/Cache.swift:131:24: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Cache/Cache.swift:134:20: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Cache/Cache.swift:179:20: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Cache/Cache.swift:541:157: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Cache/Cache.swift:566:16: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Cache/PoiStringProvider.swift:152:36: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Cache/PoiStringProvider.swift:190:36: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Cache/PoiStringProvider.swift:202:28: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Cache/VideoCache.swift:192:36: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Cache/VideoCache.swift:192:89: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/CustomVideoFolders.swift:145:46: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/CustomVideoFolders.swift:25:46: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/CustomVideoFolders.swift:80:46: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Hardware/NightShift.swift:21:72: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/ManifestLoader.swift:691:42: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Music/Music.swift:203:41: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Music/Music.swift:209:41: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Music/Music.swift:324:36: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Music/Music.swift:334:36: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Prefs/PrefsInfo.swift:547:13: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Prefs/PrefsInfo.swift:548:13: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Prefs/PrefsInfo.swift:551:13: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Prefs/PrefsInfo.swift:552:13: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Prefs/PrefsInfo.swift:555:13: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Prefs/PrefsInfo.swift:556:13: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Prefs/PrefsInfo.swift:559:13: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Prefs/PrefsInfo.swift:560:13: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Prefs/PrefsInfo.swift:563:13: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Prefs/PrefsInfo.swift:564:13: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Prefs/PrefsInfo.swift:567:13: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Prefs/PrefsInfo.swift:568:13: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Prefs/PrefsInfo.swift:572:12: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Prefs/PrefsInfo.swift:573:13: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Prefs/PrefsInfo.swift:573:41: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Sources/SourceList.swift:251:17: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Sources/SourceList.swift:290:16: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Sources/SourceList.swift:306:17: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Sources/SourceList.swift:311:17: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Sources/VideoList.swift:207:23: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Sources/VideoList.swift:209:20: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Sources/VideoList.swift:212:20: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Time/Solar.swift:337:32: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Models/Time/Solar.swift:341:41: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView+Player.swift:107:34: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView+Player.swift:114:39: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView+Player.swift:115:42: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView+Player.swift:58:25: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:163:22: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:173:26: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:178:9: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:262:13: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:266:12: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:267:13: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:271:9: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:274:12: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:275:27: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:288:13: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:289:20: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:291:13: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:297:12: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:297:41: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:298:39: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:298:68: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:305:13: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:306:13: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:306:44: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:344:12: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:345:16: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:345:45: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:346:17: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:347:17: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:349:17: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:350:17: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:405:16: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:406:29: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:421:21: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:436:60: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:440:60: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:444:60: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:448:60: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:452:33: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:479:36: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:481:13: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:484:81: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:485:21: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:489:25: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:490:13: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:499:44: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:602:24: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:605:37: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:605:66: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:608:25: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:612:37: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:643:41: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/AerialView.swift:644:37: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Aerial/Source/Views/PrefPanel/CheckCellView.swift:38:40: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Resources/MainUI/PanelWindowController.swift:106:38: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Aerial: /Resources/MainUI/PanelWindowController.swift:49:34: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Alamofire: /Example/Source/DetailViewController.swift:209:35: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Alamofire: /Example/Source/DetailViewController.swift:64:59: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Alamofire: /Source/OperationQueue+Alamofire.swift:38:57: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Alamofire: /Source/Response.swift:400:41: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Alamofire: /Source/Response.swift:401:38: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Alamofire: /Source/Response.swift:414:15: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Alamofire: /Source/ResponseSerialization.swift:516:54: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Alamofire: /Source/ResponseSerialization.swift:517:48: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Alamofire: /Source/ResponseSerialization.swift:518:56: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Alamofire: /Source/ResponseSerialization.swift:636:54: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Alamofire: /Source/ResponseSerialization.swift:638:48: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Alamofire: /Source/ResponseSerialization.swift:639:56: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Alamofire: /Source/ResponseSerialization.swift:782:54: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Alamofire: /Source/ResponseSerialization.swift:783:48: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Alamofire: /Source/ResponseSerialization.swift:784:56: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Alamofire: /Source/ResponseSerialization.swift:943:54: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Alamofire: /Source/ResponseSerialization.swift:945:48: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Alamofire: /Source/ResponseSerialization.swift:946:56: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Alamofire: /Source/RetryPolicy.swift:292:36: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Alamofire: /Source/RetryPolicy.swift:293:48: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Alamofire: /Source/RetryPolicy.swift:294:51: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Alamofire: /Source/RetryPolicy.swift:295:57: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Alamofire: /Source/RetryPolicy.swift:296:54: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ This PR introduced a violation in Alamofire: /Source/RetryPolicy.swift:297:62: warning: Prefer Self in Static References Violation: Static references should be prefixed by Self instead of the class name. (prefer_self_in_static_references)
⚠️ Danger found 1371 violations with this PR. Due to GitHub's max issue comment size, the number shown has been truncated to 123.
12 Messages
📖 Linting Aerial with this PR took 0.95s vs 0.95s on master (0% slower)
📖 Linting Alamofire with this PR took 0.96s vs 0.96s on master (0% slower)
📖 Linting Firefox with this PR took 3.24s vs 3.3s on master (1% faster)
📖 Linting Kickstarter with this PR took 6.2s vs 6.17s on master (0% slower)
📖 Linting Moya with this PR took 4.37s vs 4.35s on master (0% slower)
📖 Linting Nimble with this PR took 0.39s vs 0.38s on master (2% slower)
📖 Linting Quick with this PR took 0.17s vs 0.17s on master (0% slower)
📖 Linting Realm with this PR took 5.04s vs 5.03s on master (0% slower)
📖 Linting SourceKitten with this PR took 0.31s vs 0.31s on master (0% slower)
📖 Linting Sourcery with this PR took 1.87s vs 1.86s on master (0% slower)
📖 Linting Swift with this PR took 1.43s vs 1.42s on master (0% slower)
📖 Linting WordPress with this PR took 6.52s vs 6.5s on master (0% slower)

Generated by 🚫 Danger

@SimplyDanny
SimplyDanny force-pushed the prefer-self-in-static-references-rule branch from 8a2a369 to 55f8af0 Compare October 5, 2021 20:10
@jpsim

jpsim commented Nov 29, 2021

Copy link
Copy Markdown
Collaborator

Rule looks good to me, thanks for the PR! Did you check all the violations reported by the OSSCheck comment above to see if there were any false positives?

@jpsim
jpsim force-pushed the prefer-self-in-static-references-rule branch from 55f8af0 to 1b92da4 Compare November 29, 2021 18:08
@jpsim
jpsim enabled auto-merge (squash) November 29, 2021 18:08
@jpsim
jpsim merged commit 050473a into realm:master Nov 29, 2021
@SimplyDanny
SimplyDanny deleted the prefer-self-in-static-references-rule branch December 2, 2021 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants