mirror of
https://github.com/ditkrg/todo-to-issue-action.git
synced 2026-01-22 22:06:43 +00:00
commit
10830c6ad1
@ -102,6 +102,7 @@ jobs:
|
||||
- Kotlin
|
||||
- Less
|
||||
- Markdown
|
||||
- Nix
|
||||
- Objective-C
|
||||
- Org Mode
|
||||
- PHP
|
||||
|
||||
16
syntax.json
16
syntax.json
@ -667,5 +667,21 @@
|
||||
"pattern": ";;"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"language": "Nix",
|
||||
"markers": [
|
||||
{
|
||||
"type": "line",
|
||||
"pattern": "#"
|
||||
},
|
||||
{
|
||||
"type": "block",
|
||||
"pattern": {
|
||||
"start": "/\\*",
|
||||
"end": "\\*/"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
@ -307,3 +307,19 @@ index 0000000..525e25d 100644
|
||||
-
|
||||
-# TODO Play the level music
|
||||
-export: var music_path: String
|
||||
diff --git a/tests/example.nix b/tests/example.nix
|
||||
index a6c6cb0..25d195f 100644
|
||||
--- a/tests/example.nix
|
||||
+++ b/tests/example.nix
|
||||
@@ -1,11 +1,7 @@
|
||||
{
|
||||
- # TODO add missing devices
|
||||
stdDeviceList = [
|
||||
"treads"
|
||||
"grabber"
|
||||
];
|
||||
- /*
|
||||
- TODO add missing c
|
||||
- */
|
||||
sum = a: b: a + b;
|
||||
}
|
||||
|
||||
@ -331,3 +331,20 @@ index 0000000..525e25d
|
||||
+
|
||||
+# TODO Play the level music
|
||||
+export: var music_path: String
|
||||
diff --git a/tests/example.nix b/tests/example.nix
|
||||
new file mode 100644
|
||||
index 0000000..a6c6cb0
|
||||
--- /dev/null
|
||||
+++ b/tests/example.nix
|
||||
@@ -0,0 +1,11 @@
|
||||
+{
|
||||
+ # TODO add missing devices
|
||||
+ stdDeviceList = [
|
||||
+ "treads"
|
||||
+ "grabber"
|
||||
+ ];
|
||||
+ /*
|
||||
+ TODO add missing c
|
||||
+ */
|
||||
+ sum = a: b: a + b;
|
||||
+}
|
||||
|
||||
@ -79,6 +79,8 @@ class NewIssueTests(unittest.TestCase):
|
||||
def test_clojure_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'clojure'), 2)
|
||||
|
||||
def test_nix_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'nix'), 2)
|
||||
|
||||
class ClosedIssueTests(unittest.TestCase):
|
||||
# Check for removed TODOs across the files specified.
|
||||
@ -147,6 +149,9 @@ class ClosedIssueTests(unittest.TestCase):
|
||||
def test_clojure_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'clojure'), 2)
|
||||
|
||||
def test_nix_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'nix'), 2)
|
||||
|
||||
|
||||
class IgnorePatternTests(unittest.TestCase):
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user