<aside> 💡 norminette v2 기준입니다.

</aside>

<aside> 💡 norminette error 명은 /header2 로 작성해주세요. x 는 /Emoji x 입니다.

</aside>

❌ wrong number of spaces in preprocessor indentation

#define, #include 작성 시 # 과 define 사이에 공백이 없어서 발생.

#ifndef GET_NEXT_LINE_H
# define GET_NEXT_LINE_H

# include <unistd.h>
# include <stdlib.h>

#endif

⚠️ 주의할 점

아래 코드 처럼 #ifndef 안에 #ifndef 가 있으면, 해당 depth 만큼 #과 define 사이에 공백이 필요하다.

line 6은 # 과 define 사이에 공백이 2개.

1 #ifndef GET_NEXT_LINE_H
2 # define GET_NEXT_LINE_H

3 # include <unistd.h>
4 # include <stdlib.h>

5 # ifndef BUFFER_SIZE
6 #  define BUFFER_SIZE 1
7 # endif

❌ has double inclusion protection but not with the good define name

헤더 파일 include guard 의 이름과 파일의 이름이 일치하지 않아 발생.

https://meta.intra.42.fr/articles/norm-norminette-b1b74c82-5ba1-4e43-b02e-0101727e661c

https://meta.intra.42.fr/articles/norm-norminette-b1b74c82-5ba1-4e43-b02e-0101727e661c

❌ 42 header must be followed by one empty line

42header 와 코드 첫 라인 사이 공백이 없어 발생.

/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   CoolFunSexy.c                                      :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: 42 <[email protected]>                 +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2021/05/14 14:15:51 by 42                #+#    #+#             */
/*   Updated: 2021/05/17 20:20:30 by 42               ###   ########.fr       */
/*                                                                            */
/* ************************************************************************** */
<-   공백   ->
#include "CoolFunSexy.h"