Skip to content

Commit b6bb604

Browse files
knightburtonyichoi
authored andcommitted
Add TSLint rule to limit the line length to 120 character (#7)
IoT.js-Debug-DCO-1.0-Signed-off-by: Imre Kiss [email protected]
1 parent d1a607f commit b6bb604

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

src/IotjsDebugger.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ class IotjsDebugSession extends LoggingDebugSession {
6666
* The 'initialize' request is the first request called by the frontend
6767
* to interrogate the debug adapter about the features it provides.
6868
*/
69-
protected initializeRequest(response: DebugProtocol.InitializeResponse, args: DebugProtocol.InitializeRequestArguments): void {
69+
protected initializeRequest(
70+
response: DebugProtocol.InitializeResponse, args: DebugProtocol.InitializeRequestArguments
71+
): void {
7072
this.log('initializeRequest');
7173

7274
this.sendEvent(new InitializedEvent());
@@ -81,7 +83,9 @@ class IotjsDebugSession extends LoggingDebugSession {
8183
this.sendResponse(response);
8284
}
8385

84-
protected configurationDoneRequest(response: DebugProtocol.ConfigurationDoneResponse, args: DebugProtocol.ConfigurationDoneArguments): void {
86+
protected configurationDoneRequest(
87+
response: DebugProtocol.ConfigurationDoneResponse, args: DebugProtocol.ConfigurationDoneArguments
88+
): void {
8589
this.log('configurationDoneRequest');
8690

8791
super.configurationDoneRequest(response, args);
@@ -158,7 +162,9 @@ class IotjsDebugSession extends LoggingDebugSession {
158162
this.sendErrorResponse(response, 0, 'Launching is not supported. Use Attach.');
159163
}
160164

161-
protected disconnectRequest(response: DebugProtocol.DisconnectResponse, args: DebugProtocol.DisconnectArguments): void {
165+
protected disconnectRequest(
166+
response: DebugProtocol.DisconnectResponse, args: DebugProtocol.DisconnectArguments
167+
): void {
162168
this.log('disconnectRequest');
163169

164170
this._debuggerClient.disconnect();
@@ -212,7 +218,9 @@ class IotjsDebugSession extends LoggingDebugSession {
212218
this.sendResponse(response);
213219
}
214220

215-
protected setBreakPointsRequest(response: DebugProtocol.SetBreakpointsResponse, args: DebugProtocol.SetBreakpointsArguments): void {
221+
protected setBreakPointsRequest(
222+
response: DebugProtocol.SetBreakpointsResponse, args: DebugProtocol.SetBreakpointsArguments
223+
): void {
216224
this.log('setBreakPointsRequest: Not implemented yet');
217225

218226
this.sendResponse(response);

tslint.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@
2020
],
2121
"jsdoc-format": true,
2222
"label-position": true,
23+
"max-line-length": [
24+
true,
25+
{
26+
"limit": 120,
27+
"ignore-pattern": "^import |^export {(.*?)}"
28+
}
29+
],
2330
"member-access": false,
2431
"member-ordering": [
2532
true,

0 commit comments

Comments
 (0)