Mago 0.22.2 🪄
This release introduces a new filtering option for the mago lint command and adds more flexibility to the strictness/require-strict-behavior rule.
✨ New Features
- Linter:
--minimum-leveloption: Themago lintcommand now accepts a--minimum-leveloption. This allows you to filter linting results based on the severity level. You can specifyinfo,help,warning, orerror. If any issue with the specified or higher severity level is found, the command will exit with a non-zero code. This is useful for configuring CI pipelines to fail on warnings, for example (#174) by @Zuruuh.
🛠️ Enhancements
strictness/require-strict-behaviorrule: Added theallow-loose-behavioroption to this rule. When enabled, the rule allows explicitly disabling strict behavior in functions that support it by passingfalseas the$strictparameter. By default, the rule still enforces using strict behavior.
We hope these changes improve your linting experience and provide you with more control over your code analysis workflow.
Full Changelog: 0.22.1...0.22.2