Skip to content

Commit

Permalink
DisallowFloatTypes is low severity
Browse files Browse the repository at this point in the history
  • Loading branch information
erik committed Jan 4, 2019
1 parent f9e9c96 commit 0d0e794
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion squabble/rules/disallow_float_types.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import pglast

import squabble.rule
from squabble.lint import Severity
from squabble.message import Message
from squabble.rules import BaseRule

Expand Down Expand Up @@ -86,4 +87,4 @@ def _check_column_def(self, ctx, node):
col_type = _type_name_to_string(node.typeName)

if col_type in self._INEXACT_TYPES:
ctx.report(self.LossyFloatType(), node=node)
ctx.report(self.LossyFloatType(), node=node, severity=Severity.LOW)

0 comments on commit 0d0e794

Please sign in to comment.