Skip to content

Commit 2bffa3d

Browse files
authored
Merge pull request #525 from shutter-network/fix-linting-errors
Fix remaining linting errors
2 parents 32ba27f + d96ea59 commit 2bffa3d

File tree

19 files changed

+27
-32
lines changed

19 files changed

+27
-32
lines changed

rolling-shutter/app/app.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ where one DeliverTx is called for each transaction in the block. The result is a
211211
application state. Cryptographic commitments to the results of DeliverTx, EndBlock, and Commit are
212212
included in the header of the next block.
213213
*/
214-
func (app *ShutterApp) InitChain(req abcitypes.RequestInitChain) abcitypes.ResponseInitChain {
214+
func (app *ShutterApp) InitChain(req abcitypes.RequestInitChain) abcitypes.ResponseInitChain { //nolint:unparam
215215
genesisState := GenesisAppState{}
216216
err := amino.NewCodec().UnmarshalJSON(req.AppStateBytes, &genesisState)
217217
if err != nil {
@@ -841,7 +841,7 @@ func (app *ShutterApp) maybePersistToDisk() error {
841841
return app.PersistToDisk()
842842
}
843843

844-
func (app *ShutterApp) Commit() abcitypes.ResponseCommit {
844+
func (app *ShutterApp) Commit() abcitypes.ResponseCommit { //nolint:unparam
845845
app.CheckTxState.Reset()
846846

847847
err := app.maybePersistToDisk()

rolling-shutter/app/dkg_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
var polyEval = []*big.Int{new(big.Int).SetBytes([]byte{})}
1212

13-
func TestRegisterMsgs(t *testing.T) {
13+
func TestRegisterMsgs(t *testing.T) { //nolint:funlen
1414
eon := uint64(10)
1515
keypers := []common.Address{}
1616
for i := 0; i < 3; i++ {

rolling-shutter/cmd/cryptocmd/cryptocmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func encrypt(msg string) error {
139139

140140
msgBytes := []byte(msg)
141141
encryptedMsg := shcrypto.Encrypt(msgBytes, eonKey, epochIDPoint, sigma)
142-
fmt.Println("0x" + hex.EncodeToString(encryptedMsg.Marshal()))
142+
fmt.Println("0x" + hex.EncodeToString(encryptedMsg.Marshal())) //nolint:goconst
143143
return nil
144144
}
145145

rolling-shutter/cmd/cryptocmd/jsontests.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ var testSpecs = []struct {
314314
},
315315
}
316316

317-
func createJSONTests(enc testEncoder) {
317+
func createJSONTests(enc testEncoder) { //nolint:gocyclo
318318
keys, err := testkeygen.NewEonKeys(rand.Reader, 12, 10)
319319
if err != nil {
320320
panic(err)

rolling-shutter/collator/batchhandler/sequencer/mockethserver.go

Whitespace-only changes.

rolling-shutter/collator/collator.go

Whitespace-only changes.

rolling-shutter/gnosisaccessnode/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func (c *Config) SetDefaultValues() error {
4646
return nil
4747
}
4848

49-
func (c *Config) SetExampleValues() error { //nolint:unparam
49+
func (c *Config) SetExampleValues() error {
5050
err := c.SetDefaultValues()
5151
if err != nil {
5252
return err

rolling-shutter/keyper/epochkghandler/keyshare_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func TestHandleDecryptionKeyShareIntegration(t *testing.T) {
8787
}
8888
}
8989

90-
func TestDecryptionKeyshareValidatorIntegration(t *testing.T) {
90+
func TestDecryptionKeyshareValidatorIntegration(t *testing.T) { //nolint:funlen
9191
if testing.Short() {
9292
t.Skip("skipping integration test")
9393
}

rolling-shutter/keyper/kprapi/http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func (srv *Server) GetDecryptionKey(w http.ResponseWriter, r *http.Request, eon
6262
return
6363
}
6464

65-
res := "0x" + hex.EncodeToString(decryptionKey.DecryptionKey)
65+
res := "0x" + hex.EncodeToString(decryptionKey.DecryptionKey) //nolint:goconst
6666
w.Header().Set("Content-Type", "application/json")
6767
_ = json.NewEncoder(w).Encode(res)
6868
}

rolling-shutter/medley/configuration/command/command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func NewConfigForFunc[T configuration.Config](fn ConfigurableFunc[T]) T {
6262
// The configuration parsing is inferred by main's only argument, which
6363
// has to be a configuration struct that complies with the configuration.Config
6464
// interface.
65-
func Build[T configuration.Config](
65+
func Build[T configuration.Config]( //nolint:funlen
6666
main ConfigurableFunc[T],
6767
options ...Option,
6868
) *CommandBuilder[T] {

0 commit comments

Comments
 (0)