File: text.rules

package info (click to toggle)
acheck-rules-fr 0.5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 64 kB
  • ctags: 3
  • sloc: makefile: 35
file content (133 lines) | stat: -rw-r--r-- 1,951 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
list
	name	root
	type	loop
	test	0
	
#include common

rule
	name	avant :
	regex	(\S+):
	type	fix
	hint	Espace inscable avant les deux-points, cf. FAQ  5.1
	fix	$1:
	valid						# url
			in	(ftp|http|file):$
			post	"^//"
	valid						# Module Perl 1
			name	valid perl module
			in	::$
	valid
			in	:$
rule
	name	aprs :
	regex	:(\S)
	type	fix
	hint	Espace normale aprs les deux-points, cf. FAQ  5.1
	fix	: $1
	valid						# url
			pre	(ftp|http|file)$
			in	:/
			post	^/
	valid	valid perl module

rule
	name	avant ;
	regex	(\S);
	type	fix
	hint	Espace inscable avant le point-virgule, cf. FAQ  5.1
	fix	$1;
	valid
			in	;
rule
	name	aprs ;
	regex	;(\S)
	type	fix
	hint	Espace normale aprs le point-virgule, cf. FAQ  5.1
	fix	; $1

rule
	name	avant !
	regex	(\S)!
	type	fix
	hint	Espace inscable avant le point d'exclamation, cf. FAQ  5.1
	fix	$1!
	valid
			in	!
rule
	name	aprs !
	regex	!(\S)
	type	fix
	hint	Espace normale aprs le point d'exclamation, cf. FAQ  5.1
	fix	! $1
	valid						# !) et !=
		in	!(\)|=)

rule
	name	avant ?
	regex	(\S)\?
	type	fix
	hint	Espace inscable avant le point d'interrogation, cf. FAQ  5.1
	fix	$1?
	valid
			in	\?
rule
	name	aprs ?
	regex	\?(\S)
	type	fix
	hint	Espace normale aprs le point d'interrogation, cf. FAQ  5.1
	fix	? $1
	valid						# ?)
		in	\?\)

rule
	regex	(\S)
	type	fix
	hint	Espace inscable aprs   , cf. FAQ  5.1
	fix	$1
	valid
			in	

rule
	regex	(\S)
	type	fix
	hint	Espace inscable avant   , cf. FAQ  5.1
	fix	$1
	valid
			in	

rule
	regex	n(\S)
	type	fix
	hint	Espace inscable aprs  n 
	fix	n$1
	valid
			in	n

rule
	regex	(|n) (\S)
	type	fix
	hint	Espace inscable
	fix	$1$2

rule
	regex	(\S) (:|;|!|\?|)
	type	fix
	hint	Espace inscable
	fix	$1$2

rule
	regex	\s+
	type	fix
	hint	Pas d'espace avant un espace inscable
	fix	

rule
	regex	\s+
	type	fix
	hint	Pas d'espace aprs un espace inscable
	fix	

rule
	type	nop
end_list