mirror of
https://github.com/github/codeql.git
synced 2026-02-23 10:23:41 +01:00
JavaScript: Autoformat extractor sources using google-java-format.
No special settings; command: find javascript/extractor/src -name "*.java" | xargs java -jar /path/to/google-java-format-1.7-all-deps.jar --replace
This commit is contained in:
@@ -5,26 +5,24 @@ import java.util.LinkedHashSet;
|
||||
import java.util.Set;
|
||||
|
||||
public class ParsedProject {
|
||||
private final File tsConfigFile;
|
||||
private final Set<File> sourceFiles = new LinkedHashSet<>();
|
||||
private final File tsConfigFile;
|
||||
private final Set<File> sourceFiles = new LinkedHashSet<>();
|
||||
|
||||
public ParsedProject(File tsConfigFile) {
|
||||
this.tsConfigFile = tsConfigFile;
|
||||
}
|
||||
public ParsedProject(File tsConfigFile) {
|
||||
this.tsConfigFile = tsConfigFile;
|
||||
}
|
||||
|
||||
/** Returns the <tt>tsconfig.json</tt> file that defines this project. */
|
||||
public File getTsConfigFile() {
|
||||
return tsConfigFile;
|
||||
}
|
||||
/** Returns the <tt>tsconfig.json</tt> file that defines this project. */
|
||||
public File getTsConfigFile() {
|
||||
return tsConfigFile;
|
||||
}
|
||||
|
||||
/**
|
||||
* Absolute paths to the files included in this project.
|
||||
*/
|
||||
public Set<File> getSourceFiles() {
|
||||
return sourceFiles;
|
||||
}
|
||||
/** Absolute paths to the files included in this project. */
|
||||
public Set<File> getSourceFiles() {
|
||||
return sourceFiles;
|
||||
}
|
||||
|
||||
public void addSourceFile(File file) {
|
||||
sourceFiles.add(file);
|
||||
}
|
||||
public void addSourceFile(File file) {
|
||||
sourceFiles.add(file);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user