We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92cbeeb commit 0e51426Copy full SHA for 0e51426
server/src/config.ts
@@ -14,6 +14,9 @@ export function getExplainshellEndpoint(): string | null {
14
: null
15
}
16
17
+/**
18
+ * Get the glob pattern for files to run background analysis on.
19
+ */
20
export function getGlobPattern(): string {
21
const { GLOB_PATTERN } = process.env
22
return typeof GLOB_PATTERN === 'string' && GLOB_PATTERN.trim() !== ''
@@ -28,6 +31,9 @@ export function getHighlightParsingError(): boolean {
28
31
: false
29
32
30
33
34
35
+ * Get the maximum number of files to run background analysis on.
36
37
export function getBackgroundAnalysisMaxFiles(): number {
38
const { BACKGROUND_ANALYSIS_MAX_FILES } = process.env
39
const parsed = parseInt(BACKGROUND_ANALYSIS_MAX_FILES || '', 10)
0 commit comments