Source code for coalib.bearlib.aspects.Spelling
from coalib.bearlib.aspects import Root
@Root.subaspect
[docs]class Spelling:
"""
This aspect describes spelling of your source code.
"""
@Spelling.subaspect
[docs]class aspectsYEAH:
"""
This aspect dictates that the term ``aspects`` and ``aspect`` must have
all letters in lower case and the term ``aspectsYEAH`` must match the
exact expression.
"""
class docs:
example = """
Valid Cases:
# aspects are the mother of all futures of coala
# ``aspectsYEAH`` project is simply awesome
Invalid Cases:
# Aspects are the mother of all futures of coala
# ``aspectsyeah`` project is simply awesome
"""
example_language = 'All'
importance_reason = """
The concepts of aspects in coala are too fundamental to contain any
upper-case letters.
"""
fix_suggestions = """
``aspects`` or ``aspect`` are always written with all lower-case
letters or the term ``aspectsYEAH`` must match the exact expression.
"""