lib/roku_builder/plugins/analyzer.rb in roku_builder-4.9.3 vs lib/roku_builder/plugins/analyzer.rb in roku_builder-4.9.4
- old
+ new
@@ -28,21 +28,20 @@
end
def analyze(options:, quiet: false)
@options = options
@warnings = []
- plugin_config = get_config(".roku_builder_analyze.json", true) || {}
analyzer_config = get_config("inspector_config.json")
performance_config = get_config("performance_config.json")
@inspector_config = analyzer_config[:inspectors]
loader = Loader.new(config: @config)
Dir.mktmpdir do |dir|
loader.copy(options: options, path: dir)
raf_inspector = RafInspector.new(config: @config, dir: dir)
manifest_inspector = ManifestInspector.new(config: @config, dir: dir, raf: raf_inspector)
@warnings.concat(manifest_inspector.run(analyzer_config[:inspectors]))
has_source_dir = false
- libraries = plugin_config[:libraries]
+ libraries = @config.project[:libraries]
libraries ||= []
Dir.glob(File.join(dir, "**", "*")).each do |file_path|
file = file_path.dup; file.slice!(dir)
unless libraries.any_is_start?(file) and not @options[:include_libraries]
if File.file?(file_path) and file_path.end_with?(".brs", ".xml")