feat: add support for JSON5

This commit is contained in:
Marcos Soutullo Rodriguez 2022-10-16 12:00:41 +01:00
parent 9e57f4e103
commit 7032c76bc5
No known key found for this signature in database
GPG Key ID: C67A779BDEF89362
5 changed files with 44 additions and 33 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

@ -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,12 +292,12 @@ index 0000000..525e25d
+ # This function should probably do something more interesting
+ # labels: help wanted
+}
diff --git a/tests/example_file.r b/tests/config.json5
diff --git a/tests/config.json5 b/tests/config.json5
new file mode 100644
index 0000000..525f56e
index 0000000..525e25d
--- /dev/null
+++ b/tests/example_file.json5
@@ -0,0 +1,7 @@
+++ b/tests/config.json5
@@ -0,0 +0,8 @@
+{
+ "myConfig": [
+ // GitRepository where 'Git release/tag' matches 'Helm' version

View File

@ -34,7 +34,7 @@ class NewIssueTests(unittest.TestCase):
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, 'json5'), 1)
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'javascript'), 1)
def test_ruby_issues(self):
# Includes 2 tests for Crystal.
@ -114,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)