kleros/kleros-v2

View on GitHub
refactor(web): remove-unused-import #7345
Harman-singh-waraich authored 98661023
complete00:00:40
1
git clone
2
codeclimate validate-config
View output
codeclimate validate-config
WARNING: 'engines' has been deprecated, please use 'plugins' instead
WARNING: 'exclude_paths' has been deprecated, please use 'exclude_patterns' instead
3
codeclimate prepare
View output
codeclimate prepare
4
builder pull-engines
View output
determining required images
5
structure
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
W, [2024-11-08T11:49:38.689477 #1]  WARN -- : Skipping contracts/wagmi.config.mainnet.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:38.689514 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:38.972203 #1]  WARN -- : Skipping contracts/scripts/wagmiHelpers.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:38.972247 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:38.973401 #1]  WARN -- : Skipping contracts/scripts/console-init-chiado.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:38.973433 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:38.977993 #1]  WARN -- : Skipping contracts/scripts/console-init-chiado-resolver.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:38.978019 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:39.005205 #1]  WARN -- : Skipping contracts/scripts/console-init.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:39.005232 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:39.331652 #1]  WARN -- : Skipping contracts/wagmi.config.devnet.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:39.331683 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:39.647146 #1]  WARN -- : Skipping contracts/wagmi.config.testnet.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:39.647188 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:39.680522 #1]  WARN -- : Skipping web/src/hooks/useParsedAmount.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:39.680551 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:39.752143 #1]  WARN -- : Skipping web/src/hooks/queries/useEvidenceGroup.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:39.752172 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:39.763659 #1]  WARN -- : Skipping web/src/hooks/queries/useDisputeTemplate.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:39.763688 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:39.782273 #1]  WARN -- : Skipping web/src/hooks/useIsCrossChainDispute.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:39.782302 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:39.801385 #1]  WARN -- : Skipping web/src/hooks/useSigningAccount.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:39.801415 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:39.917596 #1]  WARN -- : Skipping web/src/utils/uploadSettingsToSupabase.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:39.917628 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:39.955833 #1]  WARN -- : Skipping web/src/utils/wrapWithToast.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:39.955864 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:39.997644 #1]  WARN -- : Skipping web/src/components/Verdict/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:39.997670 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:40.001203 #1]  WARN -- : Skipping web/src/components/Verdict/DisputeTimeline.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:40.001228 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:40.004169 #1]  WARN -- : Skipping web/src/components/Verdict/FinalDecision.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:40.004193 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:40.330485 #1]  WARN -- : Skipping web/src/components/ConnectWallet/AccountDisplay.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:40.330515 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:40.484876 #1]  WARN -- : Skipping web/src/components/DisputeCard/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:40.484905 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:40.677983 #1]  WARN -- : Skipping web/src/consts/eip712-messages.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:40.678012 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:40.765508 #1]  WARN -- : Skipping web/src/pages/Home/TopJurors/JurorCard/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:40.765546 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:41.044111 #1]  WARN -- : Skipping web/src/pages/Dashboard/Courts/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:41.044137 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:41.216478 #1]  WARN -- : Skipping web/src/pages/Cases/CaseDetails/Evidence/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:41.216505 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:41.238781 #1]  WARN -- : Skipping web/src/pages/Cases/CaseDetails/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:41.238816 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:41.242131 #1]  WARN -- : Skipping web/src/pages/Cases/CaseDetails/Voting/VotingHistory.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:41.242165 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:41.244007 #1]  WARN -- : Skipping web/src/pages/Cases/CaseDetails/Voting/Classic/Commit.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:41.244048 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:41.251371 #1]  WARN -- : Skipping web/src/pages/Cases/CaseDetails/Voting/Classic/OptionsContainer.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:41.251397 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:41.252637 #1]  WARN -- : Skipping web/src/pages/Cases/CaseDetails/Voting/Classic/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:41.252662 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:41.254110 #1]  WARN -- : Skipping web/src/pages/Cases/CaseDetails/Voting/Classic/Reveal.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:41.254135 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:41.255370 #1]  WARN -- : Skipping web/src/pages/Cases/CaseDetails/Voting/Classic/Vote.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:41.255395 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:41.257141 #1]  WARN -- : Skipping web/src/pages/Cases/CaseDetails/Voting/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:41.257167 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:41.272812 #1]  WARN -- : Skipping web/src/pages/Cases/CaseDetails/Overview/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:41.272838 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:41.397971 #1]  WARN -- : Skipping web/wagmi.config.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:41.398002 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:41.416264 #1]  WARN -- : Skipping web/netlify/functions/update-settings.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:41.416298 #1]  WARN -- : Response status: 422
6
duplication
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
I, [2024-11-08T11:49:44.442854 #1]  INFO -- : Skipping file ./bot-pinner/src/add_hashes.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 47
    logger.info(f"Cycle starting from block #{block_number}. WANTED HASHES: {len(hashes_wanted)}")
                                                                                                ^
SyntaxError: invalid syntax


I, [2024-11-08T11:49:44.447700 #1]  INFO -- : Skipping file ./bot-pinner/src/tooling.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 9
    r = requests.post(f"{IPFS}/version")
                                      ^
SyntaxError: invalid syntax


W, [2024-11-08T11:49:45.670224 #1]  WARN -- : Skipping contracts/wagmi.config.mainnet.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:45.670278 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:46.033267 #1]  WARN -- : Skipping ./contracts/scripts/wagmiHelpers.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:46.033297 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:46.046089 #1]  WARN -- : Skipping ./contracts/scripts/console-init-chiado.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:46.046194 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:46.067633 #1]  WARN -- : Skipping ./contracts/scripts/console-init-chiado-resolver.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:46.067666 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:46.096938 #1]  WARN -- : Skipping ./contracts/scripts/console-init.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:46.098319 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:46.633658 #1]  WARN -- : Skipping contracts/wagmi.config.devnet.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:46.633922 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:47.393083 #1]  WARN -- : Skipping contracts/wagmi.config.testnet.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:47.393181 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:47.411586 #1]  WARN -- : Skipping ./web/src/hooks/useParsedAmount.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:47.411777 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:47.525298 #1]  WARN -- : Skipping ./web/src/hooks/queries/useEvidenceGroup.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:47.525389 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:47.535620 #1]  WARN -- : Skipping ./web/src/hooks/queries/useDisputeTemplate.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:47.535829 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:47.558539 #1]  WARN -- : Skipping ./web/src/hooks/useIsCrossChainDispute.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:47.558616 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:47.594281 #1]  WARN -- : Skipping ./web/src/hooks/useSigningAccount.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:47.594309 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:47.728596 #1]  WARN -- : Skipping ./web/src/utils/uploadSettingsToSupabase.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:47.728789 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:47.790535 #1]  WARN -- : Skipping ./web/src/utils/wrapWithToast.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:47.790622 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:47.843120 #1]  WARN -- : Skipping ./web/src/components/Verdict/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:47.843371 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:47.846110 #1]  WARN -- : Skipping ./web/src/components/Verdict/DisputeTimeline.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:47.846138 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:47.847891 #1]  WARN -- : Skipping ./web/src/components/Verdict/FinalDecision.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:47.847924 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:48.318300 #1]  WARN -- : Skipping ./web/src/components/ConnectWallet/AccountDisplay.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:48.318332 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:48.688203 #1]  WARN -- : Skipping ./web/src/components/DisputeCard/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:48.688544 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:48.988561 #1]  WARN -- : Skipping ./web/src/consts/eip712-messages.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:48.988877 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:49.133421 #1]  WARN -- : Skipping ./web/src/pages/Home/TopJurors/JurorCard/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:49.133528 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:49.678760 #1]  WARN -- : Skipping ./web/src/pages/Dashboard/Courts/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:49.685111 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:50.014798 #1]  WARN -- : Skipping ./web/src/pages/Cases/CaseDetails/Evidence/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:50.014895 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:50.066251 #1]  WARN -- : Skipping ./web/src/pages/Cases/CaseDetails/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:50.068261 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:50.091881 #1]  WARN -- : Skipping ./web/src/pages/Cases/CaseDetails/Voting/VotingHistory.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:50.091957 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:50.093112 #1]  WARN -- : Skipping ./web/src/pages/Cases/CaseDetails/Voting/Classic/Commit.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:50.093140 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:50.103760 #1]  WARN -- : Skipping ./web/src/pages/Cases/CaseDetails/Voting/Classic/OptionsContainer.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:50.103978 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:50.105565 #1]  WARN -- : Skipping ./web/src/pages/Cases/CaseDetails/Voting/Classic/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:50.105595 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:50.109205 #1]  WARN -- : Skipping ./web/src/pages/Cases/CaseDetails/Voting/Classic/Reveal.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:50.109397 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:50.111651 #1]  WARN -- : Skipping ./web/src/pages/Cases/CaseDetails/Voting/Classic/Vote.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:50.111859 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:50.117320 #1]  WARN -- : Skipping ./web/src/pages/Cases/CaseDetails/Voting/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:50.117353 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:50.131528 #1]  WARN -- : Skipping ./web/src/pages/Cases/CaseDetails/Overview/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:50.145847 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:50.427886 #1]  WARN -- : Skipping web/wagmi.config.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:50.428026 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:50.447163 #1]  WARN -- : Skipping ./web/netlify/functions/update-settings.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:50.447247 #1]  WARN -- : Response status: 422
7
tslint
tslint engine documentation
View output
Could not find implementations for the following rules specified in the configuration:
    angular-whitespace
    banana-in-box
    templates-no-negated-async
    directive-selector
    component-selector
    use-input-property-decorator
    use-output-property-decorator
    use-host-property-decorator
    use-view-encapsulation
    no-attribute-parameter-decorator
    no-input-rename
    no-output-rename
    no-output-on-prefix
    no-forward-ref
    use-life-cycle-interface
    contextual-life-cycle
    trackBy-function
    use-pipe-transform-interface
    pipe-naming
    component-class-suffix
    directive-class-suffix
    no-case-with-or
Try upgrading TSLint and/or ensuring that you have all necessary custom rules installed.
If TSLint was recently upgraded, you may have old rules configured which need to be cleaned up.