Skip to content

Commit

Permalink
Activated linter for code files
Browse files Browse the repository at this point in the history
- Added better descriptions to exceptions
- Removed exception for C0114, as it was fixed by adding docstrings to all modules
  • Loading branch information
Root-Core committed Mar 28, 2024
1 parent b82b298 commit c956ac9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tools/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

# Lint the following gamefix dir:
# steam, gog, amazon, egs, humble, itchio, ubisoft, umu, zoomplatform
mapfile -d '' files_array < <(find ./{gamefixes-steam,gamefixes-amazon,gamefixes-gog,gamefixes-egs,gamefixes-humble,gamefixes-itchio,gamefixes-ubisoft,gamefixes-umu,gamefixes-zoomplatform} -type f -name "*.py" ! -name "__init__.py" -print0)
mapfile -d '' files_array < <(find ./{,gamefixes-steam,gamefixes-amazon,gamefixes-gog,gamefixes-egs,gamefixes-humble,gamefixes-itchio,gamefixes-ubisoft,gamefixes-umu,gamefixes-zoomplatform} -type f -name "*.py" ! -name "__init__.py" -print0)

# Disable these checks:
# - Long lines from comments
# - Import errors because umu-protonfixes will be renamed at release
# - Docstrings for functions and modules
# - Invalid identifier names for files
pylint --rcfile pyproject.toml --disable C0103,C0116,E0401,C0301,C0114 "${files_array[@]}"
# - E0401: Import errors because umu-protonfixes will be renamed at release
# - C0103: Invalid identifier names for files, as gamefixes are numeric
# - C0116: Missing docstrings for functions or method
# - C0301: Long lines
pylint --rcfile pyproject.toml --disable E0401,C0103,C0116,C0301 "${files_array[@]}"

0 comments on commit c956ac9

Please sign in to comment.