-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fix spelling of offence (s/b offense) #700
Comments
That's a difference in American English. Everyone else writes "offence". |
One neutral point of reference for this is that the Ruby language itself is implemented in American English. One example being that |
@josephjaber True. I'll think about changing this, but it's pretty hard for someone like me to write On a more serious note - there are packages that depend on RuboCop and are likely manipulating offences - renaming the class will be problematic for some of them. |
@jonas054 @yujinakayama What do you think? |
I'm on the fence about this. If we'll change it, we need to consider backward compatibilities:
|
We must admit that we made a mistake with the spelling. It should have been offense from the start. However, it seems like changing it now is a lot of trouble. I say we keep it as it is. |
Probably the timing of release of RuboCop 1.0 would be a good chance to handle this. |
My thought is misspellings make software look unprofessional and we should correct it before Rubocop makes a major version release. Per semantic versioning (semver.org), it's expected to have some incompatibilities when the major version is incremented. Can we handle the API change similar to how chefspec handles deprecations? They provide a require 'chefspec/deprecations' |
@jhx @jonas054 This was a deliberate choice on my part as I dislike the American spelling of many words... I'm not saying it was good decision, but I'm saying this wasn't a misspelling. :-) I'll keep the discussion open for now (to see if other members of the RuboCop community will voice their opinions) and we'll make the final decision down the road. |
I vote to deprecate the non American spelling FWIW. English is my third language, but I found the spelling odd. I wouldn't worry about backwards compat too much, it will be very clear to someone upgrading if things are broken and this isn't a gem used in production runtimes. |
I think that should be a team/project decision. Whether we're operating in an English or American language environment, most of us no doubt have tools such as editors that hook into system spelling-checkers and so on. Having the "other" language's spelling constantly flagged with red squiggly lines is a distraction too likely to train us to ignore such errors in non-code tools. And nobody, on either side of the divide, can seriously expect the other to swap languages used for email, word processing, etc… Our preferred approach to date has been to attempt to identify such potential issues, and try to come up with domain-meaningful names with invariant spelling between the two languages. Where that's not practical, e.g. with a property named
Reduce distractions where possible, and in all other cases, accommodate. There are somewhat more native English speakers than American speakers in the world, even if the developer community has historically been imbalanced. It will not likely always be so. |
In light of all arguments I've decided to go with |
I think I'll check some major external tools that are using RuboCop's public API, and send pull requests. |
It seems no change is required in almost tools.
|
@yujinakayama Good news! Thanks for taking the time to check this. |
No description provided.
The text was updated successfully, but these errors were encountered: