mirror of
https://github.com/ditkrg/todo-to-issue-action.git
synced 2026-01-22 22:06:43 +00:00
Merge pull request #163 from cyadehn/master
Add Support for VBA Component Files
This commit is contained in:
commit
2e616931bb
@ -179,6 +179,7 @@ Only a single milestone can be specified. If the milestone does not exist, it wi
|
||||
- TSX
|
||||
- Twig
|
||||
- TypeScript
|
||||
- Visual Basic for Applications (VBA)
|
||||
- Vue
|
||||
- XML
|
||||
- YAML
|
||||
|
||||
@ -772,6 +772,15 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"language": "VBA",
|
||||
"markers": [
|
||||
{
|
||||
"type": "line",
|
||||
"pattern": "'"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"language": "Cuda",
|
||||
"markers": [
|
||||
|
||||
@ -364,6 +364,31 @@ index 0000000..a6c6cb0
|
||||
-<Label Text="ok"/>
|
||||
<Label Text="There you go"/>
|
||||
<Label Text="Thank you"/>
|
||||
diff --git a/tests/example.cls b/tests/example.cls
|
||||
index 6b0c6cf..b37e70a 100644
|
||||
--- a/tests/example.cls
|
||||
+++ b/tests/example.cls
|
||||
@@ -1,2 +1,2 @@
|
||||
-' TODO: import library instead
|
||||
-Public Sub ReinventTheWheel()
|
||||
+Dim helper as HelperLibrary
|
||||
+Set helper = New HelperLibrary
|
||||
diff --git a/tests/example.bas b/tests/example.bas
|
||||
index 6b0c6cf..b37e70a 100644
|
||||
--- a/tests/example.bas
|
||||
+++ b/tests/example.bas
|
||||
@@ -1,2 +1,1 @@
|
||||
-' TODO: simplify
|
||||
-Public Sub MakeThingsComplicated()
|
||||
+Public Sub DoItSimpler()
|
||||
diff --git a/tests/example.frm b/tests/example.frm
|
||||
index 6b0c6cf..b37e70a 100644
|
||||
--- a/tests/example.frm
|
||||
+++ b/tests/example.frm
|
||||
@@ -1,2 +1,1 @@
|
||||
-' TODO: remove feature to prevent legal issues
|
||||
-Public Sub Plagiarize()
|
||||
+Public Sub MakeOriginalIdea()
|
||||
diff --git a/tests/example.cu b/tests/example.cu
|
||||
index 0000000..a6c6cb0
|
||||
--- /dev/null
|
||||
@ -391,7 +416,7 @@ index 2996176..7545ccf 100644
|
||||
$(NAME): $(OBJ)
|
||||
- # TODO create the directory.
|
||||
$(AR) rc $@ $(OBJ)
|
||||
|
||||
|
||||
diff --git a/tests/example_file.liquid b/tests/example_file.liquid
|
||||
index 0000000..7cccc5b 100644
|
||||
--- a/tests/example_file.liquid
|
||||
|
||||
@ -417,6 +417,27 @@ index 0000000..a6c6cb0
|
||||
+<Label Text="why"/>
|
||||
+<!-- TODO: please -->
|
||||
+<Label Text="ok"/>
|
||||
diff --git a/tests/example.cls b/tests/example.cls
|
||||
index 6b0c6cf..b37e70a 100644
|
||||
--- a/tests/example.cls
|
||||
+++ b/tests/example.cls
|
||||
@@ -1,1 +1,2 @@
|
||||
+' TODO: import library instead
|
||||
Public Sub ReinventTheWheel()
|
||||
diff --git a/tests/example.bas b/tests/example.bas
|
||||
index 6b0c6cf..b37e70a 100644
|
||||
--- a/tests/example.bas
|
||||
+++ b/tests/example.bas
|
||||
@@ -1,1 +1,2 @@
|
||||
+' TODO: simplify
|
||||
Public Sub MakeThingsComplicated()
|
||||
diff --git a/tests/example.frm b/tests/example.frm
|
||||
index 6b0c6cf..b37e70a 100644
|
||||
--- a/tests/example.frm
|
||||
+++ b/tests/example.frm
|
||||
@@ -1,1 +1,2 @@
|
||||
+' TODO: remove feature to prevent legal issues
|
||||
Public Sub Plagiarize()
|
||||
diff --git a/tests/example.cu b/tests/example.cu
|
||||
new file mode 100644
|
||||
index 0000000..a6c6cb0
|
||||
|
||||
@ -65,7 +65,7 @@ class NewIssueTests(unittest.TestCase):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'handlebars'), 2)
|
||||
|
||||
def test_org_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'text'), 6)
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'text'), 8)
|
||||
|
||||
def test_scss_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'scss'), 2)
|
||||
@ -100,7 +100,6 @@ class NewIssueTests(unittest.TestCase):
|
||||
def test_liquid_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'liquid'), 3)
|
||||
|
||||
|
||||
class ClosedIssueTests(unittest.TestCase):
|
||||
# Check for removed TODOs across the files specified.
|
||||
def setUp(self):
|
||||
@ -153,7 +152,7 @@ class ClosedIssueTests(unittest.TestCase):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'handlebars'), 2)
|
||||
|
||||
def test_org_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'text'), 6)
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'text'), 8)
|
||||
|
||||
def test_scss_issues(self):
|
||||
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'scss'), 2)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user