Merge pull request #647 from jeremiah-c-leary/issue-646

Updates for issue #646
This commit is contained in:
Jeremiah Leary 2021-10-24 15:21:00 -05:00 committed by GitHub
commit 2fe9170d3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 26 additions and 16 deletions

View File

@ -7,6 +7,7 @@ lAlign = []
lAlign.append(token.interface_signal_declaration.colon)
lAlign.append(token.interface_constant_declaration.colon)
lAlign.append(token.interface_variable_declaration.colon)
lAlign.append(token.interface_unknown_declaration.colon)
class rule_410(align_tokens_in_region_between_tokens):

View File

@ -7,6 +7,7 @@ lAlign = []
lAlign.append(token.interface_signal_declaration.assignment)
lAlign.append(token.interface_constant_declaration.assignment)
lAlign.append(token.interface_variable_declaration.assignment)
lAlign.append(token.interface_unknown_declaration.assignment)
class rule_411(align_tokens_in_region_between_tokens):

View File

@ -8,14 +8,16 @@ package FIFO_PKG is
procedure AVERAGE_SAMPLES (
constant a : in integer;
signal b : in std_logic;
variable c : in std_logic);
variable c : in std_logic;
some_sig : inout t_some_type);
-- Violations below this line
procedure AVERAGE_SAMPLES (
constant a : in integer;
signal b : in std_logic;
variable ccc : in std_logic);
variable ccc : in std_logic;
some_sig : inout t_some_type);
end package FIFO_PKG;

View File

@ -8,14 +8,16 @@ package FIFO_PKG is
procedure AVERAGE_SAMPLES (
constant a : in integer;
signal b : in std_logic;
variable c : in std_logic);
variable c : in std_logic;
some_sig : inout t_some_type);
-- Violations below this line
procedure AVERAGE_SAMPLES (
constant a : in integer;
signal b : in std_logic;
variable ccc : in std_logic);
variable ccc : in std_logic;
some_sig : inout t_some_type);
end package FIFO_PKG;

View File

@ -6,16 +6,18 @@ package FIFO_PKG is
procedure AVERAGE_SAMPLES (constant a : in integer := 0; signal b : in std_logic := 'X'; variable c : in std_logic := 'X');
procedure AVERAGE_SAMPLES (
constant a : in integer := 0;
signal b : in std_logic := 'X';
variable c : in std_logic := 'X');
constant a : in integer := 0;
signal b : in std_logic := 'X';
variable c : in std_logic := 'X';
some_sig : inout t_some_type := '0');
-- Violations below this line
procedure AVERAGE_SAMPLES (
constant a : in integer := 0;
signal b : in std_logic := 'X';
variable ccc : in std_logic := 'X');
constant a : in integer := 0;
signal b : in std_logic := 'X';
variable ccc : in std_logic := 'X';
some_sig : inout t_some_type := '0');
end package FIFO_PKG;

View File

@ -6,16 +6,18 @@ package FIFO_PKG is
procedure AVERAGE_SAMPLES (constant a : in integer := 0; signal b : in std_logic := 'X'; variable c : in std_logic := 'X');
procedure AVERAGE_SAMPLES (
constant a : in integer := 0;
signal b : in std_logic := 'X';
variable c : in std_logic := 'X');
constant a : in integer := 0;
signal b : in std_logic := 'X';
variable c : in std_logic := 'X';
some_sig : inout t_some_type := '0');
-- Violations below this line
procedure AVERAGE_SAMPLES (
constant a : in integer := 0;
signal b : in std_logic := 'X';
variable ccc : in std_logic := 'X');
variable ccc : in std_logic := 'X';
some_sig : inout t_some_type := '0');
end package FIFO_PKG;

View File

@ -30,7 +30,7 @@ class test_procedure_rule(unittest.TestCase):
self.assertEqual(oRule.name, 'procedure')
self.assertEqual(oRule.identifier, '410')
lExpected = [16, 17, 34, 35, 54, 55, 74, 75]
lExpected = [17, 18, 20, 36, 37, 56, 57, 76, 77]
oRule.analyze(self.oFile)
self.assertEqual(lExpected, utils.extract_violation_lines_from_violation_object(oRule.violations))

View File

@ -30,7 +30,7 @@ class test_procedure_rule(unittest.TestCase):
self.assertEqual(oRule.name, 'procedure')
self.assertEqual(oRule.identifier, '411')
lExpected = [16, 17, 18, 34, 35, 36, 54, 55, 56, 74, 75, 76]
lExpected = [17, 18, 19, 20, 36, 37, 38, 56, 57, 58, 76, 77, 78]
oRule.analyze(self.oFile)
self.assertEqual(lExpected, utils.extract_violation_lines_from_violation_object(oRule.violations))