code-buster 0.11.0

Repository-aware static analysis for AI-assisted development
Documentation
{
  "id": "cs-datetime-now",
  "language": "csharp",
  "group": "style",
  "listingTitle": "Prefer unambiguous C# timestamps",
  "title": "Prefer unambiguous C# timestamps",
  "mvvm": false,
  "defaultSeverity": "info",
  "legacyGroup": "nim-style",
  "why": "DateTime.Now omits an explicit offset and can become ambiguous across time-zone and daylight-saving transitions.",
  "suggestion": "Use DateTimeOffset.Now when the local offset matters or DateTime.UtcNow for UTC-based processing.",
  "version": 6,
  "semanticMaturity": "text",
  "securityKind": "none",
  "taxonomy": [
    "style"
  ],
  "requirements": [
    "sourceText"
  ],
  "packs": [
    "csharp"
  ],
  "implementation": "src/languages/csharp/rules.rs",
  "languages": [
    "csharp"
  ],
  "frameworks": [],
  "languageVersions": [],
  "limitations": [
    "Only direct DateTime.Now references are recognized; aliases and custom clock abstractions require type resolution."
  ]
}