Skip to content

Commit b88cc50

Browse files
asgerfmax-schaefer
andauthored
Apply suggestions from code review
Co-Authored-By: Max Schaefer <54907921+max-schaefer@users.noreply.github.com>
1 parent 1bf8165 commit b88cc50

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

javascript/extractor/lib/typescript/src/virtual_source_root.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class VirtualSourceRoot {
1717
) {}
1818

1919
/**
20-
* Maps a path under the real source root to the corresonding path in the virtual source root.
20+
* Maps a path under the real source root to the corresponding path in the virtual source root.
2121
*/
2222
public toVirtualPath(path: string) {
2323
if (!this.virtualSourceRoot) return null;
@@ -27,7 +27,7 @@ export class VirtualSourceRoot {
2727
}
2828

2929
/**
30-
* Maps a path under the real source root to the corresonding path in the virtual source root.
30+
* Maps a path under the real source root to the corresponding path in the virtual source root.
3131
*/
3232
public toVirtualPathIfFileExists(path: string) {
3333
let virtualPath = this.toVirtualPath(path);

javascript/extractor/src/com/semmle/js/extractor/AutoBuild.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ private void setupFilters() {
397397
for (FileType filetype : defaultExtract)
398398
for (String extension : filetype.getExtensions()) patterns.add("**/*" + extension);
399399

400-
// include .eslintrc files and package.json files
400+
// include .eslintrc files, package.json files, and tsconfig.json files
401401
patterns.add("**/.eslintrc*");
402402
patterns.add("**/package.json");
403403
patterns.add("**/tsconfig.json");
@@ -601,7 +601,7 @@ private boolean verifyYarnInstallation() {
601601
}
602602

603603
/**
604-
* Returns an existing file named <code>dir/stem.ext</code> where <code>ext</code> is any
604+
* Returns an existing file named <code>dir/stem.ext</code> where <code>.ext</code> is any
605605
* of the given extensions, or <code>null</code> if no such file exists.
606606
*/
607607
private static Path tryResolveWithExtensions(Path dir, String stem, Iterable<String> extensions) {
@@ -708,7 +708,7 @@ protected DependencyInstallationResult installDependencies(Set<Path> filesToExtr
708708
// Remove dependency on local package
709709
propsToRemove.add(packageName);
710710
} else {
711-
// Remove file dependency on a package that don't exist in the checkout.
711+
// Remove file dependency on a package that doesn't exist in the checkout.
712712
String dependency = getChildAsString(dependencyObj, packageName);
713713
if (dependency != null && (dependency.startsWith("file:") || dependency.startsWith("./") || dependency.startsWith("../"))) {
714714
if (dependency.startsWith("file:")) {

0 commit comments

Comments
 (0)