ObjectPoolLinter 1.0.0
First published release: the ObjectPoolLinter package on nuget.org, plus the Unity
.unitypackage and UPM .tgz attached to the GitHub release. The 0.x versions below were never
published.
Changed
- The OPL001 message names the allocation consistently and puts it first:
'new List<int>' allocates inside the frequently-called method 'Update'.Allocations are named
from the resolved type rather than the source text, sonew System.Collections.Generic.List<int>(),
new List<int>()andnew()all readnew List<int>, and arrays read as their type
(new int[]) instead of echoing the size (int[10]).Instantiatecalls read
'Instantiate' allocates inside ...rather than'Instantiate' is allocated inside ....
Anything that parses the message text needs the new wording;build/verify-sample.ps1is updated. - The message format arguments are in reading order:
{0}is the allocation,{1}the method.
Closes A6. - OPL001 moved from
AnalyzerReleases.Unshipped.mdto aRelease 1.0.0section in
AnalyzerReleases.Shipped.md.
Build
- The release workflow publishes to nuget.org with Trusted Publishing instead of the static
NUGET_API_KEYsecret.NuGet/login@v1exchanges the job's GitHub OIDC token for a one-hour API
key, so no long-lived key is stored. The workflow now requestsid-token: writeand reads the
nuget.org profile name from theNUGET_USERsecret.