-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Added words from Laravel Framework and Horizon #116
Conversation
I believe that instead of adding contractions, like "doesnt" or "dont", to the whitelist, it should just not report it as a misspelling. We can do this by matching the checked word to each Aspell suggestions; if the contraction's apostrophe is the only difference, ignore it as a misspelling. What do you guys think @nunomaduro and @c0nst4ntin ? |
I think it's a fair thought, But when it comes to descriptive texts like doc blocks, texts in templates, etc., this is a misspelling, 'cause So I don't know if we should really ignore it whenever a case like this is suggested as misspelling. |
Or, if possible, add a check for the type that if it is the name of a property, method, function, class, or other control value, then don't consider it an error, but if the word occurs in text, such as a docblock, then return an error. But how correct this will be outside Laravel is a big question. |
@andrey-helldar @julio-cavallari I agree, in theory we should not mark words like "dont" as a spelling mistake in code names. But at the same time, we should detect it in doc blocks. The only question is, how can we achieve this? We would need to keep context about what type of text we are checking. However, this is a more challenging topic. Maybe you can open an issue for this and we can challenge this in a new pull request. For now maybe take them out of this pull request. The other words look fine to me 👍🏼 Will mark this as a draft. Please mark it back as "ready for review" once you changed it. |
@c0nst4ntin, @julio-cavallari, I agree. I cleaned up the words and also created an issue: #120 |
What:
Description:
Laravel Framework
Str::apa()
)doesntExist
method of Builder or Collection)$dontReport
) property name or method name from exceptionsLaravel Horizon
balanceCooldown
)Base