Skip to content

Conversation

@Rolv-Apneseth
Copy link
Contributor

This is an initial, very basic implementation for a solution that can hopefully close #931

Basically we just parse the given file(s) for either identifiers or words, simply broken up by any white space, and use that to extend the words/identifiers, which is how I saw it done for the ignore words/identifiers from the file-specific configurations.

Currently there's no logic for considering something an invalid entry (e.g. multiple "words" per line), which I know was discussed in that issue but I'm not sure is necessary.

Just let me know if you want me to take a different approach, or if it needs refactoring etc. and I'll gladly make any changes. First time really working with this code so I'm not too familiar with it.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 18690103694

Details

  • 0 of 28 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.05%) to 19.134%

Changes Missing Coverage Covered Lines Changed/Added Lines %
crates/typos-cli/src/bin/typos-cli/main.rs 0 28 0.0%
Totals Coverage Status
Change from base Build 18324479585: -0.05%
Covered Lines: 535
Relevant Lines: 2796

💛 - Coveralls

@epage epage marked this pull request as draft October 21, 2025 16:13
@epage
Copy link
Collaborator

epage commented Oct 21, 2025

Converting to a Draft as there isn't anything decided in #931 yet.

@Rolv-Apneseth
Copy link
Contributor Author

Yep my bad meant to make it a draft

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.

Support plain text .dic dictionary files

3 participants