FunFair.CodeAnalysis
7.0.19.488-main
This is a prerelease version of FunFair.CodeAnalysis.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package FunFair.CodeAnalysis --version 7.0.19.488-main
NuGet\Install-Package FunFair.CodeAnalysis -Version 7.0.19.488-main
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FunFair.CodeAnalysis" Version="7.0.19.488-main"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FunFair.CodeAnalysis" Version="7.0.19.488-main" />
<PackageReference Include="FunFair.CodeAnalysis"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add FunFair.CodeAnalysis --version 7.0.19.488-main
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FunFair.CodeAnalysis, 7.0.19.488-main"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package FunFair.CodeAnalysis@7.0.19.488-main
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=FunFair.CodeAnalysis&version=7.0.19.488-main&prerelease
#tool nuget:?package=FunFair.CodeAnalysis&version=7.0.19.488-main&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
funfair-server-code-analysis
Static Code analysis Repo for FunFair Server dotnet projects.
Build Status
| Branch | Status |
|---|---|
| main | |
| release |
Checks
| Code | Meaning |
|---|---|
| FFS0001 | Avoid using DateTime.Now - Use IDateTimeSource.UtcNow() |
| FFS0002 | Avoid using DateTime.UtcNow - Use IDateTimeSource.UtcNow() |
| FFS0003 | Avoid using DateTime.Today - Use IDateTimeSource.UtcNow().Date |
| FFS0004 | Avoid using DateTimeOffset.Now - Use IDateTimeSource.UtcNow() |
| FFS0005 | Avoid using DateTimeOffset.UtcNow - Use IDateTimeSource.UtcNow() |
| FFS0006 | Avoid using arbitrary SQL for updates |
| FFS0007 | Avoid using arbitrary SQL for queries |
| FFS0008 | Do not disable warnings |
| FFS0009 | Do not use Assert.True without specifying a message |
| FFS0010 | Do not use Assert.False without specifying a message |
| FFS0011 | Make structs readonly |
| FFS0012 | Classes should be static, sealed or abstract |
| FFS0013 | Test Classes should be sealed or abstract and derived from TestBase |
| FFS0014 | Do not use JsonSerialiser without specifying JsonOptions |
| FFS0015 | Do not use JsonDeserialiser without specifying JsonOptions |
| FFS0016 | Pass parameter name to ArgumentExceptions |
| FFS0017 | Pass inner exception to exceptions thrown in catch block |
| FFS0018 | Don't use NSubstitute's Received() without specifying the number of calls |
| FFS0019 | ILogger parameters should be called logger |
| FFS0020 | Parameters should be in a specified order |
| FFS0021 | Don't use NSubstitute's Received(0) - use DidNotReceive() instead |
| FFS0022 | Don't configure nullable in code - should be a project level. |
| FFS0023 | Logger parameters on base classes should be ILogger not ILogger<ClassName> |
| FFS0024 | Logger parameters on leaf classes should be ILogger<ClassName> not ILogger |
| FFS0025 | Mismatch of generic type |
| FFS0026 | Do not read IPAddress from Connection - use an abstraction |
| FFS0027 | SuppressMessage must specify a justification |
| FFS0028 | Records should be sealed |
| FFS0029 | Classes derived from MockBase<T> should be internal |
| FFS0030 | Classes derived from MockBase<T> should be sealed |
| FFS0031 | Avoid using System.Collections.Concurrent.ConcurrentDictionary<,> - Use NonBlocking.ConcurrentDictionary<,> |
| FFS0032 | Avoid using NonBlocing.ConcurrentDictionary<,>.AddOrUpdate - Use FunFair.Common.Extensions.ConcurrentDictionaryExtensions.AddOrUpdate |
| FFS0033 | Avoid using NonBlocing.ConcurrentDictionary<,>.GetOrAdd - Use FunFair.Common.Extensions.ConcurrentDictionaryExtensions.GetOrAdd |
| FFS0034 | Avoid using Microsoft.Extensions.Configuration.ConfigurationBuilder.AddJsonFile with reload set to true |
| FFS0035 | Checks that test classes do not define mutable fields |
| FFS0036 | Checks that test classes do not define mutable properties |
| FFS0037 | Checks that Guid.Parse is not used and that new Guid or Guid.TryParse is used instead |
| FFS0038 | Records should have DebuggerDisplay attribute on them. |
| FFS0039 | Only one type name should be defined per file. Note class T and class T<T1> are considered to be one type as they share the same name. |
| FFS0040 | Type should be in a file with the same name as the type. |
| FFS0041 | Do not use System.Console in test assemblies. |
| FFS0042 | Do not have TODO's in SuppressMessage justifications. |
Changelog
View changelog
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 7.1.34.1713-main | 0 | 2/13/2026 |
| 7.1.34.1712-main | 28 | 2/12/2026 |
| 7.1.33.1711 | 40 | 2/11/2026 |
| 7.1.33.1710-main | 81 | 2/11/2026 |
| 7.1.33.1709-main | 86 | 2/6/2026 |
| 7.1.33.1708-main | 89 | 2/5/2026 |
| 7.1.33.1706-main | 88 | 2/4/2026 |
| 7.1.33.1705-main | 88 | 2/4/2026 |
| 7.1.33.1704-main | 83 | 1/27/2026 |
| 7.1.33.1703-main | 80 | 1/27/2026 |
| 7.1.33.1702-main | 82 | 1/27/2026 |
| 7.1.33.1701-main | 82 | 1/27/2026 |
| 7.1.33.1700-main | 82 | 1/27/2026 |
| 7.1.32.1699 | 241 | 1/24/2026 |
| 7.1.32.1698-main | 81 | 1/23/2026 |
| 7.1.32.1697-main | 79 | 1/23/2026 |
| 7.1.32.1696-main | 77 | 1/23/2026 |
| 7.1.32.1695-main | 75 | 1/23/2026 |
| 7.1.32.1694-main | 82 | 1/23/2026 |
| 7.0.19.488-main | 188 | 7/19/2024 |
Loading failed