I also had this rule fire when I had forgotten to put the public key word infront of the class definition
class DimAngle : IEquatable<DimAngle>
{
etc.....
public string ToString(string formatType, double scalar, int decimalPlaces) Rule was fired on this function "line 556"
{
.....
}
}
should have been
class public DimAngle : IEquatable<DimAngle>
{ .....
}
However the order in which the rule was reported fired wasnt listed top to botton but was picked up at some method quite a way down the class structure. Upon further invesigation I found the rule had fired on other public Methods and also private constants fileds that were used in several places in the code. I wasted much time untill I realised my mistake. So a note to others check that you have made the class public if you recieve this type of message when not expected.