Uploaded image for project: 'Visual Studio'
  1. Visual Studio
  2. VS-45

Analysis does not seem to run on fluent methods

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: 1.0.0
    • Labels:
      None

      When trying out the new analyzers, I realized that the analysis only seemed to work in limited scenarios.

      var filter = Builders<Artist>.Filter.Where(x => x.GetHashCode() == 5);
      var find = collection.Find(x => x.GetHashCode() == 5);
      var agg = collection.Aggregate().Match(x => x.GetHashCode() == 5);

      Only the first one throws a warning for me.

       

      I'm using

      • Rider 2021.3.3
      • .NET 6
      • C# 10
      • Mongo driver 2.14.1
      • Analyzers 1.0.0

            Assignee:
            Unassigned Unassigned
            Reporter:
            fred.morel@onepeloton.com Fred Morel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: