Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
27a21c2f
Commit
27a21c2f
authored
5 years ago
by
Virgile Prevosto
Browse files
Options
Downloads
Patches
Plain Diff
[sarif] add user-spec rule
parent
21dd0939
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/markdown-report/sarif_gen.ml
+11
-3
11 additions, 3 deletions
src/plugins/markdown-report/sarif_gen.ml
with
11 additions
and
3 deletions
src/plugins/markdown-report/sarif_gen.ml
+
11
−
3
View file @
27a21c2f
...
...
@@ -130,10 +130,18 @@ let make_rule_dictionary rules = Datatype.String.Map.fold add_rule rules []
let
gen_run
remarks
=
let
tool
=
frama_c_sarif
in
let
invocations
=
[
gen_invocation
()
]
in
let
used_alarms
,
results
=
gen_results
remarks
in
let
rules
=
make_rule_dictionary
used_alarms
in
let
rules
,
results
=
gen_results
remarks
in
let
user_annot_results
=
gen_statuses
()
in
let
rules
=
match
user_annot_results
with
|
[]
->
rules
|
_
->
Datatype
.
String
.
Map
.
add
"user-spec"
"User written ACSL specification"
rules
in
let
rules
=
make_rule_dictionary
rules
in
let
resources
=
Resources
.
create
~
rules
()
in
let
results
=
results
@
(
gen_statuses
()
)
in
let
results
=
results
@
user_annot_results
in
let
files
=
gen_files
()
in
Run
.
create
~
tool
~
invocations
~
results
~
resources
~
files
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment