[xtro] Remove duplicated filter method from reporter and share the new common one

This commit is contained in:
Sebastien Pouliot 2018-08-21 16:03:37 -04:00
Родитель 75b146b9d2
Коммит b8e50117f9
2 изменённых файлов: 4 добавлений и 82 удалений

Просмотреть файл

@ -5,87 +5,6 @@ using System.IO;
namespace Extrospection {
class Reporter {
public static bool Filter (string fx)
{
switch (fx) {
// macOS only - unsupported frameworks
case "AE":
case "AGL":
case "ATS":
case "AudioVideoBridging":
case "Automator":
case "CalendarStore":
case "CarbonCore":
case "CFOpenDirectory":
case "Collaboration":
case "ColorSync":
case "CommonPanels":
case "CryptoTokenKit":
case "DictionaryServices":
case "DirectoryService":
case "DiskArbitration":
case "DiscRecording":
case "DiscRecordingUI":
case "DVDPlayback":
case "ExceptionHandling":
case "ForceFeedback":
case "FSEvents":
case "FWAUserLib":
case "GLUT":
case "Help":
case "HIServices":
case "HIToolbox":
case "Hypervisor":
case "ICADevices":
case "ImageCaptureCore":
case "ImageCapture":
case "IMServicePlugIn":
case "Ink":
case "InstallerPlugins":
case "IOBluetooth":
case "IOBluetoothUI":
case "IOKit":
case "JavaFrameEmbedding":
case "JavaVM":
case "Kerberos":
case "LatentSemanticMapping":
case "LaunchServices":
case "Metadata":
case "NavigationServices":
case "NetFS":
case "OpenCL":
case "OpenDirectory":
case "OpenScripting":
case "OSAKit":
case "OSServices":
case "PreferencePanes":
case "Python":
case "QD":
case "QuartzFilters":
case "ruby":
case "ScreenSaver":
case "Scripting":
case "ScriptingBridge":
case "SearchKit":
case "SecurityFoundation": // bugzilla
case "SecurityHI":
case "ServiceManagement":
case "SharedFileList":
case "SpeechRecognition":
case "SpeechSynthesis":
case "SyncServices":
case "Tcl":
case "TWAIN":
case "vmnet":
// other non-supported frameworks
case "GSS": // iOS and macOS
case "vecLib": // all
return true;
default:
return false;
}
}
static string InputDirectory { get; set; }
static string ReportFolder { get; set; }
@ -224,7 +143,7 @@ namespace Extrospection {
Frameworks.Sort ();
foreach (var fx in Frameworks) {
if (Filter (fx))
if (Helpers.Filter (fx))
continue;
log.WriteLine ("<tr>");
log.Write ("<td>");

Просмотреть файл

@ -33,6 +33,9 @@
</ItemGroup>
<ItemGroup>
<Compile Include="Reporter.cs" />
<Compile Include="..\Filter.cs">
<Link>Filter.cs</Link>
</Compile>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
</Project>