Skip to content

Commit 0e51426

Browse files
committed
Add a bit of documentation for config
1 parent 92cbeeb commit 0e51426

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

server/src/config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ export function getExplainshellEndpoint(): string | null {
1414
: null
1515
}
1616

17+
/**
18+
* Get the glob pattern for files to run background analysis on.
19+
*/
1720
export function getGlobPattern(): string {
1821
const { GLOB_PATTERN } = process.env
1922
return typeof GLOB_PATTERN === 'string' && GLOB_PATTERN.trim() !== ''
@@ -28,6 +31,9 @@ export function getHighlightParsingError(): boolean {
2831
: false
2932
}
3033

34+
/**
35+
* Get the maximum number of files to run background analysis on.
36+
*/
3137
export function getBackgroundAnalysisMaxFiles(): number {
3238
const { BACKGROUND_ANALYSIS_MAX_FILES } = process.env
3339
const parsed = parseInt(BACKGROUND_ANALYSIS_MAX_FILES || '', 10)

0 commit comments

Comments
 (0)