]> source.dussan.org Git - gitea.git/commit
Enforce tab indentation in templates (#15289)
authorsilverwind <me@silverwind.io>
Sun, 11 Apr 2021 03:46:37 +0000 (05:46 +0200)
committerGitHub <noreply@github.com>
Sun, 11 Apr 2021 03:46:37 +0000 (23:46 -0400)
commitd848098f60f78e6b4a72ae7f769fd66399a8ba82
treeee6e769196f546c8a0c7d85c82eecccd0bf67e1e
parent0c77e0791c079ea8c01e03f636f22a0ff7e9d22b
Enforce tab indentation in templates (#15289)

* Enforce tab indendation in templates

This adds editorconfig-checker [1] to lint the template files so they
conform the editorconfig files. I fixed all current identation issues
using the fix mode of eclint [2] and some manual corrections.

We can extend this linting to other files later, for now I'd like this
PR to focus on HTML template files only.

[1] https://github.com/editorconfig-checker/editorconfig-checker
[2] https://github.com/jedmao/eclint

* fix indendation

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
67 files changed:
.editorconfig
Makefile
package-lock.json
package.json
templates/admin/auth/edit.tmpl
templates/admin/auth/new.tmpl
templates/admin/auth/source/ldap.tmpl
templates/admin/auth/source/oauth.tmpl
templates/admin/base/search.tmpl
templates/admin/repo/list.tmpl
templates/admin/repo/unadopted.tmpl
templates/base/alert_details.tmpl
templates/base/head.tmpl
templates/explore/code.tmpl
templates/explore/organizations.tmpl
templates/explore/repo_search.tmpl
templates/explore/search.tmpl
templates/explore/users.tmpl
templates/mail/issue/assigned.tmpl
templates/mail/issue/default.tmpl
templates/mail/notify/collaborator.tmpl
templates/mail/release.tmpl
templates/org/home.tmpl
templates/org/settings/labels.tmpl
templates/org/team/navbar.tmpl
templates/post-install.tmpl
templates/repo/activity.tmpl
templates/repo/blame.tmpl
templates/repo/branch/list.tmpl
templates/repo/commit_page.tmpl
templates/repo/commits_table.tmpl
templates/repo/diff/compare.tmpl
templates/repo/diff/csv_diff.tmpl
templates/repo/diff/image_diff.tmpl
templates/repo/diff/new_review.tmpl
templates/repo/editor/edit.tmpl
templates/repo/header.tmpl
templates/repo/issue/branch_selector_field.tmpl
templates/repo/issue/comment_tab.tmpl
templates/repo/issue/labels/edit_delete_label.tmpl
templates/repo/issue/labels/label_load_template.tmpl
templates/repo/issue/milestone_issues.tmpl
templates/repo/issue/milestones.tmpl
templates/repo/issue/view_content.tmpl
templates/repo/issue/view_content/attachments.tmpl
templates/repo/issue/view_content/comments.tmpl
templates/repo/issue/view_title.tmpl
templates/repo/migrate/github.tmpl
templates/repo/migrate/gitlab.tmpl
templates/repo/migrate/gogs.tmpl
templates/repo/pulls/status.tmpl
templates/repo/release/list.tmpl
templates/repo/settings/branches.tmpl
templates/repo/settings/deploy_keys.tmpl
templates/repo/settings/webhook/matrix.tmpl
templates/repo/settings/webhook/telegram.tmpl
templates/repo/view_file.tmpl
templates/repo/wiki/revision.tmpl
templates/shared/issuelist.tmpl
templates/user/auth/signup_openid_navbar.tmpl
templates/user/auth/twofa.tmpl
templates/user/dashboard/issues.tmpl
templates/user/dashboard/milestones.tmpl
templates/user/notification/notification_div.tmpl
templates/user/settings/keys_gpg.tmpl
templates/user/settings/repos.tmpl
templates/user/settings/security_u2f.tmpl