Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli): Allow negative expressions in extend-exclude #1100

Merged
merged 4 commits into from
Sep 16, 2024

Conversation

epage
Copy link
Collaborator

@epage epage commented Sep 16, 2024

This allows you to do

[files]
extend-exclude = [
    "*",
    "!checked/",
    "!checked/**",
]

I'm concerned that I didn't need to change the --force-exclude logic. If I do, tests fail.

Fixes #1099

@epage epage merged commit c4a6592 into crate-ci:master Sep 16, 2024
19 checks passed
@epage epage deleted the invert branch September 16, 2024 19:01
@coveralls
Copy link

Pull Request Test Coverage Report for Build 10890169981

Details

  • 0 of 14 (0.0%) changed or added relevant lines in 1 file are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.1%) to 22.799%

Changes Missing Coverage Covered Lines Changed/Added Lines %
crates/typos-cli/src/bin/typos-cli/main.rs 0 14 0.0%
Files with Coverage Reduction New Missed Lines %
crates/typos-cli/src/bin/typos-cli/main.rs 2 0.0%
Totals Coverage Status
Change from base Build 10704630854: -0.1%
Covered Lines: 536
Relevant Lines: 2351

💛 - Coveralls

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.

feat:check a few specific directories only
2 participants