Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<xsl:template match="/">
<xsl:variable name="min" select="32"/>
<defects>
<xsl:for-each select="/object/comments/comment[not(matches(., '^[A-Z]'))]">
<xsl:for-each select="/object/comments/comment[not(matches(., '^[A-Z]')) and not(matches(., '^@(todo|fixme)([^A-Z]|$)', 'i'))]">
<xsl:element name="defect">
<xsl:variable name="line" select="eo:lineno(@line)"/>
<xsl:attribute name="line">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,12 @@ Correct:
[] > foo
42 > @
```

Comments that begin with a tracker marker such as `@todo` or `@fixme`
(case-insensitive) are exempt from this rule:

```eo
# @todo #123:30min Add validation for negative input.
[] > foo
42 > @
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# SPDX-FileCopyrightText: Copyright (c) 2016-2026 Objectionary.com
# SPDX-License-Identifier: MIT
---
sheets:
- /org/eolang/lints/comments/comment-not-capitalized.xsl
asserts:
- /defects[count(defect[@severity='warning'])=0]
input: |
# @fixme this needs revisiting once the parser supports X.
[] > foo
42 > @
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# SPDX-FileCopyrightText: Copyright (c) 2016-2026 Objectionary.com
# SPDX-License-Identifier: MIT
---
sheets:
- /org/eolang/lints/comments/comment-not-capitalized.xsl
asserts:
- /defects[count(defect[@severity='warning'])=0]
input: |
# @TODO #999:30min uppercase marker is also accepted.
[] > foo
42 > @
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# SPDX-FileCopyrightText: Copyright (c) 2016-2026 Objectionary.com
# SPDX-License-Identifier: MIT
---
sheets:
- /org/eolang/lints/comments/comment-not-capitalized.xsl
asserts:
- /defects[count(defect[@severity='warning'])=0]
input: |
# @todo #4475:35min Enable this feature after resize is implemented.
[] > foo
42 > @