diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCommandBase.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCommandBase.cs
index 24377e183..2ea726c77 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCommandBase.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCommandBase.cs
@@ -855,7 +855,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
///
/// certificate parameter set
///
- internal const string CertificatePrameterSet = "CertificatePrameterSet";
+ internal const string CertificateParameterSet = "CertificateParameterSet";
///
/// CimInstance parameter alias
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimIndicationWatcher.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimIndicationWatcher.cs
index a765abae1..608385fe2 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimIndicationWatcher.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimIndicationWatcher.cs
@@ -220,7 +220,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
this.nameSpace = theNameSpace;
this.queryDialect = ConstValue.GetQueryDialectWithDefault(theQueryDialect);
this.queryExpression = theQueryExpression;
- this.opreationTimeout = theOpreationTimeout;
+ this.operationTimeout = theOpreationTimeout;
this.computerName = theComputerName;
}
@@ -299,7 +299,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
this.nameSpace,
this.queryDialect,
this.queryExpression,
- this.opreationTimeout);
+ this.operationTimeout);
}
else
{
@@ -308,7 +308,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
this.nameSpace,
this.queryDialect,
this.queryExpression,
- this.opreationTimeout);
+ this.operationTimeout);
}
status = Status.Started;
}
@@ -392,7 +392,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
private string nameSpace;
private string queryDialect;
private string queryExpression;
- private UInt32 opreationTimeout;
+ private UInt32 operationTimeout;
#endregion
#endregion
}
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionOperations.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionOperations.cs
index 87d688c37..d17891c08 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionOperations.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionOperations.cs
@@ -971,8 +971,8 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
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();
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSetCimInstance.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSetCimInstance.cs
index dc8d21355..46e40ef53 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSetCimInstance.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSetCimInstance.cs
@@ -141,17 +141,17 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
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:
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionCommand.cs
index 21c109d23..99b7d46bd 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionCommand.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionCommand.cs
@@ -64,7 +64,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
/// This is specificly for wsman protocol.
///
[Parameter(ValueFromPipelineByPropertyName = true,
- ParameterSetName = CertificatePrameterSet)]
+ ParameterSetName = CertificateParameterSet)]
public String CertificateThumbprint
{
get { return certificatethumbprint; }
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/Utils.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/Utils.cs
index edf8f370d..0c32a5180 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/Utils.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/Utils.cs
@@ -157,11 +157,11 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
///
/// Flag used to control generating message into powershell
///
- 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; }
}
///
@@ -203,7 +203,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
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}";
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}";
diff --git a/src/Microsoft.PackageManagement.MsiProvider/Deployment/WindowsInstaller.Linq/QTable.cs b/src/Microsoft.PackageManagement.MsiProvider/Deployment/WindowsInstaller.Linq/QTable.cs
index eab1b0aa1..d5b2c573f 100644
--- a/src/Microsoft.PackageManagement.MsiProvider/Deployment/WindowsInstaller.Linq/QTable.cs
+++ b/src/Microsoft.PackageManagement.MsiProvider/Deployment/WindowsInstaller.Linq/QTable.cs
@@ -228,9 +228,9 @@ namespace Microsoft.PackageManagement.Msi.Internal.Deployment.WindowsInstaller.L
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;
}
diff --git a/src/Microsoft.PackageManagement.MsiProvider/Deployment/WindowsInstaller.Linq/Query.cs b/src/Microsoft.PackageManagement.MsiProvider/Deployment/WindowsInstaller.Linq/Query.cs
index 189228972..5f74fc470 100644
--- a/src/Microsoft.PackageManagement.MsiProvider/Deployment/WindowsInstaller.Linq/Query.cs
+++ b/src/Microsoft.PackageManagement.MsiProvider/Deployment/WindowsInstaller.Linq/Query.cs
@@ -312,9 +312,9 @@ namespace Microsoft.PackageManagement.Msi.Internal.Deployment.WindowsInstaller.L
return this.CreateQuery(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;
}
diff --git a/src/Microsoft.PackageManagement.PackageSourceListProvider/PackageList/NupkgInstaller.cs b/src/Microsoft.PackageManagement.PackageSourceListProvider/PackageList/NupkgInstaller.cs
index 30e538785..422282d77 100644
--- a/src/Microsoft.PackageManagement.PackageSourceListProvider/PackageList/NupkgInstaller.cs
+++ b/src/Microsoft.PackageManagement.PackageSourceListProvider/PackageList/NupkgInstaller.cs
@@ -154,7 +154,7 @@ namespace Microsoft.PackageManagement.PackageSourceListProvider
var provider = request.PackageManagementService.GetAvailableProviders(request, new[] {"NuGet"}).FirstOrDefault();
if (provider != null)
{
- var donwloadrequest = PackageSourceListRequest.ExtendRequest(
+ var downloadrequest = PackageSourceListRequest.ExtendRequest(
new Dictionary
{
{"Destination", new[] {package.Destination ?? ""}}
@@ -163,7 +163,7 @@ namespace Microsoft.PackageManagement.PackageSourceListProvider
package.IsTrustedSource,
request);
- var downloading = provider.DownloadPackage(pkgs[0], location, donwloadrequest);
+ var downloading = provider.DownloadPackage(pkgs[0], location, downloadrequest);
foreach (var i in downloading)
{
diff --git a/src/Microsoft.PackageManagement.PackageSourceListProvider/PackageList/PackageListRequest.cs b/src/Microsoft.PackageManagement.PackageSourceListProvider/PackageList/PackageListRequest.cs
index 83c07f853..8eadc1fa0 100644
--- a/src/Microsoft.PackageManagement.PackageSourceListProvider/PackageList/PackageListRequest.cs
+++ b/src/Microsoft.PackageManagement.PackageSourceListProvider/PackageList/PackageListRequest.cs
@@ -97,7 +97,7 @@ namespace Microsoft.PackageManagement.PackageSourceListProvider
}
}
- internal string DefaultCatlogFileLocation
+ internal string DefaultCatalogFileLocation
{
get
{
@@ -970,9 +970,9 @@ namespace Microsoft.PackageManagement.PackageSourceListProvider
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;
}
diff --git a/src/Microsoft.PackageManagement.PackageSourceListProvider/PackageList/PowerShellArtifactInstaller.cs b/src/Microsoft.PackageManagement.PackageSourceListProvider/PackageList/PowerShellArtifactInstaller.cs
index d7026a148..d15430302 100644
--- a/src/Microsoft.PackageManagement.PackageSourceListProvider/PackageList/PowerShellArtifactInstaller.cs
+++ b/src/Microsoft.PackageManagement.PackageSourceListProvider/PackageList/PowerShellArtifactInstaller.cs
@@ -92,7 +92,7 @@ namespace Microsoft.PackageManagement.PackageSourceListProvider
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);
@@ -111,10 +111,10 @@ namespace Microsoft.PackageManagement.PackageSourceListProvider
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 fastPackReftable, PackageSourceListRequest request)
diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/Computer.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/Computer.cs
index ca84a60b0..86034f62f 100644
--- a/src/Microsoft.PowerShell.Commands.Management/commands/management/Computer.cs
+++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/Computer.cs
@@ -6264,7 +6264,7 @@ $result
[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;
}
diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetWMIObjectCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetWMIObjectCommand.cs
index 5c80e1767..93b8272e5 100644
--- a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetWMIObjectCommand.cs
+++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetWMIObjectCommand.cs
@@ -340,8 +340,8 @@ namespace Microsoft.PowerShell.Commands
// 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;
}
diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/Service.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/Service.cs
index 62ba61451..0866a8c39 100644
--- a/src/Microsoft.PowerShell.Commands.Management/commands/management/Service.cs
+++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/Service.cs
@@ -683,9 +683,9 @@ namespace Microsoft.PowerShell.Commands
}
if (RequiredServices.IsPresent)
{
- foreach (ServiceController servdependedon in service.ServicesDependedOn)
+ foreach (ServiceController servicedependedon in service.ServicesDependedOn)
{
- WriteObject(servdependedon);
+ WriteObject(servicedependedon);
}
}
}
diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/WMIHelper.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/WMIHelper.cs
index 33dcce1fa..a989be64d 100644
--- a/src/Microsoft.PowerShell.Commands.Management/commands/management/WMIHelper.cs
+++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/WMIHelper.cs
@@ -835,12 +835,12 @@ namespace Microsoft.PowerShell.Commands
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());
@@ -861,7 +861,7 @@ namespace Microsoft.PowerShell.Commands
sinkArray.Add(_job.GetNewSink());
}
connectArray.Add(scope);
- currentNamesapceCount++;
+ currentNamespaceCount++;
}
if ((sinkArray.Count != namespaceArray.Count) || (connectArray.Count != namespaceArray.Count)) // not expected throw exception
@@ -872,14 +872,14 @@ namespace Microsoft.PowerShell.Commands
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)
@@ -889,9 +889,9 @@ namespace Microsoft.PowerShell.Commands
}
else
{
- searcher.Get((ManagementOperationObserver)sinkArray[currentNamesapceCount]);
+ searcher.Get((ManagementOperationObserver)sinkArray[currentNamespaceCount]);
}
- currentNamesapceCount++;
+ currentNamespaceCount++;
}
}
else
diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/WebServiceProxy.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/WebServiceProxy.cs
index 4c01b17f4..2ab9130a4 100644
--- a/src/Microsoft.PowerShell.Commands.Management/commands/management/WebServiceProxy.cs
+++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/WebServiceProxy.cs
@@ -203,7 +203,7 @@ namespace Microsoft.PowerShell.Commands
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();
@@ -444,7 +444,7 @@ namespace Microsoft.PowerShell.Commands
///
///
///
- 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
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CSVCommands.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CSVCommands.cs
index cc7e0d219..377607e97 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CSVCommands.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CSVCommands.cs
@@ -214,7 +214,7 @@ namespace Microsoft.PowerShell.Commands
///
[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
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/DebugRunspaceCommand.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/DebugRunspaceCommand.cs
index 18a4c3a73..d87c9029d 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/DebugRunspaceCommand.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/DebugRunspaceCommand.cs
@@ -45,7 +45,7 @@ namespace Microsoft.PowerShell.Commands
// 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
@@ -409,8 +409,8 @@ namespace Microsoft.PowerShell.Commands
}
}
- RunspaceAvailability prevAvailability = _previousRunspaceAvailablity;
- _previousRunspaceAvailablity = e.RunspaceAvailability;
+ RunspaceAvailability prevAvailability = _previousRunspaceAvailability;
+ _previousRunspaceAvailability = e.RunspaceAvailability;
if ((e.RunspaceAvailability == RunspaceAvailability.Available) || (e.RunspaceAvailability == RunspaceAvailability.None))
{
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/PrinterLineOutput.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/PrinterLineOutput.cs
index 15ea11247..a37177768 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/PrinterLineOutput.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-printer/PrinterLineOutput.cs
@@ -225,7 +225,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
// 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
@@ -234,7 +234,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
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;
@@ -268,7 +268,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
///
/// flag for one time initialization of the interface (columns, etc.)
///
- private bool _printingInitalized = false;
+ private bool _printingInitialized = false;
///
/// callback to ask the outputter to playback its cache
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/FullClr/WebRequestPSCmdlet.FullClr.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/FullClr/WebRequestPSCmdlet.FullClr.cs
index e148ea23b..0d7761772 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/FullClr/WebRequestPSCmdlet.FullClr.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/FullClr/WebRequestPSCmdlet.FullClr.cs
@@ -55,7 +55,7 @@ namespace Microsoft.PowerShell.Commands
request.Headers.Clear();
foreach (string key in WebSession.Headers.Keys)
{
- bool setHeaderViaProperty = TryMapHeaaderToProperty(webRequest, key);
+ bool setHeaderViaProperty = TryMapHeaderToProperty(webRequest, key);
if (!setHeaderViaProperty)
{
@@ -150,7 +150,7 @@ namespace Microsoft.PowerShell.Commands
return (request);
}
- private bool TryMapHeaaderToProperty(HttpWebRequest webRequest, string key)
+ private bool TryMapHeaderToProperty(HttpWebRequest webRequest, string key)
{
bool setHeaderViaProperty = false;
diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/select-object.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/select-object.cs
index ff0446514..be87e1251 100644
--- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/select-object.cs
+++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/select-object.cs
@@ -361,15 +361,15 @@ namespace Microsoft.PowerShell.Commands
PSObject result = new PSObject();
if (matchedProperties.Count != 0)
{
- HashSet propertNames = new HashSet(StringComparer.OrdinalIgnoreCase);
+ HashSet propertyNames = new HashSet(StringComparer.OrdinalIgnoreCase);
foreach (PSNoteProperty noteProperty in matchedProperties)
{
try
{
- if (!propertNames.Contains(noteProperty.Name))
+ if (!propertyNames.Contains(noteProperty.Name))
{
- propertNames.Add(noteProperty.Name);
+ propertyNames.Add(noteProperty.Name);
result.Properties.Add(noteProperty);
}
else
diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostRawUserInterface.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostRawUserInterface.cs
index 9768e175f..b4687e30d 100644
--- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostRawUserInterface.cs
+++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHostRawUserInterface.cs
@@ -860,9 +860,9 @@ namespace Microsoft.PowerShell
ConsoleControl.INPUT_RECORD[] inputRecords =
new ConsoleControl.INPUT_RECORD[ConsoleControl.GetNumberOfConsoleInputEvents(handle)];
- int acutalNumberOfInputRecords = ConsoleControl.PeekConsoleInput(handle, ref inputRecords);
+ int actualNumberOfInputRecords = ConsoleControl.PeekConsoleInput(handle, ref inputRecords);
- for (int i = 0; i < acutalNumberOfInputRecords; i++)
+ for (int i = 0; i < actualNumberOfInputRecords; i++)
{
if (((ConsoleControl.InputRecordEventTypes)inputRecords[i].EventType) ==
ConsoleControl.InputRecordEventTypes.KEY_EVENT)
diff --git a/src/Microsoft.PowerShell.CoreCLR.Eventing/DotNetCode/Eventing/EventProvider.cs b/src/Microsoft.PowerShell.CoreCLR.Eventing/DotNetCode/Eventing/EventProvider.cs
index 5b25bb08c..f78e5e7f7 100644
--- a/src/Microsoft.PowerShell.CoreCLR.Eventing/DotNetCode/Eventing/EventProvider.cs
+++ b/src/Microsoft.PowerShell.CoreCLR.Eventing/DotNetCode/Eventing/EventProvider.cs
@@ -31,7 +31,7 @@ namespace System.Diagnostics.Eventing
private static Guid t_activityId;
private const int s_basicTypeAllocationBufferSize = 16;
- private const int s_etwMaxMumberArguments = 32;
+ private const int s_etwMaxNumberArguments = 32;
private const int s_etwAPIMaxStringCount = 8;
private const int s_maxEventDataDescriptors = 128;
private const int s_traceEventMaximumSize = 65482;
@@ -625,13 +625,13 @@ namespace System.Diagnostics.Eventing
if ((eventPayload != null) && (eventPayload.Length != 0))
{
argCount = eventPayload.Length;
- if (argCount > s_etwMaxMumberArguments)
+ if (argCount > s_etwMaxNumberArguments)
{
//
//too many arguments to log
//
throw new ArgumentOutOfRangeException("eventPayload",
- string.Format(CultureInfo.CurrentCulture, DotNetEventingStrings.ArgumentOutOfRange_MaxArgExceeded, s_etwMaxMumberArguments));
+ string.Format(CultureInfo.CurrentCulture, DotNetEventingStrings.ArgumentOutOfRange_MaxArgExceeded, s_etwMaxNumberArguments));
}
uint totalEventSize = 0;
diff --git a/src/Microsoft.PowerShell.GraphicalHost/HelpWindow/HelpParagraphBuilder.cs b/src/Microsoft.PowerShell.GraphicalHost/HelpWindow/HelpParagraphBuilder.cs
index 1a548ce8f..3cf59a8ef 100644
--- a/src/Microsoft.PowerShell.GraphicalHost/HelpWindow/HelpParagraphBuilder.cs
+++ b/src/Microsoft.PowerShell.GraphicalHost/HelpWindow/HelpParagraphBuilder.cs
@@ -248,12 +248,12 @@ namespace Microsoft.Management.UI.Internal
/// Splits the string adding indentation before each line
///
/// string to add indentation to
- /// number of indentations
+ /// number of indentations
/// the string indented
- private static string AddIndent(string str, int numberOfIdents)
+ private static string AddIndent(string str, int numberOfIndents)
{
StringBuilder indent = new StringBuilder();
- indent.Append(' ', numberOfIdents * HelpParagraphBuilder.IndentSize);
+ indent.Append(' ', numberOfIndents * HelpParagraphBuilder.IndentSize);
return HelpParagraphBuilder.AddIndent(str, indent.ToString());
}
@@ -421,22 +421,22 @@ namespace Microsoft.Management.UI.Internal
parameterNameOptionalCloseBrace = "]";
}
- string paramterPrefix = String.Format(
+ string parameterPrefix = String.Format(
CultureInfo.CurrentCulture,
"{0}{1}-",
parameterOptionalOpenBrace,
parameterNameOptionalOpenBrace);
- this.AddText(paramterPrefix, false);
+ this.AddText(parameterPrefix, false);
this.AddText(parameterName, true);
- string paramterSuffix = String.Format(
+ string parameterSuffix = String.Format(
CultureInfo.CurrentCulture,
"{0} {1}{2} ",
parameterNameOptionalCloseBrace,
parameterType,
parameterOptionalCloseBrace);
- this.AddText(paramterSuffix, false);
+ this.AddText(parameterSuffix, false);
}
string commonParametersText = String.Format(
diff --git a/src/Microsoft.PowerShell.GraphicalHost/HelpWindow/ParagraphBuilder.cs b/src/Microsoft.PowerShell.GraphicalHost/HelpWindow/ParagraphBuilder.cs
index ccbca3307..1ae7aaf0f 100644
--- a/src/Microsoft.PowerShell.GraphicalHost/HelpWindow/ParagraphBuilder.cs
+++ b/src/Microsoft.PowerShell.GraphicalHost/HelpWindow/ParagraphBuilder.cs
@@ -31,7 +31,7 @@ namespace Microsoft.Management.UI.Internal
///
/// The text spans that should be highlighted
///
- private List highlighedSpans;
+ private List highlightedSpans;
///
/// The text displayed
@@ -56,7 +56,7 @@ namespace Microsoft.Management.UI.Internal
this.paragraph = paragraph;
this.boldSpans = new List();
- this.highlighedSpans = new List();
+ this.highlightedSpans = new List();
this.textBuilder = new StringBuilder();
}
@@ -72,7 +72,7 @@ namespace Microsoft.Management.UI.Internal
///
internal int HighlightCount
{
- get { return this.highlighedSpans.Count; }
+ get { return this.highlightedSpans.Count; }
}
///
@@ -100,7 +100,7 @@ namespace Microsoft.Management.UI.Internal
int currentBoldIndex = 0;
TextSpan? currentBoldSpan = this.boldSpans.Count == 0 ? (TextSpan?)null : this.boldSpans[0];
int currentHighlightedIndex = 0;
- TextSpan? currentHighlightedSpan = this.highlighedSpans.Count == 0 ? (TextSpan?)null : this.highlighedSpans[0];
+ TextSpan? currentHighlightedSpan = this.highlightedSpans.Count == 0 ? (TextSpan?)null : this.highlightedSpans[0];
bool currentBold = false;
bool currentHighlighted = false;
@@ -115,7 +115,7 @@ namespace Microsoft.Management.UI.Internal
ParagraphBuilder.MoveSpanToPosition(ref currentBoldIndex, ref currentBoldSpan, i, this.boldSpans);
newBold = currentBoldSpan == null ? false : currentBoldSpan.Value.Contains(i);
- ParagraphBuilder.MoveSpanToPosition(ref currentHighlightedIndex, ref currentHighlightedSpan, i, this.highlighedSpans);
+ ParagraphBuilder.MoveSpanToPosition(ref currentHighlightedIndex, ref currentHighlightedSpan, i, this.highlightedSpans);
newHighlighted = currentHighlightedSpan == null ? false : currentHighlightedSpan.Value.Contains(i);
if (newBold != currentBold || newHighlighted != currentHighlighted)
@@ -142,7 +142,7 @@ namespace Microsoft.Management.UI.Internal
/// true if we should search whole word only
internal void HighlightAllInstancesOf(string search, bool caseSensitive, bool wholeWord)
{
- this.highlighedSpans.Clear();
+ this.highlightedSpans.Clear();
if (search == null || search.Trim().Length == 0)
{
@@ -216,7 +216,7 @@ namespace Microsoft.Management.UI.Internal
internal void ResetAllText()
{
this.boldSpans.Clear();
- this.highlighedSpans.Clear();
+ this.highlightedSpans.Clear();
this.textBuilder.Clear();
}
@@ -298,7 +298,7 @@ namespace Microsoft.Management.UI.Internal
throw new ArgumentOutOfRangeException("length");
}
- this.highlighedSpans.Add(new TextSpan(start, length));
+ this.highlightedSpans.Add(new TextSpan(start, length));
}
///
diff --git a/src/Microsoft.PowerShell.GraphicalHost/ShowCommand/ViewModel/CommandViewModel.cs b/src/Microsoft.PowerShell.GraphicalHost/ShowCommand/ViewModel/CommandViewModel.cs
index fa2667892..5825c7b5d 100644
--- a/src/Microsoft.PowerShell.GraphicalHost/ShowCommand/ViewModel/CommandViewModel.cs
+++ b/src/Microsoft.PowerShell.GraphicalHost/ShowCommand/ViewModel/CommandViewModel.cs
@@ -70,7 +70,7 @@ namespace Microsoft.PowerShell.Commands.ShowCommandInternal
///
/// Field used for the CommonParameters parameter.
///
- private ParameterSetViewModel comonParameters;
+ private ParameterSetViewModel commonParameters;
///
/// The ShowCommandCommandInfo this model is based on
@@ -239,7 +239,7 @@ namespace Microsoft.PowerShell.Commands.ShowCommandInternal
///
public ParameterSetViewModel CommonParameters
{
- get { return this.comonParameters; }
+ get { return this.commonParameters; }
}
///
@@ -537,7 +537,7 @@ namespace Microsoft.PowerShell.Commands.ShowCommandInternal
}
List commonParametersList = commonParametersTable.Values.ToList();
- returnValue.comonParameters = new ParameterSetViewModel(String.Empty, commonParametersList);
+ returnValue.commonParameters = new ParameterSetViewModel(String.Empty, commonParametersList);
returnValue.parameterSets.Sort(returnValue.Compare);
diff --git a/src/Microsoft.PowerShell.PackageManagement/Cmdlets/FindPackage.cs b/src/Microsoft.PowerShell.PackageManagement/Cmdlets/FindPackage.cs
index 8c3a2d414..154514b0a 100644
--- a/src/Microsoft.PowerShell.PackageManagement/Cmdlets/FindPackage.cs
+++ b/src/Microsoft.PowerShell.PackageManagement/Cmdlets/FindPackage.cs
@@ -80,8 +80,8 @@ namespace Microsoft.PowerShell.PackageManagement.Cmdlets {
// this dep is not processed yet
if (!processedDependencies.Contains(dep))
{
- var dependendcies = PackageManagementService.FindPackageByCanonicalId(dep, this);
- var depPkg = dependendcies.OrderByDescending(pp => pp, SoftwareIdentityVersionComparer.Instance).FirstOrDefault();
+ var dependencies = PackageManagementService.FindPackageByCanonicalId(dep, this);
+ var depPkg = dependencies.OrderByDescending(pp => pp, SoftwareIdentityVersionComparer.Instance).FirstOrDefault();
processedDependencies.Add(dep);
diff --git a/src/Microsoft.PowerShell.PackageManagement/Cmdlets/FindPackageProvider.cs b/src/Microsoft.PowerShell.PackageManagement/Cmdlets/FindPackageProvider.cs
index 90040c432..a485803b1 100644
--- a/src/Microsoft.PowerShell.PackageManagement/Cmdlets/FindPackageProvider.cs
+++ b/src/Microsoft.PowerShell.PackageManagement/Cmdlets/FindPackageProvider.cs
@@ -163,8 +163,8 @@ namespace Microsoft.PowerShell.PackageManagement.Cmdlets
if (IncludeDependencies) {
var missingDependencies = new HashSet();
foreach (var dep in package.Dependencies) {
- var dependendcies = PackageManagementService.FindPackageByCanonicalId(dep, this);
- var depPkg = dependendcies.OrderByDescending(pp => pp, SoftwareIdentityVersionComparer.Instance).FirstOrDefault();
+ var dependencies = PackageManagementService.FindPackageByCanonicalId(dep, this);
+ var depPkg = dependencies.OrderByDescending(pp => pp, SoftwareIdentityVersionComparer.Instance).FirstOrDefault();
if (depPkg == null) {
missingDependencies.Add(dep);
diff --git a/src/Microsoft.PowerShell.PackageManagement/Cmdlets/InstallPackageProvider.cs b/src/Microsoft.PowerShell.PackageManagement/Cmdlets/InstallPackageProvider.cs
index 3bac2664c..9b1536ba3 100644
--- a/src/Microsoft.PowerShell.PackageManagement/Cmdlets/InstallPackageProvider.cs
+++ b/src/Microsoft.PowerShell.PackageManagement/Cmdlets/InstallPackageProvider.cs
@@ -237,8 +237,8 @@ namespace Microsoft.PowerShell.PackageManagement.Cmdlets
foreach (var dep in package.Dependencies) {
// note: future work may be needed if the package sources currently selected by the user don't
// contain the dependencies.
- var dependendcies = PackageManagementService.FindPackageByCanonicalId(dep, this);
- foreach (var depPackage in dependendcies) {
+ var dependencies = PackageManagementService.FindPackageByCanonicalId(dep, this);
+ foreach (var depPackage in dependencies) {
ProcessPackage(depPackage.Provider, searchKey.Select(each => each + depPackage.Name).ToArray(), depPackage);
}
}
diff --git a/src/Microsoft.PowerShell.PackageManagement/Utility/HostApiExtensions.cs b/src/Microsoft.PowerShell.PackageManagement/Utility/HostApiExtensions.cs
index 8a9befa73..8d05d6466 100644
--- a/src/Microsoft.PowerShell.PackageManagement/Utility/HostApiExtensions.cs
+++ b/src/Microsoft.PowerShell.PackageManagement/Utility/HostApiExtensions.cs
@@ -82,7 +82,7 @@ namespace Microsoft.PowerShell.PackageManagement.Utility {
}
[SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Justification = "Required.")]
- internal static IHostApi SuprressBootstrapping(this IHostApi parent, bool isProcessing) {
+ internal static IHostApi SuppressBootstrapping(this IHostApi parent, bool isProcessing) {
return new object[] {
new {
IsInvocation = new Func(() => false),
diff --git a/src/Microsoft.PowerShell.ScheduledJob/ScheduledJobDefinition.cs b/src/Microsoft.PowerShell.ScheduledJob/ScheduledJobDefinition.cs
index d98f7779f..b6414859a 100644
--- a/src/Microsoft.PowerShell.ScheduledJob/ScheduledJobDefinition.cs
+++ b/src/Microsoft.PowerShell.ScheduledJob/ScheduledJobDefinition.cs
@@ -324,7 +324,7 @@ namespace Microsoft.PowerShell.ScheduledJob
/// - Enabled state
///
/// Boolean if this object data is modified.
- private bool UpdateDefintionFromWTS()
+ private bool UpdateDefinitionFromWTS()
{
bool dataModified = false;
@@ -697,7 +697,7 @@ namespace Microsoft.PowerShell.ScheduledJob
Exception notFoundEx = null;
try
{
- if (UpdateDefintionFromWTS())
+ if (UpdateDefinitionFromWTS())
{
SaveToStore();
}
diff --git a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/ActivityHostProcess.cs b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/ActivityHostProcess.cs
index 064367e44..24cb93e3e 100644
--- a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/ActivityHostProcess.cs
+++ b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/ActivityHostProcess.cs
@@ -208,8 +208,8 @@ namespace Microsoft.PowerShell.Workflow
using (System.Management.Automation.PowerShell ps = System.Management.Automation.PowerShell.Create())
{
ps.Runspace = runspace;
- string langSript = "$ExecutionContext.SessionState.LanguageMode = '" + _languageMode.Value.ToString() + "'";
- ps.AddScript(langSript);
+ string langScript = "$ExecutionContext.SessionState.LanguageMode = '" + _languageMode.Value.ToString() + "'";
+ ps.AddScript(langScript);
ps.Invoke();
}
}
diff --git a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/ConnectionManager.cs b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/ConnectionManager.cs
index 15c98e043..e8077a095 100644
--- a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/ConnectionManager.cs
+++ b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/ConnectionManager.cs
@@ -1491,7 +1491,7 @@ namespace Microsoft.PowerShell.Workflow
Connection newConnection = CreateConnection(requestInfo, connections);
_perfCountersMgr.UpdateCounterByValue(
PSWorkflowPerformanceCounterSetInfo.CounterSetId,
- PSWorkflowPerformanceCounterIds.PSRemotingConnectionsClosedReopendCount);
+ PSWorkflowPerformanceCounterIds.PSRemotingConnectionsClosedReopenedCount);
SubmitOperation(new CloseOneAndOpenAnotherOperation(potentialConnection, newConnection));
_perfCountersMgr.UpdateCounterByValue(
PSWorkflowPerformanceCounterSetInfo.CounterSetId,
diff --git a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/FileInstanceStore/InstanceStoreCryptography.cs b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/FileInstanceStore/InstanceStoreCryptography.cs
index 3bb1a941a..f41849956 100644
--- a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/FileInstanceStore/InstanceStoreCryptography.cs
+++ b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/FileInstanceStore/InstanceStoreCryptography.cs
@@ -22,7 +22,7 @@ namespace Microsoft.PowerShell.Workflow
///
/// The additional entry for security 'POWERSHELLWORKFLOW'
///
- private static byte[] s_aditionalEntropy = { (byte)'P', (byte)'O', (byte)'W', (byte)'E', (byte)'R', (byte)'S', (byte)'H', (byte)'E', (byte)'L', (byte)'L', (byte)'W', (byte)'O', (byte)'R', (byte)'K', (byte)'F', (byte)'L', (byte)'O', (byte)'W' };
+ private static byte[] s_additionalEntropy = { (byte)'P', (byte)'O', (byte)'W', (byte)'E', (byte)'R', (byte)'S', (byte)'H', (byte)'E', (byte)'L', (byte)'L', (byte)'W', (byte)'O', (byte)'R', (byte)'K', (byte)'F', (byte)'L', (byte)'O', (byte)'W' };
///
/// Protect the data.
@@ -35,7 +35,7 @@ namespace Microsoft.PowerShell.Workflow
{
// Encrypt the data using DataProtectionScope.CurrentUser. The result can be decrypted
// only by the same current user.
- return ProtectedData.Protect(data, s_aditionalEntropy, DataProtectionScope.CurrentUser);
+ return ProtectedData.Protect(data, s_additionalEntropy, DataProtectionScope.CurrentUser);
}
catch (CryptographicException e)
{
@@ -54,7 +54,7 @@ namespace Microsoft.PowerShell.Workflow
{
try
{
- return ProtectedData.Unprotect(data, s_aditionalEntropy, DataProtectionScope.CurrentUser);
+ return ProtectedData.Unprotect(data, s_additionalEntropy, DataProtectionScope.CurrentUser);
}
catch (CryptographicException e)
{
diff --git a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/FileInstanceStore/InstanceStorePermission.cs b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/FileInstanceStore/InstanceStorePermission.cs
index 2317389f2..bf86e4806 100644
--- a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/FileInstanceStore/InstanceStorePermission.cs
+++ b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/FileInstanceStore/InstanceStorePermission.cs
@@ -19,19 +19,19 @@ namespace Microsoft.PowerShell.Workflow
internal static void SetDirectoryPermissions(string folderName)
{
string account = WindowsIdentity.GetCurrent().Name;
- RemoveInheritablePermissons(folderName);
+ RemoveInheritablePermissions(folderName);
AddDirectorySecurity(folderName, account, FileSystemRights.Modify, InheritanceFlags.ContainerInherit | InheritanceFlags.ObjectInherit, PropagationFlags.None, AccessControlType.Allow);
}
- private static void AddDirectorySecurity(string folderName, string account, FileSystemRights rights, InheritanceFlags inheritance, PropagationFlags propogation, AccessControlType controlType)
+ private static void AddDirectorySecurity(string folderName, string account, FileSystemRights rights, InheritanceFlags inheritance, PropagationFlags propagation, AccessControlType controlType)
{
DirectoryInfo info = new DirectoryInfo(folderName);
DirectorySecurity dSecurity = info.GetAccessControl();
- dSecurity.AddAccessRule(new FileSystemAccessRule(account, rights, inheritance, propogation, controlType));
+ dSecurity.AddAccessRule(new FileSystemAccessRule(account, rights, inheritance, propagation, controlType));
info.SetAccessControl(dSecurity);
}
- private static void RemoveInheritablePermissons(string folderName)
+ private static void RemoveInheritablePermissions(string folderName)
{
DirectoryInfo info = new DirectoryInfo(folderName);
DirectorySecurity dSecurity = info.GetAccessControl();
diff --git a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/PSActivityBase.cs b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/PSActivityBase.cs
index e34bf658e..3556e7a6f 100644
--- a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/PSActivityBase.cs
+++ b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/PSActivityBase.cs
@@ -3121,13 +3121,13 @@ namespace Microsoft.PowerShell.Activities
}
else
{
- PSOutOfProcessActivityController delgateController = workflowHost.PSActivityHostController as PSOutOfProcessActivityController;
- if (delgateController != null)
+ PSOutOfProcessActivityController delegateController = workflowHost.PSActivityHostController as PSOutOfProcessActivityController;
+ if (delegateController != null)
{
AddHandlersToStreams(commandToRun, args);
IAsyncResult asyncResult =
- delgateController.BeginInvokePowerShell(commandToRun, input,
+ delegateController.BeginInvokePowerShell(commandToRun, input,
output,
implementationContext.PSActivityEnvironment,
ActivityHostManagerCallback,
diff --git a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/RuntimeBase.cs b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/RuntimeBase.cs
index 4166027e7..b24ae92c6 100644
--- a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/RuntimeBase.cs
+++ b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/RuntimeBase.cs
@@ -593,7 +593,7 @@ namespace Microsoft.PowerShell.Workflow
///
/// On suspended handler.
///
- internal Action
public class SessionStateKeeper
diff --git a/src/System.Management.Automation/engine/runtime/Operations/MiscOps.cs b/src/System.Management.Automation/engine/runtime/Operations/MiscOps.cs
index 109be05eb..8c4144326 100644
--- a/src/System.Management.Automation/engine/runtime/Operations/MiscOps.cs
+++ b/src/System.Management.Automation/engine/runtime/Operations/MiscOps.cs
@@ -520,7 +520,7 @@ namespace System.Management.Automation
var locals = MutableTuple.MakeTuple(Compiler.DottedLocalsTupleType,
Compiler.DottedLocalsNameIndexMap);
object[] remainingArgs =
- ScriptBlock.BindArgumentsForScripblockInvoke(
+ ScriptBlock.BindArgumentsForScriptblockInvoke(
(RuntimeDefinedParameter[])scriptBlock.RuntimeDefinedParameters.Data,
args, context, false, null, locals);
locals.SetAutomaticVariable(AutomaticVariable.Args, remainingArgs, context);
@@ -576,7 +576,7 @@ namespace System.Management.Automation
// For nicer error reporting, we want to make it look like errors in the steppable pipeline point back to
// the caller of the proxy. We don't want errors pointing to the script block created in the proxy.
- // Here we assume (in a safe way) that GetSteppablePipline is called from script. If that isn't the case,
+ // Here we assume (in a safe way) that GetSteppablePipeline is called from script. If that isn't the case,
// we won't crash, but the error reporting might be a little misleading.
var callStack = context.Debugger.GetCallStack().ToArray();
if (callStack.Length > 0 && Regex.IsMatch(callStack[0].Position.Text, "GetSteppablePipeline", RegexOptions.IgnoreCase))
@@ -1538,7 +1538,7 @@ namespace System.Management.Automation
/// The execution context
/// The preference the user selected
///
- /// Error action is decided by error action preference. If preferenc is inquire, we will
+ /// Error action is decided by error action preference. If preference is inquire, we will
/// prompt user for their preference.
///
internal static ActionPreference QueryForAction(RuntimeException rte, string message, ExecutionContext context)
@@ -2488,8 +2488,8 @@ namespace System.Management.Automation
var context = Runspace.DefaultRunspace.ExecutionContext;
// If expression argument is a .Net type then convert the collection to that type
- // if the target type is a collecton or array, then the result will be a collection of exactly
- // that type. If the target type is not a collectiom type then return a generic collection of that type.
+ // if the target type is a collection or array, then the result will be a collection of exactly
+ // that type. If the target type is not a collection type then return a generic collection of that type.
Type targetType = expression as Type;
if (targetType != null)
{
diff --git a/src/System.Management.Automation/engine/runtime/ScriptBlockToPowerShell.cs b/src/System.Management.Automation/engine/runtime/ScriptBlockToPowerShell.cs
index 7115ad6bb..8803e3cbf 100644
--- a/src/System.Management.Automation/engine/runtime/ScriptBlockToPowerShell.cs
+++ b/src/System.Management.Automation/engine/runtime/ScriptBlockToPowerShell.cs
@@ -288,7 +288,7 @@ namespace System.Management.Automation
var parameters = functionParameters != null
? Compiler.GetParameterMetaData(functionParameters, true, ref usesCmdletBinding)
: ((IParameterMetadataProvider)body).GetParameterMetadata(true, ref usesCmdletBinding);
- object[] remainingArgs = ScriptBlock.BindArgumentsForScripblockInvoke(
+ object[] remainingArgs = ScriptBlock.BindArgumentsForScriptblockInvoke(
(RuntimeDefinedParameter[])parameters.Data, args, context, false, null, locals);
locals.SetAutomaticVariable(AutomaticVariable.Args, remainingArgs, context);
newScope.LocalsTuple = locals;
diff --git a/src/System.Management.Automation/help/CommandHelpProvider.cs b/src/System.Management.Automation/help/CommandHelpProvider.cs
index ce5a6911e..ff96a56e8 100644
--- a/src/System.Management.Automation/help/CommandHelpProvider.cs
+++ b/src/System.Management.Automation/help/CommandHelpProvider.cs
@@ -717,7 +717,7 @@ namespace System.Management.Automation
{
UserDefinedHelpData userDefinedHelpData = UserDefinedHelpData.Load(node);
- ProcessUserDefineddHelpData(helpFileIdentifier, userDefinedHelpData);
+ ProcessUserDefinedHelpData(helpFileIdentifier, userDefinedHelpData);
}
}
}
@@ -730,7 +730,7 @@ namespace System.Management.Automation
///
/// PSSnapIn Name for the current help file.
///
- private void ProcessUserDefineddHelpData(string mshSnapInId, UserDefinedHelpData userDefinedHelpData)
+ private void ProcessUserDefinedHelpData(string mshSnapInId, UserDefinedHelpData userDefinedHelpData)
{
if (userDefinedHelpData == null)
return;
diff --git a/src/System.Management.Automation/help/HelpProviderWithCache.cs b/src/System.Management.Automation/help/HelpProviderWithCache.cs
index 94a7a1ce7..5bf03d808 100644
--- a/src/System.Management.Automation/help/HelpProviderWithCache.cs
+++ b/src/System.Management.Automation/help/HelpProviderWithCache.cs
@@ -135,11 +135,11 @@ namespace System.Management.Automation
else
{
int countOfHelpInfoObjectsFound = 0;
- WildcardPattern helpMatchter = WildcardPattern.Get(wildcardpattern, WildcardOptions.IgnoreCase);
+ WildcardPattern helpMatcher = WildcardPattern.Get(wildcardpattern, WildcardOptions.IgnoreCase);
foreach (string key in _helpCache.Keys)
{
- if ((!searchOnlyContent && helpMatchter.IsMatch(key)) ||
- (searchOnlyContent && ((HelpInfo)_helpCache[key]).MatchPatternInContent(helpMatchter)))
+ if ((!searchOnlyContent && helpMatcher.IsMatch(key)) ||
+ (searchOnlyContent && ((HelpInfo)_helpCache[key]).MatchPatternInContent(helpMatcher)))
{
countOfHelpInfoObjectsFound++;
yield return (HelpInfo)_helpCache[key];
diff --git a/src/System.Management.Automation/help/MamlUtil.cs b/src/System.Management.Automation/help/MamlUtil.cs
index 719a0c5d8..f4e97a74e 100644
--- a/src/System.Management.Automation/help/MamlUtil.cs
+++ b/src/System.Management.Automation/help/MamlUtil.cs
@@ -101,7 +101,7 @@ namespace System.Management.Automation
// Add maml2 first since we are prepending.
// For maml2: Add as collection or single item. No-op if
- PSPropertyInfo propertyInfo2 = GetProperyInfo(maml2, parametersPath);
+ PSPropertyInfo propertyInfo2 = GetPropertyInfo(maml2, parametersPath);
var array = propertyInfo2.Value as Array;
if (array != null)
{
@@ -115,7 +115,7 @@ namespace System.Management.Automation
// Extend maml1 to make sure the property-path exists - since we'll be modifying it soon.
EnsurePropertyInfoPathExists(maml1, parametersPath);
// For maml1: Add as collection or single item. Do nothing if null or some other type.
- PSPropertyInfo propertyInfo1 = GetProperyInfo(maml1, parametersPath);
+ PSPropertyInfo propertyInfo1 = GetPropertyInfo(maml1, parametersPath);
List maml1items = new List();
array = propertyInfo1.Value as Array;
if (array != null)
@@ -190,7 +190,7 @@ namespace System.Management.Automation
///
/// Get property info.
///
- internal static PSPropertyInfo GetProperyInfo(PSObject psObject, string[] path)
+ internal static PSPropertyInfo GetPropertyInfo(PSObject psObject, string[] path)
{
if (path.Length <= 0)
{
@@ -238,7 +238,7 @@ namespace System.Management.Automation
// Add maml2 first since we are prepending.
// For maml2: Add as collection or single item. No-op if
- PSPropertyInfo propertyInfo2 = GetProperyInfo(maml2, path);
+ PSPropertyInfo propertyInfo2 = GetPropertyInfo(maml2, path);
if (null != propertyInfo2)
{
@@ -256,7 +256,7 @@ namespace System.Management.Automation
// Extend maml1 to make sure the property-path exists - since we'll be modifying it soon.
EnsurePropertyInfoPathExists(maml1, path);
// For maml1: Add as collection or single item. Do nothing if null or some other type.
- PSPropertyInfo propertyInfo1 = GetProperyInfo(maml1, path);
+ PSPropertyInfo propertyInfo1 = GetPropertyInfo(maml1, path);
if (null != propertyInfo1)
{
diff --git a/src/System.Management.Automation/help/PSClassHelpProvider.cs b/src/System.Management.Automation/help/PSClassHelpProvider.cs
index c3292024e..ef7878056 100644
--- a/src/System.Management.Automation/help/PSClassHelpProvider.cs
+++ b/src/System.Management.Automation/help/PSClassHelpProvider.cs
@@ -226,7 +226,7 @@ namespace System.Management.Automation
LoadHelpFile(helpFile, helpFile, classInfo.Name, reportErrors);
}
- return GetFromPSClasseHelpCache(helpFile, Automation.HelpCategory.Class);
+ return GetFromPSClassHelpCache(helpFile, Automation.HelpCategory.Class);
}
return null;
@@ -238,7 +238,7 @@ namespace System.Management.Automation
/// help file identifier (either name of PSSnapIn or simply full path to help file)
/// Help Category for search.
/// HelpInfo object.
- private HelpInfo GetFromPSClasseHelpCache(string helpFileIdentifier, HelpCategory helpCategory)
+ private HelpInfo GetFromPSClassHelpCache(string helpFileIdentifier, HelpCategory helpCategory)
{
Debug.Assert(!string.IsNullOrEmpty(helpFileIdentifier), "helpFileIdentifier should not be null or empty.");
diff --git a/src/System.Management.Automation/help/SaveHelpCommand.cs b/src/System.Management.Automation/help/SaveHelpCommand.cs
index e81107469..3d0001845 100644
--- a/src/System.Management.Automation/help/SaveHelpCommand.cs
+++ b/src/System.Management.Automation/help/SaveHelpCommand.cs
@@ -443,33 +443,33 @@ namespace Microsoft.PowerShell.Commands
IList iListArg = ParameterBinderBase.GetIList(argument);
if (iListArg != null && iListArg.Count > 0)
{
- int elemtCount = iListArg.Count;
+ int elementCount = iListArg.Count;
int targetIndex = 0;
- var target = Array.CreateInstance(typeof(object), elemtCount);
+ var target = Array.CreateInstance(typeof(object), elementCount);
- foreach (object elemt in iListArg)
+ foreach (object element in iListArg)
{
- var elemtValue = PSObject.Base(elemt);
+ var elementValue = PSObject.Base(element);
- if (elemtValue is PSModuleInfo)
+ if (elementValue is PSModuleInfo)
{
- target.SetValue(elemtValue, targetIndex++);
+ target.SetValue(elementValue, targetIndex++);
}
- else if (elemtValue is string)
+ else if (elementValue is string)
{
- var elemtAsModuleObj = new PSModuleInfo(name: (string)elemtValue, path: null, context: null, sessionState: null);
- target.SetValue(elemtAsModuleObj, targetIndex++);
+ var elementAsModuleObj = new PSModuleInfo(name: (string)elementValue, path: null, context: null, sessionState: null);
+ target.SetValue(elementAsModuleObj, targetIndex++);
}
else
{
PSModuleInfo elementValueModuleInfo = null;
- if (TryConvertFromDeserializedModuleInfo(elemtValue, out elementValueModuleInfo))
+ if (TryConvertFromDeserializedModuleInfo(elementValue, out elementValueModuleInfo))
{
target.SetValue(elementValueModuleInfo, targetIndex++);
}
else
{
- target.SetValue(elemt, targetIndex++);
+ target.SetValue(element, targetIndex++);
}
}
}
diff --git a/src/System.Management.Automation/help/UpdatableHelpSystem.cs b/src/System.Management.Automation/help/UpdatableHelpSystem.cs
index 1aad343e5..a8aec1a9c 100644
--- a/src/System.Management.Automation/help/UpdatableHelpSystem.cs
+++ b/src/System.Management.Automation/help/UpdatableHelpSystem.cs
@@ -1020,11 +1020,11 @@ namespace System.Management.Automation.Help
{
if (_progressEvents.Count > 0)
{
- foreach (UpdatableHelpProgressEventArgs evnt in _progressEvents)
+ foreach (UpdatableHelpProgressEventArgs evt in _progressEvents)
{
- evnt.CommandType = commandType;
+ evt.CommandType = commandType;
- OnProgressChanged(this, evnt);
+ OnProgressChanged(this, evt);
}
_progressEvents.Clear();
diff --git a/src/System.Management.Automation/namespaces/FileSystemProvider.cs b/src/System.Management.Automation/namespaces/FileSystemProvider.cs
index d8f140845..eb1e8b9d6 100644
--- a/src/System.Management.Automation/namespaces/FileSystemProvider.cs
+++ b/src/System.Management.Automation/namespaces/FileSystemProvider.cs
@@ -1233,7 +1233,7 @@ namespace Microsoft.PowerShell.Commands
if (fspDynamicParam != null)
{
evaluator = fspDynamicParam.Attributes;
- switchEvaluator = FormatAttributeSwitchParamters();
+ switchEvaluator = FormatAttributeSwitchParameters();
}
bool filterHidden = false; // "Hidden" is specified somewhere in the expression
@@ -1525,7 +1525,7 @@ namespace Microsoft.PowerShell.Commands
if (fspDynamicParam != null)
{
evaluator = fspDynamicParam.Attributes;
- switchEvaluator = FormatAttributeSwitchParamters();
+ switchEvaluator = FormatAttributeSwitchParameters();
}
bool attributeFilter = true;
@@ -1632,7 +1632,7 @@ namespace Microsoft.PowerShell.Commands
if (fspDynamicParam != null)
{
evaluator = fspDynamicParam.Attributes;
- switchEvaluator = FormatAttributeSwitchParamters();
+ switchEvaluator = FormatAttributeSwitchParameters();
}
// Write out the items
@@ -1766,7 +1766,7 @@ namespace Microsoft.PowerShell.Commands
/// Otherwise,
/// returns NULL
///
- private FlagsExpression FormatAttributeSwitchParamters()
+ private FlagsExpression FormatAttributeSwitchParameters()
{
FlagsExpression switchParamEvaluator = null;
StringBuilder sb = new StringBuilder();
@@ -3219,15 +3219,15 @@ namespace Microsoft.PowerShell.Commands
// If the items see if we need to check the age of the file...
if (result && itemExistsDynamicParameters != null)
{
- DateTime lastWrtiteTime = File.GetLastWriteTime(path);
+ DateTime lastWriteTime = File.GetLastWriteTime(path);
if (itemExistsDynamicParameters.OlderThan.HasValue)
{
- result = lastWrtiteTime < itemExistsDynamicParameters.OlderThan.Value;
+ result = lastWriteTime < itemExistsDynamicParameters.OlderThan.Value;
}
if (itemExistsDynamicParameters.NewerThan.HasValue)
{
- result = lastWrtiteTime > itemExistsDynamicParameters.NewerThan.Value;
+ result = lastWriteTime > itemExistsDynamicParameters.NewerThan.Value;
}
}
}
@@ -3492,7 +3492,7 @@ namespace Microsoft.PowerShell.Commands
{
ps.Runspace = fromSession.Runspace;
- InitilizeFunctionPSCopyFileFromRemoteSession(ps);
+ InitializeFunctionPSCopyFileFromRemoteSession(ps);
try
{
@@ -3571,7 +3571,7 @@ namespace Microsoft.PowerShell.Commands
{
bool isContainer = IsItemContainer(path);
- InitilizeFunctionsPSCopyFileToRemoteSession(ps);
+ InitializeFunctionsPSCopyFileToRemoteSession(ps);
try
{
@@ -3998,7 +3998,7 @@ namespace Microsoft.PowerShell.Commands
return streams;
}
- private void InitilizeFunctionPSCopyFileFromRemoteSession(System.Management.Automation.PowerShell ps)
+ private void InitializeFunctionPSCopyFileFromRemoteSession(System.Management.Automation.PowerShell ps)
{
if ((ps == null) || !ValidRemoteSessionForScripting(ps.Runspace)) { return; }
@@ -4299,7 +4299,7 @@ namespace Microsoft.PowerShell.Commands
return success;
}
- private void InitilizeFunctionsPSCopyFileToRemoteSession(System.Management.Automation.PowerShell ps)
+ private void InitializeFunctionsPSCopyFileToRemoteSession(System.Management.Automation.PowerShell ps)
{
if ((ps == null) || !ValidRemoteSessionForScripting(ps.Runspace)) { return; }
diff --git a/src/System.Management.Automation/namespaces/TransactedRegistryKey.cs b/src/System.Management.Automation/namespaces/TransactedRegistryKey.cs
index eaefe4f5e..e67f6d557 100644
--- a/src/System.Management.Automation/namespaces/TransactedRegistryKey.cs
+++ b/src/System.Management.Automation/namespaces/TransactedRegistryKey.cs
@@ -768,7 +768,7 @@ namespace Microsoft.PowerShell.Commands.Internal
if (ret == 0 && !result.IsInvalid)
{
TransactedRegistryKey key = new TransactedRegistryKey(result, writable, false, Transaction.Current, safeTransactionHandle);
- key._checkMode = GetSubKeyPermissonCheck(writable);
+ key._checkMode = GetSubKeyPermissionCheck(writable);
key._keyName = _keyName + "\\" + name;
return key;
}
@@ -1986,7 +1986,7 @@ namespace Microsoft.PowerShell.Commands.Internal
// Suppressed to be consistent with naming in Microsoft.Win32.RegistryKey
[SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly")]
- private RegistryKeyPermissionCheck GetSubKeyPermissonCheck(bool subkeyWritable)
+ private RegistryKeyPermissionCheck GetSubKeyPermissionCheck(bool subkeyWritable)
{
if (_checkMode == RegistryKeyPermissionCheck.Default)
{
diff --git a/src/System.Management.Automation/singleshell/config/MshSnapinInfo.cs b/src/System.Management.Automation/singleshell/config/MshSnapinInfo.cs
index 5711e6e32..cc9b1eabb 100644
--- a/src/System.Management.Automation/singleshell/config/MshSnapinInfo.cs
+++ b/src/System.Management.Automation/singleshell/config/MshSnapinInfo.cs
@@ -501,22 +501,22 @@ namespace System.Management.Automation
// PS V3 snapin information is stored under 1 registry key..
// so no need to iterate over twice.
- Collection filterdVersions = new Collection();
+ Collection filteredVersions = new Collection();
foreach (string version in versions)
{
- string temp = PSVersionInfo.GetRegisteryVersionKeyForSnapinDiscovery(version);
+ string temp = PSVersionInfo.GetRegistryVersionKeyForSnapinDiscovery(version);
if (string.IsNullOrEmpty(temp))
{
temp = version;
}
- if (!filterdVersions.Contains(temp))
+ if (!filteredVersions.Contains(temp))
{
- filterdVersions.Add(temp);
+ filteredVersions.Add(temp);
}
}
- foreach (string version in filterdVersions)
+ foreach (string version in filteredVersions)
{
if (string.IsNullOrEmpty(version))
{
@@ -1173,7 +1173,7 @@ namespace System.Management.Automation
Dbg.Assert(!string.IsNullOrEmpty(psVersion), "caller should validate the parameter");
Dbg.Assert(rootKey != null, "caller should validate the parameter");
- string versionKey = PSVersionInfo.GetRegisteryVersionKeyForSnapinDiscovery(psVersion);
+ string versionKey = PSVersionInfo.GetRegistryVersionKeyForSnapinDiscovery(psVersion);
RegistryKey versionRoot = rootKey.OpenSubKey(versionKey);
if (versionRoot == null)
{
diff --git a/src/System.Management.Automation/utils/PSTelemetryMethods.cs b/src/System.Management.Automation/utils/PSTelemetryMethods.cs
index 9d5e06a9f..bdc628269 100644
--- a/src/System.Management.Automation/utils/PSTelemetryMethods.cs
+++ b/src/System.Management.Automation/utils/PSTelemetryMethods.cs
@@ -44,7 +44,7 @@ namespace Microsoft.PowerShell.Telemetry.Internal
private enum HostIsInteractive
{
Unknown,
- Iteractive,
+ Interactive,
NonInteractive
}
@@ -70,7 +70,7 @@ namespace Microsoft.PowerShell.Telemetry.Internal
{
TelemetryWrapper.TraceMessage("PSHostStart", new
{
- Interactive = ihptd.HostIsInteractive ? HostIsInteractive.Iteractive : HostIsInteractive.NonInteractive,
+ Interactive = ihptd.HostIsInteractive ? HostIsInteractive.Interactive : HostIsInteractive.NonInteractive,
ProfileLoadTime = ihptd.ProfileLoadTimeInMS,
ReadyForInputTime = ihptd.ReadyForInputTimeInMS,
Is32Bit = is32Bit,
diff --git a/src/System.Management.Automation/utils/tracing/EtwActivity.cs b/src/System.Management.Automation/utils/tracing/EtwActivity.cs
index ff1e154a7..20a9352ef 100644
--- a/src/System.Management.Automation/utils/tracing/EtwActivity.cs
+++ b/src/System.Management.Automation/utils/tracing/EtwActivity.cs
@@ -366,8 +366,8 @@ namespace System.Management.Automation.Tracing
///
public void Correlate()
{
- Guid parentAcitvity = GetActivityId();
- CorrelateWithActivity(parentAcitvity);
+ Guid parentActivity = GetActivityId();
+ CorrelateWithActivity(parentActivity);
}
///
diff --git a/src/libpsl-native/test/test-getlinkcount.cpp b/src/libpsl-native/test/test-getlinkcount.cpp
index fbe1a001f..4d3d10336 100644
--- a/src/libpsl-native/test/test-getlinkcount.cpp
+++ b/src/libpsl-native/test/test-getlinkcount.cpp
@@ -81,7 +81,7 @@ TEST_F(getLinkCountTest, LinkCountOfSinglyLinkedFile)
removeFile(file);
}
-TEST_F(getLinkCountTest, LinkCountOfMultipliLinkedFile)
+TEST_F(getLinkCountTest, LinkCountOfMultiplyLinkedFile)
{
createFileForTesting(file);
std::string newFile = createHardLink(file);
diff --git a/src/powershell-native/nativemsh/pwrshplugin/pwrshplugindefs.h b/src/powershell-native/nativemsh/pwrshplugin/pwrshplugindefs.h
index aaea69d91..3e1ad6676 100644
--- a/src/powershell-native/nativemsh/pwrshplugin/pwrshplugindefs.h
+++ b/src/powershell-native/nativemsh/pwrshplugin/pwrshplugindefs.h
@@ -129,7 +129,7 @@ typedef struct _PwrshPluginWkr_Ptrs
WSManPluginReceiveFuncPtr wsManPluginReceiveFuncPtr;
WSManPluginSignalFuncPtr wsManPluginSignalFuncPtr;
WSManPluginConnectFuncPtr wsManPluginConnectFuncPtr;
- WSManPluginOperationShutdownFuncPtr wsmanPluingOperationShutdownFuncPtr; // This ptr is not used in this environment, but is required to keep the memory layout identical between unmanaged and managed code.
+ WSManPluginOperationShutdownFuncPtr wsmanPluginOperationShutdownFuncPtr; // This ptr is not used in this environment, but is required to keep the memory layout identical between unmanaged and managed code.
} PwrshPluginWkr_Ptrs;
class PlugInException