Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
96e9b64
spelling: locals in src/libpsl-native/test
jsoref Aug 28, 2016
445467d
spelling: locals in src/Microsoft.Management.Infrastructure.CimCmdlets
jsoref Aug 28, 2016
8fba57f
spelling: locals in src/Microsoft.PackageManagement.MsiProvider
jsoref Aug 28, 2016
7c876d4
spelling: locals in src/Microsoft.PackageManagement.PackageSourceList…
jsoref Aug 28, 2016
281f2a3
spelling: locals in src/Microsoft.PowerShell.Commands.Management
jsoref Aug 28, 2016
4d84d92
spelling: locals in src/Microsoft.PowerShell.ScheduledJob
jsoref Aug 28, 2016
b2dfcf3
spelling: locals in src/Microsoft.PowerShell.Commands.Utility
jsoref Aug 30, 2016
67c5cf8
spelling: locals in src/powershell-native
jsoref Sep 1, 2016
6386d26
spelling: locals in src/System.Management.Automation/utils
jsoref Sep 1, 2016
b44e91e
spelling: locals in src/System.Management.Automation/singleshell
jsoref Sep 1, 2016
aa929a0
spelling: locals in src/System.Management.Automation/help
jsoref Sep 1, 2016
e9d4582
spelling: locals in src/System.Management.Automation/engine/runtime
jsoref Sep 1, 2016
c724220
spelling: locals in src/System.Management.Automation/engine/Modules
jsoref Sep 1, 2016
49fc2e9
spelling: locals in src/System.Management.Automation/engine/hostifaces
jsoref Sep 1, 2016
7ec70ee
spelling: locals in src/System.Management.Automation/engine/CommandCo…
jsoref Sep 1, 2016
b79355b
spelling: locals in src/System.Management.Automation/engine/ComInterop
jsoref Sep 1, 2016
3f992cd
spelling: locals in src/System.Management.Automation/engine
jsoref Sep 1, 2016
d517f1b
spelling: locals in src/System.Management.Automation/DscSupport
jsoref Sep 1, 2016
c8dde73
spelling: locals in src/Microsoft.PowerShell.Workflow.ServiceCore
jsoref Sep 1, 2016
3cdb922
spelling: locals in src/Microsoft.WSMan.Management
jsoref Aug 30, 2016
fbec6ec
spelling: locals in src/System.Management.Automation/namespaces
jsoref Sep 1, 2016
dbc0956
spelling: locals in src/Microsoft.PowerShell.GraphicalHost
jsoref Sep 1, 2016
2c2066a
spelling: locals in src/Microsoft.PowerShell.PackageManagement
jsoref Aug 28, 2016
0238f03
spelling: locals in src/Microsoft.PowerShell.ConsoleHost
jsoref Sep 2, 2016
abb27e4
spelling: locals in src/Microsoft.PowerShell.CoreCLR.Eventing
jsoref Aug 28, 2016
a398315
spelling: locals in src/System.Management.Automation/engine/remoting
jsoref Sep 2, 2016
ca440b9
spelling: locals in src/System.Management.Automation/engine/parser
jsoref Sep 1, 2016
4988001
spelling: locals in src/System.Management.Automation/CoreCLR
jsoref Sep 6, 2016
c75e01a
spelling: locals in src/System.Management.Automation/commands
jsoref Sep 1, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ internal void ThrowTerminatingError(Exception exception, string operation)
/// <summary>
/// certificate parameter set
/// </summary>
internal const string CertificatePrameterSet = "CertificatePrameterSet";
internal const string CertificateParameterSet = "CertificateParameterSet";

/// <summary>
/// CimInstance parameter alias
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ private void Initialize(
this.nameSpace = theNameSpace;
this.queryDialect = ConstValue.GetQueryDialectWithDefault(theQueryDialect);
this.queryExpression = theQueryExpression;
this.opreationTimeout = theOpreationTimeout;
this.operationTimeout = theOpreationTimeout;
this.computerName = theComputerName;
}

