Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Decoder
pkm-api
Commits
a7bf4a2b
Commit
a7bf4a2b
authored
Mar 12, 2022
by
Armand PUCCETTI
Browse files
turning mdr plugin off for testing purposes
parent
35e540c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
util/frama_c.js
View file @
a7bf4a2b
...
...
@@ -525,24 +525,24 @@ function frama_c(file_system, compile_commands, mode, options = {})
}));
}
if
(
steps
.
includes
(
'
mdr-gen
'
))
{
promises
.
push
(
new
Promise
((
resolve
,
reject
)
=>
{
const
report_abs_path
=
path
.
join
(
working_directory
,
'
report.json
'
);
oboe
(
fs
.
createReadStream
(
report_abs_path
)).
done
((
document
)
=>
{
const
new_document
=
frama_c_document_fixer
.
fix
(
document
,
'
uri
'
);
frama_c_result
.
report
=
new_document
;
//
if(steps.includes('mdr-gen'))
//
{
//
promises.push(new Promise((resolve, reject) =>
//
{
//
const report_abs_path = path.join(working_directory, 'report.json');
//
oboe(fs.createReadStream(report_abs_path)).done((document) =>
//
{
//
const new_document = frama_c_document_fixer.fix(document, 'uri');
//
frama_c_result.report = new_document;
resolve
();
}).
fail
((
oboe_err
)
=>
{
logger
.
errors
(
'
In File
\'
report.json
\'
,
'
+
JSON
.
stringify
(
deep_copy
(
oboe_err
)));
reject
(
oboe_err
);
});
}));
}
//
resolve();
//
}).fail((oboe_err) =>
//
{
//
logger.errors('In File \'report.json\', ' + JSON.stringify(deep_copy(oboe_err)));
//
reject(oboe_err);
//
});
//
}));
//
}
Promise
.
all
(
promises
).
then
(()
=>
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment