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
helpQuestions or user problems that require more explanation rather than code changes.resolvedIssues that are resolved from a maintainer's point of view. They can be just closed after a while.
// my_custom_rule: Test 1234
import Foundation
import UIKit
// my_custom_rule: Test 12
final class MyClass: NSObject {
// my_custom_rule: Test 1234
......
// my_custom_rule: Test 1234
private let .......
......
// my_custom_rule: Test 1234
var .....
// my_custom_rule: Test
.....
JSON
{
"character" : 1,
"file" : "/myFile.swift",
"line" : 9,
"reason" : "This is a custom rule for testing",
"rule_id" : "my_custom_rule",
"severity" : "Error",
"type" : "My Custom Rule"
},
Why only in the line 9? I added a lot of comment, Do you know somethings?
thanks
The text was updated successfully, but these errors were encountered:
That's described in the README. First, you may want to add the comment match kind to only match in comments, that is:
match_kinds:
- comment
This probably already helps in your example.
Yet even more relevant is:
It is important to note that the regular expression pattern is used with the flags s and m enabled, that is .matches newlines and ^/$match the start and end of lines, respectively. If you do not want to have . match newlines, for example, the regex can be prepended by (?-s).
SimplyDanny
added
help
Questions or user problems that require more explanation rather than code changes.
resolved
Issues that are resolved from a maintainer's point of view. They can be just closed after a while.
labels
Nov 29, 2024
helpQuestions or user problems that require more explanation rather than code changes.resolvedIssues that are resolved from a maintainer's point of view. They can be just closed after a while.
Hi
I'm trying to add custom rules to send to Sonarqube. but first I tried locally with a brew in this way
After that I ran in the terminal swift lint
File Swift
JSON
Why only in the line 9? I added a lot of comment, Do you know somethings?
thanks
The text was updated successfully, but these errors were encountered: