Skip to content

Commit

Permalink
use version specific link
Browse files Browse the repository at this point in the history
Signed-off-by: Jade Abraham <[email protected]>
  • Loading branch information
jabraham17 committed Dec 16, 2024
1 parent 95cb9b4 commit f7aeeba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions tools/chplcheck/src/lsp.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,11 @@ def get_lint_diagnostics(
diagnostics = []
# Silence errors from scope resolution etc., especially since they
# may be emitted from other files (dependencies).
# TODO: use a chapel version specific error link

# get the version, keep only the major and minor version
version = ".".join(context.get_compiler_version().split(".")[:2])
base_url = (
"https://chapel-lang.org/docs/main/tools/chplcheck/chplcheck.html"
"https://chapel-lang.org/docs/{}/tools/chplcheck/chplcheck.html".format(version)
)
with context.track_errors() as _:
for loc, node, rule, fixits in driver.run_checks(context, asts):
Expand Down
1 change: 0 additions & 1 deletion tools/chplcheck/src/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,6 @@ def FixMissingInIntent(context: Context, result: AdvancedRuleResult):
def LineLength(_: chapel.Context, path: str, lines: List[str], Max=None):
"""
Warn for lines that exceed a maximum length.
By default, the maximum line length is 80 characters.
"""

Expand Down

0 comments on commit f7aeeba

Please sign in to comment.