Add support for .cu files

This commit is contained in:
elftausend 2024-02-16 17:10:20 +01:00
parent 5fa8522c25
commit 401dca3ded
5 changed files with 48 additions and 0 deletions

View File

@ -143,6 +143,7 @@ These will be applied automatically to every issue, but will be overrode by any
- CSS
- Crystal
- Clojure
- Cuda
- Dart
- Elixir
- GDScript

View File

@ -748,5 +748,21 @@
}
}
]
},
{
"language": "Cuda",
"markers": [
{
"type": "line",
"pattern": "//"
},
{
"type": "block",
"pattern": {
"start": "/\\*",
"end": "\\*/"
}
}
]
}
]

View File

@ -364,3 +364,14 @@ index 0000000..a6c6cb0
-<Label Text="ok"/>
<Label Text="There you go"/>
<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
- */
}

View File

@ -403,3 +403,17 @@ index 0000000..a6c6cb0
+<Label Text="why"/>
+<!-- TODO: please -->
+<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
+ */
+}
+

View File

@ -93,6 +93,9 @@ class NewIssueTests(unittest.TestCase):
def test_xaml_issues(self):
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):
# Check for removed TODOs across the files specified.
@ -173,6 +176,9 @@ class ClosedIssueTests(unittest.TestCase):
def test_xaml_issues(self):
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):