mirror of
https://github.com/ditkrg/todo-to-issue-action.git
synced 2026-01-22 22:06:43 +00:00
Add support for .cu files
This commit is contained in:
parent
5fa8522c25
commit
401dca3ded
@ -143,6 +143,7 @@ These will be applied automatically to every issue, but will be overrode by any
|
|||||||
- CSS
|
- CSS
|
||||||
- Crystal
|
- Crystal
|
||||||
- Clojure
|
- Clojure
|
||||||
|
- Cuda
|
||||||
- Dart
|
- Dart
|
||||||
- Elixir
|
- Elixir
|
||||||
- GDScript
|
- GDScript
|
||||||
|
|||||||
16
syntax.json
16
syntax.json
@ -748,5 +748,21 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"language": "Cuda",
|
||||||
|
"markers": [
|
||||||
|
{
|
||||||
|
"type": "line",
|
||||||
|
"pattern": "//"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "block",
|
||||||
|
"pattern": {
|
||||||
|
"start": "/\\*",
|
||||||
|
"end": "\\*/"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@ -364,3 +364,14 @@ index 0000000..a6c6cb0
|
|||||||
-<Label Text="ok"/>
|
-<Label Text="ok"/>
|
||||||
<Label Text="There you go"/>
|
<Label Text="There you go"/>
|
||||||
<Label Text="Thank you"/>
|
<Label Text="Thank you"/>
|
||||||
|
diff --git a/tests/example.cu b/tests/example.cu
|
||||||
|
index 0000000..a6c6cb0
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/tests/example.cu
|
||||||
|
@@ -1,9 +1,5 @@
|
||||||
|
-// TODO rename this function
|
||||||
|
__global__ void test() {
|
||||||
|
- /*
|
||||||
|
- TODO fill this with something useful
|
||||||
|
- */
|
||||||
|
}
|
||||||
@ -403,3 +403,17 @@ index 0000000..a6c6cb0
|
|||||||
+<Label Text="why"/>
|
+<Label Text="why"/>
|
||||||
+<!-- TODO: please -->
|
+<!-- TODO: please -->
|
||||||
+<Label Text="ok"/>
|
+<Label Text="ok"/>
|
||||||
|
diff --git a/tests/example.cu b/tests/example.cu
|
||||||
|
new file mode 100644
|
||||||
|
index 0000000..a6c6cb0
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/tests/example.cu
|
||||||
|
@@ -1,3 +1,11 @@
|
||||||
|
+
|
||||||
|
+// TODO rename this function
|
||||||
|
+__global__ void test() {
|
||||||
|
+ /*
|
||||||
|
+ TODO fill this with something useful
|
||||||
|
+ */
|
||||||
|
+}
|
||||||
|
+
|
||||||
@ -93,6 +93,9 @@ class NewIssueTests(unittest.TestCase):
|
|||||||
def test_xaml_issues(self):
|
def test_xaml_issues(self):
|
||||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'xml'), 2)
|
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'xml'), 2)
|
||||||
|
|
||||||
|
def test_c_cpp_like_issues(self):
|
||||||
|
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'c_cpp'), 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.
|
||||||
@ -173,6 +176,9 @@ class ClosedIssueTests(unittest.TestCase):
|
|||||||
|
|
||||||
def test_xaml_issues(self):
|
def test_xaml_issues(self):
|
||||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'xml'), 2)
|
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'xml'), 2)
|
||||||
|
|
||||||
|
def test_c_cpp_like_issues(self):
|
||||||
|
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'c_cpp'), 2)
|
||||||
|
|
||||||
|
|
||||||
class IgnorePatternTests(unittest.TestCase):
|
class IgnorePatternTests(unittest.TestCase):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user