-
Notifications
You must be signed in to change notification settings - Fork 6
Revert "Don't enforce double-quotes for strings." #124
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy with this change.
I'm all for this 👍 This PR should update the changelog too - likely with instruction of how to apply the fix globally and programatically. If we don't hit any major points of contention getting this PR in I wonder if we should also include the re-instating of the trailing comma change in the next major release - this was the other old rule that we trialled in Content Publisher and didn't seem to upset anyone. |
a966c38
to
8c38466
Compare
This reverts commit 67e3ea7.
8c38466
to
cc3eeeb
Compare
Ah I had thought it was set to true and the false given the extra options that cop had. However there is this: alphagov/styleguides@e197dce although since we apply the symmetrical style to MultiLineMethodLayout the bad example now feels out of date compared to what we regularly use. |
@kevindew thanks for the references. I there are two separable parts in alphagov/styleguides@e197dce: the parenthesis layout; and the trailing commas. On that basis, it seems like there's a fair precedent to (re?)introduce the comma aspect. Again, there's the same argument around needless flexibility. I'll do a PR in a bit... |
Aha! I found it: #125 |
This linter rule is enforced as of alphagov/govuk-lint#124
This reverts commit 67e3ea7. Based on discussions in other repos [1][2] and what seems to be general agreement in the community, I think we should reenable this and eliminate the mass inconsistency that's crept into a lot of repos since 2015. It's one of those little pain points that keeps coming up. In contrast to the original PR, I think disabling the cop has actually made it harder to be consistent.
To quote @kevindew:
The good news is that it's very easy to automatically fix this across an entire repo, which I'm aware is one of the consequences of merging this PR, and which I'm happy to help with.