feat: add JSON5 support

This commit is contained in:
Marcos Soutullo Rodriguez 2022-10-16 11:00:18 +01:00 committed by GitHub
parent fffb31f4fe
commit 9e57f4e103
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 0 deletions

View File

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

View File

@ -292,3 +292,17 @@ 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
new file mode 100644
index 0000000..525f56e
--- /dev/null
+++ b/tests/example_file.json5
@@ -0,0 +1,7 @@
+{
+ "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, 'json5'), 1)
def test_ruby_issues(self):
# Includes 2 tests for Crystal.
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'ruby'), 5)