Commit Graph
46 Commits
Author SHA1 Message Date
Jesse Plamondon-Willard 68c4884d63 use newer syntax for initializing collections 2025-03-09 11:42:32 -04:00
Jesse Plamondon-Willard bc361207ce remove net field implicit conversion build warnings
The last implicit conversion operators were removed in 1.6.9.
2024-11-03 15:58:46 -05:00
Jesse Plamondon-Willard 8addcc8d43 migrate to central package management 2024-11-03 15:58:46 -05:00
Jesse Plamondon-Willard 645f861982 migrate to file-scoped namespaces 2024-11-03 15:58:45 -05:00
Jesse Plamondon-Willard d8555b4332 fix build warnings 2024-07-07 13:44:17 -04:00
Jesse Plamondon-Willard 74ed1cbbb4 update NuGet packages 2024-05-24 18:53:01 -04:00
Jesse Plamondon-Willard 4e0e928c94 remove #nullable disable in mod build package (#837)
Since it targets .NET Standard 2.0, they're not available anyway.
2022-04-12 19:19:37 -04:00
Jesse Plamondon-Willard 238045ba9c reverse mod build package migration to .NET 5 (#837)
The migrated package didn't work consistently in VIsual Studio, so this suppresses nullable annotations in .NET Standard instead.
2022-04-07 22:19:48 -04:00
Jesse Plamondon-Willard 6b05296e71 migrate mod build package to .NET 5 to allow full nullable annotations (#837) 2022-04-07 01:51:50 -04:00
Jesse Plamondon-Willard b4e979cc99 fix all warnings to simplify migration to nullable annotations (#837) 2022-04-06 22:46:19 -04:00
Jesse Plamondon-Willard 2e7c233f6c enable nullable annotations by default (#837)
This adds `#nullable disable` to all existing code (except where null is impossible like enum files), so it can be migrated incrementally.
2022-04-06 21:48:55 -04:00
Jesse Plamondon-Willard 077d8e4f40 remove some unused/redundant code 2022-04-06 18:25:00 -04:00
Jesse Plamondon-Willard 0539bb8f37 simplify with newer pattern features 2022-04-06 18:25:00 -04:00
Jesse Plamondon-Willard a593eda30f use target-typed new 2022-04-06 18:24:59 -04:00
Jesse Plamondon-Willard 1d7340f598 fix code warnings 2021-12-04 15:43:01 -05:00
Jesse Plamondon-Willard 727d75ae72 update to .NET 5 and official 64-bit 2021-11-28 00:01:41 -05:00
Jesse Plamondon-Willard a4c6c61684 enable parallel analyzer execution 2021-08-08 00:32:19 -04:00
Jesse Plamondon-Willard 79181012ee tweak build files 2020-06-14 10:55:52 -04:00
Jesse Plamondon-Willard 25e4aa14d8 remove legacy AssemblyInfo and GlobalAssemblyInfo files, use consistent assembly names 2019-09-14 19:12:40 -04:00
Jesse Plamondon-Willard fd77ae93d5 fix typos and inconsistent spelling 2019-09-14 19:08:06 -04:00
Jesse Plamondon-Willard 8700084300 bump .NET Standard version used by the mod build package to match toolkit 2019-09-14 18:52:39 -04:00
Jesse Plamondon-Willard db141f3976 update code analysis package
This commit updates the code analysis package to the one available in Visual Studio 2017 v15.9; the next version matches Visual Studio 2019.
2019-09-14 18:52:33 -04:00
Jesse Plamondon-Willard 1dde811c36 group technical docs, add general shortcut for mod build package docs (#651) 2019-09-14 18:43:59 -04:00
Jesse Plamondon-Willard abffdc2dab simplify project names 2019-09-14 17:46:34 -04:00
Jesse Plamondon-Willard 6fdb29d806 drop support for old versions of SMAPI and Visual Studio in mod build package 2019-09-14 16:57:38 -04:00
Jesse Plamondon-Willard fb04b67a2b use same .csproj charset as Visual Studio tools 2019-09-13 17:44:41 -04:00
Jesse Plamondon-Willard c4a82418ac tweak comment header convention 2018-12-27 12:39:10 -05:00
Jesse Plamondon-Willard 51e65fc8a0 enable latest C# features 2018-12-27 02:40:57 -05:00
Jesse Plamondon-Willard 1c10e54d05 update analyzer packages 2018-06-24 18:55:04 -04:00
Jesse Plamondon-Willard 05f81cb85f update net field list 2018-05-04 18:46:46 -04:00
Jesse Plamondon-Willard 46fe7a86a7 add a few more avoidable net fields (#471) 2018-04-29 11:35:01 -04:00
Jesse Plamondon-Willard 6be4d5abe0 detect conversions due to explicit casts or 'x as y' expressions (#471) 2018-04-28 16:07:41 -04:00
Jesse Plamondon-Willard e1eca00c66 fix net field analyzers not detecting implicit conversions via binary expressions (#471) 2018-04-28 15:10:54 -04:00
Jesse Plamondon-Willard 83f89c6ef3 don't warn when converting net fields to an interface they implement 2018-04-26 23:18:53 -04:00
Jesse Plamondon-Willard 97120c6df2 update references to old warning IDs (#471) 2018-04-14 20:33:43 -04:00
Jesse Plamondon-Willard 1848abe7d5 don't warn for NetCollection conversion to implemented interface (#471) 2018-04-14 20:14:31 -04:00
Jesse Plamondon-Willard 6d8cf614a2 don't warn for NetList conversion to implemented interface (#471) 2018-04-14 19:51:50 -04:00
Jesse Plamondon-Willard c2cb76b799 rewrite analyzers to match more cases, use readable warning IDs (#471) 2018-04-14 17:53:58 -04:00
Jesse Plamondon-Willard 13f31e8b72 warn for fields which no longer work (#471) 2018-04-10 18:23:57 -04:00
Jesse Plamondon-Willard c6c2302baf tweak analyzer code & documentation (#471) 2018-04-10 18:23:39 -04:00
Jesse Plamondon-Willard 1fb625dc42 fix some net field comparisons to null not flagged (#471) 2018-04-10 18:23:08 -04:00
Jesse Plamondon-Willard 971ed1a175 fix net field replacements not reported for a subclass reference (#471) 2018-04-09 23:43:13 -04:00
Jesse Plamondon-Willard c8db771e11 tweak message output and unit tests (#471) 2018-04-09 23:25:10 -04:00
Jesse Plamondon-Willard 416e1c3c1b rename file to match new scope (#471) 2018-04-09 22:34:11 -04:00
Jesse Plamondon-Willard 4f5f463bd2 warn when directly using a net field that has a non-net wrapper (#471) 2018-04-09 22:33:45 -04:00
Jesse Plamondon-Willard f52f7ca36f add mod code analyzers to detect implicit net field conversion issues (#471) 2018-04-09 19:32:00 -04:00