-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Setup golangci action * Enable golangci-lint contextcheck * Add missing error handling * Rename unused parameters * ignore IDE .idea * Ignore interface bloat in group.go * Fix some formatting * Add error handling * Fix asalint * minor fixes * Add false-positive exception * Add line length exception * Correct capitalization * Fix lint issues package bn256 * Fix lint issues package eddsa * Fix lint issues package util * Fix lint issues package keccak * Fix lint issues package int * Fix lint issues package blake2x[s, b] * Fix lint issues package curve25519 * Fix lint issues package shuffle * Fix lint issues package dleq * Fix lint issues package share * Fix lint issues package curve25519 * Fix lint issues package anon * Fix lint issues package cosi * Fix lint issues package ecies * Fix lint issues dkg-rabin * Fix most lint issues package proof * Fix most lint issues package nist * Fix lint issues sign * Fix most lint issues share * Fix lint issues share * Reduce cogn. complexity * Fix linter issues package edwards25519 * relax golangci rules * Fix last linter error in group * More linter fix * Rename unused parameters * Divide large test * Fix new lint error shuffle * Fix lint error encoding * Make initBasePoint() a method of curve25519 * Fix forgotten conflict * Add back golangci rules * Add error handling * Remove println * Simplify if-else chain * Simplify function * Replace prints * Remove unused * Harmonize receivers name * Simplify if-else * Fix lint issue share package * Ignore dup, lll and funlen for certain files * Lint fix for pairing package * Lint fix for sign package * Lint fix curve25519 * Lint fix xof package * Update golangci rules * Better var name * Add missing error handling * Update golangci rules * Remove useless nolint * ignore / fix lint errors * Allow capital var name for point convention * Make points name capital * Errors fix * Typos * Remove unused lint rules * Remove unnecessary checks * Export dleq errors * Rename test file * Export cast error * Wrap errors * Minor refactoring * Export errors * Multiple fix * Fix ibe lint errors * Add lint exceptions * Fix mistake fe_test * Clean up
- Loading branch information
Showing
110 changed files
with
1,599 additions
and
1,106 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Lint | ||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
permissions: | ||
contents: read | ||
# Optional: allow read access to pull request. Use with `only-new-issues` option. | ||
# pull-requests: read | ||
|
||
jobs: | ||
golangci: | ||
name: lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: '1.20' | ||
cache: false | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v4 | ||
with: | ||
# Require: The version of golangci-lint to use. | ||
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version. | ||
# When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit. | ||
version: v1.56.2 | ||
|
||
# Optional: working directory, useful for monorepos | ||
# working-directory: somedir | ||
|
||
# Optional: golangci-lint command line arguments. | ||
# | ||
# Note: By default, the `.golangci.yml` file should be at the root of the repository. | ||
# The location of the configuration file can be changed by using `--config=` | ||
# args: --timeout=30m --config=/my/path/.golangci.yml --issues-exit-code=0 | ||
|
||
# Optional: show only new issues if it's a pull request. The default value is `false`. | ||
# only-new-issues: true | ||
|
||
# Optional: if set to true, then all caching functionality will be completely disabled, | ||
# takes precedence over all other caching options. | ||
# skip-cache: true | ||
|
||
# Optional: if set to true, then the action won't cache or restore ~/go/pkg. | ||
# skip-pkg-cache: true | ||
|
||
# Optional: if set to true, then the action won't cache or restore ~/.cache/go-build. | ||
# skip-build-cache: true | ||
|
||
# Optional: The mode to install golangci-lint. It can be 'binary' or 'goinstall'. | ||
# install-mode: "goinstall" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,5 @@ exit_tunnel | |
.DS_Store | ||
*.cov | ||
profile.tmp | ||
Coding/ | ||
Coding/ | ||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.