Skip to content

feat(cli): add categories enable/disable flags#202

Merged
mdevolde merged 1 commit into
jxmorris12:masterfrom
mdevolde:feature/cli_categories
Jun 22, 2026
Merged

feat(cli): add categories enable/disable flags#202
mdevolde merged 1 commit into
jxmorris12:masterfrom
mdevolde:feature/cli_categories

Conversation

@mdevolde

Copy link
Copy Markdown
Collaborator

feat(cli): add categories enable/disable flags

Why the pull request was made

To be able to enable/disable categs in CLI, just as it is possible when using the lib.

Summary of changes

  • Add -D/--disable-categories and -E/--enable-categories CLI options to disable or enable LanguageTool rule categories (e.g. TYPOS, GRAMMAR). --enabled-only now also applies to categories specified via --enable-categories.
  • Change CLI doc in sphinx doc to add these new flags.
  • Add related tests.

Screenshots (if appropriate):

Not appropriate.

How has this been tested?

Applied local tests (including new ones), tested manually.

Resources

Not applicable.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update (changes to documentation only)
  • Refactor / code style update (non-breaking change that improves code structure or readability)
  • Tests / CI improvement (adding or updating tests or CI configuration only)
  • Chore / maintenance (non-breaking change that does not affect functionality, such as updating dependencies or fixing typos)
  • Other (please describe):

Checklist

  • Followed the project's contributing guidelines.
  • Updated any relevant tests.
  • Updated any relevant documentation.
  • Added comments to your code where necessary.
  • Formatted your code, run the linters, checked types and tests.
  • Added your changes to the CHANGELOG file, if applicable.

@mdevolde mdevolde self-assigned this Jun 22, 2026
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.83%. Comparing base (9094935) to head (2ced3ff).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #202      +/-   ##
==========================================
+ Coverage   80.46%   80.83%   +0.36%     
==========================================
  Files          13       13              
  Lines        1746     1758      +12     
==========================================
+ Hits         1405     1421      +16     
+ Misses        341      337       -4     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mdevolde mdevolde merged commit cf0cf4c into jxmorris12:master Jun 22, 2026
13 checks passed
@mdevolde mdevolde deleted the feature/cli_categories branch June 22, 2026 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants