Skip to content

Commit

Permalink
Copy editor config for the neon extension from PostgreSQL (#8009)
Browse files Browse the repository at this point in the history
This makes IDEs and github diff format the code the same way as
PostgreSQL sources, which is the style we try to maintain.
  • Loading branch information
hlinnaka committed Jun 11, 2024
1 parent 7121db3 commit 78a59b9
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
19 changes: 19 additions & 0 deletions pgxn/.dir-locals.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
;; see also src/tools/editors/emacs.samples for more complete settings

((c-mode . ((c-basic-offset . 4)
(c-file-style . "bsd")
(fill-column . 78)
(indent-tabs-mode . t)
(tab-width . 4)))
(nxml-mode . ((fill-column . 78)
(indent-tabs-mode . nil)))
(perl-mode . ((perl-indent-level . 4)
(perl-continued-statement-offset . 2)
(perl-continued-brace-offset . -2)
(perl-brace-offset . 0)
(perl-brace-imaginary-offset . 0)
(perl-label-offset . -2)
(indent-tabs-mode . t)
(tab-width . 4)))
(sgml-mode . ((fill-column . 78)
(indent-tabs-mode . nil))))
14 changes: 14 additions & 0 deletions pgxn/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
root = true

[*.{c,h,l,y,pl,pm}]
indent_style = tab
indent_size = tab
tab_width = 4

[*.{sgml,xml}]
indent_style = space
indent_size = 1

[*.xsl]
indent_style = space
indent_size = 2

1 comment on commit 78a59b9

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3286 tests run: 3130 passed, 1 failed, 155 skipped (full report)


Failures on Postgres 14

  • test_pgbench_intensive_init_workload[vanilla-github-actions-selfhosted-1000]: release
# Run all failed tests locally:
scripts/pytest -vv -n $(nproc) -k "test_pgbench_intensive_init_workload[vanilla-release-pg14-github-actions-selfhosted-1000]"
Flaky tests (2)

Postgres 15

  • test_storage_controller_smoke: release

Postgres 14

  • test_pageserver_restarts_under_worload: release

Code coverage* (full report)

  • functions: 31.6% (6626 of 20990 functions)
  • lines: 48.6% (51501 of 106045 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
78a59b9 at 2024-06-11T21:39:32.329Z :recycle:

Please sign in to comment.