Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.45 KB

README.rst

File metadata and controls

43 lines (29 loc) · 1.45 KB
Root.Formatting.Length Parent Index
Sibling aspects Quotation Spacing

Length

Hold sub-aspects for file and line length.

Subaspects

Example

# We assume that the maximum number of characters per line is 10
# and that the maximum number of lines per files is 3.

def run(bear, file, filename, aspectlist):
    return bear.run(file, filename, aspectlist)

Importance

Too long lines of code and too large files result in code difficult to read, understand and maintain.

How to fix this

Length issues can be fixed by writing shorter lines of code (splitting long lines into multiple shorter lines); writing shorter files (splitting files into modules, writing shorter methods and classes.).