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
Traceback (most recent call last):
File "/home/nick/.local/bin/gdlint", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/nick/.local/pipx/venvs/gdtoolkit/lib64/python3.11/site-packages/gdtoolkit/linter/__main__.py", line 66, in main
problems_total += _lint_file(file_path, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/nick/.local/pipx/venvs/gdtoolkit/lib64/python3.11/site-packages/gdtoolkit/linter/__main__.py", line 134, in _lint_file
problems = lint_code(content, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/nick/.local/pipx/venvs/gdtoolkit/lib64/python3.11/site-packages/gdtoolkit/linter/__init__.py", line 120, in lint_code
problems += basic_checks.lint(parse_tree, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/nick/.local/pipx/venvs/gdtoolkit/lib64/python3.11/site-packages/gdtoolkit/linter/basic_checks.py", line 39, in lint
problems = [problem for cluster in problem_clusters for problem in cluster]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/nick/.local/pipx/venvs/gdtoolkit/lib64/python3.11/site-packages/gdtoolkit/linter/basic_checks.py", line 39, in <listcomp>
problems = [problem for cluster in problem_clusters for problem in cluster]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/nick/.local/pipx/venvs/gdtoolkit/lib64/python3.11/site-packages/gdtoolkit/linter/basic_checks.py", line 37, in <genexpr>
x[1](parse_tree) if x[0] not in disable else [] for x in checks_to_run_w_tree
^^^^^^^^^^^^^^^^
File "/home/nick/.local/pipx/venvs/gdtoolkit/lib64/python3.11/site-packages/gdtoolkit/linter/basic_checks.py", line 132, in _unused_argument_check
arg_name = arg_name_token.value # type: ignore
^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'value'
Gdlint works again after removing the trailing comma.
The text was updated successfully, but these errors were encountered: