Skip to content

Commit 62200c7

Browse files
committed
Remove the impact rule attribute
Impacts data are now directly fetched from impact-db
1 parent 80d920a commit 62200c7

File tree

95 files changed

+92
-141
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+92
-141
lines changed

lkql_checker/share/lkql/kp/KP-18614.lkql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ fun multiple_of(v, multiple) = v / multiple * multiple == v
44

55
@check(help="possible occurrence of KP 18614",
66
message="possible occurrence of KP 18614 if compiled with optimization",
7-
impact="2[0-3].*", target="powerpc*,leon*,sparc*")
7+
target="powerpc*,leon*,sparc*")
88
fun kp_18614(node) =
99
node is Aggregate(p_expression_type():
1010
t@BaseTypeDecl(p_is_array_type(): true)

lkql_checker/share/lkql/kp/KP-18636.lkql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Flag 'Image applied to objects of a class-wide interface type
22

3-
@check(message="possible occurrence of KP 18636", impact="22.*,23.*")
3+
@check(message="possible occurrence of KP 18636")
44
fun kp_18636(node) =
55
node is AttributeRef
66
when node.f_attribute.p_name_is("Image")

lkql_checker/share/lkql/kp/KP-18637.lkql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import stdlib
55

6-
@check(message="possible occurrence of KP 18637", impact="23.*")
6+
@check(message="possible occurrence of KP 18637")
77
fun kp_18637(node) =
88
node is CallExpr(
99
f_name: Name(

lkql_checker/share/lkql/kp/KP-18701.lkql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import stdlib
55

6-
@check(message="possible occurrence of KP 18701", impact="23.*")
6+
@check(message="possible occurrence of KP 18701")
77
fun kp_18701(node) =
88
node is Aggregate
99
when node.p_expression_type() is BaseTypeDecl(

lkql_checker/share/lkql/kp/KP-18718.lkql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
# variant part
55

66
@check(help="possible occurrence of KP 18718",
7-
message="possible occurrence of KP 18718 if compiled with optimization",
8-
impact="23.*")
7+
message="possible occurrence of KP 18718 if compiled with optimization")
98
fun kp_18718(node) =
109
node is ObjectDecl(
1110
# An ObjectDecl with a default expression being a function call

lkql_checker/share/lkql/kp/KP-18801.lkql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ fun check_params(n) = {
4545
}
4646

4747
@check(help="possible occurrence of KP 18801",
48-
message="possible occurrence of KP 18801",
49-
impact="23.*")
48+
message="possible occurrence of KP 18801")
5049
fun kp_18801(node) =
5150
node is (BinOp(f_op: OpEq) |
5251
CallExpr(p_kind(): "call") when node.f_name.p_name_is("\"=\""))

lkql_checker/share/lkql/kp/KP-18926.lkql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ fun is_flagged_aspect(aspect) =
2020
| * => false
2121

2222
@check(help="possible occurrence of KP 18926",
23-
message="possible occurrence of KP 18926",
24-
impact="23.*,24.1")
23+
message="possible occurrence of KP 18926")
2524
fun kp_18926(node) =
2625
node is BracketAggregate
2726
when is_flagged_aspect(node.p_expression_type().p_get_aspect("Aggregate"))

lkql_checker/share/lkql/kp/KP-19038.lkql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
@check(help="possible occurrence of KP 19038",
2-
message="possible occurrence of KP 19038",
3-
impact="24.1")
2+
message="possible occurrence of KP 19038")
43
fun kp_19038(node) =
54
|" Detect all occurrences of aspect "Exclusive_Functions".
65
node is AspectAssoc(

lkql_checker/share/lkql/kp/KP-19134.lkql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ fun is_unck_conv_to_array_of_int(call) =
2626
}
2727

2828
@check(help="possible occurrence of KP 19134",
29-
message="possible occurrence of KP 19134",
30-
impact="23.*,24.*")
29+
message="possible occurrence of KP 19134")
3130
fun kp_19134(node) =
3231
node is CallExpr(p_is_call(): true)
3332
when stdlib.any([is_unck_conv_to_array_of_int(p.actual)

lkql_checker/share/lkql/kp/KP-19142.lkql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ fun is_unconstrained_discriminated(type_decl) =
3333
| * => false
3434

3535
@check(help="possible occurrence of KP 19142",
36-
message="possible occurrence of KP 19142",
37-
impact="24.*")
36+
message="possible occurrence of KP 19142")
3837
fun kp_19142(node) =
3938
node is SubpBody
4039
# Check that the subprogram is overriding

0 commit comments

Comments
 (0)