mirror of
https://github.com/ditkrg/todo-to-issue-action.git
synced 2026-01-23 06:16:43 +00:00
Add Nix support
This commit is contained in:
parent
687d7b27d4
commit
de829edf0c
@ -102,6 +102,7 @@ jobs:
|
|||||||
- Kotlin
|
- Kotlin
|
||||||
- Less
|
- Less
|
||||||
- Markdown
|
- Markdown
|
||||||
|
- Nix
|
||||||
- Objective-C
|
- Objective-C
|
||||||
- Org Mode
|
- Org Mode
|
||||||
- PHP
|
- PHP
|
||||||
|
|||||||
16
syntax.json
16
syntax.json
@ -658,5 +658,21 @@
|
|||||||
"pattern": ";;"
|
"pattern": ";;"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"language": "Nix",
|
||||||
|
"markers": [
|
||||||
|
{
|
||||||
|
"type": "line",
|
||||||
|
"pattern": "#"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "block",
|
||||||
|
"pattern": {
|
||||||
|
"start": "/\\*",
|
||||||
|
"end": "\\*/"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@ -297,3 +297,19 @@ index 0000000..525e25d 100644
|
|||||||
- ;; TODO: todo with description (sub-level)
|
- ;; TODO: todo with description (sub-level)
|
||||||
- ;; Body of the issue should stay here
|
- ;; Body of the issue should stay here
|
||||||
- (str "hello" name))
|
- (str "hello" name))
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|||||||
@ -320,3 +320,20 @@ index 0000000..525e25d
|
|||||||
+ ;; TODO: todo with description (sub-level)
|
+ ;; TODO: todo with description (sub-level)
|
||||||
+ ;; Body of the issue should stay here
|
+ ;; Body of the issue should stay here
|
||||||
+ (str "hello" name))
|
+ (str "hello" name))
|
||||||
|
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):
|
def test_clojure_issues(self):
|
||||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'clojure'), 2)
|
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):
|
class ClosedIssueTests(unittest.TestCase):
|
||||||
# Check for removed TODOs across the files specified.
|
# Check for removed TODOs across the files specified.
|
||||||
@ -147,6 +149,9 @@ class ClosedIssueTests(unittest.TestCase):
|
|||||||
def test_clojure_issues(self):
|
def test_clojure_issues(self):
|
||||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'clojure'), 2)
|
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):
|
class IgnorePatternTests(unittest.TestCase):
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user