mirror of
https://github.com/ditkrg/todo-to-issue-action.git
synced 2026-01-23 06:16:43 +00:00
Merge pull request #100 from jonrkarr/patch-1
Add marker patterns for SCSS
This commit is contained in:
commit
ae0016508a
16
syntax.json
16
syntax.json
@ -549,5 +549,21 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"language": "SCSS",
|
||||||
|
"markers" : [
|
||||||
|
{
|
||||||
|
"type": "line",
|
||||||
|
"pattern": "//"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "block",
|
||||||
|
"pattern": {
|
||||||
|
"start": "/\\*",
|
||||||
|
"end": "\\*/"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@ -168,3 +168,19 @@ index 0000000..7cccc5b
|
|||||||
- also need to be turned into todos, and hopefully
|
- also need to be turned into todos, and hopefully
|
||||||
- kept together as one todo
|
- kept together as one todo
|
||||||
- #+end_comment
|
- #+end_comment
|
||||||
|
diff --git a/tests/example_file.scss b/tests/example_file.scss
|
||||||
|
index 525e25d..ba4e68d 100644
|
||||||
|
--- a/tests/example_file.scss
|
||||||
|
+++ b/tests/example_file.scss
|
||||||
|
@@ -1,11 +0,0 @@
|
||||||
|
-// TODO: Hopefully this comment turns into a todo issue
|
||||||
|
-.my-class {
|
||||||
|
- font-weight: bold;
|
||||||
|
- .my-second-class {
|
||||||
|
- /* TODO: Multiline comments
|
||||||
|
- * also need to be turned into todos, and hopefully
|
||||||
|
- * kept together as one todo
|
||||||
|
- */
|
||||||
|
- text-align: center;
|
||||||
|
- }
|
||||||
|
-}
|
||||||
|
|||||||
@ -174,5 +174,20 @@ index 0000000..7cccc5b
|
|||||||
+ also need to be turned into todos, and hopefully
|
+ also need to be turned into todos, and hopefully
|
||||||
+ kept together as one todo
|
+ kept together as one todo
|
||||||
+ #+end_comment
|
+ #+end_comment
|
||||||
|
diff --git a/tests/example_file.scss b/src/tests/example_file.scss
|
||||||
|
new file mode 100644
|
||||||
|
index 0000000..7cccc5b
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/src/tests/example_file.scss
|
||||||
|
@@ -0,0 +1,11 @@
|
||||||
|
+// TODO: Hopefully this comment turns into a todo issue
|
||||||
|
+.my-class {
|
||||||
|
+ font-weight: bold;
|
||||||
|
+ .my-second-class {
|
||||||
|
+ /* TODO: Multiline comments
|
||||||
|
+ * also need to be turned into todos, and hopefully
|
||||||
|
+ * kept together as one todo
|
||||||
|
+ */
|
||||||
|
+ text-align: center;
|
||||||
|
+ }
|
||||||
|
+}
|
||||||
|
|||||||
@ -57,6 +57,9 @@ class NewIssueTests(unittest.TestCase):
|
|||||||
def test_org_issues(self):
|
def test_org_issues(self):
|
||||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'text'), 2)
|
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'text'), 2)
|
||||||
|
|
||||||
|
def test_scss_issues(self):
|
||||||
|
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'scss'), 2)
|
||||||
|
|
||||||
class ClosedIssueTests(unittest.TestCase):
|
class ClosedIssueTests(unittest.TestCase):
|
||||||
# Check for removed TODOs across the files specified.
|
# Check for removed TODOs across the files specified.
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
@ -102,6 +105,9 @@ class ClosedIssueTests(unittest.TestCase):
|
|||||||
def test_org_issues(self):
|
def test_org_issues(self):
|
||||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'text'), 2)
|
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'text'), 2)
|
||||||
|
|
||||||
|
def test_scss_issues(self):
|
||||||
|
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'scss'), 2)
|
||||||
|
|
||||||
|
|
||||||
class IgnorePatternTests(unittest.TestCase):
|
class IgnorePatternTests(unittest.TestCase):
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user