Sonar version: Version 9.3 (build 51899)
Rule csharpsquid:S3400 (methods should not return constants) should not be applied to default interface implementations introduced in .NET Core 3.0.
Even if the default implementation returns a constant, other implementations might not. This is similar to how virtual methods work.
interface ISomeInterface {
public bool IsCondition() => true; // this triggers the rule
}
class SomeClass implements ISomeInterface {
public bool Value { get; set; }
public bool IsCondition() => Value; // this is not a constant
}