check method
Implementation
@override
void check(
DcqRegistry registry,
) {
registry.addDoubleLiteral((node) {
final source = node.literal.lexeme;
if (_hasLeadingDot(source) ||
_hasRedundantLeadingZeros(source) ||
_hasTrailingZeros(
source,
configBool(ruleConfig, 'explicit-trailing-zero') ?? false,
) ||
_hasUnnecessaryDecimalPoint(source)) {
reportAtNode(node);
}
});
}