Commit 78124f3
Fix check_hardcoded_byte_size false-positive on inline comments
byte_re was run against the full stripped line, so a comment like
! old code: int(8._wp, kind=i64)
would be flagged even though the pattern is inside a Fortran ! comment.
Strip the inline comment portion before searching.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 9dc43a7 commit 78124f3
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| |||
0 commit comments