kleros/kleros-v2

View on GitHub
refactor: return typed parameters #7338
jaybuidl authored 4ef3e8a9
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:35.320205 #1]  WARN -- : Skipping contracts/scripts/console-init-chiado.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:35.320238 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:35.325811 #1]  WARN -- : Skipping contracts/scripts/console-init-chiado-resolver.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:35.325840 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:35.354038 #1]  WARN -- : Skipping contracts/scripts/console-init.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:35.354066 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:35.970015 #1]  WARN -- : Skipping web/src/hooks/useParsedAmount.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:35.970066 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:36.045537 #1]  WARN -- : Skipping web/src/hooks/queries/useEvidenceGroup.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:36.045574 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:36.056736 #1]  WARN -- : Skipping web/src/hooks/queries/useDisputeTemplate.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:36.056762 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:36.074040 #1]  WARN -- : Skipping web/src/hooks/useIsCrossChainDispute.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:36.074066 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:36.189212 #1]  WARN -- : Skipping web/src/utils/uploadSettingsToSupabase.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:36.189252 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:36.250552 #1]  WARN -- : Skipping web/src/utils/wrapWithToast.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:36.250588 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:36.302473 #1]  WARN -- : Skipping web/src/components/Verdict/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:36.302785 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:36.306945 #1]  WARN -- : Skipping web/src/components/Verdict/DisputeTimeline.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:36.307147 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:36.312565 #1]  WARN -- : Skipping web/src/components/Verdict/FinalDecision.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:36.312639 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:36.665541 #1]  WARN -- : Skipping web/src/components/ConnectWallet/AccountDisplay.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:36.665706 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:36.821877 #1]  WARN -- : Skipping web/src/components/DisputeCard/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:36.821908 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:37.055395 #1]  WARN -- : Skipping web/src/consts/eip712-messages.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:37.055622 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:37.164114 #1]  WARN -- : Skipping web/src/pages/Home/TopJurors/JurorCard/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:37.164330 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:37.420595 #1]  WARN -- : Skipping web/src/pages/Dashboard/Courts/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:37.420832 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:37.665552 #1]  WARN -- : Skipping web/src/pages/Cases/CaseDetails/Evidence/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:37.665704 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:37.692303 #1]  WARN -- : Skipping web/src/pages/Cases/CaseDetails/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:37.692408 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:37.695319 #1]  WARN -- : Skipping web/src/pages/Cases/CaseDetails/Voting/VotingHistory.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:37.695347 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:37.697675 #1]  WARN -- : Skipping web/src/pages/Cases/CaseDetails/Voting/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:37.697815 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:37.699949 #1]  WARN -- : Skipping web/src/pages/Cases/CaseDetails/Voting/Classic.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:37.700089 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:37.716914 #1]  WARN -- : Skipping web/src/pages/Cases/CaseDetails/Overview.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:37.717053 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:37.858589 #1]  WARN -- : Skipping web/wagmi.config.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:37.858625 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:37.886201 #1]  WARN -- : Skipping web/netlify/functions/update-settings.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:37.886456 #1]  WARN -- : Response status: 422
6
duplication
View output
11
Parser process id: 11
codeclimate-parser socket not present
waiting 1s...
I, [2024-11-08T11:49:41.076442 #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:49:41.105343 #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:49:42.814505 #1]  WARN -- : Skipping ./contracts/scripts/console-init-chiado.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:42.814540 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:42.843127 #1]  WARN -- : Skipping ./contracts/scripts/console-init-chiado-resolver.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:42.843219 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:42.877768 #1]  WARN -- : Skipping ./contracts/scripts/console-init.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:42.878266 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:44.336861 #1]  WARN -- : Skipping ./web/src/hooks/useParsedAmount.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:44.336958 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:44.430966 #1]  WARN -- : Skipping ./web/src/hooks/queries/useEvidenceGroup.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:44.431010 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:44.449938 #1]  WARN -- : Skipping ./web/src/hooks/queries/useDisputeTemplate.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:44.449986 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:44.484970 #1]  WARN -- : Skipping ./web/src/hooks/useIsCrossChainDispute.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:44.485004 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:44.739337 #1]  WARN -- : Skipping ./web/src/utils/uploadSettingsToSupabase.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:44.739835 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:44.814032 #1]  WARN -- : Skipping ./web/src/utils/wrapWithToast.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:44.820228 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:44.894646 #1]  WARN -- : Skipping ./web/src/components/Verdict/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:44.894699 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:44.900067 #1]  WARN -- : Skipping ./web/src/components/Verdict/FinalDecision.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:44.900380 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:44.905315 #1]  WARN -- : Skipping ./web/src/components/Verdict/DisputeTimeline.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:44.905629 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:45.386191 #1]  WARN -- : Skipping ./web/src/components/ConnectWallet/AccountDisplay.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:45.386545 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:45.583501 #1]  WARN -- : Skipping ./web/src/components/DisputeCard/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:45.583539 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:45.896753 #1]  WARN -- : Skipping ./web/src/consts/eip712-messages.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:45.896798 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:46.042219 #1]  WARN -- : Skipping ./web/src/pages/Home/TopJurors/JurorCard/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:46.042450 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:46.373612 #1]  WARN -- : Skipping ./web/src/pages/Dashboard/Courts/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:46.374118 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:46.713133 #1]  WARN -- : Skipping ./web/src/pages/Cases/CaseDetails/Evidence/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:46.713219 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:46.778738 #1]  WARN -- : Skipping ./web/src/pages/Cases/CaseDetails/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:46.778802 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:46.781959 #1]  WARN -- : Skipping ./web/src/pages/Cases/CaseDetails/Voting/VotingHistory.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:46.781990 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:46.784136 #1]  WARN -- : Skipping ./web/src/pages/Cases/CaseDetails/Voting/index.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:46.784338 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:46.786674 #1]  WARN -- : Skipping ./web/src/pages/Cases/CaseDetails/Voting/Classic.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:46.786700 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:46.802829 #1]  WARN -- : Skipping ./web/src/pages/Cases/CaseDetails/Overview.tsx due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:46.804968 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:47.167971 #1]  WARN -- : Skipping web/wagmi.config.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:47.169275 #1]  WARN -- : Response status: 422
W, [2024-11-08T11:49:47.184702 #1]  WARN -- : Skipping ./web/netlify/functions/update-settings.ts due to CC::Parser::Client::HTTPError
W, [2024-11-08T11:49:47.186244 #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.