Skip to content

Commit

Permalink
Remove commented code / old descriptor.
Browse files Browse the repository at this point in the history
  • Loading branch information
matkoch committed Apr 7, 2017
1 parent 6c64c5e commit 9487c39
Showing 1 changed file with 0 additions and 135 deletions.
135 changes: 0 additions & 135 deletions src/StyleCop.ReSharper/CodeCleanup/StyleCopDescriptor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,8 @@ namespace StyleCop.ReSharper.CodeCleanup
{
using System;
using System.ComponentModel;
using System.Globalization;
using System.Text;
using System.Xml;

using JetBrains.ReSharper.Daemon.CSharp.CodeCleanup;
using JetBrains.ReSharper.Feature.Services.CodeCleanup;
using JetBrains.Util;

[Category (CSharpCategory)]
[DisplayName ("Fix StyleCop violations")]
Expand All @@ -40,134 +35,4 @@ public CreateXmlDocStubsDescriptor ()
{
}
}

///// <summary>
///// The style cop descriptor.
///// </summary>
//[DisplayName("Fix StyleCop violations")]
//[Category(CSharpCategory)]
//[TypeConverter(typeof(ExpandableObjectConverter))]
//public class StyleCopDescriptor : CodeCleanupOptionDescriptor<StyleCopCodeCleanupOptions>
//{
// /// <summary>
// /// Initializes a new instance of the <see cref="StyleCopDescriptor"/> class.
// /// </summary>
// public StyleCopDescriptor()
// : base("StyleCop")
// {
// }

// /// <summary>
// /// Summarize the options for the Code Cleanup dialog
// /// </summary>
// /// <param name="profile">
// /// The selected profile
// /// </param>
// /// <returns>
// /// A string that summarizes the options
// /// </returns>
// public override string Present(CodeCleanupProfile profile)
// {
// return profile.GetSetting(this).ToString();
// }

// /// <summary>
// /// Save the options
// /// </summary>
// /// <param name="element">
// /// The parent XML element to add the options to
// /// </param>
// /// <param name="value">
// /// The options to save
// /// </param>
// public override void Save(XmlElement element, StyleCopCodeCleanupOptions value)
// {
// element.CreateLeafElementWithValue(
// "FixViolations",
// value.FixViolations.ToString(CultureInfo.InvariantCulture));
// element.CreateLeafElementWithValue(
// "CreateXmlDocStubs",
// value.CreateXmlDocStubs.ToString(CultureInfo.InvariantCulture));
// }

// /// <summary>
// /// Load the options
// /// </summary>
// /// <param name="element">
// /// The parent XML element
// /// </param>
// /// <returns>
// /// A loaded instance of the options
// /// </returns>
// public override StyleCopCodeCleanupOptions Load(XmlElement element)
// {
// return new StyleCopCodeCleanupOptions
// {
// FixViolations = bool.Parse(XmlUtil.ReadLeafElementValue(element, "FixViolations")),
// CreateXmlDocStubs = bool.Parse(XmlUtil.ReadLeafElementValue(element, "CreateXmlDocStubs"))
// };
// }
//}

///// <summary>
///// Options for code cleanup
///// </summary>
//public class StyleCopCodeCleanupOptions : ObservableObject
//{
// private bool fixViolations;
// private bool createXmlDocStubs;

// /// <summary>
// /// Option to fix StyleCop violations
// /// </summary>
// [DisplayName("Fix StyleCop violations")]
// public bool FixViolations
// {
// get
// {
// return this.fixViolations;
// }
// set
// {
// this.SetField(ref this.fixViolations, value);
// }
// }

// /// <summary>
// /// Options to generate XML doc stubs
// /// </summary>
// [DisplayName("Create XML doc stubs")]
// public bool CreateXmlDocStubs
// {
// get
// {
// return this.createXmlDocStubs;
// }
// set
// {
// this.SetField(ref this.createXmlDocStubs, value);
// }
// }

// /// <summary>
// /// Initializes a new instance of the <see cref="StyleCopCodeCleanupOptions"/> class.
// /// </summary>
// public StyleCopCodeCleanupOptions()
// {
// this.FixViolations = true;

// // TODO: What's the best default?
// // I like the argument that we shouldn't blindly create XML docs, but set
// // them properly, but it's nice to be able to fix up everything we can...
// this.CreateXmlDocStubs = false;
// }

// public override string ToString()
// {
// StringBuilder stringBuilder = new StringBuilder();
// stringBuilder.Append(this.FixViolations ? "Yes" : "No");
// stringBuilder.Append(this.CreateXmlDocStubs ? " (create XML doc stubs)" : " (do not create XML doc stubs)");
// return stringBuilder.ToString();
// }
//}
}

0 comments on commit 9487c39

Please sign in to comment.