lib/nasldoc/cli/application.rb
# Removes blacklisted files from the file list
Removes blacklisted files from the file list
Removes blacklisted files from the file list
def remove_blacklist file_list
				blacklist = [
					"apple_device_model_list.inc",
					"blacklist_",
					"custom_CA.inc",
					"daily_badip",
					"daily_badurl.inc",
					"known_CA.inc",
					"oui.inc",
					"oval-definitions-schematron.inc",
					"plugin_feed_info.inc",
					"sc_families.inc",
					"scap_schema.inc",
					"ssl_known_cert.inc",
                                        "ssh_get_info2",
                                        "torture_cgi",
                                        "daily_badip3.inc",
                                        "cisco_ios.inc",
					"ovaldi32",
					"ovaldi64",
					"os_cves.inc",
                                        "kernel_cves.inc"
				]
				new_file_list = file_list.dup
				file_list.each_with_index do |file, index|
					blacklist.each do |bf|
						if file =~ /#{bf}/
							new_file_list.delete(file)
						end
					end
				end
				return new_file_list
			end
def remove_blacklist file_list blacklist = [ "apple_device_model_list.inc" , "blacklist_" , "custom_CA.inc" , "daily_badip" , "daily_badurl.inc" , "known_CA.inc" , "oui.inc" , "oval-definitions-schematron.inc" , "plugin_feed_info.inc" , "sc_families.inc" , "scap_schema.inc" , "ssl_known_cert.inc" , "ssh_get_info2" , "torture_cgi" , "daily_badip3.inc" , "cisco_ios.inc" , "ovaldi32" , "ovaldi64" , "os_cves.inc" , "kernel_cves.inc" ] new_file_list = file_list . dup file_list . each_with_index do | file , index | blacklist . each do | bf | if file =~ / #{ bf } / new_file_list . delete ( file ) end end end return new_file_list end
Removes blacklisted files from the file list
Removes blacklisted files from the file list
file_list
<not_specific>