Skip to content

Commit f6f071c

Browse files
committed
tslint: Enable semicolon
Not really necessary, but it's nice if code is consistently formatted.
1 parent 3757013 commit f6f071c

File tree

9 files changed

+37
-38
lines changed

9 files changed

+37
-38
lines changed

src/backend/backend.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export interface MIError extends Error {
133133
readonly name: string;
134134
readonly message: string;
135135
readonly source: string;
136-
};
136+
}
137137
export interface MIErrorConstructor {
138138
new (message: string, source: string): MIError;
139139
readonly prototype: MIError;

src/backend/gdb_expansion.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { MINode } from "./mi_parse"
1+
import { MINode } from "./mi_parse";
22

33
const resultRegex = /^([a-zA-Z_\-][a-zA-Z0-9_\-]*|\[\d+\])\s*=\s*/;
44
const variableRegex = /^[a-zA-Z_\-][a-zA-Z0-9_\-]*/;

src/backend/linux/console.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as ChildProcess from "child_process"
2-
import * as fs from "fs"
1+
import * as ChildProcess from "child_process";
2+
import * as fs from "fs";
33

44
export function spawnTerminalEmulator(preferedEmulator: string): Thenable<string> {
55
return new Promise((resolve, reject) => {

src/backend/mi2/mi2.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { Breakpoint, IBackend, Thread, Stack, SSHArguments, Variable, VariableObject, MIError } from "../backend"
2-
import * as ChildProcess from "child_process"
3-
import { EventEmitter } from "events"
1+
import { Breakpoint, IBackend, Thread, Stack, SSHArguments, Variable, VariableObject, MIError } from "../backend";
2+
import * as ChildProcess from "child_process";
3+
import { EventEmitter } from "events";
44
import { parseMI, MINode } from '../mi_parse';
55
import * as linuxTerm from '../linux/console';
6-
import * as net from "net"
7-
import * as fs from "fs"
8-
import { posix } from "path"
9-
import * as nativePath from "path"
6+
import * as net from "net";
7+
import * as fs from "fs";
8+
import { posix } from "path";
9+
import * as nativePath from "path";
1010
const path = posix;
1111
import { Client } from "ssh2";
1212

@@ -66,7 +66,7 @@ export class MI2 extends EventEmitter implements IBackend {
6666
promises.push(this.sendCommand("exec-arguments " + procArgs));
6767
if (process.platform == "win32") {
6868
if (separateConsole !== undefined)
69-
promises.push(this.sendCommand("gdb-set new-console on"))
69+
promises.push(this.sendCommand("gdb-set new-console on"));
7070
Promise.all(promises).then(() => {
7171
this.emit("debug-ready");
7272
resolve();
@@ -170,7 +170,7 @@ export class MI2 extends EventEmitter implements IBackend {
170170
if (procArgs && procArgs.length && !attach)
171171
promises.push(this.sendCommand("exec-arguments " + procArgs));
172172
Promise.all(promises).then(() => {
173-
this.emit("debug-ready")
173+
this.emit("debug-ready");
174174
resolve();
175175
}, reject);
176176
});
@@ -231,7 +231,7 @@ export class MI2 extends EventEmitter implements IBackend {
231231
commands.push(this.sendCommand("file-symbol-file \"" + escape(executable) + "\""));
232232
}
233233
Promise.all(commands).then(() => {
234-
this.emit("debug-ready")
234+
this.emit("debug-ready");
235235
resolve();
236236
}, reject);
237237
});
@@ -256,7 +256,7 @@ export class MI2 extends EventEmitter implements IBackend {
256256
this.sendCommand("environment-directory \"" + escape(cwd) + "\""),
257257
this.sendCommand("target-select remote " + target)
258258
]).then(() => {
259-
this.emit("debug-ready")
259+
this.emit("debug-ready");
260260
resolve();
261261
}, reject);
262262
});
@@ -408,7 +408,7 @@ export class MI2 extends EventEmitter implements IBackend {
408408
}, 1000);
409409
this.stream.on("exit", function (code) {
410410
clearTimeout(to);
411-
})
411+
});
412412
this.sendRaw("-gdb-exit");
413413
}
414414
else {
@@ -719,7 +719,7 @@ export class MI2 extends EventEmitter implements IBackend {
719719
async varUpdate(name: string = "*"): Promise<MINode> {
720720
if (trace)
721721
this.log("stderr", "varUpdate");
722-
return this.sendCommand(`var-update --all-values ${name}`)
722+
return this.sendCommand(`var-update --all-values ${name}`);
723723
}
724724

725725
async varAssign(name: string, rawValue: string): Promise<MINode> {

src/backend/mi2/mi2lldb.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { MI2, escape } from "./mi2"
2-
import { Breakpoint } from "../backend"
3-
import * as ChildProcess from "child_process"
4-
import { posix } from "path"
5-
import * as nativePath from "path"
1+
import { MI2, escape } from "./mi2";
2+
import { Breakpoint } from "../backend";
3+
import * as ChildProcess from "child_process";
4+
import { posix } from "path";
5+
import * as nativePath from "path";
66
const path = posix;
77

88
export class MI2_LLDB extends MI2 {

src/backend/mi2/mi2mago.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { MI2_LLDB } from "./mi2lldb"
2-
import { Stack } from "../backend"
3-
import { MINode } from "../mi_parse"
1+
import { MI2_LLDB } from "./mi2lldb";
2+
import { Stack } from "../backend";
3+
import { MINode } from "../mi_parse";
44

55
export class MI2_Mago extends MI2_LLDB {
66
getStack(maxLevels: number, thread: number): Promise<Stack[]> {
@@ -29,7 +29,7 @@ export class MI2_Mago extends MI2_LLDB {
2929
level: level,
3030
line: line
3131
});
32-
}
32+
};
3333
stack.forEach(element => {
3434
if (element)
3535
if (element[0] == "stack") {

src/gdb.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ class GDBDebugSession extends MI2DebugSession {
8787
if (this.crashed)
8888
this.handlePause(undefined);
8989
}, err => {
90-
this.sendErrorResponse(response, 100, `Failed to start MI Debugger: ${err.toString()}`)
90+
this.sendErrorResponse(response, 100, `Failed to start MI Debugger: ${err.toString()}`);
9191
});
9292
}, err => {
93-
this.sendErrorResponse(response, 102, `Failed to SSH: ${err.toString()}`)
93+
this.sendErrorResponse(response, 102, `Failed to SSH: ${err.toString()}`);
9494
});
9595
}
9696
else {
@@ -108,10 +108,10 @@ class GDBDebugSession extends MI2DebugSession {
108108
if (this.crashed)
109109
this.handlePause(undefined);
110110
}, err => {
111-
this.sendErrorResponse(response, 100, `Failed to Start MI Debugger: ${err.toString()}`)
111+
this.sendErrorResponse(response, 100, `Failed to Start MI Debugger: ${err.toString()}`);
112112
});
113113
}, err => {
114-
this.sendErrorResponse(response, 103, `Failed to load MI Debugger: ${err.toString()}`)
114+
this.sendErrorResponse(response, 103, `Failed to load MI Debugger: ${err.toString()}`);
115115
});
116116
}
117117
}
@@ -151,7 +151,7 @@ class GDBDebugSession extends MI2DebugSession {
151151
}, 50);
152152
this.sendResponse(response);
153153
}, err => {
154-
this.sendErrorResponse(response, 102, `Failed to SSH: ${err.toString()}`)
154+
this.sendErrorResponse(response, 102, `Failed to SSH: ${err.toString()}`);
155155
});
156156
}
157157
else {
@@ -163,7 +163,7 @@ class GDBDebugSession extends MI2DebugSession {
163163
});
164164
this.sendResponse(response);
165165
}, err => {
166-
this.sendErrorResponse(response, 102, `Failed to attach: ${err.toString()}`)
166+
this.sendErrorResponse(response, 102, `Failed to attach: ${err.toString()}`);
167167
});
168168
}
169169
else {
@@ -174,7 +174,7 @@ class GDBDebugSession extends MI2DebugSession {
174174
});
175175
this.sendResponse(response);
176176
}, err => {
177-
this.sendErrorResponse(response, 101, `Failed to attach: ${err.toString()}`)
177+
this.sendErrorResponse(response, 101, `Failed to attach: ${err.toString()}`);
178178
});
179179
}
180180
}

