You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -22,7 +22,8 @@ Please, report this error to i-Code CNES maintainers to improve the tool: <a hre
22
22
<key>COM.DATA.FloatCompare</key>
23
23
<name>COM.DATA.FloatCompare</name>
24
24
<internalKey>*</internalKey>
25
-
<description>Equality and non equality (.EQ., ==, .NE., /=) are forbidden on reals (REAL, DOUBLE PRECISION, COMPLEX).</description>
25
+
<description>Equality and non equality (.EQ., ==, .NE., /=) are forbidden on reals (REAL,
26
+
DOUBLE PRECISION, COMPLEX).</description>
26
27
<severity>MAJOR</severity>
27
28
<status>READY</status>
28
29
<type>CODE_SMELL</type>
@@ -32,7 +33,8 @@ Please, report this error to i-Code CNES maintainers to improve the tool: <a hre
32
33
<key>COM.DATA.Initialisation</key>
33
34
<name>COM.DATA.Initialisation</name>
34
35
<internalKey>*</internalKey>
35
-
<description>Variables have to be initialized before being used. When a variable is used, the algorithm should checked if it is initialized and if not throw an error.</description>
36
+
<description>Variables have to be initialized before being used. When a variable is used,
37
+
the algorithm should checked if it is initialized and if not throw an error.</description>
36
38
<severity>MAJOR</severity>
37
39
<status>READY</status>
38
40
<type>CODE_SMELL</type>
@@ -42,7 +44,8 @@ Please, report this error to i-Code CNES maintainers to improve the tool: <a hre
42
44
<key>COM.DATA.Invariant</key>
43
45
<name>COM.DATA.Invariant</name>
44
46
<internalKey>*</internalKey>
45
-
<description>Data declared into subroutine, function, ... and which are never modified then should be declared as constant.</description>
47
+
<description>Data declared into subroutine, function, ... and which are never modified then
48
+
should be declared as constant.</description>
46
49
<severity>MAJOR</severity>
47
50
<status>READY</status>
48
51
<type>CODE_SMELL</type>
@@ -72,7 +75,9 @@ Please, report this error to i-Code CNES maintainers to improve the tool: <a hre
72
75
<key>COM.DESIGN.Alloc</key>
73
76
<name>COM.DESIGN.Alloc</name>
74
77
<internalKey>*</internalKey>
75
-
<description>Allocation and desallocation of ressources should be in the same level. For each “DEALLOCATE” keyword found, i-Code CNES checks that the keyword “ALLOCATE” is also found and checks that they are relative to the same resource.</description>
78
+
<description>Allocation and desallocation of ressources should be in the same level. For
79
+
each “DEALLOCATE” keyword found, i-Code CNES checks that the keyword “ALLOCATE” is also
80
+
found and checks that they are relative to the same resource.</description>
76
81
<severity>MAJOR</severity>
77
82
<status>READY</status>
78
83
<type>CODE_SMELL</type>
@@ -102,7 +107,8 @@ Please, report this error to i-Code CNES maintainers to improve the tool: <a hre
102
107
<key>COM.FLOW.BooleanExpression</key>
103
108
<name>COM.FLOW.BooleanExpression</name>
104
109
<internalKey>*</internalKey>
105
-
<description>In a condition (IF,DO), maximum number of operands is 5 (AND, OR, NEQV, XOR, EQV, NOT, LT, <, LE, <=, GT, >, GE, >=, EQ, ==, NE, /=).</description>
110
+
<description>In a condition (IF,DO), maximum number of operands is 5 (AND, OR, NEQV, XOR,
@@ -152,7 +158,8 @@ Please, report this error to i-Code CNES maintainers to improve the tool: <a hre
152
158
<key>COM.FLOW.FileExistence</key>
153
159
<name>COM.FLOW.FileExistence</name>
154
160
<internalKey>*</internalKey>
155
-
<description>File opening (OPEN, READ, WRITE) should be done after using INQUIRE and EXIST instruction of this file.</description>
161
+
<description>File opening (OPEN, READ, WRITE) should be done after using INQUIRE and EXIST
162
+
instruction of this file.</description>
156
163
<severity>MAJOR</severity>
157
164
<status>READY</status>
158
165
<type>CODE_SMELL</type>
@@ -162,7 +169,8 @@ Please, report this error to i-Code CNES maintainers to improve the tool: <a hre
162
169
<key>COM.FLOW.FilePath</key>
163
170
<name>COM.FLOW.FilePath</name>
164
171
<internalKey>*</internalKey>
165
-
<description>In the OPEN instruction, it is forbidden to use directly the file name (file.txt). Path should be defined through a variable.</description>
172
+
<description>In the OPEN instruction, it is forbidden to use directly the file name
173
+
(file.txt). Path should be defined through a variable.</description>
166
174
<severity>MAJOR</severity>
167
175
<status>READY</status>
168
176
<type>CODE_SMELL</type>
@@ -172,9 +180,10 @@ Please, report this error to i-Code CNES maintainers to improve the tool: <a hre
172
180
<key>COM.INST.BoolNegation</key>
173
181
<name>COM.INST.BoolNegation</name>
174
182
<internalKey>*</internalKey>
175
-
<description>Double negation is forbidden on Boolean expressions. Negations are defined with the keyword « NOT ». Following expressions are not allowed:
176
-
NOT. (.NOT. a) -> ( a )
177
-
.NOT. ( a .AND. .NOT. b) -> .NOT. a .OR. b</description>
183
+
<description>Double negation is forbidden on Boolean expressions. Negations are defined with
184
+
the keyword « NOT ». Following expressions are not allowed:
185
+
NOT. (.NOT. a) -> ( a )
186
+
.NOT. ( a .AND. .NOT. b) -> .NOT. a .OR. b</description>
178
187
<severity>MAJOR</severity>
179
188
<status>READY</status>
180
189
<type>CODE_SMELL</type>
@@ -194,7 +203,8 @@ Please, report this error to i-Code CNES maintainers to improve the tool: <a hre
194
203
<key>COM.INST.CodeComment</key>
195
204
<name>COM.INST.CodeComment</name>
196
205
<internalKey>*</internalKey>
197
-
<description>Commented code is forbidden. i-Code CNES checks all keywords in comments, except in the header.</description>
206
+
<description>Commented code is forbidden. i-Code CNES checks all keywords in comments,
207
+
except in the header.</description>
198
208
<severity>MAJOR</severity>
199
209
<status>READY</status>
200
210
<type>CODE_SMELL</type>
@@ -246,11 +256,11 @@ Please, report this error to i-Code CNES maintainers to improve the tool: <a hre
246
256
<internalKey>*</internalKey>
247
257
<description>Source code should be indented with spaces:
248
258
DO i = 2, nb
249
-
somme = somme + x(i)
250
-
IF (isnan(somme)) THEN
251
-
print *, 'somme is a NaN'
252
-
moy = -1.0
253
-
END IF
259
+
somme = somme + x(i)
260
+
IF (isnan(somme)) THEN
261
+
print *, 'somme is a NaN'
262
+
moy = -1.0
263
+
END IF
254
264
END DO
255
265
</description>
256
266
<severity>MAJOR</severity>
@@ -272,7 +282,8 @@ Please, report this error to i-Code CNES maintainers to improve the tool: <a hre
272
282
<key>COM.TYPE.Expression</key>
273
283
<name>COM.TYPE.Expression</name>
274
284
<internalKey>*</internalKey>
275
-
<description>In a expression (defined by operator like +, -, /, *, **) all variables should have the same type : REAL, INTEGER, …</description>
285
+
<description>In a expression (defined by operator like +, -, /, *, **) all variables should
286
+
have the same type : REAL, INTEGER, …</description>
276
287
<severity>MAJOR</severity>
277
288
<status>READY</status>
278
289
<type>CODE_SMELL</type>
@@ -302,7 +313,8 @@ Please, report this error to i-Code CNES maintainers to improve the tool: <a hre
302
313
<key>F77.BLOC.Function</key>
303
314
<name>F77.BLOC.Function</name>
304
315
<internalKey>*</internalKey>
305
-
<description>Parameter’s braces should be used when defining a FUNCTION whenever there is no parameter.</description>
316
+
<description>Parameter’s braces should be used when defining a FUNCTION whenever there is no
317
+
parameter.</description>
306
318
<severity>MAJOR</severity>
307
319
<status>READY</status>
308
320
<type>CODE_SMELL</type>
@@ -322,7 +334,8 @@ Please, report this error to i-Code CNES maintainers to improve the tool: <a hre
322
334
<key>F77.DATA.Array</key>
323
335
<name>F77.DATA.Array</name>
324
336
<internalKey>*</internalKey>
325
-
<description>Arrays dimension should be declared explicitly. The use of * is tolerated for the last one if justified with a comment.</description>
337
+
<description>Arrays dimension should be declared explicitly. The use of * is tolerated for
338
+
the last one if justified with a comment.</description>
326
339
<severity>MAJOR</severity>
327
340
<status>READY</status>
328
341
<type>CODE_SMELL</type>
@@ -342,7 +355,8 @@ Please, report this error to i-Code CNES maintainers to improve the tool: <a hre
342
355
<key>F77.DATA.Double</key>
343
356
<name>F77.DATA.Double</name>
344
357
<internalKey>*</internalKey>
345
-
<description>In a constant initialisation or in an expression evaluation, the use of (D) (as double precision is mandatory.</description>
358
+
<description>In a constant initialisation or in an expression evaluation, the use of (D) (as
359
+
double precision is mandatory.</description>
346
360
<severity>MAJOR</severity>
347
361
<status>READY</status>
348
362
<type>CODE_SMELL</type>
@@ -382,7 +396,8 @@ Please, report this error to i-Code CNES maintainers to improve the tool: <a hre
382
396
<key>F77.DATA.Parameter</key>
383
397
<name>F77.DATA.Parameter</name>
384
398
<internalKey>*</internalKey>
385
-
<description>The use of constants, computed values or function calls as function parameters is forbidden.</description>
399
+
<description>The use of constants, computed values or function calls as function parameters
400
+
is forbidden.</description>
386
401
<severity>MAJOR</severity>
387
402
<status>READY</status>
388
403
<type>CODE_SMELL</type>
@@ -392,7 +407,8 @@ Please, report this error to i-Code CNES maintainers to improve the tool: <a hre
392
407
<key>F77.ERR.OpenRead</key>
393
408
<name>F77.ERR.OpenRead</name>
394
409
<internalKey>*</internalKey>
395
-
<description>The check of return status for instructions OPEN and READ is mandatory. It is recommended to use “IOSTAT = “ to do it.</description>
410
+
<description>The check of return status for instructions OPEN and READ is mandatory. It is
411
+
recommended to use “IOSTAT = “ to do it.</description>
396
412
<severity>MAJOR</severity>
397
413
<status>READY</status>
398
414
<type>CODE_SMELL</type>
@@ -432,7 +448,8 @@ Please, report this error to i-Code CNES maintainers to improve the tool: <a hre
432
448
<key>F77.INST.Function</key>
433
449
<name>F77.INST.Function</name>
434
450
<internalKey>*</internalKey>
435
-
<description>FUNCTION instruction should be used with an explicite type declaration, at function definition.</description>
451
+
<description>FUNCTION instruction should be used with an explicite type declaration, at
452
+
function definition.</description>
436
453
<severity>MAJOR</severity>
437
454
<status>READY</status>
438
455
<type>CODE_SMELL</type>
@@ -452,7 +469,9 @@ Please, report this error to i-Code CNES maintainers to improve the tool: <a hre
452
469
<key>F77.INST.Include</key>
453
470
<name>F77.INST.Include</name>
454
471
<internalKey>*</internalKey>
455
-
<description>If instruction INCLUDE is used, the included file should not contain executable instructions. (ASSIGN, GOTO, IF, ELSE, CONTINUE, STOP, PAUSE ; DO, READ, WRITE, PRINT, REWIND ; BACKSPACE, ENDFILE, OPEN, CLOSE, INQUIER, CALL, RETURN, END).</description>
472
+
<description>If instruction INCLUDE is used, the included file should not contain executable
@@ -482,7 +501,8 @@ Please, report this error to i-Code CNES maintainers to improve the tool: <a hre
482
501
<key>F77.INST.Save</key>
483
502
<name>F77.INST.Save</name>
484
503
<internalKey>*</internalKey>
485
-
<description>SAVE instruction is forbidden except for local variables with justification in a comment.</description>
504
+
<description>SAVE instruction is forbidden except for local variables with justification in
505
+
a comment.</description>
486
506
<severity>MAJOR</severity>
487
507
<status>READY</status>
488
508
<type>CODE_SMELL</type>
@@ -572,9 +592,10 @@ Please, report this error to i-Code CNES maintainers to improve the tool: <a hre
572
592
<key>F77.REF.Parameter</key>
573
593
<name>F77.REF.Parameter</name>
574
594
<internalKey>*</internalKey>
575
-
<description>It is forbidden to set as subroutine parameter variables which are already in a COMMON bloc accessible from the subroutine and the program which calls it.</description>
595
+
<description>It is forbidden to set as subroutine parameter variables which are already in a
596
+
COMMON bloc accessible from the subroutine and the program which calls it.</description>
0 commit comments