mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
Better tool
This commit is contained in:
parent
0688e1671f
commit
6c4df0f27a
@ -356,7 +356,7 @@ int Server::main(const std::vector<std::string> & /*args*/)
|
|||||||
std::string path = getCanonicalPath(config().getString("path", DBMS_DEFAULT_PATH));
|
std::string path = getCanonicalPath(config().getString("path", DBMS_DEFAULT_PATH));
|
||||||
std::string default_database = config().getString("default_database", "default");
|
std::string default_database = config().getString("default_database", "default");
|
||||||
|
|
||||||
/// Check that the process' user id matches the owner of the data.
|
/// Check that the process user id matches the owner of the data.
|
||||||
const auto effective_user_id = geteuid();
|
const auto effective_user_id = geteuid();
|
||||||
struct stat statbuf;
|
struct stat statbuf;
|
||||||
if (stat(path.c_str(), &statbuf) == 0 && effective_user_id != statbuf.st_uid)
|
if (stat(path.c_str(), &statbuf) == 0 && effective_user_id != statbuf.st_uid)
|
||||||
|
@ -8,7 +8,8 @@ CURDIR=$(dirname "${BASH_SOURCE[0]}")
|
|||||||
codespell \
|
codespell \
|
||||||
--skip '*generated*,*gperf*,*.bin,*.mrk*,*.idx,checksums.txt,*.dat,*.pyc,*.kate-swp' \
|
--skip '*generated*,*gperf*,*.bin,*.mrk*,*.idx,checksums.txt,*.dat,*.pyc,*.kate-swp' \
|
||||||
--ignore-words "${CURDIR}/codespell-ignore-words.list" \
|
--ignore-words "${CURDIR}/codespell-ignore-words.list" \
|
||||||
|
--exclude-file "${CURDIR}/codespell-ignore-lines.list" \
|
||||||
--quiet-level 2 \
|
--quiet-level 2 \
|
||||||
"$ROOT_PATH"/{src,base,programs,utils} \
|
"$ROOT_PATH"/{src,base,programs,utils} \
|
||||||
$@ | grep -v -F --file="${CURDIR}/codespell-ignore-files.list" \
|
$@ | grep -P '.' \
|
||||||
&& echo "\nFound some typos in code.\nSee the files utils/check-style/codespell* if you want to add an exception."
|
&& echo -e "\nFound some typos in code.\nSee the files utils/check-style/codespell* if you want to add an exception."
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
base/common/iostream_debug_helpers.h:156
|
|
||||||
base/common/preciseExp10.cpp:54
|
|
||||||
base/common/preciseExp10.cpp:87
|
|
||||||
base/common/preciseExp10.cpp:88
|
|
||||||
base/glibc-compatibility/musl/COPYRIGHT:49
|
|
||||||
base/glibc-compatibility/musl/COPYRIGHT:82
|
|
||||||
base/glibc-compatibility/musl/COPYRIGHT:83
|
|
||||||
programs/server/Server.cpp:359
|
|
||||||
utils/github/query.py:144
|
|
5
utils/check-style/codespell-ignore-lines.list
Normal file
5
utils/check-style/codespell-ignore-lines.list
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
/// https://groups.google.com/forum/#!searchin/kona-dev/variadic$20macro%7Csort:date/kona-dev/XMA-lDOqtlI/GCzdfZsD41sJ
|
||||||
|
Jo-Philipp Wich
|
||||||
|
The TRE regular expression implementation (src/regex/reg* and
|
||||||
|
src/regex/tre*) is Copyright © 2001-2008 Ville Laurikari and licensed
|
||||||
|
pullRequests(first: {min_page_size} baseRefName: "{base}" headRefName: "{head}") {{
|
Loading…
Reference in New Issue
Block a user