Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate metrics for rpc sub, generate sarif format #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

leonid-deriv
Copy link
Owner

This PR has number of improvements (unfortunately). It should have been better to split it into multiple PRs... but the amount of changes is not that big.

  1. IT can handle the rpc method constructs like rpc get_settings => sub { } or like this rpc "statement",
    category => 'account',
    sub {
  2. generate SARIF file format https://docs.oasis-open.org/sarif/sarif/v2.0/csprd01/sarif-v2.0-csprd01.html
  3. disable all output except json based on -j flag

@@ -51,7 +51,14 @@ sub _init {
= Perl::Metrics::Lite::Analysis::Util::get_packages($document);

my @sub_analysis = ();
my $sub_elements = $document->find('PPI::Statement::Sub');
#my $sub_elements = $document->find('PPI::Statement::Sub');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we remove it? bcoz we can check this history if it is needed.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, we obviously can remove iut

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants