-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(validation): add srcroot configuration
- Loading branch information
1 parent
cc9fb4b
commit 8b65f63
Showing
5 changed files
with
58 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@monokle/validation": minor | ||
--- | ||
|
||
add srcroot configuration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { OriginalUriBaseIds } from "../common/sarif.js"; | ||
|
||
type CreateOriginalUriBaseIdsParams = { | ||
srcroot?: string; | ||
} | ||
|
||
export function createOriginalUriBaseIds({ | ||
srcroot | ||
}: CreateOriginalUriBaseIdsParams) { | ||
const result: OriginalUriBaseIds = { | ||
"SRCROOT": { | ||
description: { | ||
text: "The path to the root of this project." | ||
} | ||
}, | ||
"RESOURCE": { | ||
description: { | ||
text:"A symbol which indicates the URI is a resource identifier." | ||
} | ||
} | ||
} | ||
|
||
if (srcroot) { | ||
result["SRCROOT"].uri = srcroot; | ||
} | ||
|
||
return result; | ||
} |