Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
9500b21e
Commit
9500b21e
authored
Aug 03, 2020
by
harrylee
Committed by
33cn
Aug 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rejust code for golangci-lint
parent
34470fe4
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
33 additions
and
35 deletions
+33
-35
golinter.sh
golinter.sh
+3
-0
abi_test.go
plugin/dapp/evm/executor/abi/abi_test.go
+2
-2
bn256_fast.go
...in/dapp/evm/executor/vm/common/crypto/bn256/bn256_fast.go
+1
-2
bn256_fuzz.go
...in/dapp/evm/executor/vm/common/crypto/bn256/bn256_fuzz.go
+1
-2
bn256_slow.go
...in/dapp/evm/executor/vm/common/crypto/bn256/bn256_slow.go
+1
-2
bn256.go
...p/evm/executor/vm/common/crypto/bn256/cloudflare/bn256.go
+1
-1
bn256.go
.../dapp/evm/executor/vm/common/crypto/bn256/google/bn256.go
+2
-2
bn256_test.go
.../evm/executor/vm/common/crypto/bn256/google/bn256_test.go
+2
-2
constants.go
...p/evm/executor/vm/common/crypto/bn256/google/constants.go
+2
-2
curve.go
.../dapp/evm/executor/vm/common/crypto/bn256/google/curve.go
+2
-2
example_test.go
...vm/executor/vm/common/crypto/bn256/google/example_test.go
+2
-2
gfp12.go
.../dapp/evm/executor/vm/common/crypto/bn256/google/gfp12.go
+2
-2
gfp2.go
...n/dapp/evm/executor/vm/common/crypto/bn256/google/gfp2.go
+2
-2
gfp6.go
...n/dapp/evm/executor/vm/common/crypto/bn256/google/gfp6.go
+2
-2
main_test.go
...p/evm/executor/vm/common/crypto/bn256/google/main_test.go
+2
-2
optate.go
...dapp/evm/executor/vm/common/crypto/bn256/google/optate.go
+2
-2
twist.go
.../dapp/evm/executor/vm/common/crypto/bn256/google/twist.go
+2
-2
const.go
plugin/dapp/evm/executor/vm/model/const.go
+1
-2
errors.go
plugin/dapp/evm/executor/vm/model/errors.go
+1
-2
No files found.
golinter.sh
View file @
9500b21e
...
@@ -18,6 +18,7 @@ function filterLinter() {
...
@@ -18,6 +18,7 @@ function filterLinter() {
--enable
=
goimports
\
--enable
=
goimports
\
--enable
=
misspell
\
--enable
=
misspell
\
--enable
=
golint
\
--enable
=
golint
\
--skip-dirs
=[
"plugin/dapp/evm/executor/vm/common/crypto"
]
\
--exclude
=
underscores
\
--exclude
=
underscores
\
--exclude-use-default
=
false
--exclude-use-default
=
false
)
)
...
@@ -40,6 +41,8 @@ function testLinter() {
...
@@ -40,6 +41,8 @@ function testLinter() {
--enable
=
goimports
\
--enable
=
goimports
\
--enable
=
misspell
\
--enable
=
misspell
\
--enable
=
golint
\
--enable
=
golint
\
--enable
=
nolintlint
\
--skip-dirs
=[
"plugin/dapp/evm/executor/vm/common/crypto"
]
\
--exclude
=
underscores
--exclude
=
underscores
cd
-
>
/dev/null
||
exit
cd
-
>
/dev/null
||
exit
...
...
plugin/dapp/evm/executor/abi/abi_test.go
View file @
9500b21e
...
@@ -739,7 +739,7 @@ func TestUnpackEvent(t *testing.T) {
...
@@ -739,7 +739,7 @@ func TestUnpackEvent(t *testing.T) {
}
}
type
ReceivedEvent
struct
{
type
ReceivedEvent
struct
{
Sender
common
.
Address
Sender
common
.
Hash160
Address
Amount
*
big
.
Int
Amount
*
big
.
Int
Memo
[]
byte
Memo
[]
byte
}
}
...
@@ -751,7 +751,7 @@ func TestUnpackEvent(t *testing.T) {
...
@@ -751,7 +751,7 @@ func TestUnpackEvent(t *testing.T) {
}
}
type
ReceivedAddrEvent
struct
{
type
ReceivedAddrEvent
struct
{
Sender
common
.
Address
Sender
common
.
Hash160
Address
}
}
var
receivedAddrEv
ReceivedAddrEvent
var
receivedAddrEv
ReceivedAddrEvent
err
=
abi
.
Unpack
(
&
receivedAddrEv
,
"receivedAddr"
,
data
)
err
=
abi
.
Unpack
(
&
receivedAddrEv
,
"receivedAddr"
,
data
)
...
...
plugin/dapp/evm/executor/vm/common/crypto/bn256/bn256_fast.go
View file @
9500b21e
...
@@ -6,8 +6,7 @@
...
@@ -6,8 +6,7 @@
// Package bn256 implements the Optimal Ate pairing over a 256-bit Barreto-Naehrig curve.
// Package bn256 implements the Optimal Ate pairing over a 256-bit Barreto-Naehrig curve.
//nolint:unparam // 忽视本文件所有golangci-linter检查
package
bn256
//nolint
package
bn256
import
(
import
(
bn256cf
"github.com/33cn/plugin/plugin/dapp/evm/executor/vm/common/crypto/bn256/cloudflare"
bn256cf
"github.com/33cn/plugin/plugin/dapp/evm/executor/vm/common/crypto/bn256/cloudflare"
...
...
plugin/dapp/evm/executor/vm/common/crypto/bn256/bn256_fuzz.go
View file @
9500b21e
...
@@ -4,8 +4,7 @@
...
@@ -4,8 +4,7 @@
// +build gofuzz
// +build gofuzz
//nolint:unparam // 忽视本文件所有golangci-linter检查
package
bn256
//nolint
package
bn256
import
(
import
(
"bytes"
"bytes"
...
...
plugin/dapp/evm/executor/vm/common/crypto/bn256/bn256_slow.go
View file @
9500b21e
...
@@ -6,8 +6,7 @@
...
@@ -6,8 +6,7 @@
// Package bn256 implements the Optimal Ate pairing over a 256-bit Barreto-Naehrig curve.
// Package bn256 implements the Optimal Ate pairing over a 256-bit Barreto-Naehrig curve.
//nolint:unparam // 忽视本文件所有golangci-linter检查
package
bn256
//nolint
package
bn256
import
bn256
"github.com/33cn/plugin/plugin/dapp/evm/executor/vm/common/crypto/bn256/google"
import
bn256
"github.com/33cn/plugin/plugin/dapp/evm/executor/vm/common/crypto/bn256/google"
...
...
plugin/dapp/evm/executor/vm/common/crypto/bn256/cloudflare/bn256.go
View file @
9500b21e
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
// http://cryptojedi.org/papers/dclxvi-20100714.pdf. Its output is compatible
// http://cryptojedi.org/papers/dclxvi-20100714.pdf. Its output is compatible
// with the implementation described in that paper.
// with the implementation described in that paper.
//nolint:unparam
// 忽视本文件所有golangci-linter检查
//nolint:unparam
package
bn256
package
bn256
import
(
import
(
...
...
plugin/dapp/evm/executor/vm/common/crypto/bn256/google/bn256.go
View file @
9500b21e
...
@@ -18,8 +18,8 @@
...
@@ -18,8 +18,8 @@
// (This package previously claimed to operate at a 128-bit security level.
// (This package previously claimed to operate at a 128-bit security level.
// However, recent improvements in attacks mean that is no longer true. See
// However, recent improvements in attacks mean that is no longer true. See
// https://moderncrypto.org/mail-archive/curves/2016/000740.html.)
// https://moderncrypto.org/mail-archive/curves/2016/000740.html.)
//nolint:unparam // 忽视本文件所有golangci-linter检查
package
bn256
package
bn256
//nolint
import
(
import
(
"crypto/rand"
"crypto/rand"
...
...
plugin/dapp/evm/executor/vm/common/crypto/bn256/google/bn256_test.go
View file @
9500b21e
// Copyright 2012 The Go Authors. All rights reserved.
// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE file.
//nolint:unparam // 忽视本文件所有golangci-linter检查
package
bn256
package
bn256
//nolint
import
(
import
(
"bytes"
"bytes"
...
...
plugin/dapp/evm/executor/vm/common/crypto/bn256/google/constants.go
View file @
9500b21e
// Copyright 2012 The Go Authors. All rights reserved.
// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE file.
//nolint:unparam // 忽视本文件所有golangci-linter检查
package
bn256
package
bn256
//nolint
import
(
import
(
"math/big"
"math/big"
...
...
plugin/dapp/evm/executor/vm/common/crypto/bn256/google/curve.go
View file @
9500b21e
// Copyright 2012 The Go Authors. All rights reserved.
// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE file.
//nolint:unparam // 忽视本文件所有golangci-linter检查
package
bn256
package
bn256
//nolint
import
(
import
(
"math/big"
"math/big"
...
...
plugin/dapp/evm/executor/vm/common/crypto/bn256/google/example_test.go
View file @
9500b21e
// Copyright 2012 The Go Authors. All rights reserved.
// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE file.
//nolint:unparam // 忽视本文件所有golangci-linter检查
package
bn256
package
bn256
//nolint
import
(
import
(
"crypto/rand"
"crypto/rand"
...
...
plugin/dapp/evm/executor/vm/common/crypto/bn256/google/gfp12.go
View file @
9500b21e
// Copyright 2012 The Go Authors. All rights reserved.
// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE file.
//nolint:unparam // 忽视本文件所有golangci-linter检查
package
bn256
package
bn256
//nolint
// For details of the algorithms used, see "Multiplication and Squaring on
// For details of the algorithms used, see "Multiplication and Squaring on
// Pairing-Friendly Fields, Devegili et al.
// Pairing-Friendly Fields, Devegili et al.
...
...
plugin/dapp/evm/executor/vm/common/crypto/bn256/google/gfp2.go
View file @
9500b21e
// Copyright 2012 The Go Authors. All rights reserved.
// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE file.
//nolint:unparam // 忽视本文件所有golangci-linter检查
package
bn256
package
bn256
//nolint
// For details of the algorithms used, see "Multiplication and Squaring on
// For details of the algorithms used, see "Multiplication and Squaring on
// Pairing-Friendly Fields, Devegili et al.
// Pairing-Friendly Fields, Devegili et al.
...
...
plugin/dapp/evm/executor/vm/common/crypto/bn256/google/gfp6.go
View file @
9500b21e
// Copyright 2012 The Go Authors. All rights reserved.
// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE file.
//nolint:unparam // 忽视本文件所有golangci-linter检查
package
bn256
package
bn256
//nolint
// For details of the algorithms used, see "Multiplication and Squaring on
// For details of the algorithms used, see "Multiplication and Squaring on
// Pairing-Friendly Fields, Devegili et al.
// Pairing-Friendly Fields, Devegili et al.
...
...
plugin/dapp/evm/executor/vm/common/crypto/bn256/google/main_test.go
View file @
9500b21e
//nolint:unparam // 忽视本文件所有golangci-linter检查
package
bn256
package
bn256
//nolint
import
(
import
(
"testing"
"testing"
...
...
plugin/dapp/evm/executor/vm/common/crypto/bn256/google/optate.go
View file @
9500b21e
// Copyright 2012 The Go Authors. All rights reserved.
// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE file.
//nolint:unparam // 忽视本文件所有golangci-linter检查
package
bn256
package
bn256
//nolint
func
lineFunctionAdd
(
r
,
p
*
twistPoint
,
q
*
curvePoint
,
r2
*
gfP2
,
pool
*
bnPool
)
(
a
,
b
,
c
*
gfP2
,
rOut
*
twistPoint
)
{
func
lineFunctionAdd
(
r
,
p
*
twistPoint
,
q
*
curvePoint
,
r2
*
gfP2
,
pool
*
bnPool
)
(
a
,
b
,
c
*
gfP2
,
rOut
*
twistPoint
)
{
// See the mixed addition algorithm from "Faster Computation of the
// See the mixed addition algorithm from "Faster Computation of the
...
...
plugin/dapp/evm/executor/vm/common/crypto/bn256/google/twist.go
View file @
9500b21e
// Copyright 2012 The Go Authors. All rights reserved.
// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE file.
//nolint:unparam // 忽视本文件所有golangci-linter检查
package
bn256
package
bn256
//nolint
import
(
import
(
"math/big"
"math/big"
...
...
plugin/dapp/evm/executor/vm/model/const.go
View file @
9500b21e
...
@@ -2,8 +2,7 @@
...
@@ -2,8 +2,7 @@
// Use of this source code is governed by a BSD-style
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE file.
//nolint:unparam // 忽视本文件所有golangci-linter检查
package
model
//nolint
package
model
const
(
const
(
// WordBitSize 内存中存储的字,占用多少位
// WordBitSize 内存中存储的字,占用多少位
...
...
plugin/dapp/evm/executor/vm/model/errors.go
View file @
9500b21e
...
@@ -2,8 +2,7 @@
...
@@ -2,8 +2,7 @@
// Use of this source code is governed by a BSD-style
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE file.
//nolint:unparam // 忽视本文件所有golangci-linter检查
package
model
//nolint
package
model
import
"errors"
import
"errors"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment