Merge pull request #137 from klarkc/master

Add Nix support
This commit is contained in:
Alastair Mooney 2022-12-22 08:32:44 +00:00 committed by GitHub
commit 10830c6ad1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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

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

View File

@ -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;
}

View File

@ -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;
+}

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