Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/analysis/src/css/analysis/metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ export function computeMetrics(root: Root | Document): CssMetrics {
// so line numbers are not necessarily added in order (e.g. a rule's closing
// brace line is added before its children's lines).
return {
ncloc: Array.from(codeLines).sort((a, b) => a - b),
commentLines: Array.from(commentCandidates).sort((a, b) => a - b),
nosonarLines: nosonarLines.sort((a, b) => a - b),
ncloc: Array.from(codeLines).toSorted((a, b) => a - b),
commentLines: Array.from(commentCandidates).toSorted((a, b) => a - b),
nosonarLines: nosonarLines.toSorted((a, b) => a - b),
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ void establishWebSocketConnection() {
this.client.connectBlocking();
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new RuntimeException(e);
throw new IllegalStateException("WebSocket connection interrupted", e);
}
}

Expand Down
Loading