Skip to content

Commit 99ddca8

Browse files
committed
fixed linting errors
1 parent 9cb342f commit 99ddca8

File tree

4 files changed

+30
-0
lines changed

4 files changed

+30
-0
lines changed

jnitrace/src/main.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ JNILibraryWatcher.setCallback({
1818
// eslint-disable-next-line @typescript-eslint/no-explicit-any
1919
const op = recv("config", (message: any): void => {
2020
const builder = new ConfigBuilder();
21+
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
2122
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
2223
builder.libraries = message.payload.libraries;
2324
builder.backtrace = message.payload.backtrace;
@@ -31,6 +32,7 @@ JNILibraryWatcher.setCallback({
3132
transport.setIncludeFilter(message.payload.include);
3233
transport.setExcludeFilter(message.payload.exclude);
3334
/* eslint-enable @typescript-eslint/no-unsafe-member-access */
35+
/* eslint-enable @typescript-eslint/no-unsafe-assignment */
3436
});
3537
op.wait();
3638
}

jnitrace/src/transport/data_transport.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,12 @@ const JNI_ENV_INDEX = 0;
1313

1414
class NativeMethodJSONContainer {
1515
public readonly name: { [id: string]: string | null } = {};
16+
1617
public readonly sig: { [id: string]: string | null } = {};
18+
1719
public readonly addr: { [id: string]: string | null } = {};
1820

21+
1922
public constructor (
2023
name: { [id: string]: string | null },
2124
sig: { [id: string]: string | null },
@@ -30,10 +33,14 @@ class NativeMethodJSONContainer {
3033
/* eslint-disable @typescript-eslint/camelcase */
3134
class DataJSONContainer {
3235
public readonly value: NativeArgumentValue | NativeReturnValue;
36+
3337
public readonly data: ArrayBuffer | NativeArgumentValue | NativeReturnValue
3438
| string | NativeMethodJSONContainer[] | undefined;
39+
3540
public readonly data_for: number | undefined;
41+
3642
public readonly has_data: boolean | undefined;
43+
3744
private metadata: string | undefined;
3845

3946
public constructor (
@@ -71,7 +78,9 @@ class DataJSONContainer {
7178

7279
class BacktraceJSONContainer {
7380
public readonly address: NativePointer;
81+
7482
public readonly module: Module | null;
83+
7584
public readonly symbol: DebugSymbol | null;
7685

7786
public constructor (
@@ -87,14 +96,21 @@ class BacktraceJSONContainer {
8796

8897
class RecordJSONContainer {
8998
public readonly type: string;
99+
90100
public readonly call_type: string;
101+
91102
public readonly method: JNIMethod;
103+
92104
public readonly args: DataJSONContainer[];
105+
93106
public readonly ret: DataJSONContainer;
107+
94108
public readonly thread_id: number;
109+
95110
public readonly timestamp: number;
96111

97112
public readonly java_params: string[] | undefined;
113+
98114
public readonly backtrace: BacktraceJSONContainer[] | undefined;
99115

100116
public constructor (
@@ -122,11 +138,17 @@ class RecordJSONContainer {
122138

123139
class DataTransport {
124140
private readonly start: number;
141+
125142
private readonly byteArraySizes: Map<string, number>;
143+
126144
private readonly jobjects: Map<string, string>;
145+
127146
private readonly jfieldIDs: Map<string, string>;
147+
128148
private readonly jmethodIDs: Map<string, string>;
149+
129150
private include: string[];
151+
130152
private exclude: string[];
131153

132154
public constructor () {

jnitrace/src/utils/java_method.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ const SEMI_COLON_OFFSET = 1;
44

55
class JavaMethod {
66
private readonly __: string;
7+
78
private readonly _params: string[];
9+
810
private readonly _ret: string;
911

1012
public constructor (signature: string) {

jnitrace/src/utils/method_data.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ import { JavaMethod } from "jnitrace-engine";
44

55
class MethodData {
66
private readonly _method: JNIMethod;
7+
78
private readonly _jmethod: JavaMethod | undefined;
9+
810
private readonly _args: NativeArgumentValue[];
11+
912
private readonly _jparams: string[];
13+
1014
private readonly _ret: NativeReturnValue;
1115

1216
public constructor (

0 commit comments

Comments
 (0)