Merge pull request #126 from kitos9112/master

feat: add support for JSON5 language
This commit is contained in:
Alastair Mooney 2022-10-21 09:38:12 +01:00 committed by GitHub
commit 77b8aceed2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 63 additions and 26 deletions

View File

@ -84,6 +84,7 @@ There are additional inputs if you want to be able to assign issues to projects.
* HTML
* Java
* JavaScript
* JSON5
* Julia
* Kotlin
* Less

View File

@ -163,6 +163,15 @@
}
]
},
{
"language": "JSON5",
"markers": [
{
"type": "line",
"pattern": "//"
}
]
},
{
"language": "Julia",
"markers": [

View File

@ -278,3 +278,10 @@ index 525e25d..ba4e68d 100644
-TODO: Create an issue for TODO
--}
-sum a b = a + b
diff --git a/tests/config.json5 b/tests/config.json5
index 0000000..525e25d 100644
--- a/tests/config.json5
+++ b/tests/config.json5
@@ -0,0 +0,1 @@
- // TODO: Delete this line from the codebase

View File

@ -292,3 +292,17 @@ index 0000000..525e25d
+ # This function should probably do something more interesting
+ # labels: help wanted
+}
diff --git a/tests/config.json5 b/tests/config.json5
new file mode 100644
index 0000000..525e25d
--- /dev/null
+++ b/tests/config.json5
@@ -0,0 +0,8 @@
+{
+ "myConfig": [
+ // GitRepository where 'Git release/tag' matches 'Helm' version
+ "itIsWonderful",
+ // TODO: Delete this line from the codebase
+ "butItHasSomePendingActivities"
+ ]
+}

View File

@ -33,6 +33,9 @@ class NewIssueTests(unittest.TestCase):
def test_java_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'java'), 2)
def test_json5_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'javascript'), 1)
def test_ruby_issues(self):
# Includes 2 tests for Crystal.
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'ruby'), 5)
@ -111,6 +114,9 @@ class ClosedIssueTests(unittest.TestCase):
def test_julia_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'julia'), 2)
def test_json5_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'javascript'), 1)
def test_autohotkey_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'autohotkey'), 1)