PowerShell for every system!
This report presents the forensic synthetic code analysis of PowerShell/PowerShell, a C# project with 54,395 GitHub stars. SynthScan v2.0 examined 837,996 lines of code across 1656 source files, recording 5669 pattern matches distributed across 11 syntactic categories. The overall adjusted score of 8.9 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 5669 distinct pattern matches across 11 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .pipelines/templates/release-validate-packagenames.yml | 121 | COMMENT | |
| LOW | .pipelines/templates/release-validate-packagenames.yml | 141 | # Get-ChildItem ENV: | Out-String -width 9999 -Stream | write-Verbose -Verbose | COMMENT |
| LOW | .pipelines/templates/release-validate-packagenames.yml | 161 | # path: $(System.ArtifactsDirectory) | COMMENT |
| LOW | .pipelines/templates/release-validate-packagenames.yml | 181 | # { | COMMENT |
| LOW | tools/install-powershell.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tools/installpsh-debian.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tools/installpsh-osx.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tools/installpsh-gentoo.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tools/installpsh-suse.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tools/installpsh-suse.sh | 161 | fi | COMMENT |
| LOW | tools/installpsh-amazonlinux.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tools/installpsh-mariner.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tools/installpsh-redhat.sh | 1 | #!/bin/bash | COMMENT |
| LOW | …ls/NamedPipeConnection/src/code/NamedPipeConnection.cs | 41 | /// <summary> | COMMENT |
| LOW | …ls/NamedPipeConnection/src/code/NamedPipeConnection.cs | 101 | /// <summary> | COMMENT |
| LOW | …es/Microsoft.PowerShell.Utility/assets/pesteralias.txt | 1 | # Alias File | COMMENT |
| LOW | .github/workflows/linux-ci.yml | 221 | testResultsFolder: "${{ github.workspace }}/testResults" | COMMENT |
| LOW | .github/workflows/scorecards.yml | 41 | with: | COMMENT |
| LOW | .github/policies/labelAdded.approvedLowRisk.yml | 21 | permission: Admin | COMMENT |
| LOW | src/Microsoft.WSMan.Runtime/WSManSessionOption.cs | 21 | COMMENT | |
| LOW | src/Microsoft.WSMan.Runtime/WSManSessionOption.cs | 41 | COMMENT | |
| LOW | src/Microsoft.WSMan.Runtime/WSManSessionOption.cs | 61 | public NetworkCredential ProxyCredential { get; set; } | COMMENT |
| LOW | src/Microsoft.WSMan.Runtime/WSManSessionOption.cs | 81 | ProxyWinHttpConfig = 1, | COMMENT |
| LOW | src/Microsoft.WSMan.Runtime/WSManSessionOption.cs | 101 | /// </summary> | COMMENT |
| LOW | …nagement.Infrastructure.CimCmdlets/CimWriteProgress.cs | 21 | /// Initializes a new instance of the <see cref="CimWriteProgress"/> class. | COMMENT |
| LOW | …nagement.Infrastructure.CimCmdlets/CimWriteProgress.cs | 101 | COMMENT | |
| LOW | …gement.Infrastructure.CimCmdlets/CimInvokeCimMethod.cs | 321 | /// Create <see cref="CimMethodParametersCollection"/> with given key properties. | COMMENT |
| LOW | …gement.Infrastructure.CimCmdlets/CimInvokeCimMethod.cs | 441 | #region const strings | COMMENT |
| LOW | ….Infrastructure.CimCmdlets/CimRegisterCimIndication.cs | 41 | /// </para> | COMMENT |
| LOW | ….Infrastructure.CimCmdlets/CimRegisterCimIndication.cs | 61 | } | COMMENT |
| LOW | ….Infrastructure.CimCmdlets/CimRegisterCimIndication.cs | 101 | /// </summary> | COMMENT |
| LOW | …ent.Infrastructure.CimCmdlets/NewCimInstanceCommand.cs | 1 | // Copyright (c) Microsoft Corporation. | COMMENT |
| LOW | …ent.Infrastructure.CimCmdlets/NewCimInstanceCommand.cs | 381 | } | COMMENT |
| LOW | ….Infrastructure.CimCmdlets/CimGetAssociatedInstance.cs | 1 | // Copyright (c) Microsoft Corporation. | COMMENT |
| LOW | …gement.Infrastructure.CimCmdlets/GetCimClassCommand.cs | 41 | COMMENT | |
| LOW | …gement.Infrastructure.CimCmdlets/GetCimClassCommand.cs | 61 | Position = 0, | COMMENT |
| LOW | …gement.Infrastructure.CimCmdlets/GetCimClassCommand.cs | 141 | COMMENT | |
| LOW | …gement.Infrastructure.CimCmdlets/GetCimClassCommand.cs | 161 | [Parameter(ValueFromPipelineByPropertyName = true)] | COMMENT |
| LOW | …ment.Infrastructure.CimCmdlets/CimIndicationWatcher.cs | 101 | /// Initializes a new instance of the <see cref="CimIndicationEventInstanceEventArgs"/> class. | COMMENT |
| LOW | …ment.Infrastructure.CimCmdlets/CimIndicationWatcher.cs | 121 | /// and listen to the incoming indications, event <see cref="CimIndicationArrived"/> | COMMENT |
| LOW | …ment.Infrastructure.CimCmdlets/CimIndicationWatcher.cs | 341 | /// <para> | COMMENT |
| LOW | …ment.Infrastructure.CimCmdlets/CimIndicationWatcher.cs | 361 | COMMENT | |
| LOW | ….Infrastructure.CimCmdlets/RemoveCimInstanceCommand.cs | 281 | COMMENT | |
| LOW | …anagement.Infrastructure.CimCmdlets/CimSessionProxy.cs | 81 | /// Initializes a new instance of the <see cref="InvocationContext"/> class. | COMMENT |
| LOW | …anagement.Infrastructure.CimCmdlets/CimSessionProxy.cs | 101 | /// <para> | COMMENT |
| LOW | …anagement.Infrastructure.CimCmdlets/CimSessionProxy.cs | 121 | /// Performs pre processing of given result object. | COMMENT |
| LOW | …anagement.Infrastructure.CimCmdlets/CimSessionProxy.cs | 181 | internal class CimSessionProxy : IDisposable | COMMENT |
| LOW | …anagement.Infrastructure.CimCmdlets/CimSessionProxy.cs | 201 | /// Due to some cmdlet, such as <see cref="Remove-CimInstance"/> | COMMENT |
| LOW | …anagement.Infrastructure.CimCmdlets/CimSessionProxy.cs | 281 | COMMENT | |
| LOW | …anagement.Infrastructure.CimCmdlets/CimSessionProxy.cs | 301 | /// </summary> | COMMENT |
| LOW | …anagement.Infrastructure.CimCmdlets/CimSessionProxy.cs | 341 | /// Then create wrapper object. | COMMENT |
| LOW | …anagement.Infrastructure.CimCmdlets/CimSessionProxy.cs | 441 | COMMENT | |
| LOW | …anagement.Infrastructure.CimCmdlets/CimSessionProxy.cs | 1241 | /// Enumerate referencing instance associated with | COMMENT |
| LOW | …anagement.Infrastructure.CimCmdlets/CimSessionProxy.cs | 1441 | /// <summary> | COMMENT |
| LOW | …anagement.Infrastructure.CimCmdlets/CimSessionProxy.cs | 1461 | /// Called after new action event. | COMMENT |
| LOW | …anagement.Infrastructure.CimCmdlets/CimSessionProxy.cs | 1481 | #endregion | COMMENT |
| LOW | …anagement.Infrastructure.CimCmdlets/CimSessionProxy.cs | 1501 | /// The current CimInstance object, against which issued | COMMENT |
| LOW | …anagement.Infrastructure.CimCmdlets/CimSessionProxy.cs | 1541 | COMMENT | |
| LOW | …anagement.Infrastructure.CimCmdlets/CimSessionProxy.cs | 1601 | internal XOperationContextBase ContextObject { get; set; } | COMMENT |
| LOW | …anagement.Infrastructure.CimCmdlets/CimSessionProxy.cs | 1621 | #endregion | COMMENT |
| 5309 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | test/xUnit/csharp/test_RemoteHyperV.cs | 417 | var exchangeResult = System.Management.Automation.Remoting.RemoteSessionHyperVSocketClient.ExchangeCrede | CODE |
| CRITICAL | test/xUnit/csharp/test_RemoteHyperV.cs | 444 | var exchangeResult = System.Management.Automation.Remoting.RemoteSessionHyperVSocketClient.ExchangeCrede | CODE |
| CRITICAL | test/xUnit/csharp/test_RemoteHyperV.cs | 472 | var exchangeResult = System.Management.Automation.Remoting.RemoteSessionHyperVSocketClient.ExchangeCrede | CODE |
| CRITICAL | test/xUnit/csharp/test_RemoteHyperV.cs | 506 | var ex = Record.Exception(() => System.Management.Automation.Remoting.RemoteSessionHyperVSocketClient.Ex | CODE |
| CRITICAL | test/xUnit/csharp/test_RemoteHyperV.cs | 544 | var ex = Record.Exception(() => System.Management.Automation.Remoting.RemoteSessionHyperVSocketClient.Ex | CODE |
| CRITICAL | test/xUnit/csharp/test_RemoteHyperV.cs | 587 | System.Management.Automation.Remoting.RemoteSessionHyperVSocketClient.PerformTransportVersionAndTokenExc | CODE |
| CRITICAL | test/xUnit/csharp/test_RemoteHyperV.cs | 629 | result = System.Management.Automation.Remoting.RemoteSessionHyperVSocketClient.IsRequirePsDirectAuthenti | CODE |
| CRITICAL | test/xUnit/csharp/test_RemoteHyperV.cs | 664 | System.Management.Automation.Remoting.RemoteSessionHyperVSocketServer.ValidateToken(client, expectedToke | CODE |
| CRITICAL | test/xUnit/csharp/test_RemoteHyperV.cs | 702 | () => System.Management.Automation.Remoting.RemoteSessionHyperVSocketServer.ValidateToken(client | CODE |
| CRITICAL | test/xUnit/csharp/test_RemoteHyperV.cs | 711 | System.Management.Automation.Remoting.RemoteSessionHyperVSocketServer.ValidateToken(client, expected | CODE |
| CRITICAL | test/xUnit/csharp/test_RemoteHyperV.cs | 758 | System.Management.Automation.Remoting.RemoteSessionHyperVSocketServer.ValidateToken(client, expectedToke | CODE |
| CRITICAL | test/xUnit/csharp/test_RemoteHyperV.cs | 798 | () => System.Management.Automation.Remoting.RemoteSessionHyperVSocketServer.ValidateToken(client, ex | CODE |
| CRITICAL⚡ | test/hosting/test_HostingBasic.cs | 193 | var iss = System.Management.Automation.Runspaces.InitialSessionState.CreateDefault2(); | CODE |
| CRITICAL⚡ | test/hosting/test_HostingBasic.cs | 202 | var iss = System.Management.Automation.Runspaces.InitialSessionState.CreateDefault2(); | CODE |
| CRITICAL⚡ | test/hosting/test_HostingBasic.cs | 208 | using var runspace = System.Management.Automation.Runspaces.RunspaceFactory.CreateRunspace(iss); | CODE |
| CRITICAL | …/commands/utility/EnableDisableRunspaceDebugCommand.cs | 290 | System.Management.Automation.Runspaces.LocalRunspace.SetDebugPreference(processName.ToLowerInvariant(), | CODE |
| CRITICAL | …s.Utility/commands/utility/ImplicitRemotingCommands.cs | 1698 | System.Management.Automation.Runspaces.Internal.ClientRemotePowerShell.ExitHandler(sender, eventArgs); | CODE |
| CRITICAL | …mands.Utility/commands/utility/GetRandomCommandBase.cs | 240 | baseObject = System.Management.Automation.Language.Parser.ScanNumber((string)baseObject, typeof(int)); | CODE |
| CRITICAL | ….Commands.Utility/commands/utility/Set-PSBreakpoint.cs | 108 | (System.Management.Automation.Security.SystemPolicy.GetSystemLockdownPolicy() != | CODE |
| CRITICAL | …ommands.Utility/commands/utility/ImportAliasCommand.cs | 249 | foreach (CommandInfo commandInfo in System.Management.Automation.Internal.ModuleUtils.GetMatchingCom | CODE |
| CRITICAL | …gement.UI.Internal/commandHelpers/ShowCommandHelper.cs | 670 | return "\'" + System.Management.Automation.Language.CodeGeneration.EscapeSingleQuotedStringContent(str) + "\ | CODE |
| CRITICAL | …t.PowerShell.Commands.Diagnostics/GetCounterCommand.cs | 194 | _resourceMgr = Microsoft.PowerShell.Commands.Diagnostics.Common.CommonUtilities.GetResourceManager(); | CODE |
| CRITICAL | …owerShell.Commands.Diagnostics/ExportCounterCommand.cs | 184 | _resourceMgr = Microsoft.PowerShell.Commands.Diagnostics.Common.CommonUtilities.GetResourceManager(); | CODE |
| CRITICAL | …oft.PowerShell.Commands.Diagnostics/GetEventCommand.cs | 331 | _resourceMgr = Microsoft.PowerShell.Commands.Diagnostics.Common.CommonUtilities.GetResourceManager(); | CODE |
| CRITICAL | …osoft.PowerShell.Commands.Diagnostics/CounterSample.cs | 73 | _resourceMgr = Microsoft.PowerShell.Commands.Diagnostics.Common.CommonUtilities.GetResourceManager(); | CODE |
| CRITICAL | …owerShell.Commands.Diagnostics/ImportCounterCommand.cs | 210 | _resourceMgr = Microsoft.PowerShell.Commands.Diagnostics.Common.CommonUtilities.GetResourceManager(); | CODE |
| CRITICAL | ….PowerShell.Commands.Diagnostics/NewWinEventCommand.cs | 30 | private readonly ResourceManager _resourceMgr = Microsoft.PowerShell.Commands.Diagnostics.Common.CommonUtilities | CODE |
| CRITICAL | …ft.PowerShell.Security/security/CertificateProvider.cs | 1598 | [SuppressMessage("Microsoft.Usage", "CA1806:DoNotIgnoreMethodResults", MessageId = "System.Management.Automation | CODE |
| CRITICAL | …ft.PowerShell.Security/security/CertificateProvider.cs | 1599 | [SuppressMessage("Microsoft.Usage", "CA1806:DoNotIgnoreMethodResults", MessageId = "System.Management.Automation | CODE |
| CRITICAL | …m.Management.Automation/utils/StructuredTraceSource.cs | 1285 | lineBuilder.Append(System.Management.Automation.Internal.StringUtil.Padding(indentSize * threadIndentLevel)) | CODE |
| CRITICAL | src/System.Management.Automation/utils/PsUtils.cs | 252 | if (provider == null || !Microsoft.PowerShell.Commands.FileSystemProvider.ProviderName.Equals(provider.N | CODE |
| CRITICAL | …agement.Automation/namespaces/TransactedRegistryKey.cs | 430 | Microsoft.PowerShell.Commands.Internal.Buffer.memcpy(sd, 0, pSecDescriptor, 0, sd.Length); | CODE |
| CRITICAL | …tem.Management.Automation/namespaces/IContentWriter.cs | 52 | /// number of blocks from the specified <paramref name="origin"/>. See <see cref="System.Management.Automation.P | COMMENT |
| CRITICAL | ….Management.Automation/namespaces/DriveProviderBase.cs | 148 | /// Any failures should be sent to the <see cref="System.Management.Automation.Provider.CmdletProvider.WriteErro | COMMENT |
| CRITICAL | …/common/DisplayDatabase/displayResourceManagerCache.cs | 189 | ExecutionContext context = System.Management.Automation.Runspaces.LocalPipeline.GetExecutionContextFromT | CODE |
| CRITICAL | …Management.Automation/engine/NativeCommandProcessor.cs | 1119 | Host.BufferCell[,] bufferContents = this.Command.Context.EngineHostInterface.UI.RawUI.GetBufferC | CODE |
| CRITICAL | …Management.Automation/engine/NativeCommandProcessor.cs | 1141 | this.Command.Context.InternalHost.UI.TranscribeResult(bufferText.ToString()); | CODE |
| CRITICAL | …Management.Automation/engine/NativeCommandProcessor.cs | 1881 | Host.BufferCell[,] bufferContents = this.Command.Context.EngineHostInterface.UI.RawUI.GetBufferC | CODE |
| CRITICAL | …System.Management.Automation/engine/CommandMetadata.cs | 1323 | /// <seealso cref="System.Management.Automation.Runspaces.InitialSessionState.CreateRestricted(SessionCapabiliti | COMMENT |
| CRITICAL | src/System.Management.Automation/engine/regex.cs | 468 | string likeOperand = Microsoft.PowerShell.Cmdletization.Cim.WildcardPatternToCimQueryParser.Parse(this, out | CODE |
| CRITICAL | …nagement.Automation/engine/DataStoreAdapterProvider.cs | 291 | /// during calls to their <see cref="System.Management.Automation.Provider.CmdletProvider.Start(ProviderInfo)"/> | COMMENT |
| CRITICAL | …em.Management.Automation/engine/InitialSessionState.cs | 2684 | initializedRunspace.ExecutionContext.EngineSessionState.GlobalScope.FunctionTable.Add(newCommandName | CODE |
| CRITICAL | …em.Management.Automation/engine/InitialSessionState.cs | 2685 | initializedRunspace.ExecutionContext.EngineSessionState.GlobalScope.FunctionTable.Remove(commandName | CODE |
| CRITICAL | …em.Management.Automation/engine/InitialSessionState.cs | 2725 | initializedRunspace.ExecutionContext.EngineSessionState.GlobalScope.FunctionTable.Add( | CODE |
| CRITICAL | src/System.Management.Automation/engine/pipeline.cs | 1111 | Microsoft.PowerShell.Telemetry.Internal.TelemetryAPI.TraceExecutedCommand(commandProcessor.Command.Comma | CODE |
| CRITICAL | ….Management.Automation/engine/hostifaces/PowerShell.cs | 5739 | System.Management.Automation.Runspaces.Command.FromPSObjectForRemoting(extraCommand); | CODE |
| CRITICAL | ….Management.Automation/engine/hostifaces/PowerShell.cs | 5759 | System.Management.Automation.Runspaces.Command.FromPSObjectForRemoting(commandAsPSObject); | CODE |
| CRITICAL⚡ | …utomation/engine/hostifaces/MshHostRawUserInterface.cs | 1213 | /// <see cref="System.Management.Automation.Host.PSHostRawUserInterface.SetBufferContents(Rectangle, BufferCell) | COMMENT |
| CRITICAL⚡ | …utomation/engine/hostifaces/MshHostRawUserInterface.cs | 1214 | /// <see cref="System.Management.Automation.Host.PSHostRawUserInterface.SetBufferContents(Coordinates, BufferCel | COMMENT |
| CRITICAL⚡ | …utomation/engine/hostifaces/MshHostRawUserInterface.cs | 1220 | /// <seealso cref="System.Management.Automation.Host.PSHostRawUserInterface.SetBufferContents(Rectangle, BufferC | COMMENT |
| CRITICAL⚡ | …utomation/engine/hostifaces/MshHostRawUserInterface.cs | 1221 | /// <seealso cref="System.Management.Automation.Host.PSHostRawUserInterface.SetBufferContents(Coordinates, Buffe | COMMENT |
| CRITICAL⚡ | …utomation/engine/hostifaces/MshHostRawUserInterface.cs | 1379 | /// <seealso cref="System.Management.Automation.Host.PSHostRawUserInterface.ReadKey()"/> | COMMENT |
| CRITICAL⚡ | …utomation/engine/hostifaces/MshHostRawUserInterface.cs | 1380 | /// <seealso cref="System.Management.Automation.Host.PSHostRawUserInterface.ReadKey(System.Management.Automation | COMMENT |
| CRITICAL⚡ | …utomation/engine/hostifaces/MshHostRawUserInterface.cs | 1390 | /// <seealso cref="System.Management.Automation.Host.PSHostRawUserInterface.ReadKey()"/> | COMMENT |
| CRITICAL⚡ | …utomation/engine/hostifaces/MshHostRawUserInterface.cs | 1391 | /// <seealso cref="System.Management.Automation.Host.PSHostRawUserInterface.ReadKey(System.Management.Automation | COMMENT |
| CRITICAL⚡ | …utomation/engine/hostifaces/MshHostRawUserInterface.cs | 1435 | /// <seealso cref="System.Management.Automation.Host.PSHostRawUserInterface.NewBufferCellArray(int, int, BufferC | COMMENT |
| CRITICAL⚡ | …utomation/engine/hostifaces/MshHostRawUserInterface.cs | 1436 | /// <seealso cref="System.Management.Automation.Host.PSHostRawUserInterface.NewBufferCellArray(Size, BufferCell) | COMMENT |
| CRITICAL⚡ | …utomation/engine/hostifaces/MshHostRawUserInterface.cs | 1437 | /// <seealso cref="System.Management.Automation.Host.PSHostRawUserInterface.NewBufferCellArray(string[], Console | COMMENT |
| CRITICAL⚡ | …utomation/engine/hostifaces/MshHostRawUserInterface.cs | 1438 | /// <seealso cref="System.Management.Automation.Host.PSHostRawUserInterface.LengthInBufferCells(char)"/> | COMMENT |
| CRITICAL⚡ | …utomation/engine/hostifaces/MshHostRawUserInterface.cs | 1439 | /// <seealso cref="System.Management.Automation.Host.PSHostRawUserInterface.LengthInBufferCells(string)"/> | COMMENT |
| 129 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …Shell.Commands.Utility/commands/utility/MatchString.cs | 811 | // Essentially, the buffer is separated into regions: | COMMENT |
| MEDIUM | …Management.Automation/namespaces/FileSystemProvider.cs | 8334 | // the code above seems cleaner and more robust than the IAttachmentExecute approach | COMMENT |
| MEDIUM | src/System.Management.Automation/engine/CommandBase.cs | 323 | /// <summary>Detailed will leverage Get-Error to get much more detailed information for the error.</summary> | COMMENT |
| MEDIUM | …System.Management.Automation/engine/PSConfiguration.cs | 78 | /// A more robust solution is needed to enable ReaderWriterLockSlim behavior between processes. | COMMENT |
| MEDIUM | ….Management.Automation/engine/hostifaces/PowerShell.cs | 4340 | // and robust connections is retrying a failed network connection. | COMMENT |
| MEDIUM | …anagement.Automation/engine/hostifaces/InternalHost.cs | 21 | /// implementation, and also to provide a leverage point at which the monad engine can hook the interaction between | COMMENT |
| MEDIUM | …anagement.Automation/engine/hostifaces/InternalHost.cs | 24 | /// That leverage may be necessary to manage concurrent access between multiple pipelines sharing the same instance | COMMENT |
| MEDIUM | …omation/engine/remoting/fanin/WSManTransportManager.cs | 1517 | // Get robust connections maximum retries time. | COMMENT |
| MEDIUM | …omation/engine/remoting/fanin/WSManTransportManager.cs | 1863 | // This callback is also used for robust connection notifications. Check for and | COMMENT |
| MEDIUM | …omation/engine/remoting/fanin/WSManTransportManager.cs | 2182 | // Raise transport event notifying start of robust connections. | COMMENT |
| MEDIUM | …omation/engine/remoting/fanin/WSManTransportManager.cs | 2193 | // Send robust notification to client. | COMMENT |
| MEDIUM | …omation/engine/remoting/fanin/WSManTransportManager.cs | 2196 | // Raise transport event notifying completion of robust connections. | COMMENT |
| MEDIUM | …omation/engine/remoting/fanin/WSManTransportManager.cs | 2238 | // This callback is also used for robust connection notifications. Check for and | COMMENT |
| MEDIUM | …omation/engine/remoting/fanin/WSManTransportManager.cs | 2594 | // used for periodic robust connection retry/auto-disconnect | COMMENT |
| MEDIUM | …omation/engine/remoting/fanin/WSManTransportManager.cs | 2928 | // Suspend queue on robust connections initiated event. | COMMENT |
| MEDIUM | …omation/engine/remoting/fanin/WSManTransportManager.cs | 2931 | // Resume queue on robust connections completed event. | COMMENT |
| MEDIUM | …tomation/engine/remoting/fanin/BaseTransportManager.cs | 640 | /// Queue the robust connection notification event. | COMMENT |
| MEDIUM | …tomation/engine/remoting/fanin/BaseTransportManager.cs | 673 | // Queue worker item to raise the event so that all robust connection | COMMENT |
| MEDIUM | …m.Management.Automation/engine/remoting/common/misc.cs | 211 | /// A disconnect operation initiated by the WinRM robust connection | COMMENT |
| MEDIUM | …ation/engine/remoting/commands/InvokeCommandCommand.cs | 1443 | // Add robust connection retry notification handler. | COMMENT |
| LOW | …mation/engine/remoting/commands/CustomShellCommands.cs | 150 | # if AccessMode is Disabled OR the winrm configsddl failed, we just return | COMMENT |
| MEDIUM | …n/engine/remoting/client/RemoteRunspacePoolInternal.cs | 233 | /// Returns robust connection maximum retry time in milliseconds. | COMMENT |
| MEDIUM | …n/engine/remoting/client/RemoteRunspacePoolInternal.cs | 1783 | /// A session disconnect has been initiated by the WinRM robust connection layer. Set | COMMENT |
| MEDIUM | …Automation/engine/remoting/client/RemotingProtocol2.cs | 402 | /// Indicates that a disconnect has been initiated by the WinRM robust connections layer. | COMMENT |
| MEDIUM | …Automation/engine/remoting/client/RemotingProtocol2.cs | 833 | /// Forwards robust connection notifications to associated PowerShell clients. | COMMENT |
| MEDIUM | …Automation/engine/remoting/client/RemotingProtocol2.cs | 917 | /// Returns robust connection maximum retry time in milliseconds, if supported | COMMENT |
| MEDIUM | …Automation/engine/remoting/client/RemotingProtocol2.cs | 1460 | /// Called from session DSHandler. Notify client of robust connection | COMMENT |
| MEDIUM | …ement.Automation/engine/remoting/client/RunspaceRef.cs | 231 | // Add robust connection callback if this is a pushed runspace. | COMMENT |
| MEDIUM | …ement.Automation/engine/remoting/client/RunspaceRef.cs | 241 | // Add callback to write robust connection errors from stream. | COMMENT |
| MEDIUM | …ation/engine/remoting/client/ClientRemotePowerShell.cs | 180 | // If we are in robust connection retry mode then auto-disconnect this command | COMMENT |
| MEDIUM | …ation/engine/remoting/client/ClientRemotePowerShell.cs | 187 | // While in robust connection retry mode, this call forces robust connections | COMMENT |
| MEDIUM | …ation/engine/remoting/client/ClientRemotePowerShell.cs | 333 | /// This event is fired when this PowerShell object receives a robust connection | COMMENT |
| MEDIUM | …ation/engine/remoting/client/ClientRemotePowerShell.cs | 764 | /// Handles a robust connection layer notification from the transport | COMMENT |
| MEDIUM | …ation/engine/remoting/client/ClientRemotePowerShell.cs | 773 | // Create event arguments and warnings/errors for this robust connection notification. | COMMENT |
| MEDIUM | …ment.Automation/engine/Modules/SwitchProcessCommand.cs | 128 | // leverage .NET runtime's native library which abstracts the need to handle different OS and architectures for | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/ResGen/Program.cs | 105 | // This code was generated by a dotnet run from src\ResGen folder. | COMMENT |
| HIGH | …l/ManagementList/Common/ListOrganizerItem.Generated.cs | 5 | // This code was generated by a tool. DO NOT EDIT | COMMENT |
| HIGH | …ernal/ManagementList/Common/ListOrganizer.Generated.cs | 5 | // This code was generated by a tool. DO NOT EDIT | COMMENT |
| HIGH | ….UI.Internal/HelpWindow/HelpWindowSettings.Designer.cs | 5 | // This code was generated by a tool. | COMMENT |
| HIGH | …I.Internal/ShowCommand/ShowCommandSettings.Designer.cs | 5 | // This code was generated by a tool. | COMMENT |
| HIGH | …stem.Management.Automation/utils/tracing/TracingGen.cs | 975 | // This code was generated on 02/01/2012 19:52:32 | COMMENT |
| HIGH | …/System.Management.Automation/CoreCLR/EventResource.cs | 6 | This code was generated by the tools\ResxGen\ResxGen.ps1 run against PowerShell.Core.Instrumentation.man. | CODE |
| HIGH | …zation/xml/cmdlets-over-objects.objectModel.autogen.cs | 14 | // This code was generated by a tool. | COMMENT |
| HIGH | …ml/CoreCLR/cmdlets-over-objects.objectModel.autogen.cs | 9 | // This code was generated by a tool. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .pipelines/MSIXBundle-vPack-Official.yml | 311 | ## Create an output variable for the enabled channels so that downstream stages can use it. | COMMENT |
| MEDIUM | .pipelines/templates/uploadToAzure.yml | 303 | # Create the blob container if it doesn't exist | COMMENT |
| MEDIUM | .pipelines/templates/uploadToAzure.yml | 314 | # Create the blob container if it doesn't exist | COMMENT |
| MEDIUM | .pipelines/templates/uploadToAzure.yml | 350 | # Create the blob container if it doesn't exist | COMMENT |
| MEDIUM | .pipelines/templates/uploadToAzure.yml | 400 | # Create the blob container if it doesn't exist | COMMENT |
| MEDIUM | tools/installpsh-suse.sh | 190 | ## Create the target folder where powershell will be placed | COMMENT |
| MEDIUM | tools/installpsh-suse.sh | 197 | ## Create the symbolic link that points to powershell | COMMENT |
| MEDIUM | tools/installpsh-amazonlinux.sh | 165 | ## Create the target folder where powershell will be placed | COMMENT |
| MEDIUM | tools/installpsh-amazonlinux.sh | 172 | ## Create the symbolic link that points to powershell | COMMENT |
| MEDIUM | tools/installpsh-mariner.sh | 177 | ## Create the target folder where powershell will be placed | COMMENT |
| MEDIUM | tools/installpsh-mariner.sh | 184 | ## Create the symbolic link that points to powershell | COMMENT |
| MEDIUM | docker/InstallTarballPackage.sh | 29 | # Create the target folder where powershell will be placed | COMMENT |
| MEDIUM | docker/InstallTarballPackage.sh | 34 | # Create the symbolic link that points to powershell | COMMENT |
| MEDIUM | …Management.Automation/namespaces/FileSystemProvider.cs | 8529 | # Create the new file. | COMMENT |
| MEDIUM | …Management.Automation/namespaces/FileSystemProvider.cs | 8984 | # Create a new array to hold the file content | COMMENT |
| MEDIUM | …mation/engine/remoting/commands/CustomShellCommands.cs | 4808 | # Create the default PSSession configuration, not tied to specific PowerShell version | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .pipelines/templates/channelSelection.yml | 12 | # NOTE: The following regex is duplicated from rebuild-branch-check.yml. | COMMENT |
| LOW | .github/agents/SplitADOPipelines.agent.md | 46 | ### Step 1: Extract Shared Templates | COMMENT |
| LOW | .github/agents/SplitADOPipelines.agent.md | 56 | ### Step 2: Create Official Pipeline (In-Place Refactoring) | COMMENT |
| LOW | .github/agents/SplitADOPipelines.agent.md | 78 | ### Step 3: Create NonOfficial Pipeline | COMMENT |
| LOW | .github/agents/SplitADOPipelines.agent.md | 99 | ### Step 4: Link NonOfficial Pipelines to NonOfficial Dependencies | COMMENT |
| LOW | .github/agents/SplitADOPipelines.agent.md | 125 | ### Step 5: Configure Release Environment Parameters (NonAzure Only) | COMMENT |
| LOW | .github/prompts/backport-pr-to-release-branch.prompt.md | 57 | ### Step 1: Verify the original PR exists and is merged | COMMENT |
| LOW | .github/prompts/backport-pr-to-release-branch.prompt.md | 84 | ### Step 2: Create the backport branch | COMMENT |
| LOW | .github/prompts/backport-pr-to-release-branch.prompt.md | 107 | ### Step 3: Cherry-pick the merge commit | COMMENT |
| LOW | .github/prompts/backport-pr-to-release-branch.prompt.md | 135 | ### Step 4: Push the backport branch | COMMENT |
| LOW | .github/prompts/backport-pr-to-release-branch.prompt.md | 147 | ### Step 5: Create the backport PR | COMMENT |
| LOW | .github/prompts/backport-pr-to-release-branch.prompt.md | 239 | ### Step 6: Add the CL label to the backport PR | COMMENT |
| LOW | .github/prompts/backport-pr-to-release-branch.prompt.md | 251 | ### Step 7: Update the original PR's backport labels | COMMENT |
| LOW | .github/prompts/backport-pr-to-release-branch.prompt.md | 267 | ### Step 8: Clean up temporary files | COMMENT |
| LOW | .github/skills/analyze-pester-failures/SKILL.md | 63 | # Step 1: Identify the failing job | COMMENT |
| LOW | .github/skills/analyze-pester-failures/SKILL.md | 66 | # Step 2: Download artifacts (extract RUN_ID from Step 1) | COMMENT |
| LOW | .github/skills/analyze-pester-failures/SKILL.md | 187 | ### Step 2: Get Test Results | COMMENT |
| LOW | .github/skills/analyze-pester-failures/SKILL.md | 203 | ### Step 3: Extract Specific Failures | COMMENT |
| LOW | .github/skills/analyze-pester-failures/SKILL.md | 223 | ### Step 4: Read the Error Message | COMMENT |
| LOW | .github/skills/analyze-pester-failures/SKILL.md | 247 | ### Step 5: Understand the Context | COMMENT |
| LOW | .github/skills/analyze-pester-failures/SKILL.md | 265 | ### Step 6: Interpret the Failure | COMMENT |
| LOW | …ent.Automation/utils/perfCounters/PSPerfCountersMgr.cs | 437 | /// NOTE: This method is provided solely for testing purposes. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .pipelines/MSIXBundle-vPack-Official.yml | 136 | # Check if release tag matches the expected format v#.#.# | COMMENT |
| LOW | .pipelines/MSIXBundle-vPack-Official.yml | 157 | ob_restore_phase: true # Set ob_restore_phase to run this step before '🔒 Setup Signing' step. | CODE |
| LOW | .pipelines/MSIXBundle-vPack-Official.yml | 211 | ob_restore_phase: true # Set ob_restore_phase to run this step before '🔒 Setup Signing' step. | CODE |
| LOW | .pipelines/MSIXBundle-vPack-Official.yml | 216 | ob_restore_phase: true # Set ob_restore_phase to run this step before '🔒 Setup Signing' step. | CODE |
| LOW | .pipelines/templates/rebuild-branch-check.yml | 5 | # Check if this is a rebuild branch (e.g., rebuild/v7.4.13-rebuild.5) | COMMENT |
| LOW | .pipelines/templates/linux.yml | 57 | ob_restore_phase: true # Set ob_restore_phase to run this step before '🔒 Setup Signing' step. | CODE |
| LOW | .pipelines/templates/linux.yml | 111 | ob_restore_phase: true # Set ob_restore_phase to run this step before '🔒 Setup Signing' step. | CODE |
| LOW | .pipelines/templates/linux.yml | 116 | ob_restore_phase: true # Set ob_restore_phase to run this step before '🔒 Setup Signing' step. | CODE |
| LOW | .pipelines/templates/windows-hosted-build.yml | 58 | ob_restore_phase: true # Set ob_restore_phase to run this step before '🔒 Setup Signing' step. | CODE |
| LOW | .pipelines/templates/windows-hosted-build.yml | 127 | ob_restore_phase: true # Set ob_restore_phase to run this step before '🔒 Setup Signing' step. | CODE |
| LOW | .pipelines/templates/windows-hosted-build.yml | 186 | ob_restore_phase: true # Set ob_restore_phase to run this step before '🔒 Setup Signing' step. | CODE |
| LOW | .pipelines/templates/windows-hosted-build.yml | 191 | ob_restore_phase: true # Set ob_restore_phase to run this step before '🔒 Setup Signing' step. | CODE |
| LOW | .pipelines/templates/stages/PowerShell-vPack-Stages.yml | 133 | ob_restore_phase: true # Set ob_restore_phase to run this step before '🔒 Setup Signing' step. | CODE |
| LOW | .pipelines/templates/stages/PowerShell-vPack-Stages.yml | 196 | ob_restore_phase: true # Set ob_restore_phase to run this step before '🔒 Setup Signing' step. | CODE |
| LOW | .pipelines/templates/stages/PowerShell-vPack-Stages.yml | 200 | ob_restore_phase: true # Set ob_restore_phase to run this step before '🔒 Setup Signing' step. | CODE |
| LOW | …ystem.Management.Automation/DscSupport/CimDSCParser.cs | 3837 | # Check if PsDscRunCredential is being specified as Arguments to Configuration | COMMENT |
| LOW | …ystem.Management.Automation/DscSupport/CimDSCParser.cs | 3840 | # Check if resource is also trying to set the value for RunAsCred | COMMENT |
| LOW | …Management.Automation/namespaces/FileSystemProvider.cs | 8546 | # Check if drive specifies max size and if max size is exceeded | COMMENT |
| LOW | …Management.Automation/namespaces/FileSystemProvider.cs | 8600 | # Check if drive specifies max size and if max size is exceeded | COMMENT |
| LOW | …Management.Automation/namespaces/FileSystemProvider.cs | 8637 | # Check if the target drive is NTFS | COMMENT |
| LOW | …Management.Automation/namespaces/FileSystemProvider.cs | 9131 | # Check if the source supports 'Get-Content -Stream'. This functionality was introduced in version 3.0. | COMMENT |
| LOW | …Management.Automation/namespaces/FileSystemProvider.cs | 9140 | # Check if the file has any alternate data streams. | COMMENT |
| LOW | …Management.Automation/namespaces/FileSystemProvider.cs | 9471 | # Check if the given path exists. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …ine/remoting/server/serverremotesessionstatemachine.cs | 573 | /// This is the handler for ConnectFailed event. In this implementation, this should never | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …Management.Automation/engine/NativeCommandProcessor.cs | 1677 | // We need to check if we're using legacy argument passing or it's a special case. | COMMENT |
| LOW | …m.Management.Automation/engine/remoting/client/Job2.cs | 1844 | // in which case we need to check if the parent | COMMENT |
| LOW | …ement.Automation/engine/runtime/CompiledScriptBlock.cs | 280 | // now we need to check if the HashtableAst is safe. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/System.Management.Automation/engine/ErrorPackage.cs | 295 | /// non-empty value, for example "John Doe". | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …t.Automation/engine/scriptparameterbindercontroller.cs | 157 | // Example usage: | COMMENT |