You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a linter returns a Lint with an invalid (NA) column_number, as has recently happened in some regex-based linters, the error message is extremely confusing:
Would NULL be allowed for all of these? I'm thinking of lints that aren't as specific as the line/column level (e.g. file-level lints or line-level lints), which might make sense to leave one/both of line_number / column_number blank.
For ranges, don't we have cases where ranges[2L] might apply to a different line?
Activity
MichaelChirico commentedon Feb 18, 2021
Would
NULLbe allowed for all of these? I'm thinking of lints that aren't as specific as the line/column level (e.g. file-level lints or line-level lints), which might make sense to leave one/both ofline_number/column_numberblank.For
ranges, don't we have cases whereranges[2L]might apply to a different line?AshesITR commentedon Feb 18, 2021
IINM NULLs are allowed in some places, but ranges are constrained to a single line only (or NULL), as we can currently only flag one line.
Line and column numbers could default to 1 as that would always be valid.
add more checks to Lint()
safer Lint(), xml_nodes_to_lints() and lint() (#1788)