Skip to content
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

.editorconfig.gitattributesを英語版と同様に設定 #147

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

KentarouTakeda
Copy link
Collaborator

.editorconfig.gitattributesを英語版と同様に設定。ファイル内容は全く同じ。

既に各ファイル末尾のmodelineでは、タブ幅を初めとするテキストフォーマットが指定されている。
「インデントサイズ = 1」など php/doc-* 固有の設定が多いが、対応エディタが少ないため強制力に乏しい。

php/doc-en では同様の指定が .editorconfig にも設定されているが doc-ja には無い。
そのため、指定されたタブ幅と異なるファイルがcommitされるなど不統一を招いている。

EditorConfigにも同様の指定を行うことでそれらの事故を防ぐ。
同時に .gitattributes も同じ内容を指定。

@KentarouTakeda KentarouTakeda merged commit c9927a5 into php:master Nov 7, 2024
1 check passed
@KentarouTakeda KentarouTakeda deleted the add-attribute-files branch November 7, 2024 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant