-
Notifications
You must be signed in to change notification settings - Fork 15
spell: turn on pre-commit auto spell checker #1184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
370cdba
to
c04ce9f
Compare
2b4a206
to
59e26ec
Compare
b4547b7
to
20a96d7
Compare
SKIP: golangci-lint-full | ||
with: | ||
extra_args: --all-files --from-ref=${{ env.BASE_BRANCH }} --to-ref=HEAD --hook-stage=manual | ||
# - name: pre-commit checks (diff) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
equalf | ||
errf | ||
etcd* | ||
etcdserver |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks unnecessary as previous entry matches it.
tlsdialer | ||
tmpl | ||
tnt+ | ||
tntp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks unnecessary as previous entry matches it.
@@ -145,7 +145,7 @@ func startEtcd(t *testing.T, opts etcdOpts) integration.LazyCluster { | |||
func etcdPut(t *testing.T, etcd *clientv3.Client, key, value string) { | |||
t.Helper() | |||
var ( | |||
presp *clientv3.PutResponse | |||
presp *clientv3.PutResponse // spell-checker:ignore presp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In 'cli/cluster/integration_test.go' the same identifier changed to pResp
. Please consider single approach.
@@ -273,10 +273,10 @@ func TestConnectEtcd(t *testing.T) { | |||
etcdPut(t, etcd, "foo", "bar") | |||
|
|||
ctx, cancel := context.WithTimeout(context.Background(), timeout) | |||
gresp, err := etcd.Get(ctx, "foo") | |||
resp, err := etcd.Get(ctx, "foo") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In 'cli/cluster/integration_test.go' the similar identifier presp
changed to pResp
. Please consider similar approach here.
@@ -502,6 +502,7 @@ func (publisher EtcdAllDataPublisher) Publish(revision int64, data []byte) error | |||
txn = txn.If(cmps...) | |||
} | |||
|
|||
// spell-checker:ignore tresp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In 'cli/cluster/integration_test.go' the similar identifier presp
changed to pResp
. Please consider similar approach here.
@@ -849,12 +850,12 @@ func СonnectEtcdUriOpts( | |||
func DoOnStorage(connOpts ConnectOpts, opts libconnect.UriOpts, | |||
tarantoolFunc func(tarantool.Connector) error, etcdFunc func(*clientv3.Client) error, | |||
) error { | |||
etcdcli, errEtcd := СonnectEtcdUriOpts(opts, connOpts) | |||
etcdcli, errEtcd := ConnectEtcdUriOpts(opts, connOpts) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So it turns out that we had public identifier with cyrillic symbol. Nice catch! )
if errEtcd == nil { | ||
return etcdFunc(etcdcli) | ||
} | ||
|
||
conn, errTarantool := СonnectTarantool(opts, connOpts) | ||
conn, errTarantool := ConnectTarantool(opts, connOpts) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And it's not alone! )))
@@ -155,7 +155,7 @@ def test_promote_cconfig_failovers( | |||
"manual-failover-2", | |||
"election-failover-1", | |||
"election-failover-2", | |||
"eleciton-failover-3", | |||
"eleciton-failover-3", # spell-checker:disable-line |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"eleciton-failover-3", # spell-checker:disable-line | |
"election-failover-3", |
@@ -44,7 +46,7 @@ def skip_no_helpers(request: pytest.FixtureRequest, completion: Completion) -> N | |||
|
|||
|
|||
def pytest_configure(config): | |||
config.addinivalue_line( | |||
config.addinivalue_line( # cSpell:words addinivalue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's possible I'd suggest to introduce separate project-words file for integration tests directory. All pytest identifiers that are currently in use could be listed there.
Closes #TNTP-3105
Part of #TNTP-3105
Part of #TNTP-3105
Part of #TNTP-3105
Due to formatting changes, it triggers the linter's errors. FIXME: turn on the checking with the following PR. Part of #TNTP-3105
20a96d7
to
707afff
Compare
Turning on automatic static code analyzer: check words misspell for code files.
Closes #TNTP-3105
Come with second part in #1185