This rule checks the indent of file declarations.
Violation
architecture RTL of FIFO is
file defaultImage : load_file_type open read_mode is load_file_name;
file defaultImage : load_file_type open read_mode
is load_file_name;
begin
Fix
architecture RTL of FIFO is
file defaultImage : load_file_type open read_mode is load_file_name;
file defaultImage : load_file_type open read_mode
is load_file_name;
begin
This rule checks the file keyword has proper case.
Note
The default is lowercase.
Refer to the section Configuring Uppercase and Lowercase Rules for information on changing the default case.
Violation
architecture RTL of FIFO is
FILE defaultImage : load_file_type open read_mode is load_file_name;
begin
Fix
architecture RTL of FIFO is
file defaultImage : load_file_type open read_mode is load_file_name;
begin
This rule checks for spaces after the file keyword.
Violation
file defaultImage : load_file_type open read_mode is load_file_name;
Fix
file defaultImage : load_file_type open read_mode is load_file_name;
Note
The number of spaces after the file keyword is configurable. Use the following YAML file example to change the default number of spaces.
- rule:
- file_003:
spaces: 3