Skip to content

Commit

Permalink
(maint) Disable style rules for option.cs
Browse files Browse the repository at this point in the history
This file we tend not to touch, so evaluating every style rule here is
a bit pointless, especially as we want to try replacing this when we get
an opportunity.
  • Loading branch information
vexx32 committed Apr 16, 2024
1 parent 39aa061 commit c8f0702
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/chocolatey/infrastructure/commandline/Options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@
using NDesk.Options;
#endif


// Disable anything this file runs into, we generally don't put much maintenance in here.
#pragma warning disable IDE0003, IDE0006, IDE0007, IDE0008,IDE0011, IDE0032, IDE0040, IDE0046, IDE0049, IDE0055, IDE0075, IDE1006

namespace chocolatey.infrastructure.commandline
{

Expand Down Expand Up @@ -242,8 +246,8 @@ public override string ToString ()
}

public class OptionContext {
private Option option;
private string name;
private Option option;
private string name;
private int index;
private OptionSet set;
private OptionValueCollection c;
Expand Down Expand Up @@ -1147,3 +1151,5 @@ private static int GetLineEnd (int start, int length, string description)

// ReSharper restore InconsistentNaming
}

#pragma warning restore IDE0003, IDE0006, IDE0007, IDE0008,IDE0011, IDE0032, IDE0040, IDE0046, IDE0049, IDE0055, IDE0075, IDE1006

0 comments on commit c8f0702

Please sign in to comment.