-
Notifications
You must be signed in to change notification settings - Fork 145
Introduce editorconfig #694
base: master
Are you sure you want to change the base?
Introduce editorconfig #694
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.
Would you be interested in adding something to the CI to ensure the editorconfig is followed across all files?
.editorconfig
Outdated
[{*.{rb,erb,js,coffee,json,yml,css,scss,sh,markdown,md,html}] | ||
indent_size = 2 |
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.
This seems like an odd way to set the indent. Why not set indent_size = 2
for everything, and then set a different indent size for anything that doesn't fit that?
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.
Makes sense. I will update accordingly.
91ae00d
to
5167e3c
Compare
5167e3c
to
ce63a4d
Compare
@MattIPv4 I have updated according to your review and added |
@@ -19,3 +19,5 @@ jobs: | |||
gem install bundler dotenv | |||
bundle install --jobs 4 --retry 3 | |||
bundle exec rubocop | |||
- name: Enforce EditorConfig | |||
uses: zbeekman/EditorConfig-Action@28b76e718c351dd35b22c8f7216192bb9de5c21b |
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.
Had to use SHA because of npm audit issue in action zbeekman/EditorConfig-Action#35
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.
It'd be nice if this could be added to script/test
also, so it might be best to roll our own solution instead of relying on a third-party action?
Description
This PR tries to partially address #623 by adding
.editorconfig
. Editorconfig helps to maintain consistent file formatting across various editors and IDEs.Resource
Test process
Requirements to merge