-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Add json extension to list of directory indices #6550
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
Add json extension to list of directory indices #6550
Conversation
Now Rubocop says |
one way out is to move the entire array to a class constant or a new private method if that's better.. :DirectoryIndex => %w(
index.htm index.html
index.rhtml index.cgi
index.xml index.json
), |
✅:+1: |
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.
👍 on content – I'll let Rubocop dictate the style. 😄
Rubocop says webrick_opts has too many lines, this reduces the line count for the method.
@adborden Thanks for this excellent first contrib! ❤️ @jekyllbot: merge +minor |
Woohoo! Well done ✨ |
@adborden This has shipped on GitHub Pages and will roll out to 100% of sites over the next few hours. |
Fixes #6348