Skip to content

Commit 7d22652

Browse files
elhimovoleg-jukovec
authored andcommitted
ci: fix static code check errors
Closes TNTP-6083
1 parent 3dd8f0b commit 7d22652

File tree

22 files changed

+89
-38
lines changed

22 files changed

+89
-38
lines changed

.cspell.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ ignoreRegExpList:
3030
- ^\s+(\w+\s+)?"github.com/.*" # Ignore Go import paths.
3131
- -D[A-Z\d_]+ # Ignore CMake flags "-DFLAG_NAME".
3232
- \d+-g[a-f\d]{4,} # Ignore git commit hashes in version string.
33+
34+
allowCompoundWords: true

.cspell_project-words.txt

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@
44
+s
55
addfinalizer
66
aeon*
7+
anykey
78
autoexpel
89
bootstrapper
910
ccluster
11+
cconfig
1012
clientv3
1113
clustercmd
14+
cmdcontext
1215
commentf
1316
configcartridgecustom
1417
connpool
@@ -28,48 +31,80 @@ finalizer*
2831
flightrec
2932
getfixturevalue
3033
golangci
34+
iconfig
3135
incdir
3236
infof
37+
iproto
3338
leaderuuid
3439
libcluster
40+
libconnect
41+
libwatchdog
42+
linecomment
3543
luabody
3644
luajit
3745
luakit
3846
luarocks
47+
magefile
48+
MAKEFLAGS
3949
mapstructure
4050
memtx
51+
multireturn
4152
mvcc
4253
mvccpb
54+
myapp
4355
nilf
56+
noarch
4457
nodeps
4558
nogc
4659
nolint
4760
notarantool
61+
oldfd
62+
outputformat
63+
packignore
64+
payloadsize
65+
pflag
66+
pkgs
67+
postinst
68+
preinst
4869
promptui
4970
protoc
71+
pseudographics
5072
rebootstrap
73+
regexputil
5174
replicaset*
75+
rescan
5276
rockspec*
5377
rpmdeb
78+
rundir
79+
socketpath
80+
sourcedir
5481
specialchars
5582
sslcafile
83+
sslcertfile
5684
sslciphers
85+
sslkeyfile
5786
stateboard
5887
svacer
88+
sysdetect
5989
tarantool*
90+
tinstance
6091
tlsdialer
6192
tmpl
6293
tnt+
6394
tntp
6495
trimprefix
6596
truef
97+
ttable
98+
ttlog
6699
unknowncentralized
67100
unknownnonetarantooletcd
68101
unknownnosinglemulti
69102
unknownoffmanualeventualelectionstatefulsupervised
70103
unknownoffvotercandidatemanual
71104
unknownreadrw
72105
unknownuninitializedbootstrapped
106+
varbinary
107+
vclock
73108
vshard
74109
vylog
75110
warnf

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ repos:
4747
exclude: |
4848
(?x)^(
4949
.*\.pb\.go|
50-
.*/third_party/.*
50+
.*/third_party/.*|
51+
.*-gdb\.py
5152
)$
5253
additional_dependencies:
5354
- "@cspell/dict-markdown"

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- spell-checker:ignore testfull -->
12

23
<a href="http://tarantool.org">
34
<img src="https://avatars2.githubusercontent.com/u/2344919?v=2&s=250"

cli/cluster/cluster_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import (
1111
libcluster "github.com/tarantool/tt/lib/cluster"
1212
)
1313

14+
// spell-checker:ignore nopath noinstance
15+
1416
func TestGetClusterConfig_path(t *testing.T) {
1517
collectors := libcluster.NewCollectorFactory(libcluster.NewDataCollectorFactory())
1618
config, err := cluster.GetClusterConfig(collectors, "testdata/app/config.yaml")

cli/cmd/coredump.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ var (
1717
// NewCoredumpCmd creates coredump command.
1818
func NewCoredumpCmd() *cobra.Command {
1919
cmd := &cobra.Command{
20-
Use: "coredump",
20+
Use: "coredump",
21+
// spell-checker:ignore coredumps
2122
Short: "Perform manipulations with the tarantool coredumps",
2223
}
2324

cli/codegen/generate_code.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ func getFileModes(root string) (map[string]int, error) {
112112
}
113113

114114
func main() {
115+
// spell-checker:ignore filemodes
115116
err := generateFileModeFile(
116117
"cli/create/builtin_templates/templates/cartridge",
117118
"cli/create/builtin_templates/static/cartridge_template_filemodes_gen.go",

cli/docker/docker.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ import (
1919
"github.com/moby/term"
2020
)
2121

22+
// spell-checker:ignore jsonmessage stdcopy
23+
2224
const (
2325
// defaultDirPermissions is permissions for new directories.
2426
// 0755 - drwxr-xr-x.

cli/install/install.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ func programDependenciesInstalled(program search.Program) error {
303303
{"make", "make"},
304304
{"gcc", " build-essential"},
305305
}
306-
packages = []string{"coreutils", "sed"}
306+
packages = []string{"coreutils", "sed"} // spell-checker:disable-line
307307
} else if strings.Contains(osName, "CentOs") {
308308
programs = []Package{
309309
{"cmake", "cmake"},

cli/pack/rpm_const.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ const (
8484
rpmSenseScriptPostUn = 0x1000
8585
)
8686

87+
// spell-checker:ignore tmpfiles
88+
8789
var (
8890
headerMagic = []byte{0x8e, 0xad, 0xe8}
8991
versionByte = 0x01

0 commit comments

Comments
 (0)