public void VisitAssembly(AssemblyDefinition assembly)
        {
            Log.DebugLine(this, "-----------------------------------");
            Log.DebugLine(this, "checking {0}", assembly.Name);

            if (Aspell.Instance != null)
            {
                string details = string.Empty;
                foreach (CustomAttribute attr in assembly.CustomAttributes)
                {
                    foreach (object o in attr.ConstructorParameters)
                    {
                        string text = o.ToString();
                        Unused.Value = CheckSpelling.Text(text, ref details);
                    }
                }

                if (details.Length > 0)
                {
                    details = "Words: " + details;
                    Log.DebugLine(this, details);
                    Reporter.AssemblyFailed(assembly, CheckID, details);
                }
            }
        }
예제 #2
0
 public void VisitLoad(LoadString load)
 {
     if (m_needsCheck)
     {
         if (CheckSpelling.Text(load.Value, ref m_details))
         {
             if (m_offset < 0)
             {
                 m_offset = load.Untyped.Offset;
             }
         }
     }
 }