Skip to content

Commit 6093cdd

Browse files
committed
Install Git pre-commit hook for consistent style
1 parent 7882987 commit 6093cdd

File tree

7 files changed

+651
-6
lines changed

7 files changed

+651
-6
lines changed

.gitignore

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
.*.ko.cmd
2-
.*.o.cmd
3-
*.symvers
4-
*.order
51
*.o
62
*.ko
3+
*.mod
74
*.mod.c
5+
*.mod.o
6+
*.order
7+
*.cmd
8+
*.symvers
9+
user

Makefile

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
NAME = simrupt
22
obj-m := $(NAME).o
33

4-
KDIR ?= /lib/modules/`uname -r`/build
4+
KDIR ?= /lib/modules/$(shell uname -r)/build
55
PWD := $(shell pwd)
66

7-
all:
7+
GIT_HOOKS := .git/hooks/applied
8+
all: $(GIT_HOOKS) simrupt.c
89
$(MAKE) -C $(KDIR) M=$(PWD) modules
910

11+
$(GIT_HOOKS):
12+
@scripts/install-git-hooks
13+
@echo
14+
15+
1016
clean:
1117
$(MAKE) -C $(KDIR) M=$(PWD) clean

scripts/aspell-pws

+179
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,179 @@
1+
personal_ws-1.1 en 500
2+
usr
3+
lib
4+
sbin
5+
env
6+
bash
7+
etc
8+
var
9+
dudect
10+
runtime
11+
todo
12+
fixme
13+
hotfix
14+
qtest
15+
vscode
16+
sanitizer
17+
unix
18+
linux
19+
valgrind
20+
ubuntu
21+
gdb
22+
sdk
23+
aspell
24+
cppcheck
25+
glibc
26+
git
27+
pre
28+
gcc
29+
clang
30+
enqueue
31+
dequeue
32+
fifo
33+
lifo
34+
stdin
35+
stdout
36+
stderr
37+
strdup
38+
strcmp
39+
strcasecmp
40+
snprintf
41+
sprintf
42+
strcat
43+
strchr
44+
strcmp
45+
strcoll
46+
strcpy
47+
strcspn
48+
strerror
49+
strlen
50+
strncasecmp
51+
strncat
52+
strncmp
53+
strncpy
54+
strpbrk
55+
strrchr
56+
strspn
57+
strstr
58+
strtod
59+
strtof
60+
strtok
61+
strtol
62+
strtold
63+
strtoul
64+
atexit
65+
atof
66+
atoi
67+
atol
68+
bsearch
69+
calloc
70+
fclose
71+
fdopen
72+
feof
73+
ferror
74+
fflush
75+
fgetc
76+
fgetpos
77+
fgets
78+
fileno
79+
fopen
80+
fprintf
81+
fputc
82+
fputs
83+
fread
84+
freopen
85+
fscanf
86+
fseek
87+
fsetpos
88+
ftell
89+
fwrite
90+
getc
91+
getchar
92+
getenv
93+
gets
94+
isalnum
95+
isalpha
96+
isascii
97+
iscntrl
98+
isdigit
99+
isgraph
100+
islower
101+
isprint
102+
ispunct
103+
isspace
104+
isupper
105+
longjmp
106+
memchr
107+
memcmp
108+
memcpy
109+
memmove
110+
memset
111+
printf
112+
putc
113+
putchar
114+
putenv
115+
puts
116+
qsort
117+
rand
118+
realloc
119+
regcomp
120+
regerror
121+
regexec
122+
regfree
123+
rewind
124+
scanf
125+
setbuf
126+
setjmp
127+
signal
128+
srand
129+
sscanf
130+
macOS
131+
Fibonacci
132+
fib
133+
pow
134+
Binet
135+
Vorobev
136+
GMP
137+
MPFR
138+
mutex
139+
trylock
140+
unlock
141+
lseek
142+
llseek
143+
cdev
144+
inode
145+
sysfs
146+
printk
147+
clz
148+
fops
149+
init
150+
alloc
151+
ktime
152+
getres
153+
gettime
154+
settime
155+
ns
156+
timespec
157+
timeval
158+
xor
159+
xoro
160+
xoroshiro
161+
prng
162+
ksort
163+
cmwq
164+
workqueue
165+
spinlock
166+
tasklet
167+
kmalloc
168+
kzalloc
169+
kfree
170+
xoroshiro
171+
xoro
172+
RNG
173+
PRNG
174+
gitignore
175+
fifo
176+
kfifo
177+
PTR
178+
ttt
179+
tictactoe

0 commit comments

Comments
 (0)