Changeset 1156
- Timestamp:
- 07/03/09 08:19:22 (4 years ago)
- Location:
- trunk/eraser6
- Files:
-
- 16 edited
-
Eraser.DefaultPlugins/EraseDoD.cs (modified) (2 diffs)
-
Eraser.DefaultPlugins/EraseFirstLast16KB.cs (modified) (1 diff)
-
Eraser.DefaultPlugins/EraseGOSTP50739.cs (modified) (1 diff)
-
Eraser.DefaultPlugins/EraseGutmann.cs (modified) (2 diffs)
-
Eraser.DefaultPlugins/EraseHMGIS5.cs (modified) (2 diffs)
-
Eraser.DefaultPlugins/EraseRCMP_TSSIT_OPS_II.cs (modified) (1 diff)
-
Eraser.DefaultPlugins/EraseRandom.cs (modified) (1 diff)
-
Eraser.DefaultPlugins/EraseSchneier.cs (modified) (1 diff)
-
Eraser.DefaultPlugins/EraseUSAF5020.cs (modified) (1 diff)
-
Eraser.DefaultPlugins/EraseUSArmyAR380_19.cs (modified) (1 diff)
-
Eraser.Manager/DirectExecutor.cs (modified) (2 diffs)
-
Eraser.Unlocker/Eraser.Unlocker.cpp (modified) (2 diffs)
-
Eraser.Unlocker/Eraser.Unlocker.h (modified) (2 diffs)
-
Eraser.fxcop (modified) (15 diffs)
-
Eraser/Program.cs (modified) (1 diff)
-
Version.cs.in (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/eraser6/Eraser.DefaultPlugins/EraseDoD.cs
r956 r1156 28 28 namespace Eraser.DefaultPlugins 29 29 { 30 class DoD_EcE : PassBasedErasureMethod30 sealed class DoD_EcE : PassBasedErasureMethod 31 31 { 32 32 public override string Name … … 74 74 } 75 75 76 class DoD_E : PassBasedErasureMethod76 sealed class DoD_E : PassBasedErasureMethod 77 77 { 78 78 public override string Name -
trunk/eraser6/Eraser.DefaultPlugins/EraseFirstLast16KB.cs
r1100 r1156 32 32 namespace Eraser.DefaultPlugins 33 33 { 34 class FirstLast16KB : ErasureMethod34 sealed class FirstLast16KB : ErasureMethod 35 35 { 36 36 public FirstLast16KB() -
trunk/eraser6/Eraser.DefaultPlugins/EraseGOSTP50739.cs
r1002 r1156 31 31 namespace Eraser.DefaultPlugins 32 32 { 33 class GOSTP50739 : PassBasedErasureMethod33 sealed class GOSTP50739 : PassBasedErasureMethod 34 34 { 35 35 public override string Name -
trunk/eraser6/Eraser.DefaultPlugins/EraseGutmann.cs
r956 r1156 35 35 [DefaultFileErasure(1)] 36 36 [Guid("1407FC4E-FEFF-4375-B4FB-D7EFBB7E9922")] 37 publicclass Gutmann : PassBasedErasureMethod37 sealed class Gutmann : PassBasedErasureMethod 38 38 { 39 39 public override string Name … … 98 98 } 99 99 100 class GutmannLite : PassBasedErasureMethod100 sealed class GutmannLite : PassBasedErasureMethod 101 101 { 102 102 public override string Name -
trunk/eraser6/Eraser.DefaultPlugins/EraseHMGIS5.cs
r1002 r1156 31 31 namespace Eraser.DefaultPlugins 32 32 { 33 class HMGIS5Baseline : PassBasedErasureMethod33 sealed class HMGIS5Baseline : PassBasedErasureMethod 34 34 { 35 35 public override string Name … … 60 60 } 61 61 62 class HMGIS5Enhanced : PassBasedErasureMethod62 sealed class HMGIS5Enhanced : PassBasedErasureMethod 63 63 { 64 64 public override string Name -
trunk/eraser6/Eraser.DefaultPlugins/EraseRCMP_TSSIT_OPS_II.cs
r1002 r1156 31 31 namespace Eraser.DefaultPlugins 32 32 { 33 class RCMP_TSSIT_OPS_II : PassBasedErasureMethod33 sealed class RCMP_TSSIT_OPS_II : PassBasedErasureMethod 34 34 { 35 35 public override string Name -
trunk/eraser6/Eraser.DefaultPlugins/EraseRandom.cs
r956 r1156 32 32 [DefaultUnusedSpaceErasure(1)] 33 33 [Guid("BF8BA267-231A-4085-9BF9-204DE65A6641")] 34 class Pseudorandom : PassBasedErasureMethod34 sealed class Pseudorandom : PassBasedErasureMethod 35 35 { 36 36 public override string Name -
trunk/eraser6/Eraser.DefaultPlugins/EraseSchneier.cs
r956 r1156 28 28 namespace Eraser.DefaultPlugins 29 29 { 30 class Schneier : PassBasedErasureMethod30 sealed class Schneier : PassBasedErasureMethod 31 31 { 32 32 public override string Name -
trunk/eraser6/Eraser.DefaultPlugins/EraseUSAF5020.cs
r1002 r1156 31 31 namespace Eraser.DefaultPlugins 32 32 { 33 class USAF5020 : PassBasedErasureMethod33 sealed class USAF5020 : PassBasedErasureMethod 34 34 { 35 35 public override string Name -
trunk/eraser6/Eraser.DefaultPlugins/EraseUSArmyAR380_19.cs
r1002 r1156 31 31 namespace Eraser.DefaultPlugins 32 32 { 33 class USArmyAR380_19 : PassBasedErasureMethod33 sealed class USArmyAR380_19 : PassBasedErasureMethod 34 34 { 35 35 public override string Name -
trunk/eraser6/Eraser.Manager/DirectExecutor.cs
r1154 r1156 600 600 delegate(long lastWritten, int currentPass) 601 601 { 602 progress.Completed += lastWritten; 602 progress.Completed = Math.Min(progress.Total, 603 progress.Completed + lastWritten); 603 604 progress.Event.CurrentItemPass = currentPass; 604 605 progress.Event.CurrentItemProgress = progress.Progress; … … 945 946 catch (FileLoadException) 946 947 { 947 List<OpenHandle> openHandles = OpenHandle.Items;948 948 List<System.Diagnostics.Process> processes = new List<System.Diagnostics.Process>(); 949 foreach (OpenHandle handle in openHandles)949 foreach (OpenHandle handle in OpenHandle.Items) 950 950 if (handle.Path == paths[i]) 951 951 processes.Add(System.Diagnostics.Process.GetProcessById(handle.ProcessId)); -
trunk/eraser6/Eraser.Unlocker/Eraser.Unlocker.cpp
r1094 r1156 25 25 namespace Eraser { 26 26 namespace Unlocker { 27 List<OpenHandle^>^ OpenHandle::Items::get()27 ReadOnlyCollection<OpenHandle^>^ OpenHandle::Items::get() 28 28 { 29 29 List<OpenHandle^>^ handles = gcnew List<OpenHandle^>(); … … 68 68 } 69 69 70 return handles ;70 return handles->AsReadOnly(); 71 71 } 72 72 -
trunk/eraser6/Eraser.Unlocker/Eraser.Unlocker.h
r1094 r1156 26 26 using namespace System; 27 27 using namespace System::Collections::Generic; 28 using namespace System::Collections::ObjectModel; 28 29 using namespace Microsoft::Win32::SafeHandles; 29 30 … … 48 49 public: 49 50 /// Retrieves all open handles on the system 50 static property List<OpenHandle^>^ Items51 static property ReadOnlyCollection<OpenHandle^>^ Items 51 52 { 52 List<OpenHandle^>^ get();53 ReadOnlyCollection<OpenHandle^>^ get(); 53 54 } 54 55 -
trunk/eraser6/Eraser.fxcop
r1103 r1156 56 56 <Settings /> 57 57 </Rules> 58 <FxCopReport Version="1.36" LastAnalysis="2009-0 6-02 07:39:56Z">58 <FxCopReport Version="1.36" LastAnalysis="2009-07-03 06:57:16Z"> 59 59 <Namespaces> 60 60 <Namespace Name="Eraser.Unlocker"> … … 112 112 </Members> 113 113 </Type> 114 <Type Name="CommandLineProgram+CommandLine">115 <Members>116 <Member Name="#.ctor(System.String[])">117 <Messages>118 <Message TypeName="DoNotCallOverridableMethodsInConstructors" Category="Microsoft.Usage" CheckId="CA2214" Created="2009-06-02 07:17:10Z">119 <Issue Path="D:\Development\Projects\Eraser\Eraser" File="Program.cs" Line="593">120 <Item>'CommandLineProgram.CommandLine.CommandLine(string[])'</Item>121 <Item>

CommandLineProgram+CommandLine..ctor(String[])
CommandLineProgram+CommandLine.ResolveParameter(String):Boolean</Item>122 </Issue>123 </Message>124 </Messages>125 </Member>126 </Members>127 </Type>128 114 <Type Name="GUIProgram"> 129 115 <Members> … … 131 117 <Messages> 132 118 <Message TypeName="AvoidUncalledPrivateCode" Category="Microsoft.Performance" CheckId="CA1811" Status="Excluded" Created="2009-06-02 07:17:10Z"> 133 <Issue Path="D:\Development\Projects\Eraser\Eraser" File="Program.cs" Line="5 40">119 <Issue Path="D:\Development\Projects\Eraser\Eraser" File="Program.cs" Line="573"> 134 120 <Item>'GUIProgram.OnExitInstance(object)'</Item> 135 121 </Issue> … … 145 131 <Messages> 146 132 <Message Id="handle" TypeName="RemoveUnusedLocals" Category="Microsoft.Performance" CheckId="CA1804" Status="Excluded" Created="2009-06-02 07:17:10Z"> 147 <Issue Path="D:\Development\Projects\Eraser\Eraser" File="Program.cs" Line="3 25">133 <Issue Path="D:\Development\Projects\Eraser\Eraser" File="Program.cs" Line="358"> 148 134 <Item>'GUIProgram.Run()'</Item> 149 135 <Item>'handle'</Item> … … 165 151 <Messages> 166 152 <Message TypeName="DoNotCatchGeneralExceptionTypes" Category="Microsoft.Design" CheckId="CA1031" Created="2009-06-02 07:17:10Z"> 167 <Issue Path="D:\Development\Projects\Eraser\Eraser" File="Program.cs" Line="10 1">153 <Issue Path="D:\Development\Projects\Eraser\Eraser" File="Program.cs" Line="105"> 168 154 <Item>'Program.CommandMain(string[])'</Item> 169 155 <Item>'Exception'</Item> … … 216 202 <Member Name="#InstallUpdates(System.Object)"> 217 203 <Messages> 218 <Message TypeName="DoNotRaiseReservedExceptionTypes" Category="Microsoft.Usage" CheckId="CA2201" Created="2009-06-02 07:17:10Z">204 <Message TypeName="DoNotRaiseReservedExceptionTypes" Category="Microsoft.Usage" CheckId="CA2201" Status="Excluded" Created="2009-06-02 07:17:10Z"> 219 205 <Issue Name="TooGeneric" Path="D:\Development\Projects\Eraser\Eraser" File="UpdateForm.cs" Line="762"> 220 206 <Item>'UpdateManager.InstallUpdates(object)'</Item> 221 207 <Item>'ApplicationException'</Item> 222 208 </Issue> 209 <Notes> 210 <User Name="Joel"> 211 <Note Id="17" /> 212 </User> 213 </Notes> 223 214 </Message> 224 215 </Messages> … … 322 313 <Messages> 323 314 <Message TypeName="DoNotCallOverridableMethodsInConstructors" Category="Microsoft.Usage" CheckId="CA2214" Created="2009-05-01 03:14:45Z"> 324 <Issue Path="D:\Development\Projects\Eraser\Eraser.Manager" File="DirectExecutor.cs" Line="10 32">315 <Issue Path="D:\Development\Projects\Eraser\Eraser.Manager" File="DirectExecutor.cs" Line="1049"> 325 316 <Item>'DirectExecutor.DirectExecutor()'</Item> 326 317 <Item>

DirectExecutor..ctor()
Executor.set_TaskAdded(EventHandler<TaskEventArgs>):Void
Executor.set_TaskDeleted(EventHandler<TaskEventArgs>):Void
Executor.set_Tasks(ExecutorTasksCollection):Void</Item> … … 332 323 <Messages> 333 324 <Message TypeName="DoNotCastUnnecessarily" Category="Microsoft.Performance" CheckId="CA1800" Created="2009-05-01 03:14:45Z"> 334 <Issue Name="Parameter" Path="D:\Development\Projects\Eraser\Eraser.Manager" File="DirectExecutor.cs" Line="97 5">325 <Issue Name="Parameter" Path="D:\Development\Projects\Eraser\Eraser.Manager" File="DirectExecutor.cs" Line="977"> 335 326 <Item>'target'</Item> 336 327 <Item>'FolderTarget'</Item> … … 415 406 </Type> 416 407 <Type Name="ErasureTarget"> 417 <Messages> 418 <Message TypeName="IdentifiersShouldDifferByMoreThanCase" Category="Microsoft.Naming" CheckId="CA1708" Created="2009-05-01 03:14:45Z"> 419 <Issue Name="Member"> 420 <Item>'method'</Item> 421 <Item>Method</Item> 422 </Issue> 423 </Message> 424 </Messages> 425 <Members> 426 <Member Name="#method"> 427 <Messages> 428 <Message Id="method" TypeName="IdentifiersShouldBeCasedCorrectly" Category="Microsoft.Naming" CheckId="CA1709" Created="2009-05-01 03:14:45Z"> 429 <Issue Name="Member"> 430 <Item>method</Item> 431 <Item>'ErasureTarget.method'</Item> 432 <Item>Method</Item> 433 </Issue> 434 </Message> 435 </Messages> 408 <Members> 409 <Member Name="#Method"> 410 <Accessors> 411 <Accessor Name="#get_Method()"> 412 <Messages> 413 <Message TypeName="DoNotRaiseExceptionsInUnexpectedLocations" Category="Microsoft.Design" CheckId="CA1065" Created="2009-07-03 06:55:12Z" FixCategory="Breaking"> 414 <Issue Name="PropertyGetter" Level="Warning" Path="D:\Development\Projects\Eraser\Eraser.Manager" File="Task.cs" Line="294"> 415 <Item>'ErasureTarget.Method.get()'</Item> 416 <Item>'NotImplementedException'</Item> 417 </Issue> 418 </Message> 419 </Messages> 420 </Accessor> 421 </Accessors> 436 422 </Member> 437 423 </Members> … … 476 462 <Messages> 477 463 <Message Id="1#" TypeName="AvoidOutParameters" Category="Microsoft.Design" CheckId="CA1021" Created="2009-05-01 03:23:16Z"> 478 <Issue Path="D:\Development\Projects\Eraser\Eraser.Manager" File="Task.cs" Line="3 77">464 <Issue Path="D:\Development\Projects\Eraser\Eraser.Manager" File="Task.cs" Line="382"> 479 465 <Item>'totalSize'</Item> 480 466 </Issue> … … 766 752 <Messages> 767 753 <Message TypeName="DoNotCallOverridableMethodsInConstructors" Category="Microsoft.Usage" CheckId="CA2214" Created="2009-04-28 13:43:02Z"> 768 <Issue Path="D:\Development\Projects\Eraser\Eraser.DefaultPlugins" File="EraseFirstLast16KB.cs" Line="3 5">754 <Issue Path="D:\Development\Projects\Eraser\Eraser.DefaultPlugins" File="EraseFirstLast16KB.cs" Line="36"> 769 755 <Item>'FirstLast16KB.FirstLast16KB()'</Item> 770 <Item>

FirstLast16KB..ctor()
ErasureMethod.get_ Guid():Guid</Item>756 <Item>

FirstLast16KB..ctor()
ErasureMethod.get_Name():String</Item> 771 757 </Issue> 772 758 </Message> … … 820 806 <Note Id="15" Modified="2009-06-02 07:36:01Z">Unlocker is our assembly name, hence a proper noun</Note> 821 807 <Note Id="16" Modified="2009-06-02 07:36:03Z">Unlocker is our assembly name, hence a proper noun</Note> 808 <Note Id="17" Modified="2009-07-03 07:02:50Z">Can't think of a better exception to use</Note> 822 809 </User> 823 810 </Notes> … … 859 846 <Resolution Name="HResultOrErrorCode">{0} calls {1} but does not use the HRESULT or error code that the method returns. This could lead to unexpected behavior in error conditions or low-resource situations. Use the result in a conditional statement, assign the result to a variable, or pass it as an argument to another method.</Resolution> 860 847 </Rule> 848 <Rule TypeName="DoNotRaiseExceptionsInUnexpectedLocations" Category="Microsoft.Design" CheckId="CA1065"> 849 <Resolution Name="PropertyGetter">{0} creates an exception of type {1}, an exception type that should not be raised in a property. If this exception instance might be raised, use a different exception type, convert this property into a method, or change this property's logic so that it no longer raises an exception.</Resolution> 850 </Rule> 861 851 <Rule TypeName="DoNotRaiseReservedExceptionTypes" Category="Microsoft.Usage" CheckId="CA2201"> 862 852 <Resolution Name="TooGeneric">{0} creates an exception of type {1}, an exception type that is not sufficiently specific and should never be raised by user code. If this exception instance might be thrown, use a different exception type.</Resolution> … … 867 857 <Rule TypeName="FlagsEnumsShouldHavePluralNames" Category="Microsoft.Naming" CheckId="CA1714"> 868 858 <Resolution Name="Default">If enumeration name {0} is singular, change it to a plural form.</Resolution> 869 </Rule>870 <Rule TypeName="IdentifiersShouldBeCasedCorrectly" Category="Microsoft.Naming" CheckId="CA1709">871 <Resolution Name="Member">Correct the casing of '{0}' in member name {1} by changing it to '{2}'.</Resolution>872 859 </Rule> 873 860 <Rule TypeName="IdentifiersShouldBeSpelledCorrectly" Category="Microsoft.Naming" CheckId="CA1704"> … … 875 862 <Resolution Name="Namespace">Correct the spelling of '{0}' in namespace name '{1}'.</Resolution> 876 863 </Rule> 877 <Rule TypeName="IdentifiersShouldDifferByMoreThanCase" Category="Microsoft.Naming" CheckId="CA1708">878 <Resolution Name="Member">Change member names {0} and '{1}' so that they differ by more than case.</Resolution>879 </Rule>880 864 <Rule TypeName="IdentifiersShouldNotMatchKeywords" Category="Microsoft.Naming" CheckId="CA1716"> 881 865 <Resolution Name="Member">Rename virtual/interface member {0} so that it no longer conflicts with the reserved language keyword '{1}'. Using a reserved keyword as the name of a virtual/interface member makes it harder for consumers in other languages to override/implement the member.</Resolution> -
trunk/eraser6/Eraser/Program.cs
r1155 r1156 1314 1314 { 1315 1315 Dispose(true); 1316 GC.SuppressFinalize(this); 1316 1317 } 1317 1318 -
trunk/eraser6/Version.cs.in
r1095 r1156 30 30 public static readonly DateTime BuildDate = DateTime.Parse("$WCNOW$", 31 31 System.Globalization.CultureInfo.InvariantCulture); 32 public static readonlybool CustomBuild = $WCMODS?true:false$;32 public const bool CustomBuild = $WCMODS?true:false$; 33 33 } 34 34 }
Note: See TracChangeset
for help on using the changeset viewer.
