Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Created by
brew bump
Created with
brew bump-formula-pr
.release notes
@mago-ignore {plugin}/{rule} {description}
:{plugin}/{rule}
: Specifies the linter rule to be ignored (e.g.,strictness/require-return-type
).{description}
(Optional): A brief explanation of why the rule is being ignored. While optional, providing a description is highly recommended for code clarity and maintainability.Example
The linter will also intelligently report any @mago-ignore comments that are no longer needed, helping you maintain a clean and relevant set of ignore directives.
This feature was implemented by @azjezz in PR #71, fulfilling a request from @M-arcus in Issue #46.
Ignore comments have been a long-standing community request. This addition empowers users to tailor the linter's strictness to their specific project needs, allowing for more nuanced control over code analysis and improved workflow.
📝 Exclude Files from Formatting
Mago 0.9.1 introduces a new
excludes
configuration option for the formatter within yourmago.toml
configuration file. This powerful feature enables you to define patterns for files, directories, or glob patterns that should be excluded from formatting operations.Example:
Files matching these patterns will be skipped during formatting, ensuring you can maintain control over specific files that should not be automatically formatted while still benefiting from linting and other analysis functionalities.
This feature was implemented in PR #72 by @azjezz, in response to a request from @bendavies in Issue #28.
This enhancement provides greater flexibility in managing your formatting process, allowing you to selectively format your codebase based on project requirements and preferences.
🛠 Bug Fixes
📝 Fix Trailing & Dangling Comments
This release addresses and resolves several bugs within the formatter specifically related to the handling of trailing and dangling comments. These fixes improve the accuracy and reliability of Mago's code formatting, especially in scenarios with complex comment placements within code blocks and after opening tags.
These important fixes are implemented by @azjezz in PR #73.
This ensures that your code is formatted consistently and predictably, even with intricate comment structures, leading to a more polished and professional codebase.
Happy Formatting & Linting!
Full Changelog: carthage-software/mago@0.9.0...0.9.1