public RuleResult CheckAssembly (AssemblyDefinition assembly) { // If the analyzed assembly is a satellite assembly, does not apply if (!string.IsNullOrEmpty (assembly.Name.Culture)) return RuleResult.DoesNotApply; // Reset caches mainAssemblyResourceCache = new AssemblyResourceCache (assembly); foreach (AssemblyDefinition satellite in GetSatellitesAssemblies (assembly)) CheckSatelliteAssembly (satellite); return RuleResult.Success; }
public RuleResult CheckAssembly(AssemblyDefinition assembly) { // If the analyzed assembly is a satellite assembly, does not apply if (!string.IsNullOrEmpty(assembly.Name.Culture)) { return(RuleResult.DoesNotApply); } // Reset caches mainAssemblyResourceCache = new AssemblyResourceCache(assembly); foreach (AssemblyDefinition satellite in GetSatellitesAssemblies(assembly)) { CheckSatelliteAssembly(satellite); } return(RuleResult.Success); }