axonweb3 / axon

Axon is a Layer 2 framework of CKB with native cross-chain and interoperability.
https://axonweb3.io
MIT License
65 stars 39 forks source link

style: unify workspace code style #1622

Open KaoImin opened 7 months ago

KaoImin commented 7 months ago

What this PR does / why we need it?

This PR unify Axon code style using https://github.com/oxsecurity/megalinter:

What is the impact of this PR?

No Breaking Change

PR relation:

CI Settings
### **CI Usage** **Tip**: Check the CI you want to run below, and then comment `/run-ci`. **CI Switch** - [ ] Web3 Compatible Tests - [ ] OpenZeppelin tests - [ ] v3 Core Tests ### **CI Description** | CI Name | Description | | ---------------------- | ------------------------------------------------------------------------------------------------------- | | *Web3 Compatible Test* | Test the Web3 compatibility of Axon | | *v3 Core Test* | Run the compatibility tests provided by Uniswap V3 | | *OpenZeppelin tests* | Run the compatibility tests provided by OpenZeppelin, including OCT 1-5 \| 6-10 \| 11 \| 12-15 \| 16-19 |
yangby-cryptape commented 7 months ago

The key point of the issue is not how to fix, is how to prevent. Your PR doesn't resolve that.

github-actions[bot] commented 7 months ago

πŸ¦™ MegaLinter status: ❌ ERROR

Descriptor Linter Files Fixed Errors Elapsed time
❌ ACTION actionlint 26 46 0.39s
βœ… BASH bash-exec 3 0 0.01s
❌ BASH shellcheck 3 22 0.07s
βœ… BASH shfmt 3 2 0 0.05s
❌ COPYPASTE jscpd yes 435 14.17s
❌ DOCKERFILE hadolint 1 1 0.06s
❌ EDITORCONFIG editorconfig-checker 578 1 2.44s
βœ… ENV dotenv-linter 1 1 0 0.05s
❌ HTML djlint 36 209 1.38s
❌ HTML htmlhint 36 112 0.24s
βœ… JSON eslint-plugin-jsonc 12 0 0 1.25s
βœ… JSON jsonlint 12 0 0.13s
βœ… JSON prettier 12 3 0 0.92s
❌ JSON v8r 12 1 13.13s
⚠️ MARKDOWN markdownlint 85 6 341 6.35s
❌ MARKDOWN markdown-link-check 85 2 405.14s
βœ… MARKDOWN markdown-table-formatter 85 8 0 0.33s
❌ REPOSITORY checkov yes 51 19.18s
❌ REPOSITORY gitleaks yes 166 4.14s
βœ… REPOSITORY git_diff yes no 0.06s
❌ REPOSITORY grype yes 1 17.21s
βœ… REPOSITORY secretlint yes no 3.02s
❌ REPOSITORY trivy yes 1 5.98s
βœ… REPOSITORY trivy-sbom yes no 3.44s
βœ… REPOSITORY trufflehog yes no 5.53s
βœ… YAML prettier 39 26 0 2.64s
❌ YAML v8r 39 1 51.94s
❌ YAML yamllint 39 1 0.84s

See detailed report in MegaLinter reports

_MegaLinter is graciously provided by OX Security_

github-actions[bot] commented 7 months ago

πŸ¦™ MegaLinter status: ❌ ERROR

Descriptor Linter Files Fixed Errors Elapsed time
βœ… BASH bash-exec 2 0 0.01s
❌ BASH shellcheck 2 22 0.07s
βœ… BASH shfmt 2 0 0 0.05s
❌ COPYPASTE jscpd yes 401 14.06s
❌ EDITORCONFIG editorconfig-checker 37 1 0.09s
βœ… ENV dotenv-linter 1 0 0 0.05s
βœ… JSON eslint-plugin-jsonc 5 0 0 0.97s
βœ… JSON jsonlint 5 0 0.21s
❌ JSON v8r 5 1 3.99s
⚠️ MARKDOWN markdownlint 12 0 233 3.36s
⚠️ MARKDOWN markdown-link-check 12 10 43.74s
βœ… MARKDOWN markdown-table-formatter 12 0 0 0.4s
❌ REPOSITORY checkov yes 49 21.48s
⚠️ REPOSITORY devskim yes 234 4.19s
βœ… REPOSITORY dustilock yes no 1.88s
βœ… REPOSITORY git_diff yes no 0.03s
⚠️ REPOSITORY grype yes 1 19.82s
βœ… REPOSITORY secretlint yes no 3.1s
βœ… REPOSITORY syft yes no 1.26s
❌ REPOSITORY trivy yes 1 15.53s
βœ… REPOSITORY trivy-sbom yes no 0.98s
βœ… REPOSITORY trufflehog yes no 4.13s
❌ SPELL cspell 33 183 8.49s
❌ SPELL lychee 20 13 2.73s
βœ… TERRAFORM terraform-fmt 3 0 0 0.33s
❌ TERRAFORM terrascan yes 1 4.47s
❌ TERRAFORM tflint yes 1 0.16s
βœ… YAML prettier 8 0 0 0.8s
βœ… YAML v8r 8 0 7.82s
βœ… YAML yamllint 8 0 0.54s

See detailed report in MegaLinter reports _Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff_

_MegaLinter is graciously provided by OX Security_