Skip to content

Commit dc7fdb0

Browse files
committed
adjust default code
Signed-off-by: Jade Abraham <[email protected]>
1 parent bf7571a commit dc7fdb0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/chplcheck/src/rules.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1041,13 +1041,14 @@ def FixMissingInIntent(context: Context, result: AdvancedRuleResult):
10411041
return [fixit]
10421042

10431043
@driver.location_rule(settings=[".Max"])
1044-
def LineLength(_: chapel.Context, path: str, lines: List[str], Max = "80"):
1044+
def LineLength(_: chapel.Context, path: str, lines: List[str], Max = None):
10451045
"""
10461046
Warn for lines that exceed a maximum length.
10471047
10481048
By default, the maximum line length is 80 characters.
10491049
"""
10501050

1051+
Max = Max or "80" # default to 80 characters
10511052
try:
10521053
max_line_length = int(Max)
10531054
except ValueError:

0 commit comments

Comments
 (0)