Added support for makefile language.

Signed-off-by: Aingeru <aingeru.develop@gmail.com>
This commit is contained in:
Aingeru 2024-03-12 12:49:15 +01:00
parent e1fcaabf3b
commit 2bda10fabb
5 changed files with 53 additions and 2 deletions

View File

@ -159,6 +159,7 @@ These will be applied automatically to every issue, but will be overrode by any
- Julia
- Kotlin
- Less
- Makefile
- Markdown
- Nix
- Objective-C

View File

@ -764,5 +764,14 @@
}
}
]
},
{
"language": "Makefile",
"markers": [
{
"type": "line",
"pattern": "#"
}
]
}
]

View File

@ -375,3 +375,20 @@ index 0000000..a6c6cb0
- TODO fill this with something useful
- */
}
diff --git a/tests/Makefile b/tests/Makefile
index 2996176..7545ccf 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -1,12 +1,9 @@
-# TODO change name.
NAME = asm
-# TODO source files must be explicitly named.
SRC = $(shell find mandatory/src -name "*.asm")
OBJ = $(patsubst src/%.asm, obj/%.o, $(SRC))
.PHONY: all
all: $(NAME)
$(NAME): $(OBJ)
- # TODO create the directory.
$(AR) rc $@ $(OBJ)

View File

@ -417,3 +417,21 @@ index 0000000..a6c6cb0
+ */
+}
+
diff --git a/tests/Makefile b/tests/Makefile
new file mode 100644
index 0000000..2996176
--- /dev/null
+++ b/tests/Makefile
@@ -0,0 +1,12 @@
+# TODO change name.
+NAME = asm
+
+# TODO source files must be explicitly named.
+SRC = $(shell find mandatory/src -name "*.asm")
+OBJ = $(patsubst src/%.asm, obj/%.o, $(SRC))
+.PHONY: all
+all: $(NAME)
+$(NAME): $(OBJ)
+ # TODO create the directory.
+ $(AR) rc $@ $(OBJ)
+

View File

@ -75,6 +75,9 @@ class NewIssueTests(unittest.TestCase):
def test_twig_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'twig'), 2)
def test_makefile_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'makefile'), 3)
def test_md_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'markdown'), 8)
@ -159,6 +162,9 @@ class ClosedIssueTests(unittest.TestCase):
def test_twig_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'twig'), 2)
def test_makefile_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'makefile'), 3)
def test_md_issues(self):
self.assertEqual(count_issues_for_file_type(self.raw_issues, 'markdown'), 8)