MCPcopy
hub / github.com/ternjs/tern / readProjectFile

Function readProjectFile

lib/bootstrap.js:42–53  ·  view source on GitHub ↗
(fileName)

Source from the content-addressed store, hash-verified

40}
41
42function readProjectFile(fileName) {
43 var data = readJSON(fileName), name;
44 for (var option in defaultConfig) {
45 if (!data.hasOwnProperty(option))
46 data[option] = defaultConfig[option];
47 else if (option == "plugins")
48 for (name in defaultConfig.plugins)
49 if (!Object.prototype.hasOwnProperty.call(data.plugins, name))
50 data.plugins[name] = defaultConfig.plugins[name];
51 }
52 return data;
53}
54
55function findFile(file, projectDir, fallbackDir, options) {
56 var local = path.resolve(projectDir, file);

Callers 1

bootstrap.jsFile · 0.85

Calls 1

readJSONFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…