Add Nix support

This commit is contained in:
Walker 2022-12-21 14:46:54 -03:00
parent 687d7b27d4
commit de829edf0c
5 changed files with 55 additions and 0 deletions

View File

@ -102,6 +102,7 @@ jobs:
- Kotlin
- Less
- Markdown
- Nix
- Objective-C
- Org Mode
- PHP

View File

@ -658,5 +658,21 @@
"pattern": ";;"
}
]
},
{
"language": "Nix",
"markers": [
{
"type": "line",
"pattern": "#"
},
{
"type": "block",
"pattern": {
"start": "/\\*",
"end": "\\*/"
}
}
]
}
]

View File

@ -297,3 +297,19 @@ index 0000000..525e25d 100644
- ;; TODO: todo with description (sub-level)
- ;; Body of the issue should stay here
- (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;
}

View File

@ -320,3 +320,20 @@ index 0000000..525e25d
+ ;; TODO: todo with description (sub-level)
+ ;; Body of the issue should stay here
+ (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;
+}

View File

@ -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):