Skip to content
This repository was archived by the owner on May 26, 2023. It is now read-only.

Commit 40a6615

Browse files
author
Timothy G. Rundle
committed
Added swiftlint unused_setter_value rule
1 parent c89be20 commit 40a6615

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

swiftlang/src/main/resources/org/sonar/plugins/swiftlint/profile-swiftlint.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,10 @@
527527
<repositoryKey>SwiftLint</repositoryKey>
528528
<key>unused_optional_binding</key>
529529
</rule>
530+
<rule>
531+
<repositoryKey>SwiftLint</repositoryKey>
532+
<key>unused_setter_value</key>
533+
</rule>
530534
<rule>
531535
<repositoryKey>SwiftLint</repositoryKey>
532536
<key>valid_ibinspectable</key>

swiftlang/src/main/resources/org/sonar/plugins/swiftlint/rules.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -916,6 +916,13 @@
916916
"description": "Prefer `!= nil` over `let _ =`",
917917
"severity": "MINOR"
918918
},
919+
{
920+
"key": "unused_setter_value",
921+
"category": "SwiftLint",
922+
"name": "Unused Setter Value",
923+
"description": "Setter value (i.e. newValue) is not used.",
924+
"severity": "MINOR"
925+
},
919926
{
920927
"key": "valid_ibinspectable",
921928
"category": "SwiftLint",

0 commit comments

Comments
 (0)