Expand Down Expand Up @@ -299,7 +299,7 @@ public void Start()
this.nameSpace,
this.queryDialect,
this.queryExpression,
this.opreationTimeout);
this.operationTimeout);
}
else
{
Expand All @@ -308,7 +308,7 @@ public void Start()
this.nameSpace,
this.queryDialect,
this.queryExpression,
this.opreationTimeout);
this.operationTimeout);
}
status = Status.Started;
}
Expand Down Expand Up @@ -392,7 +392,7 @@ internal void SetCmdlet(Cmdlet cmdlet)
private string nameSpace;
private string queryDialect;
private string queryExpression;
private UInt32 opreationTimeout;
private UInt32 operationTimeout;
#endregion
#endregion
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -971,8 +971,8 @@ internal void AddSessionToCache(CimSession cimSession, XOperationContextBase con

CimTestCimSessionContext testCimSessionContext = context as CimTestCimSessionContext;
UInt32 sessionId = this.sessionState.GenerateSessionId();
string orginalSessioName = testCimSessionContext.CimSessionWrapper.Name;
string sessionName = (orginalSessioName != null) ? orginalSessioName : String.Format(CultureInfo.CurrentUICulture, @"{0}{1}", CimSessionState.CimSessionClassName, sessionId);
string originalSessionName = testCimSessionContext.CimSessionWrapper.Name;
string sessionName = (originalSessionName != null) ? originalSessionName : String.Format(CultureInfo.CurrentUICulture, @"{0}{1}", CimSessionState.CimSessionClassName, sessionId);

// detach CimSession from the proxy object
CimSession createdCimSession = testCimSessionContext.Proxy.Detach();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,17 +141,17 @@ public void SetCimInstance(SetCimInstanceCommand cmdlet)
}

Exception exception = null;
CimInstance intance = cmdlet.CimInstance;
CimInstance instance = cmdlet.CimInstance;
// For CimInstance parameter sets, Property is an optional parameter
if (cmdlet.Property != null)
{
if (!SetProperty(cmdlet.Property, ref intance, ref exception))
if (!SetProperty(cmdlet.Property, ref instance, ref exception))
{
cmdlet.ThrowTerminatingError(exception, action);
return;
}
}
proxy.ModifyInstanceAsync(nameSpace, intance);
proxy.ModifyInstanceAsync(nameSpace, instance);
}
break;
case CimBaseCommand.QueryComputerSet:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public PSCredential Credential
/// This is specificly for wsman protocol.
/// </summary>
[Parameter(ValueFromPipelineByPropertyName = true,
ParameterSetName = CertificatePrameterSet)]
ParameterSetName = CertificateParameterSet)]
public String CertificateThumbprint
{
get { return certificatethumbprint; }
Expand Down
10 changes: 5 additions & 5 deletions src/Microsoft.Management.Infrastructure.CimCmdlets/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,11 @@ internal static bool GenerateLog
/// <summary>
/// Flag used to control generating message into powershell
/// </summary>
private static bool genrateVerboseMessage = true;
internal static bool GenrateVerboseMessage
private static bool generateVerboseMessage = true;
internal static bool GenerateVerboseMessage
{
get { return genrateVerboseMessage; }
set { genrateVerboseMessage = value; }
get { return generateVerboseMessage; }
set { generateVerboseMessage = value; }
}

/// <summary>
Expand Down Expand Up @@ -203,7 +203,7 @@ internal static bool GenrateVerboseMessage
internal static string removeParameterSetName = @"Remove parameter set {0} name from cache";
internal static string currentParameterSetNameCount = @"Cache have {0} parameter set names";
internal static string currentParameterSetNameInCache = @"Cache have parameter set {0} valid {1}";
internal static string currentnonMadatoryParameterSetInCache = @"Cache have optional parameter set {0} valid {1}";
internal static string currentnonMandatoryParameterSetInCache = @"Cache have optional parameter set {0} valid {1}";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any usages of any of these internal strings. @lzybkr We should investigate and consider removing them.

internal static string optionalParameterSetNameCount = @"Cache have {0} optional parameter set names";
internal static string finalParameterSetName = @"------Final parameter set name of the cmdlet is {0}";
internal static string addToOptionalParameterSet = @"Add to optional ParameterSetNames {0}";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ IQueryable<TElement> IQueryProvider.CreateQuery<TElement>(Expression expression)
return q;
}

