-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add kotlin problem matchers #1775
Changes from all commits
27c4c39
ff367e3
03a14ee
2acb2bd
445f7ea
1a14a3e
e106e6c
1524934
8149117
2217f69
f1c8153
a119039
002f749
f128b5f
5f4d4d3
03c8ec9
361f588
1c925c5
1bd9705
9d40252
6e05d69
6786245
7fd7931
c50bc67
b8bade2
edfa0dc
a73076f
a2e2070
ed90277
6997794
c81f51d
90d211f
aa32dbe
c42d7bb
39867bf
671b16b
d3afc83
3e843c4
302de3f
8909760
fea70a7
ade1671
96c6bbe
9c6b365
3c8e5dd
e663d5c
0e896b3
0588b63
47c7e21
9502fe4
7bdb4d5
7d8ef23
0016ab8
f9c4933
935eff1
d24d467
2dfb9a5
914c4ab
58d148c
984a41c
d2f17b1
d203cfe
08cad82
9f7d993
a1a5911
da305fe
9539e10
1790364
c1fe0fa
0c7d622
08bbc8a
9f03eb7
1df43ea
c3b733f
f12ad05
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"problemMatcher": [ | ||
{ | ||
"owner": "detekt", | ||
"severity": "error", | ||
"pattern": [ | ||
{ | ||
"regexp": "(.+\\.kt):(\\d+):(\\d+):\\s(.*)", | ||
"file": 1, | ||
"line": 2, | ||
"column": 3, | ||
"message": 4 | ||
} | ||
] | ||
} | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"problemMatcher": [ | ||
{ | ||
"owner": "kotlin", | ||
"severity": "error", | ||
"pattern": [ | ||
{ | ||
"regexp": "^e\\:\\s(?:(?:(.*):(?:\\s\\()?(\\d+)(?:(?:\\,\\s)|\\:)(\\d+))(?:\\))?\\:\\s)?(.*)$", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did you come up with all these regexp? or are they already provided somewhere? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I came up with them. Because we use two kotlin versions in our project (buildSrc, and regular project) we have two kinds of logs for kotlin compilation errors. |
||
"file": 1, | ||
"line": 2, | ||
"column": 3, | ||
"message": 4 | ||
} | ||
] | ||
}, | ||
{ | ||
"owner": "kotlin-warning", | ||
"severity": "warning", | ||
"pattern": [ | ||
{ | ||
"regexp": "^w\\:\\s(?:(?:(.*):(?:\\s\\()?(\\d+)(?:(?:\\,\\s)|\\:)(\\d+))(?:\\))?\\:\\s)?(.*)$", | ||
"file": 1, | ||
"line": 2, | ||
"column": 3, | ||
"message": 4 | ||
} | ||
] | ||
}, | ||
{ | ||
"owner": "gradle-warning", | ||
"severity": "warning", | ||
"pattern": [ | ||
{ | ||
"regexp": "^WARNING:(.*(?:\\n(?!w|e\\:|>|FAILURE|BUILD SUCCESSFUL).*)*)$", | ||
"message": 1 | ||
} | ||
] | ||
} | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"problemMatcher": [ | ||
{ | ||
"owner": "ktlint", | ||
"severity": "error", | ||
"pattern": [ | ||
{ | ||
"regexp": "(.+\\.kt):(\\d+):(\\d+):\\s(.*)", | ||
"file": 1, | ||
"line": 2, | ||
"column": 3, | ||
"message": 4 | ||
} | ||
] | ||
} | ||
] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add
kts
Gradle scripts?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it is required. We don't run detekt against our build scripts.