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

Custom Rule: Analyse more than one file #80

Open
khirzer opened this issue Aug 31, 2018 · 1 comment
Open

Custom Rule: Analyse more than one file #80

khirzer opened this issue Aug 31, 2018 · 1 comment

Comments

@khirzer
Copy link

khirzer commented Aug 31, 2018

Hi!

Is it possible to analyse more than one file with a custom rule?

Background:
We have separated our PL/SQL files. There is one file for the package specification and one file for the package body. Now I want to create a rule regarding the hint 'nocopy': If 'nocopy' is set at a parameter in the package specification it should also be set at the parameter in the package body.

Example:
File specification.pks

create or replace package Test authid current_user is
    procedure test (clobData in out nocopy clob);
end Test;

File body.pkb

create or replace package body Test is
    procedure test (clobData in out clob) is -- Noncompliant - 'nocopy' is missing at parameter 'clobData'
    begin
        null;
    end;
end Test;

Thank you!

@felipebz
Copy link
Owner

felipebz commented Sep 3, 2018

Hi @khirzer. Unfortunately, this is not possible currently.

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

No branches or pull requests

2 participants