Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions .github/workflows/norm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Norminette Check

on:
pull_request:
paths:
- '**.c'
- '**.h'

jobs:
norm:
Expand All @@ -17,5 +14,14 @@ jobs:
sudo apt install python3-pip -y
pip3 install norminette
- name: Run norminette
shell: bash
run: |
norminette | tee norm_report.txt
norminette > norm_result.txt
cat norm_result.txt
if grep -q "Error:" norm_result.txt; then
echo "❌ Norminette check failed"
exit 1
else
echo "✅ Norminette passed"
fi
continue-on-error: false
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# By: ttsubo <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2025/04/03 12:55:20 by ttsubo #+# #+# #
# Updated: 2025/04/21 13:54:36 by ttsubo ### ########.fr #
# Updated: 2025/04/24 12:11:25 by ttsubo ### ########.fr #
# #
# **************************************************************************** #

Expand All @@ -25,7 +25,7 @@ W_FLG = -Wall -Wextra -Werror
I_FLG = -I$(INC_DIR) -I$(FT_DIR)
L_FLG = -lreadline -lft

SRC = main.c minish_signal.c initialize.c
SRC = main.c minish_signal.c initialize.c debug.c
TOKENIZER_SRC = tokenizer.c tokenizer_error.c read_token.c \
is_quote_closed.c get_token_capa.c is_redirect_validate.c
BUILTIN_SRC = cd.c exit.c pwd.c echo.c env.c unset.c \
Expand Down
6 changes: 4 additions & 2 deletions inc/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
/* ::: :::::::: */
/* main.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dayano <dayano@student.42.fr> +#+ +:+ +#+ */
/* By: ttsubo <ttsubo@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/04/03 12:50:38 by ttsubo #+# #+# */
/* Updated: 2025/04/21 13:39:36 by dayano ### ########.fr */
/* Updated: 2025/04/24 12:13:49 by ttsubo ### ########.fr */
/* */
/* ************************************************************************** */

Expand All @@ -31,4 +31,6 @@
# include <stdlib.h>
# include <unistd.h>

t_cmd *parse_command_line(char *line);

#endif
25 changes: 25 additions & 0 deletions src/debug.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* debug.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ttsubo <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/04/24 12:09:42 by ttsubo #+# #+# */
/* Updated: 2025/04/24 12:12:26 by ttsubo ### ########.fr */
/* */
/* ************************************************************************** */

#include "main.h"

t_cmd *parse_command_line(char *line)
{
(void)line;
return (NULL);
}

int invoke_commands(t_cmd *cmd)
{
(void)cmd;
return (0);
}
14 changes: 1 addition & 13 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: ttsubo <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/04/03 12:50:11 by ttsubo #+# #+# */
/* Updated: 2025/04/21 13:59:35 by ttsubo ### ########.fr */
/* Updated: 2025/04/24 12:10:52 by ttsubo ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -40,18 +40,6 @@ static void _free_tokens(char **tokens)
tokens = NULL;
}

t_cmd *parse_command_line(char *line)
{
(void)line;
return (NULL);
}

int invoke_commands(t_cmd *cmd)
{
(void)cmd;
return (0);
}

static void destroy_minish(t_minish *minish)
{
cleanup_minish(minish);
Expand Down