-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Fix crash with file globbing matching micro option names #4044
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -669,6 +669,21 @@ all files except Go files, and `tabsize` 4 for all files except Ruby files: | |
|
|
||
| Or similarly you can match with globs: | ||
|
|
||
| ```json | ||
| { | ||
| "glob:*.go": { | ||
JoeKar marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "tabstospaces": false | ||
| }, | ||
| "glob:*.rb": { | ||
| "tabsize": 2 | ||
| }, | ||
| "tabstospaces": true, | ||
| "tabsize": 4 | ||
| } | ||
| ``` | ||
|
|
||
| The old non-prefixed glob format is still supported (but internally converted): | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This wording sounds like the reader already knows what "old non-prefixed format" this is referring to. As always, put yourself in a position of a reader who is not already familiar with the stuff we are documenting. And what exactly is the reader supposed to do with "but internally converted"? ...How about: |
||
|
|
||
| ```json | ||
| { | ||
| "*.go": { | ||
|
|
@@ -681,3 +696,6 @@ Or similarly you can match with globs: | |
| "tabsize": 4 | ||
| } | ||
| ``` | ||
|
|
||
| Although it is less verbose, `glob:` is generally more reliable since it avoids | ||
| conflicts with option names. | ||
Uh oh!
There was an error while loading. Please reload this page.