Skip to content

Commit

Permalink
fix: Resolve merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
d3xter666 authored and RandomByte committed Jun 3, 2024
1 parent 9a3c449 commit acb3888
Show file tree
Hide file tree
Showing 8 changed files with 172 additions and 174 deletions.
5 changes: 2 additions & 3 deletions src/linter/ui5Types/SourceFileLinter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import path from "node:path/posix";
import SourceFileReporter from "./SourceFileReporter.js";
import LinterContext, {ResourcePath, CoverageCategory, LintMessageSeverity} from "../LinterContext.js";
import {RULES, MESSAGES, formatMessage} from "../linterReporting.js";
import fs from "node:fs/promises";
import analyzeComponentJson from "./asyncComponentFlags.js";

interface DeprecationInfo {
Expand All @@ -28,8 +27,8 @@ export default class SourceFileLinter {
constructor(
context: LinterContext, resourcePath: ResourcePath,
sourceFile: ts.SourceFile, sourceMap: string | undefined, checker: ts.TypeChecker,
reportCoverage: boolean | undefined = false, messageDetails: boolean | undefined = false, manifestContent?: string | undefined,
dataTypes: Record<string, string> | undefined
reportCoverage: boolean | undefined = false, messageDetails: boolean | undefined = false,
dataTypes: Record<string, string> | undefined, manifestContent?: string | undefined
) {
this.#resourcePath = resourcePath;
this.#sourceFile = sourceFile;
Expand Down
5 changes: 3 additions & 2 deletions test/lib/linter/_linterHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@ export async function esmockDeprecationText() {
sourceMap: string | undefined, checker: TypeChecker,
reportCoverage: boolean | undefined = false,
messageDetails: boolean | undefined = false,
dataTypes: Record<string, string>,
dataTypes: Record<string, string>,
manifestContent?: string | undefined
) {
// Don't use sinon's stubs as it's hard to clean after them in this case and it leaks memory.
const linter = new SourceFileLinter(
context, filePath, sourceFile, sourceMap, checker, reportCoverage, messageDetails, dataTypes, manifestContent
context, filePath, sourceFile, sourceMap, checker, reportCoverage,
messageDetails, dataTypes, manifestContent
);
linter.getDeprecationText = () => "Deprecated test message";
return linter;
Expand Down
Loading

0 comments on commit acb3888

Please sign in to comment.