private static LambdaExpression GetJoinLambda(Expression expresion)
private static LambdaExpression GetJoinLambda(Expression expression)
{
UnaryExpression unaryExpression = (UnaryExpression) expresion;
UnaryExpression unaryExpression = (UnaryExpression) expression;
return (LambdaExpression) unaryExpression.Operand;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,9 @@ public IQueryable CreateQuery(Expression expression)
return this.CreateQuery<T>(expression);
}

private static LambdaExpression GetJoinLambda(Expression expresion)
private static LambdaExpression GetJoinLambda(Expression expression)
{
UnaryExpression unaryExpression = (UnaryExpression) expresion;
UnaryExpression unaryExpression = (UnaryExpression) expression;
return (LambdaExpression) unaryExpression.Operand;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ internal static void DownloadNuGetPackage(string fastPath, string location, Pack
var provider = request.PackageManagementService.GetAvailableProviders(request, new[] {"NuGet"}).FirstOrDefault();
if (provider != null)
{
var donwloadrequest = PackageSourceListRequest.ExtendRequest(
var downloadrequest = PackageSourceListRequest.ExtendRequest(
new Dictionary<string, string[]>
{
{"Destination", new[] {package.Destination ?? ""}}
Expand All @@ -163,7 +163,7 @@ internal static void DownloadNuGetPackage(string fastPath, string location, Pack
package.IsTrustedSource,
request);

var downloading = provider.DownloadPackage(pkgs[0], location, donwloadrequest);
var downloading = provider.DownloadPackage(pkgs[0], location, downloadrequest);

foreach (var i in downloading)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ internal string DefaultJSONFileLocation
}
}

internal string DefaultCatlogFileLocation
internal string DefaultCatalogFileLocation
{
get
{
Expand Down Expand Up @@ -970,9 +970,9 @@ private string ConfigurationFileLocation
if (force || this.ShouldContinue(Resources.Messages.QueryDownloadPackageSourceList.format(DefaultJSONSourceLocation), Resources.Messages.PackageSourceListNotFound.format(DefaultJSONFileLocation)))
{
WebDownloader.DownloadFile(DefaultJSONSourceLocation, DefaultJSONFileLocation, this, null);
WebDownloader.DownloadFile(DefaultJSONCatalogFileLocation, DefaultCatlogFileLocation, this, null);
if (System.IO.File.Exists(DefaultJSONFileLocation) && System.IO.File.Exists(DefaultCatlogFileLocation) &&
PackageSourceListProvider.TestCatalogFile(DefaultJSONFileLocation, DefaultCatlogFileLocation, this))
WebDownloader.DownloadFile(DefaultJSONCatalogFileLocation, DefaultCatalogFileLocation, this, null);
if (System.IO.File.Exists(DefaultJSONFileLocation) && System.IO.File.Exists(DefaultCatalogFileLocation) &&
PackageSourceListProvider.TestCatalogFile(DefaultJSONFileLocation, DefaultCatalogFileLocation, this))
{
addDefaultConfig = true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private static void InstallPackageViaPowerShellGet(PackageJson packageJson, Pack
return;
}

int packagesRecevied = 0;
int packagesReceived = 0;
foreach (var i in installing)
{
request.YieldSoftwareIdentity(i.FastPackageReference, i.Name, i.Version, i.VersionScheme, i.Summary, i.Source, i.SearchKey, i.FullPath, i.PackageFilename);
Expand All @@ -111,10 +111,10 @@ private static void InstallPackageViaPowerShellGet(PackageJson packageJson, Pack
request.PackageManagementService.ImportPackageProvider(request, packageJson.Name, null, null, null, isRooted: false, force: false);
}
}
packagesRecevied++;
packagesReceived++;
}

request.Verbose(Resources.Messages.NumberOfPackagesRecevied, packagesRecevied, provider.Name, "install-package");
request.Verbose(Resources.Messages.NumberOfPackagesRecevied, packagesReceived, provider.Name, "install-package");
}

internal static void GeInstalledPowershellArtifacts(PackageJson package, string requiredVersion, string minimumVersion, string maximumVersion, Dictionary<string, SoftwareIdentity> fastPackReftable, PackageSourceListRequest request)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6264,7 +6264,7 @@ internal static extern int I_NetLogonControl2(
[DllImport("Netapi32.dll", SetLastError = true)]
internal static extern int NetApiBufferFree(IntPtr Buffer);

internal const int WorkrGroupMachine = 2692;
internal const int WorkGroupMachine = 2692;
internal const int MaxMachineNameLength = 15;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@ protected override void BeginProcessing()
// When -List is not specified and -Recurse is specified, we need the -Class parameter to compose the right query string
if (this.Recurse.IsPresent && string.IsNullOrEmpty(Class))
{
string errormMsg = string.Format(CultureInfo.InvariantCulture, WmiResources.WmiParameterMissing, "-Class");
ErrorRecord er = new ErrorRecord(new InvalidOperationException(errormMsg), "InvalidOperationException", ErrorCategory.InvalidOperation, null);
string errorMsg = string.Format(CultureInfo.InvariantCulture, WmiResources.WmiParameterMissing, "-Class");
ErrorRecord er = new ErrorRecord(new InvalidOperationException(errorMsg), "InvalidOperationException", ErrorCategory.InvalidOperation, null);
WriteError(er);
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -683,9 +683,9 @@ protected override void ProcessRecord()
}
if (RequiredServices.IsPresent)
{
foreach (ServiceController servdependedon in service.ServicesDependedOn)
foreach (ServiceController servicedependedon in service.ServicesDependedOn)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Such minor changes may be not necessary, but thank you for fixing it as well.

{
WriteObject(servdependedon);
WriteObject(servicedependedon);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -835,12 +835,12 @@ private void ConnectGetWMI()
ArrayList namespaceArray = new ArrayList();
ArrayList sinkArray = new ArrayList();
ArrayList connectArray = new ArrayList(); // Optimization for remote namespace
int currentNamesapceCount = 0;
int currentNamespaceCount = 0;
namespaceArray.Add(getObject.Namespace);
bool topNamespace = true;
while (currentNamesapceCount < namespaceArray.Count)
while (currentNamespaceCount < namespaceArray.Count)
{
string connectNamespace = (string)namespaceArray[currentNamesapceCount];
string connectNamespace = (string)namespaceArray[currentNamespaceCount];
ManagementScope scope = new ManagementScope(WMIHelper.GetScopeString(_computerName, connectNamespace), options);
scope.Connect();
ManagementClass namespaceClass = new ManagementClass(scope, new ManagementPath("__Namespace"), new ObjectGetOptions());
Expand All @@ -861,7 +861,7 @@ private void ConnectGetWMI()
sinkArray.Add(_job.GetNewSink());
}
connectArray.Add(scope);
currentNamesapceCount++;
currentNamespaceCount++;
}

if ((sinkArray.Count != namespaceArray.Count) || (connectArray.Count != namespaceArray.Count)) // not expected throw exception
Expand All @@ -872,14 +872,14 @@ private void ConnectGetWMI()
return;
}

currentNamesapceCount = 0;
while (currentNamesapceCount < namespaceArray.Count)
currentNamespaceCount = 0;
while (currentNamespaceCount < namespaceArray.Count)
{
string connectNamespace = (string)namespaceArray[currentNamesapceCount];
ManagementObjectSearcher searcher = getObject.GetObjectList((ManagementScope)connectArray[currentNamesapceCount]);
string connectNamespace = (string)namespaceArray[currentNamespaceCount];
ManagementObjectSearcher searcher = getObject.GetObjectList((ManagementScope)connectArray[currentNamespaceCount]);
if (searcher == null)
{
currentNamesapceCount++;
currentNamespaceCount++;
continue;
}
if (topNamespace)
Expand All @@ -889,9 +889,9 @@ private void ConnectGetWMI()
}
else
{
searcher.Get((ManagementOperationObserver)sinkArray[currentNamesapceCount]);
searcher.Get((ManagementOperationObserver)sinkArray[currentNamespaceCount]);
}
currentNamesapceCount++;
currentNamespaceCount++;
}
}
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ protected override void BeginProcessing()
Assembly webserviceproxy = GenerateWebServiceProxyAssembly(_namespace, _class);
if (webserviceproxy == null)
return;
Object instance = InstantinateWebServiceProxy(webserviceproxy);
Object instance = InstantiateWebServiceProxy(webserviceproxy);

//to set the credentials into the generated webproxy Object
PropertyInfo[] pinfo = instance.GetType().GetProperties();
Expand Down Expand Up @@ -444,7 +444,7 @@ private void GetReferencedAssemblies(Assembly assembly, CompilerParameters param
/// </summary>
/// <param name="assembly"></param>
/// <returns></returns>
private object InstantinateWebServiceProxy(Assembly assembly)
private object InstantiateWebServiceProxy(Assembly assembly)
{
Type proxyType = null;
//loop through the types of the assembly and identify the type having
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public SwitchParameter NoClobber
/// </summary>
[Parameter]
public SwitchParameter Append { get; set; }
private bool _isActuallyAppending; // true if Append=true AND the file written was not empty (or nonexistant) when the cmdlet was invoked
private bool _isActuallyAppending; // true if Append=true AND the file written was not empty (or nonexistent) when the cmdlet was invoked

#endregion

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public sealed class DebugRunspaceCommand : PSCmdlet
// Debugging to persist until Ctrl+C or Debugger 'Exit' stops cmdlet.
private bool _debugging;
private ManualResetEventSlim _newRunningScriptEvent = new ManualResetEventSlim(true);
private RunspaceAvailability _previousRunspaceAvailablity = RunspaceAvailability.None;
private RunspaceAvailability _previousRunspaceAvailability = RunspaceAvailability.None;

#endregion

Expand Down Expand Up @@ -409,8 +409,8 @@ private void HandleRunspaceAvailabilityChanged(object sender, RunspaceAvailabili
}
}

RunspaceAvailability prevAvailability = _previousRunspaceAvailablity;
_previousRunspaceAvailablity = e.RunspaceAvailability;
RunspaceAvailability prevAvailability = _previousRunspaceAvailability;
_previousRunspaceAvailability = e.RunspaceAvailability;

if ((e.RunspaceAvailability == RunspaceAvailability.Available) || (e.RunspaceAvailability == RunspaceAvailability.None))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ private void pd_PrintPage(object sender, PrintPageEventArgs ev)
// Use the MarginBounds on the event to do this
float linesPerPage = ev.MarginBounds.Height / _printFont.GetHeight(ev.Graphics);

if (!_printingInitalized)
if (!_printingInitialized)
{
// on the first page we have to initialize the metrics for LineOutput

Expand All @@ -234,7 +234,7 @@ private void pd_PrintPage(object sender, PrintPageEventArgs ev)
float w = ev.Graphics.MeasureString(s, _printFont).Width / s.Length;
float columnsPerPage = ev.MarginBounds.Width / w;

_printingInitalized = true;
_printingInitialized = true;
_deviceRows = (int)linesPerPage;
_deviceColumns = (int)columnsPerPage;

Expand Down Expand Up @@ -268,7 +268,7 @@ private void pd_PrintPage(object sender, PrintPageEventArgs ev)
/// <summary>
/// flag for one time initialization of the interface (columns, etc.)
/// </summary>
private bool _printingInitalized = false;
private bool _printingInitialized = false;

/// <summary>
/// callback to ask the outputter to playback its cache
Expand Down
Loading