You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/resources/org/sonar/plugins/swiftlint/rules.json
+15-1Lines changed: 15 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,13 @@
41
41
"description": "Files should not contain leading whitespace.",
42
42
"severity": "MINOR"
43
43
},
44
+
{
45
+
"category": "SwiftLint",
46
+
"name": "Legacy Constructor",
47
+
"key": "legacy_constructor",
48
+
"description": "Swift constructors are preferred over legacy convenience functions.",
49
+
"severity": "MINOR"
50
+
},
44
51
{
45
52
"category": "SwiftLint",
46
53
"name": "Nesting",
@@ -111,11 +118,18 @@
111
118
"description": "Type name should only contain alphanumeric characters, start with an uppercase character and span between 3 and 40 characters in length.",
112
119
"severity": "MINOR"
113
120
},
121
+
{
122
+
"category": "SwiftLint",
123
+
"name": "Valid Docs",
124
+
"key": "valid_docs",
125
+
"description": "Documented declarations should be valid.",
126
+
"severity": "MINOR"
127
+
},
114
128
{
115
129
"category": "SwiftLint",
116
130
"name": "Variable Name",
117
131
"key": "variable_name",
118
-
"description": "Variable name should only contain alphanumeric characters and start with a a lowercase character. In an exception to the above, variable names may start with a capital letter when they are declared static and immutable.",
132
+
"description": "Variable name should only contain alphanumeric characters and start with a lowercase character or should only contain capital letters. In an exception to the above, variable names may start with a capital letter when they are declared static and immutable.",
@@ -189,10 +190,15 @@ if [ -z "$appScheme" -o "$appScheme" = " " ]; then
189
190
echo>&2"ERROR - sonar.swift.appScheme parameter is missing in sonar-project.properties. You must specify which scheme is used to build your application."
190
191
exit 1
191
192
fi
193
+
if [ -z"$destinationSimulator"-o"$destinationSimulator"="" ];then
194
+
echo>&2"ERROR - sonar.swift.simulator parameter is missing in sonar-project.properties. You must specify which simulator to use."
195
+
exit 1
196
+
fi
192
197
193
198
if [ "$vflag"="on" ];then
194
199
echo"Xcode project file is: $projectFile"
195
200
echo"Xcode application scheme is: $appScheme"
201
+
echo"Destination simulator is: $destinationSimulator"
196
202
echo"Excluded paths from coverage are: $excludedPathsFromCoverage"
0 commit comments