File tree 9 files changed +7
-16
lines changed
marker/src/main/kotlin/com/sourceplusplus/marker/source
9 files changed +7
-16
lines changed Original file line number Diff line number Diff line change 6
6
7
7
comments :
8
8
UndocumentedPublicClass :
9
- active : true
9
+ active : false # todo: turned off as it's scanning generated code
10
10
11
11
formatting :
12
12
Indentation :
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ open class SourceFileMarker(val psiFile: PsiFile) : SourceMarkProvider {
48
48
is KtFile -> true
49
49
else -> false
50
50
}
51
- } catch (ex : NoClassDefFoundError ) {
51
+ } catch (ignore : NoClassDefFoundError ) {
52
52
false
53
53
}
54
54
}
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ object SourceMarkerUtils {
38
38
* @since 0.1.0
39
39
*/
40
40
@JvmStatic
41
- fun getElementAtLine (file : PsiFile , line : Int ): PsiElement ? {
41
+ fun getElementAtLine (file : PsiFile , line : Int ): PsiElement {
42
42
val document: Document = PsiDocumentManager .getInstance(file.project).getDocument(file)!!
43
43
val offset = document.getLineStartOffset(line - 1 )
44
44
var element: PsiElement = file.viewProvider.findElementAt(offset)!!
@@ -503,7 +503,7 @@ object SourceMarkerUtils {
503
503
} else {
504
504
qualifiedType.qualifiedName
505
505
}
506
- for (i in 0 until arrayDimensions) {
506
+ repeat( arrayDimensions) {
507
507
methodParams + = " []"
508
508
}
509
509
} else {
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ abstract class ClassSourceMark(
39
39
override val valid: Boolean ; get() {
40
40
return try {
41
41
psiClass.isPsiValid && artifactQualifiedName == psiClass.qualifiedName!!
42
- } catch (ex : PsiInvalidElementAccessException ) {
42
+ } catch (ignore : PsiInvalidElementAccessException ) {
43
43
false
44
44
}
45
45
}
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ abstract class ExpressionSourceMark(
39
39
override val valid: Boolean ; get() {
40
40
return try {
41
41
psiExpression.isPsiValid && artifactQualifiedName == SourceMarkerUtils .getFullyQualifiedName(psiExpression)
42
- } catch (ex : PsiInvalidElementAccessException ) {
42
+ } catch (ignore : PsiInvalidElementAccessException ) {
43
43
false
44
44
}
45
45
}
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ abstract class MethodSourceMark(
39
39
override val valid: Boolean ; get() {
40
40
return try {
41
41
psiMethod.isPsiValid && artifactQualifiedName == SourceMarkerUtils .getFullyQualifiedName(psiMethod)
42
- } catch (ex : PsiInvalidElementAccessException ) {
42
+ } catch (ignore : PsiInvalidElementAccessException ) {
43
43
false
44
44
}
45
45
}
Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ class SourceMarkJcefComponent(
23
23
) : SourceMarkComponent {
24
24
25
25
companion object {
26
- private val log = LoggerFactory .getLogger(SourceMarkJcefComponent ::class .java)
27
26
private val client: JBCefClient by lazy { JBCefApp .getInstance().createClient() }
28
27
29
28
init {
Original file line number Diff line number Diff line change @@ -12,10 +12,6 @@ import org.slf4j.LoggerFactory
12
12
*/
13
13
interface GutterMark : SourceMark {
14
14
15
- companion object {
16
- private val log = LoggerFactory .getLogger(GutterMark ::class .java)
17
- }
18
-
19
15
override val type: SourceMark .Type
20
16
get() = SourceMark .Type .GUTTER
21
17
override val configuration: GutterMarkConfiguration
Original file line number Diff line number Diff line change @@ -12,10 +12,6 @@ import org.slf4j.LoggerFactory
12
12
*/
13
13
interface InlayMark : SourceMark {
14
14
15
- companion object {
16
- private val log = LoggerFactory .getLogger(InlayMark ::class .java)
17
- }
18
-
19
15
override val type: SourceMark .Type
20
16
get() = SourceMark .Type .INLAY
21
17
override val configuration: InlayMarkConfiguration
You can’t perform that action at this time.
0 commit comments