diff --git a/.github/workflows/norm.yml b/.github/workflows/norm.yml index 9f59de2..70b135b 100644 --- a/.github/workflows/norm.yml +++ b/.github/workflows/norm.yml @@ -2,9 +2,6 @@ name: Norminette Check on: pull_request: - paths: - - '**.c' - - '**.h' jobs: norm: @@ -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 \ No newline at end of file diff --git a/Makefile b/Makefile index 42fcee0..e995f52 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ # By: ttsubo +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # 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 # # # # **************************************************************************** # @@ -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 \ diff --git a/inc/main.h b/inc/main.h index 4f1cf4e..f9e3dda 100644 --- a/inc/main.h +++ b/inc/main.h @@ -3,10 +3,10 @@ /* ::: :::::::: */ /* main.h :+: :+: :+: */ /* +:+ +:+ +:+ */ -/* By: dayano +#+ +:+ +#+ */ +/* By: ttsubo +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* 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 */ /* */ /* ************************************************************************** */ @@ -31,4 +31,6 @@ # include # include +t_cmd *parse_command_line(char *line); + #endif diff --git a/src/debug.c b/src/debug.c new file mode 100644 index 0000000..e600607 --- /dev/null +++ b/src/debug.c @@ -0,0 +1,25 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* debug.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: ttsubo +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* 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); +} diff --git a/src/main.c b/src/main.c index 91dc0b6..31e8d29 100644 --- a/src/main.c +++ b/src/main.c @@ -6,7 +6,7 @@ /* By: ttsubo +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* 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 */ /* */ /* ************************************************************************** */ @@ -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);