### Install Dependencies with Homebrew Source: https://github.com/fptje/gluafixer/blob/master/installation-instructions/OSX.md Installs libffi and gmp using Homebrew. Ensure Homebrew is installed and configured before running. ```bash echo | brew install libffi gmp ``` -------------------------------- ### Install GLuaFixer on Linux Source: https://context7.com/fptje/gluafixer/llms.txt Download and install the pre-built binary for Linux x86_64 systems. ```bash # Download the latest release for your platform # Linux x86_64: curl -L https://github.com/FPtje/GLuaFixer/releases/latest/download/glualint-x86_64-linux.zip -o glualint.zip # Extract the executable unzip glualint.zip # Move to a directory in your PATH sudo mv glualint /usr/local/bin/ # Verify installation glualint version # Output: glualint version 1.29.0 ``` -------------------------------- ### Windows Build with Cabal Source: https://context7.com/fptje/gluafixer/llms.txt Build GLuaFixer on Windows using GHC, Cabal, and MinGW. Ensure Haskell Platform is installed. ```batch :: Prerequisites: Install GHC, Cabal, and MinGW via Haskell Platform :: https://www.haskell.org/platform/ :: Clone the repository git clone https://github.com/FPtje/GLuaFixer.git cd GLuaFixer :: Generate AG files and build AGGenerator.bat cabal build glualint :: Executable is at: dist\build\glualint\glualint.exe ``` -------------------------------- ### Install GLuaFixer on macOS Source: https://context7.com/fptje/gluafixer/llms.txt Install required system dependencies for macOS environments. ```bash # Install required libraries brew install libffi gmp # Copy libffi to a discoverable location sudo cp /usr/local/opt/libffi/lib/libffi.8.dylib /usr/local/lib/libffi.8.dylib # For Apple Silicon (M1/M2/M3) devices, install Rosetta first # Follow: https://support.apple.com/en-us/102527 ``` -------------------------------- ### Vim/Neovim Plugin Installation Source: https://context7.com/fptje/gluafixer/llms.txt Add the gluafixer.vim plugin using package managers like vim-plug or packer.nvim. ```vim " Using vim-plug Plug 'CFC-Servers/gluafixer.vim' " Using packer.nvim use 'CFC-Servers/gluafixer.vim' ``` -------------------------------- ### GLuaFixer Pretty Print Options Reference Source: https://context7.com/fptje/gluafixer/llms.txt Configure code formatting style for the pretty printer. This example sets indentation, spacing, and parenthesis handling. ```json { "prettyprint_indentation": "\t", "prettyprint_spaceAfterComma": true, "prettyprint_semicolons": false, "prettyprint_cStyle": false, "prettyprint_removeRedundantParens": true, "prettyprint_minimizeParens": true, "prettyprint_assumeOperatorAssociativity": true } ``` -------------------------------- ### Setup GLuaFixer Reusable Workflow Source: https://github.com/fptje/gluafixer/blob/master/README.md Configure your GitHub Actions workflow to automatically run GLuaFixer on pull requests. Create a `.github/workflows/glualint.yml` file with this content to integrate GLuaFixer into your CI process. ```yaml name: GLuaFixer on: pull_request: jobs: Lint: uses: FPtje/GLuaFixer/.github/workflows/glualint.yml@master ``` -------------------------------- ### Sublime Text Integration for GLuaFixer Source: https://context7.com/fptje/gluafixer/llms.txt Install the SublimeLinter plugin and GLuaFixer integration for Sublime Text. Follow the steps to install necessary packages via Package Control. ```bash # 1. Install Package Control if not already installed # 2. Open Command Palette (Ctrl+Shift+P) # 3. Select "Package Control: Install Package" # 4. Install "SublimeLinter" # 5. Restart Sublime Text # 6. Install "SublimeLinter-contrib-glualint" ``` -------------------------------- ### Atom Editor Integration Source: https://context7.com/fptje/gluafixer/llms.txt Install the linter and linter-glualint packages for Atom editor support. Ensure you install 'linter-glualint' and not 'linter-glua'. ```bash # Install via Atom Settings -> Install # 1. Search and install "linter" package # 2. Search and install "linter-glualint" package (NOT "linter-glua") # Or via command line apm install linter linter-glualint ``` -------------------------------- ### Basic GitHub Actions Workflow for GLuaFixer Source: https://context7.com/fptje/gluafixer/llms.txt Set up a reusable workflow to automatically run GLuaFixer on pull requests. This basic setup uses the default configuration. ```yaml # .github/workflows/glualint.yml name: GLuaFixer on: pull_request: jobs: Lint: uses: FPtje/GLuaFixer/.github/workflows/glualint.yml@master ``` -------------------------------- ### VS Code Integration for GLuaFixer Source: https://context7.com/fptje/gluafixer/llms.txt Install GLuaFixer extensions for real-time linting in Visual Studio Code. Ensure glualint is in your system's PATH. ```bash # Option 1: vscode-glualint # Install from VS Code Marketplace: goz3rr.vscode-glualint # Option 2: GLua Enhanced (includes glualint support) # Install from VS Code Marketplace: venner.vscode-glua-enhanced # Ensure glualint is in your PATH, then open a .lua file # Linting warnings will appear as you type ``` -------------------------------- ### GLuaFixer Linting Options Reference Source: https://context7.com/fptje/gluafixer/llms.txt Key linting options that control which issues GLuaFixer reports. This example shows common linting flags. ```json { "lint_maxScopeDepth": 7, "lint_syntaxErrors": true, "lint_deprecated": true, "lint_beginnerMistakes": true, "lint_unusedVars": true, "lint_unusedParameters": true, "lint_unusedLoopVars": true, "lint_shadowing": true, "lint_profanity": true, "lint_maxLineLength": 120, "lint_ignoreFiles": ["libs/**/*.lua"] } ``` -------------------------------- ### Unregister Old Cabal Version Source: https://github.com/fptje/gluafixer/blob/master/Compiling.md Use this command to unregister an older version of cabal if you encounter conflicts during dependency installation. ```bash ghc-pkg unregister ``` -------------------------------- ### Build glualint on Linux/OSX with Nix Source: https://github.com/fptje/gluafixer/blob/master/Compiling.md Run these commands in the root of the repository to build the glualint executable using Nix. ```bash nix develop --command ./AGGenerator.sh ``` ```bash nix develop --command cabal v1-build ``` -------------------------------- ### Compile glualint on Windows Source: https://github.com/fptje/gluafixer/blob/master/Compiling.md Execute these commands in the root folder of the repository to build glualint on Windows. ```bash AGGenerator.bat ``` ```bash cabal build glualint ``` -------------------------------- ### Enable Nix Flakes Source: https://github.com/fptje/gluafixer/blob/master/Compiling.md Add this line to `/etc/nix/nix.conf` to enable experimental Nix features required for building. ```conf experimental-features = nix-command flakes ``` -------------------------------- ### Linux/macOS Build with Nix Source: https://context7.com/fptje/gluafixer/llms.txt Build GLuaFixer from source on Linux/macOS using Nix. Requires Nix version 2.4+ and enabling flakes. ```bash # Install Nix (version 2.4+) curl -L https://nixos.org/nix/install | sh # Enable flakes in /etc/nix/nix.conf echo "experimental-features = nix-command flakes" | sudo tee -a /etc/nix/nix.conf # Clone the repository git clone https://github.com/FPtje/GLuaFixer.git cd GLuaFixer # Build using Nix nix develop --command ./AGGenerator.sh nix develop --command cabal v1-build # Executable is at: dist/build/glualint/glualint ``` -------------------------------- ### Pretty Print Configuration Options Source: https://github.com/fptje/gluafixer/blob/master/README.md A list of configuration keys used to control the pretty printing behavior of the GLuaFixer linter. ```APIDOC ## Pretty Print Configuration ### Description These options define how the code is formatted during the linting process. ### Options - **prettyprint_spaceBetweenParens** (boolean) - Put a space between all parentheses - **prettyprint_spaceBetweenBrackets** (boolean) - Put a space between all brackets - **prettyprint_spaceBetweenBraces** (boolean) - Put a space between all curly braces - **prettyprint_spaceEmptyParens** (boolean) - Put a space between empty parentheses - **prettyprint_spaceEmptyBraces** (boolean) - Put a space between empty braces - **prettyprint_spaceAfterLabel** (boolean) - Put a space after a ::label:: statement - **prettyprint_semicolons** (boolean) - Add semicolons after every statement - **prettyprint_cStyle** (boolean) - Use C style operators and comments - **prettyprint_indentation** (string) - Indentation character or string - **prettyprint_spaceBeforeComma** (boolean) - Place a space before every comma - **prettyprint_spaceAfterComma** (boolean) - Place a space after every comma - **prettyprint_removeRedundantParens** (boolean) - Remove unnecessary parentheses - **prettyprint_minimizeParens** (boolean) - Remove parentheses unnecessary due to operator precedence - **prettyprint_assumeOperatorAssociativity** (boolean) - Assume operator associativity when minimizing parentheses ``` -------------------------------- ### Configure glualint with glualint.json Source: https://github.com/fptje/gluafixer/blob/master/README.md Use this configuration file to define linting rules and pretty-printing preferences. Place it in your project root or home directory. ```json { "lint_maxScopeDepth": 7, "lint_syntaxErrors": true, "lint_syntaxInconsistencies": true, "lint_deprecated": true, "lint_trailingWhitespace": true, "lint_whitespaceStyle": true, "lint_beginnerMistakes": true, "lint_emptyBlocks": true, "lint_shadowing": true, "lint_gotos": true, "lint_goto_identifier": true, "lint_doubleNegations": true, "lint_redundantIfStatements": true, "lint_redundantParentheses": true, "lint_duplicateTableKeys": true, "lint_profanity": true, "lint_unusedVars": true, "lint_unusedParameters": false, "lint_unusedLoopVars": false, "lint_inconsistentVariableStyle": false, "lint_spaceBetweenParens": false, "lint_spaceBetweenBrackets": false, "lint_spaceBetweenBraces": false, "lint_ignoreFiles": [], "lint_spaceBeforeComma": false, "lint_spaceAfterComma": false, "lint_maxLineLength": 0, "prettyprint_spaceBetweenParens": false, "prettyprint_spaceBetweenBrackets": false, "prettyprint_spaceBetweenBraces": false, "prettyprint_spaceEmptyParens": false, "prettyprint_spaceEmptyBraces": false, "prettyprint_spaceAfterLabel": false, "prettyprint_spaceBeforeComma": false, "prettyprint_spaceAfterComma": true, "prettyprint_semicolons": false, "prettyprint_cStyle": false, "prettyprint_removeRedundantParens": true, "prettyprint_minimizeParens": false, "prettyprint_assumeOperatorAssociativity": true, "prettyprint_indentation": " ", "log_format": "auto" } ``` -------------------------------- ### GLuaFixer Configuration File (glualint.json) Source: https://context7.com/fptje/gluafixer/llms.txt Customize linting and pretty-printing rules by creating a glualint.json file. This file defines various options for syntax checking, style, and formatting. ```json { "lint_maxScopeDepth": 7, "lint_syntaxErrors": true, "lint_syntaxInconsistencies": true, "lint_deprecated": true, "lint_trailingWhitespace": true, "lint_whitespaceStyle": true, "lint_beginnerMistakes": true, "lint_emptyBlocks": true, "lint_shadowing": true, "lint_gotos": true, "lint_goto_identifier": true, "lint_doubleNegations": true, "lint_redundantIfStatements": true, "lint_redundantParentheses": true, "lint_duplicateTableKeys": true, "lint_profanity": true, "lint_unusedVars": true, "lint_unusedParameters": false, "lint_unusedLoopVars": false, "lint_inconsistentVariableStyle": false, "lint_spaceBetweenParens": false, "lint_spaceBetweenBrackets": false, "lint_spaceBetweenBraces": false, "lint_spaceBeforeComma": false, "lint_spaceAfterComma": false, "lint_maxLineLength": 0, "lint_ignoreFiles": ["libs/*.lua", "thirdparty/**/*.lua"], "prettyprint_spaceBetweenParens": false, "prettyprint_spaceBetweenBrackets": false, "prettyprint_spaceBetweenBraces": false, "prettyprint_spaceEmptyParens": false, "prettyprint_spaceEmptyBraces": false, "prettyprint_spaceAfterLabel": false, "prettyprint_spaceBeforeComma": false, "prettyprint_spaceAfterComma": true, "prettyprint_semicolons": false, "prettyprint_cStyle": false, "prettyprint_removeRedundantParens": true, "prettyprint_minimizeParens": false, "prettyprint_assumeOperatorAssociativity": true, "prettyprint_indentation": " ", "log_format": "auto" } ``` -------------------------------- ### Configure Output Formats Source: https://context7.com/fptje/gluafixer/llms.txt Adjust linter output for standard console display or CI/CD environments like GitHub Actions. ```bash # Standard output format (default) glualint --output-format standard lint myfile.lua # Output: myfile.lua:5:1-5:10: Warning: Unused variable 'x' # GitHub Actions format for CI annotations glualint --output-format github lint myfile.lua # Output: ::warning file=myfile.lua,line=5,col=1::Unused variable 'x' # Auto-detect format (uses GitHub format when GITHUB_ACTIONS env var is set) glualint --output-format auto lint myfile.lua ``` -------------------------------- ### GitHub Actions Reusable Workflow Source: https://github.com/fptje/gluafixer/blob/master/README.md Instructions for setting up GLuaFixer in a GitHub Actions workflow. ```APIDOC ## Reusable Workflow Integration ### Description Run GLuaFixer automatically on pull requests using the provided reusable workflow. ### Setup Create `.github/workflows/glualint.yml`: ```yml name: GLuaFixer on: pull_request: jobs: Lint: uses: FPtje/GLuaFixer/.github/workflows/glualint.yml@master ``` ### Configuration Pass a custom configuration file path or URL to the workflow: ```yml jobs: Lint: uses: FPtje/GLuaFixer/.github/workflows/glualint.yml@master with: config: "" ``` ``` -------------------------------- ### Analyze Global Variables Source: https://context7.com/fptje/gluafixer/llms.txt List all global variables and functions defined or used in the specified file. ```bash # Analyze globals in a file glualint analyse-globals weapons/weapon_base/shared.lua # Output: # Defined globals: # SWEP # SWEP.Initialize # SWEP.Deploy # Used globals: # Entity # IsValid # LocalPlayer ``` -------------------------------- ### Linter Configuration Options Source: https://github.com/fptje/gluafixer/blob/master/README.md A comprehensive list of available linter options for configuring the Gluafixer tool. ```APIDOC ## Linter Configuration Options ### Description These options allow you to customize the behavior of the Gluafixer linter, including syntax checking, style enforcement, and specific code pattern warnings. ### Options - **lint_maxScopeDepth** (number) - Maximum depth of scopes before reporting. - **lint_syntaxErrors** (boolean) - Whether to report syntax errors. - **lint_syntaxInconsistencies** (boolean) - Warn for syntax inconsistencies. - **lint_deprecated** (boolean) - Warn for deprecated functions. - **lint_trailingWhitespace** (boolean) - Warn for trailing whitespace. - **lint_whitespaceStyle** (boolean) - Warn for bad whitespace behavior. - **lint_beginnerMistakes** (boolean) - Warn for typical beginner mistakes. - **lint_emptyBlocks** (boolean) - Warn for empty blocks. - **lint_shadowing** (boolean) - Warn for variable shadowing. - **lint_gotos** (boolean) - Warn for inappropriate gotos. - **lint_goto_identifier** (boolean) - Warn when goto is used as an identifier. - **lint_doubleNegations** (boolean) - Warn for double negations. - **lint_redundantIfStatements** (boolean) - Warn for redundant nested if-statements. - **lint_redundantParentheses** (boolean) - Warn for unneeded parentheses. - **lint_duplicateTableKeys** (boolean) - Warn for duplicate table keys. - **lint_profanity** (boolean) - Warn for profanity. - **lint_unusedVars** (boolean) - Warn for unused variables. - **lint_unusedParameters** (boolean) - Warn for unused function parameters (requires lint_unusedVars). - **lint_unusedLoopVars** (boolean) - Warn for unused loop variables (requires lint_unusedVars). - **lint_ignoreFiles** (string) - Glob patterns for files to ignore. - **lint_inconsistentVariableStyle** (boolean) - Warn about inconsistent variable naming styles. - **lint_spaceBetweenParens** (boolean) - Warn about spaces between parentheses. - **lint_spaceBetweenBrackets** (boolean) - Warn about spaces between brackets. - **lint_spaceBetweenBraces** (boolean) - Warn about spaces between braces. - **lint_spaceBeforeComma** (boolean) - Warn about spaces before commas. - **lint_spaceAfterComma** (boolean) - Warn about spaces after commas. - **lint_maxLineLength** (number) - Warn for lines exceeding this length. ``` -------------------------------- ### GLuaFixer Command-Line Usage with Custom Config Source: https://context7.com/fptje/gluafixer/llms.txt Specify a custom configuration file path using the `--config` flag when running GLuaFixer from the command line. ```bash glualint --config /path/to/custom-glualint.json lint myproject/ ``` -------------------------------- ### Copy libffi Library Source: https://github.com/fptje/gluafixer/blob/master/installation-instructions/OSX.md Copies the libffi library to the system's library path to ensure the glualint executable can find it. This command requires sudo privileges. ```bash sudo cp /usr/local/opt/libffi/lib/libffi.8.dylib /usr/local/lib/libffi.8.dylib ``` -------------------------------- ### Lint Lua Files Source: https://context7.com/fptje/gluafixer/llms.txt Analyze files, directories, or stdin for syntax errors and style issues. ```bash # Lint a single file glualint lint myfile.lua # Output: # myfile.lua:5:1-5:10: Warning: Unused variable 'player' # myfile.lua:12:5-12:20: Warning: Deprecated function 'GetTable' # Lint an entire directory recursively glualint lint lua/autorun/ # Lints all .lua files in the directory and subdirectories # Lint multiple files and directories glualint lint weapons/ entities/ lua/autorun/init.lua # Lint from stdin echo 'local x = 1' | glualint lint --stdin # Output: stdin:1:7-1:7: Warning: Unused variable 'x' ``` -------------------------------- ### Pretty Print Lua Code Source: https://context7.com/fptje/gluafixer/llms.txt Format Lua code according to style rules, supporting in-place modification or stdin. ```bash # Pretty print from stdin echo 'a=0' | glualint pretty-print --stdin # Output: a = 0 # Pretty print files in-place (modifies files) glualint pretty-print myfile.lua # Pretty print entire directory glualint pretty-print lua/ # Use custom indentation (tabs instead of 4 spaces) glualint --indentation=$'\t' pretty-print --stdin < myfile.lua ``` -------------------------------- ### Debug Lua Code Source: https://context7.com/fptje/gluafixer/llms.txt Inspect internal representations like the token stream or AST for troubleshooting. ```bash # Dump the lexicon (token stream) echo 'local x = 1 + 2' | glualint dump-lexicon --stdin # Output: Token stream representation # Dump the Abstract Syntax Tree echo 'local x = 1 + 2' | glualint dump-ast --stdin # Output: AST structure # Run internal tests on files glualint test testfile.lua # Parses, pretty prints, and re-parses to verify correctness ``` -------------------------------- ### Custom Lint Settings Source: https://context7.com/fptje/gluafixer/llms.txt Configuration options for customizing linting rules and pretty-printing behavior. ```APIDOC ## Haskell Library: Custom Lint Settings ### Description Allows modification of default linting and formatting behavior via the LintSettings data structure. ### Configuration Fields - **lint_maxScopeDepth** (Int) - Maximum allowed scope depth. - **lint_unusedVars** (Bool) - Flag to enable/disable unused variable detection. - **lint_unusedParameters** (Bool) - Flag to enable/disable unused parameter detection. - **lint_maxLineLength** (Int) - Maximum allowed line length. - **prettyprint_indentation** (String) - Indentation character/string. - **prettyprint_cStyle** (Bool) - Flag to enable C-style formatting. ``` -------------------------------- ### GitHub Actions Workflow with Custom Configuration Source: https://context7.com/fptje/gluafixer/llms.txt Configure the GitHub Action to use a custom configuration file from your repository or a remote URL by specifying the `config` input. ```yaml # .github/workflows/glualint.yml name: GLuaLint on: pull_request: jobs: Lint: uses: FPtje/GLuaFixer/.github/workflows/glualint.yml@master with: # Local config file (relative to project root) config: ".glualint.json" # Or use a remote config URL # config: "https://gist.githubusercontent.com/user/id/raw/glualint.json" ``` -------------------------------- ### Haskell: Pretty Printing AST Source: https://context7.com/fptje/gluafixer/llms.txt Pretty print an Abstract Syntax Tree back into a string format using GLuaFixer.Interface. ```haskell -- Pretty print AST back to string let formatted = prettyprint defaultLintSettings ast ``` -------------------------------- ### Configure GLuaFixer Workflow with External Config Source: https://github.com/fptje/gluafixer/blob/master/README.md Customize the GLuaFixer workflow by providing a link or relative path to a configuration file. This allows for centralized or project-specific linting rules. ```yaml name: GLuaLint on: pull_request: jobs: Lint: uses: FPtje/GLuaFixer/.github/workflows/glualint.yml@master with: config: "" ``` -------------------------------- ### Core Linting and Parsing Functions Source: https://context7.com/fptje/gluafixer/llms.txt Functions for lexing, parsing, and linting Lua source code using the GLuaFixer library. ```APIDOC ## Haskell Library: Core Linting Functions ### Description Provides programmatic access to the GLuaFixer engine for lexing, parsing, and linting Lua code. ### Functions - **lex** (LintSettings -> FilePath -> SourceCode -> Either [Error] [Token]) - Lexes source code into tokens. - **parse** (LintSettings -> FilePath -> [Token] -> Either [Error] AST) - Parses tokens into an Abstract Syntax Tree. - **lexiconLint** (FilePath -> LintSettings -> [Token] -> [Warning]) - Performs lexicon-level linting. - **astLint** (FilePath -> LintSettings -> AST -> [Warning]) - Performs AST-level linting. - **sourceLint** (LintSettings -> FilePath -> SourceCode -> [Warning]) - Performs source-level linting (e.g., line length). - **prettyprint** (LintSettings -> AST -> String) - Formats AST back to Lua source code. ``` -------------------------------- ### Enable Multiline Formatting with Directive Source: https://github.com/fptje/gluafixer/blob/master/README.md Use the `-- format: multiline` directive in comments to force the subsequent GLua statement to be pretty-printed across multiple lines. This is useful for improving readability of complex structures. ```lua -- format: multiline a = { 1, 2, 3 } ``` -------------------------------- ### Force Multiline Formatting with In-Code Directive Source: https://context7.com/fptje/gluafixer/llms.txt Use the `format: multiline` comment directive to force the pretty printer to format the next statement as multiline. This is useful for tables or complex assignments. ```lua -- Without directive (may be single line) a = {1, 2, 3} -- format: multiline a = {1, 2, 3} -- After pretty printing, becomes: -- format: multiline a = { 1, 2, 3 } ``` -------------------------------- ### Haskell: Custom Lint Settings Source: https://context7.com/fptje/gluafixer/llms.txt Create custom lint settings by modifying default settings for specific rules and formatting preferences. ```haskell import GLuaFixer.LintSettings -- Start with defaults and customize let customSettings = defaultLintSettings { lint_maxScopeDepth = 5, lint_unusedVars = True, lint_unusedParameters = True, lint_maxLineLength = 120, prettyprint_indentation = "\t", prettyprint_cStyle = True } -- Use custom settings for linting let warnings = astLint "myfile.lua" customSettings ast ``` -------------------------------- ### Haskell: Lexing Source Code Source: https://context7.com/fptje/gluafixer/llms.txt Lex source code into tokens using the GLuaFixer.Interface module. Handles potential lexing errors. ```haskell import GLuaFixer.Interface import GLuaFixer.LintSettings (defaultLintSettings) -- Lex source code into tokens let result = lex defaultLintSettings "myfile.lua" "local x = 1 + 2" case result of Left errors -> mapM_ print errors Right tokens -> print tokens ``` -------------------------------- ### Haskell: Parsing Tokens into AST Source: https://context7.com/fptje/gluafixer/llms.txt Parse lexed tokens into an Abstract Syntax Tree (AST) using the GLuaFixer.Interface module. Handles potential parsing errors. ```haskell -- Parse tokens into AST let parseResult = parse defaultLintSettings "myfile.lua" tokens case parseResult of Left errors -> mapM_ print errors Right ast -> print ast ``` -------------------------------- ### Haskell: AST-Level Linting Source: https://context7.com/fptje/gluafixer/llms.txt Perform AST-level linting on an Abstract Syntax Tree using GLuaFixer.Interface. ```haskell -- Run AST-level linting let astWarnings = astLint "myfile.lua" defaultLintSettings ast ``` -------------------------------- ### Haskell: Source-Level Linting Source: https://context7.com/fptje/gluafixer/llms.txt Perform source-level linting (e.g., line length) using GLuaFixer.Interface. ```haskell -- Run source-level linting (line length, etc.) let sourceWarnings = sourceLint defaultLintSettings "myfile.lua" sourceCode ``` -------------------------------- ### Haskell: Lexicon-Level Linting Source: https://context7.com/fptje/gluafixer/llms.txt Perform lexicon-level linting on a list of tokens using GLuaFixer.Interface. ```haskell -- Run lexicon-level linting let lexWarnings = lexiconLint "myfile.lua" defaultLintSettings tokens ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.