A static code analysis tool for iOS, Android, and JavaScript projects, designed to be integrated into development workflows. Current stable version is 0.0.21, released with a focus on Xcode 9 compatibility and Git pre-commit hooks. It supports custom rules and analysis for iOS (including CocoaPods projects) and JS, with basic Android support. Unlike general-purpose linters, mt-lint is specifically tailored for mobile app development, automating code checks on commit to enforce coding standards.
npm install mt-lintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs mt-lint globally, sets the platform to iOS, and starts static analysis on a project.
Set COMPILER_INDEX_STORE_ENABLE = NO in Xcode build settings or add the provided CocoaPods post_install hook.
Use mt-lint add -H <git-path> -S <proj-path> to specify both paths explicitly.
Add --no-verify flag to git commit command for emergency commits.
Keep using -P for now; future versions may add auto-detection.
Run `npm install -g mt-lint` to install globally.
Execute `mt-lint add -P ios` (or android/js) before running other commands.
Ensure you provide the correct path to the .git directory or the project root that contains it.