You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Guideline: File name and class name should be same.
Why it is recommended to keep the file name same as class name?
Having the same name for the file and the class simplifies the process of locating the code for a specific class. This convenience arises from the fact that you can directly search for the file bearing the identical name as the class.
When the file name and class name differ, there is a potential risk of opening an incorrect file when an individual is attempting to edit the code for a specific class. Such a situation may result in errors.
Solution: Always keep the file name same as class name.
For example: file name: trans_c.sv
class trans_c;
endclass : trans_c
Expected output:
The text was updated successfully, but these errors were encountered:
prajapati93
changed the title
fl_name_cl_name
New rule: file name and class name match
Nov 6, 2023
prajapati93
added a commit
to prajapati93/Mehul_pyslint
that referenced
this issue
Dec 4, 2023
Guideline: File name and class name should be same.
Why it is recommended to keep the file name same as class name?
Solution: Always keep the file name same as class name.
For example: file name: trans_c.sv
Expected output:
The text was updated successfully, but these errors were encountered: