kleros/kleros-v2

View on GitHub
Merge pull request #1457 from kleros/fix(web)--fix-variable-names #7372
Aleix authored 501f7f3f
complete00:00:42
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:54.753319 #1]  WARN -- : Skipping contracts/wagmi.config.mainnet.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:54.753367 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:55.159744 #1]  WARN -- : Skipping contracts/scripts/wagmiHelpers.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:55.159787 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:55.161417 #1]  WARN -- : Skipping contracts/scripts/console-init-chiado.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:55.161451 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:55.168493 #1]  WARN -- : Skipping contracts/scripts/console-init-chiado-resolver.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:55.168548 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:55.204374 #1]  WARN -- : Skipping contracts/scripts/console-init.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:55.204413 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:55.654317 #1]  WARN -- : Skipping contracts/wagmi.config.devnet.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:55.654420 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:56.099979 #1]  WARN -- : Skipping contracts/wagmi.config.testnet.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:56.100029 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:56.141352 #1]  WARN -- : Skipping web/src/hooks/useParsedAmount.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:56.141554 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:56.250256 #1]  WARN -- : Skipping web/src/hooks/queries/useEvidenceGroup.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:56.250434 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:56.276488 #1]  WARN -- : Skipping web/src/hooks/queries/useDisputeTemplate.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:56.276854 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:56.312664 #1]  WARN -- : Skipping web/src/hooks/useIsCrossChainDispute.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:56.317742 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:56.352112 #1]  WARN -- : Skipping web/src/hooks/useSigningAccount.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:56.352158 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:56.552886 #1]  WARN -- : Skipping web/src/utils/uploadSettingsToSupabase.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:56.552941 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:56.655784 #1]  WARN -- : Skipping web/src/utils/wrapWithToast.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:56.655830 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:56.741005 #1]  WARN -- : Skipping web/src/components/Verdict/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:56.741046 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:56.744342 #1]  WARN -- : Skipping web/src/components/Verdict/DisputeTimeline.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:56.744385 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:56.752680 #1]  WARN -- : Skipping web/src/components/Verdict/FinalDecision.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:56.752732 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:57.228046 #1]  WARN -- : Skipping web/src/components/ConnectWallet/AccountDisplay.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:57.228089 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:57.440427 #1]  WARN -- : Skipping web/src/components/DisputeCard/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:57.440471 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:57.723918 #1]  WARN -- : Skipping web/src/consts/eip712-messages.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:57.723976 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:57.868162 #1]  WARN -- : Skipping web/src/pages/Home/TopJurors/JurorCard/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:57.868198 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:58.322841 #1]  WARN -- : Skipping web/src/pages/Dashboard/Courts/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:58.322901 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:58.577522 #1]  WARN -- : Skipping web/src/pages/Cases/CaseDetails/Evidence/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:58.577648 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:58.611848 #1]  WARN -- : Skipping web/src/pages/Cases/CaseDetails/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:58.611907 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:58.614543 #1]  WARN -- : Skipping web/src/pages/Cases/CaseDetails/Voting/VotingHistory.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:58.614596 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:58.618561 #1]  WARN -- : Skipping web/src/pages/Cases/CaseDetails/Voting/Classic/Commit.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:58.618660 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:58.630225 #1]  WARN -- : Skipping web/src/pages/Cases/CaseDetails/Voting/Classic/OptionsContainer.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:58.630276 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:58.632142 #1]  WARN -- : Skipping web/src/pages/Cases/CaseDetails/Voting/Classic/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:58.632185 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:58.635283 #1]  WARN -- : Skipping web/src/pages/Cases/CaseDetails/Voting/Classic/Reveal.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:58.635322 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:58.637718 #1]  WARN -- : Skipping web/src/pages/Cases/CaseDetails/Voting/Classic/Vote.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:58.637755 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:58.640863 #1]  WARN -- : Skipping web/src/pages/Cases/CaseDetails/Voting/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:58.640904 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:58.712981 #1]  WARN -- : Skipping web/src/pages/Cases/CaseDetails/Overview/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:58.713027 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:58.919602 #1]  WARN -- : Skipping web/wagmi.config.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:58.919715 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:58.943383 #1]  WARN -- : Skipping web/netlify/functions/update-settings.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:58.943435 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:58.959743 #1]  WARN -- : Skipping kleros-sdk/src/dataMappings/retrieveRealityData.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:58.959782 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:59.052431 #1]  WARN -- : Skipping kleros-sdk/src/dataMappings/disputeDetails.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:59.052478 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:59.068019 #1]  WARN -- : Skipping kleros-sdk/src/dataMappings/decoder.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:59.068066 #1]  WARN -- : Response status: 422
6
duplication
View output
15
Parser process id: 15
codeclimate-parser socket not present
waiting 1s...
I, [2024-11-08T11:50:02.428491 #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


I, [2024-11-08T11:50:02.433263 #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


W, [2024-11-08T11:50:03.723536 #1]  WARN -- : Skipping contracts/wagmi.config.mainnet.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:50:03.723634 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:50:04.130960 #1]  WARN -- : Skipping ./contracts/scripts/wagmiHelpers.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:50:04.131345 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:50:04.133120 #1]  WARN -- : Skipping ./contracts/scripts/console-init-chiado.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:50:04.133150 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:50:04.135556 #1]  WARN -- : Skipping ./contracts/scripts/console-init-chiado-resolver.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:50:04.135587 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:50:04.180868 #1]  WARN -- : Skipping ./contracts/scripts/console-init.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:50:04.180932 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:50:04.765556 #1]  WARN -- : Skipping contracts/wagmi.config.devnet.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:50:04.765605 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:50:05.609330 #1]  WARN -- : Skipping contracts/wagmi.config.testnet.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:50:05.609607 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:50:05.620610 #1]  WARN -- : Skipping ./web/src/hooks/useParsedAmount.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:50:05.620660 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:50:05.775143 #1]  WARN -- : Skipping ./web/src/hooks/queries/useEvidenceGroup.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:50:05.775253 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:50:05.784633 #1]  WARN -- : Skipping ./web/src/hooks/queries/useDisputeTemplate.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:50:05.784732 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:50:05.810066 #1]  WARN -- : Skipping ./web/src/hooks/useIsCrossChainDispute.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:50:05.810351 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:50:05.859692 #1]  WARN -- : Skipping ./web/src/hooks/useSigningAccount.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:50:05.859813 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:50:06.080732 #1]  WARN -- : Skipping ./web/src/utils/uploadSettingsToSupabase.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:50:06.080792 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:50:06.159461 #1]  WARN -- : Skipping ./web/src/utils/wrapWithToast.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:50:06.159777 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:50:06.217856 #1]  WARN -- : Skipping ./web/src/components/Verdict/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:50:06.217923 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:50:06.221578 #1]  WARN -- : Skipping ./web/src/components/Verdict/DisputeTimeline.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:50:06.221627 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:50:06.224498 #1]  WARN -- : Skipping ./web/src/components/Verdict/FinalDecision.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:50:06.224533 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:50:06.714198 #1]  WARN -- : Skipping ./web/src/components/ConnectWallet/AccountDisplay.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:50:06.714529 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:50:06.958110 #1]  WARN -- : Skipping ./web/src/components/DisputeCard/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:50:06.958250 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:50:07.295591 #1]  WARN -- : Skipping ./web/src/consts/eip712-messages.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:50:07.315721 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:50:07.433014 #1]  WARN -- : Skipping ./web/src/pages/Home/TopJurors/JurorCard/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:50:07.433104 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:50:07.866554 #1]  WARN -- : Skipping ./web/src/pages/Dashboard/Courts/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:50:07.866824 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:50:08.112522 #1]  WARN -- : Skipping ./web/src/pages/Cases/CaseDetails/Evidence/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:50:08.112602 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:50:08.158800 #1]  WARN -- : Skipping ./web/src/pages/Cases/CaseDetails/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:50:08.159114 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:50:08.160834 #1]  WARN -- : Skipping ./web/src/pages/Cases/CaseDetails/Voting/VotingHistory.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:50:08.160873 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:50:08.163138 #1]  WARN -- : Skipping ./web/src/pages/Cases/CaseDetails/Voting/Classic/Commit.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:50:08.163178 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:50:08.169227 #1]  WARN -- : Skipping ./web/src/pages/Cases/CaseDetails/Voting/Classic/OptionsContainer.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:50:08.169498 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:50:08.171254 #1]  WARN -- : Skipping ./web/src/pages/Cases/CaseDetails/Voting/Classic/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:50:08.171285 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:50:08.172283 #1]  WARN -- : Skipping ./web/src/pages/Cases/CaseDetails/Voting/Classic/Reveal.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:50:08.172309 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:50:08.173360 #1]  WARN -- : Skipping ./web/src/pages/Cases/CaseDetails/Voting/Classic/Vote.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:50:08.173390 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:50:08.174944 #1]  WARN -- : Skipping ./web/src/pages/Cases/CaseDetails/Voting/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:50:08.174970 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:50:08.224228 #1]  WARN -- : Skipping ./web/src/pages/Cases/CaseDetails/Overview/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:50:08.237337 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:50:08.469527 #1]  WARN -- : Skipping web/wagmi.config.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:50:08.469569 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:50:08.477867 #1]  WARN -- : Skipping ./web/netlify/functions/update-settings.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:50:08.478080 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:50:08.518252 #1]  WARN -- : Skipping ./kleros-sdk/src/dataMappings/retrieveRealityData.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:50:08.518339 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:50:08.601262 #1]  WARN -- : Skipping ./kleros-sdk/src/dataMappings/disputeDetails.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:50:08.601488 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:50:08.606839 #1]  WARN -- : Skipping ./kleros-sdk/src/dataMappings/decoder.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:50:08.613275 #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.