|
8 | 8 | Package to contain functions which test for UMDP3 compliance. |
9 | 9 | Python translation of the original Perl UMDP3.pm module. |
10 | 10 | """ |
11 | | -""" |
12 | | -ToDo : Several of the test functions are poor shadows of the original |
13 | | - Perl versions. They would benefit from improving to catch more |
14 | | - cases. |
15 | | - Equally, there could probably be more consistancly in how things like comments are stripped from the ends of lines |
16 | | - and/or full comment lines are skipped. |
17 | | -""" |
| 11 | + |
18 | 12 | import re |
19 | 13 | import threading |
20 | | -from typing import List, Dict, Set |
| 14 | +from typing import List, Dict |
21 | 15 | from fortran_keywords import fortran_keywords |
22 | 16 | from search_lists import ( |
23 | 17 | obsolescent_intrinsics, |
24 | | - openmp_keywords, |
25 | | - fortran_types, |
26 | 18 | unseparated_keywords_list, |
27 | 19 | retired_ifdefs, |
28 | 20 | deprecated_c_identifiers, |
29 | 21 | ) |
30 | 22 | from dataclasses import dataclass, field |
31 | 23 |
|
| 24 | +""" |
| 25 | +ToDo : Several of the test functions are poor shadows of the original |
| 26 | + Perl versions. They would benefit from improving to catch more |
| 27 | + cases. |
| 28 | + Equally, there could probably be more consistancly in how things like comments are stripped from the ends of lines |
| 29 | + and/or full comment lines are skipped. |
| 30 | +""" |
| 31 | + |
32 | 32 | # Declare version |
33 | 33 | VERSION = "13.5.0" |
34 | 34 |
|
@@ -203,7 +203,7 @@ def openmp_sentinels_in_column_one(self, lines: List[str]) -> TestResult: |
203 | 203 | self.add_extra_error("OpenMP sentinel not in column 1") |
204 | 204 | failures += 1 |
205 | 205 | error_log = self.add_error_log( |
206 | | - error_log, f"OpenMP sentinel not in column 1:", count + 1 |
| 206 | + error_log, "OpenMP sentinel not in column 1:", count + 1 |
207 | 207 | ) |
208 | 208 | output = f"Checked {count+1} lines, found {failures} failures." |
209 | 209 | return TestResult( |
|
0 commit comments