src/mibase.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export class MI2DebugSession extends DebugSession {
190190
}
191191
catch (err) {
192192
this.sendErrorResponse(response, 11, `Could not continue: ${err}`);
193-
};
193+
}
194194
}
195195

196196
protected setFunctionBreakPointsRequest(response: DebugProtocol.SetFunctionBreakpointsResponse, args: DebugProtocol.SetFunctionBreakpointsArguments): void {
@@ -321,7 +321,7 @@ export class MI2DebugSession extends DebugSession {
321321
};
322322
this.sendResponse(response);
323323
}, err => {
324-
this.sendErrorResponse(response, 12, `Failed to get Stack Trace: ${err.toString()}`)
324+
this.sendErrorResponse(response, 12, `Failed to get Stack Trace: ${err.toString()}`);
325325
});
326326
}
327327

@@ -500,7 +500,7 @@ export class MI2DebugSession extends DebugSession {
500500

501501
response.body = {
502502
variables: vars
503-
}
503+
};
504504
this.sendResponse(response);
505505
}
506506
catch (err) {
@@ -647,7 +647,7 @@ export class MI2DebugSession extends DebugSession {
647647
response.body = {
648648
variablesReference: 0,
649649
result: res.result("value")
650-
}
650+
};
651651
this.sendResponse(response);
652652
}, msg => {
653653
this.sendErrorResponse(response, 7, msg.toString());

tslint.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
"ordered-imports": false,
3535
"quotemark": false,
3636
"radix": false,
37-
"semicolon": false,
3837
"space-before-function-paren": false,
3938
"trailing-comma": false,
4039
"triple-equals": false,

0 commit comments

Comments
 (0)