mirror of
https://github.com/percona/pg_stat_monitor.git
synced 2026-02-04 05:56:21 +00:00
Format sources (#475)
* Temporary disable workflows * Add indent target to makefiel * Add CI workflow to check if sources formatted * Fix * Fix * Fix * Fix * Fix * Fix * Fix * Fix * Fix * Format sources * Add comments * Revert "Temporary disable workflows" This reverts commit7e11cf6154. * Revert "Format sources" This reverts commit6ef992d9f0. * Use PG17 for code formatt * Format sources * Revert "Format sources" This reverts commit34061e1f82. * Format sources
This commit is contained in:
11
Makefile
11
Makefile
@@ -30,3 +30,14 @@ top_builddir = ../..
|
||||
include $(top_builddir)/src/Makefile.global
|
||||
include $(top_srcdir)/contrib/contrib-global.mk
|
||||
endif
|
||||
|
||||
# Fetches typedefs list for PostgreSQL core and merges it with typedefs defined in this project.
|
||||
# https://wiki.postgresql.org/wiki/Running_pgindent_on_non-core_code_or_development_code
|
||||
update-typedefs:
|
||||
wget -q -O - "https://buildfarm.postgresql.org/cgi-bin/typedefs.pl?branch=REL_17_STABLE" | cat - typedefs.list | sort | uniq > typedefs-full.list
|
||||
|
||||
# Indents projects sources.
|
||||
indent:
|
||||
pgindent --typedefs=typedefs-full.list .
|
||||
|
||||
.PHONY: update-typedefs indent
|
||||
Reference in New Issue
Block a user