fix other targets

1spacelint
bunsenstraat 1 year ago
parent 2248c5d2da
commit c37fa3d924
  1. 6
      libs/remix-analyzer/test/analysis/staticAnalysisCommon-test.ts
  2. 4
      libs/remix-core-plugin/src/types/contract.ts
  3. 2
      libs/remix-debug/test.ts
  4. 2
      libs/remix-solidity/src/compiler/types.ts
  5. 2
      libs/remix-ui/debugger-ui/src/lib/button-navigator/button-navigator.tsx
  6. 4
      libs/remix-ui/file-decorators/src/lib/types/index.ts
  7. 2
      libs/remix-ui/helper/src/lib/components/PluginViewWrapper.tsx
  8. 2
      libs/remix-ui/run-tab/src/lib/actions/deploy.ts
  9. 6
      libs/remix-ui/search/src/lib/components/results/SearchHelper.ts
  10. 2
      libs/remix-ui/static-analyser/src/lib/actions/staticAnalysisActions.ts
  11. 2
      libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx
  12. 2
      libs/remix-ui/vertical-icons-panel/src/lib/vertical-icons-context-menu.tsx
  13. 14
      libs/remix-ui/workspace/src/lib/components/workspace-hamburger-item.tsx
  14. 6
      libs/remix-ui/workspace/src/lib/components/workspace-hamburger.tsx
  15. 2
      libs/remix-ui/workspace/src/lib/contexts/index.ts
  16. 2
      libs/remix-ws-templates/src/templates/gnosisSafeMultisig/scripts/deploy_with_ethers.ts
  17. 2
      libs/remix-ws-templates/src/templates/ozerc1155/scripts/deploy_with_ethers.ts
  18. 2
      libs/remix-ws-templates/src/templates/ozerc20/scripts/deploy_with_ethers.ts
  19. 2
      libs/remix-ws-templates/src/templates/ozerc721/scripts/deploy_with_ethers.ts
  20. 2
      libs/remix-ws-templates/src/templates/remixDefault/scripts/deploy_with_ethers.ts
  21. 2
      libs/remix-ws-templates/src/templates/zeroxErc20/scripts/deploy_with_ethers.ts
  22. 2
      lint-fix-targets.js
  23. 3
      lintfix.sh
  24. 9593
      projects.json

@ -40,11 +40,11 @@ test('staticAnalysisCommon.helpers.buildFunctionSignature', function (t) {
'function (bytes memory) payable returns (bool,bytes memory)', 'function (bytes memory) payable returns (bool,bytes memory)',
'check fixed call type') 'check fixed call type')
t.equal(common.lowLevelCallTypes['CALL-0.4'].type, t.equal(common.lowLevelCallTypes['CALL-0.4'].type,
'function () payable returns (bool)', 'function () payable returns (bool)',
'check fixed call type for versions before 0.5.0') 'check fixed call type for versions before 0.5.0')
t.equal(common.lowLevelCallTypes.CALLCODE.type, t.equal(common.lowLevelCallTypes.CALLCODE.type,
'function () payable returns (bool)', 'function () payable returns (bool)',
'check fixed callcode type') 'check fixed callcode type')
@ -56,7 +56,7 @@ t.equal(common.lowLevelCallTypes.CALLCODE.type,
'function (bytes memory) returns (bool,bytes memory)', 'function (bytes memory) returns (bool,bytes memory)',
'check fixed delegatecall type') 'check fixed delegatecall type')
t.equal(common.lowLevelCallTypes['DELEGATECALL-0.4'].type, t.equal(common.lowLevelCallTypes['DELEGATECALL-0.4'].type,
'function () returns (bool)', 'function () returns (bool)',
'check fixed delegatecall type for version before 0.5.0') 'check fixed delegatecall type for version before 0.5.0')
}) })

@ -191,7 +191,7 @@ export interface ContractSources {
} }
} }
export interface NetworkDeploymentFile { export interface NetworkDeploymentFile {
id: string, id: string,
network: string, network: string,
deployments: { deployments: {
@ -204,7 +204,7 @@ export interface ContractSources {
}[] }[]
} }
export interface SolcBuildFile { export interface SolcBuildFile {
solcInput: SolcInput, solcInput: SolcInput,
solcOutput: SolcOutput solcOutput: SolcOutput
} }

@ -67,7 +67,7 @@ cmdLine.startDebug(tx, shortFilename)
cmdLine.events.on('source', () => { cmdLine.events.on('source', () => {
cmdLine.getSource().forEach(console.dir) cmdLine.getSource().forEach(console.dir)
}) })
// }) // })
// }) // })
const repl = require('repl') const repl = require('repl')

@ -502,6 +502,6 @@ export interface BytecodeObject {
} }
} }
export interface EsWebWorkerHandlerInterface { export interface EsWebWorkerHandlerInterface {
getWorker(): Worker getWorker(): Worker
} }

@ -104,7 +104,7 @@ export const ButtonNavigation = ({ stepOverBack, stepIntoBack, stepIntoForward,
tagId: 'overbackTooltip', tagId: 'overbackTooltip',
tooltipMsg: 'Step over forward', tooltipMsg: 'Step over forward',
} }
} }
const jumpMarkupStructure = { const jumpMarkupStructure = {
jumpPreviousBreakpointJSX : { jumpPreviousBreakpointJSX : {
markup: ( markup: (

@ -5,7 +5,7 @@ export enum fileDecorationType {
None = 'NONE' None = 'NONE'
} }
export type fileDecoration = { export type fileDecoration = {
path: string, path: string,
isDirectory: boolean, isDirectory: boolean,
fileStateType: fileDecorationType, fileStateType: fileDecorationType,
@ -20,7 +20,7 @@ export enum fileDecorationType {
comment?: string[] | string comment?: string[] | string
} }
export interface FileType { export interface FileType {
path: string, path: string,
name?: string, name?: string,
isDirectory?: boolean, isDirectory?: boolean,

@ -21,4 +21,4 @@ export const PluginViewWrapper = (props: IPluginViewWrapperProps) => {
:<></> :<></>
}</> }</>
) )
} }

@ -258,7 +258,7 @@ export const loadAddress = (plugin: RunTab, dispatch: React.Dispatch<any>, contr
} }
} }
) )
} }
export const getContext = (plugin: RunTab) => { export const getContext = (plugin: RunTab) => {
return plugin.blockchain.context() return plugin.blockchain.context()

@ -17,9 +17,9 @@ export const getDirectory = async (dir: string, plugin: any) => {
} }
} }
return result return result
} }
const normalize = filesList => { const normalize = filesList => {
const folders = [] const folders = []
const files = [] const files = []
Object.keys(filesList || {}).forEach(key => { Object.keys(filesList || {}).forEach(key => {
@ -36,7 +36,7 @@ export const getDirectory = async (dir: string, plugin: any) => {
} }
}) })
return [...folders, ...files] return [...folders, ...files]
} }
export const findLinesInStringWithMatch = (str: string, re: RegExp) => { export const findLinesInStringWithMatch = (str: string, re: RegExp) => {
return str return str

@ -44,7 +44,7 @@ export const compilation = (analysisModule: AnalysisTab,
*/ */
// eslint-disable-next-line @typescript-eslint/no-unused-vars // eslint-disable-next-line @typescript-eslint/no-unused-vars
export async function run (lastCompilationResult, lastCompilationSource, currentFile: string, state: RemixUiStaticAnalyserState, props: RemixUiStaticAnalyserProps, isSupportedVersion, showSlither, categoryIndex: number[], groupedModules, runner, _paq, message, showWarnings, allWarnings: React.RefObject<any>, warningContainer: React.RefObject<any>, calculateWarningStateEntries: (e:[string, any][]) => {length: number, errors: any[] }, warningState, setHints: React.Dispatch<React.SetStateAction<SolHintReport[]>>, hints: SolHintReport[], setSlitherWarnings: React.Dispatch<React.SetStateAction<any[]>>, setSsaWarnings: React.Dispatch<React.SetStateAction<any[]>>, export async function run (lastCompilationResult, lastCompilationSource, currentFile: string, state: RemixUiStaticAnalyserState, props: RemixUiStaticAnalyserProps, isSupportedVersion, showSlither, categoryIndex: number[], groupedModules, runner, _paq, message, showWarnings, allWarnings: React.RefObject<any>, warningContainer: React.RefObject<any>, calculateWarningStateEntries: (e:[string, any][]) => {length: number, errors: any[] }, warningState, setHints: React.Dispatch<React.SetStateAction<SolHintReport[]>>, hints: SolHintReport[], setSlitherWarnings: React.Dispatch<React.SetStateAction<any[]>>, setSsaWarnings: React.Dispatch<React.SetStateAction<any[]>>,
slitherEnabled: boolean, setStartAnalysis: React.Dispatch<React.SetStateAction<boolean>>, solhintEnabled: boolean, basicEnabled: boolean) { slitherEnabled: boolean, setStartAnalysis: React.Dispatch<React.SetStateAction<boolean>>, solhintEnabled: boolean, basicEnabled: boolean) {
setStartAnalysis(true) setStartAnalysis(true)
setHints([]) setHints([])
setSsaWarnings([]) setSsaWarnings([])

@ -265,7 +265,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
) : ( ) : (
<span> </span> <span> </span>
) )
} }
<span className="" title={Position in ${fileName}}>Pos: ${locationString}</span> <span className="" title={Position in ${fileName}}>Pos: ${locationString}</span>
</span>`; </span>`;
}; };

@ -106,7 +106,7 @@ const MenuForLinks = ({
) )
} }
function ClickOutside(ref: React.MutableRefObject<HTMLElement>, hideFn: () => void) { function ClickOutside(ref: React.MutableRefObject<HTMLElement>, hideFn: () => void) {
useEffect(() => { useEffect(() => {
function handleClickOutside(event: any) { function handleClickOutside(event: any) {
if (ref.current && !ref.current.contains(event.target)) { if (ref.current && !ref.current.contains(event.target)) {

@ -48,10 +48,10 @@ export function HamburgerMenuItem (props: HamburgerMenuItemProps) {
</Dropdown.Item> </Dropdown.Item>
</> </>
) )
} }
// keeping the following for a later use: // keeping the following for a later use:
export function NavHamburgerMenuItem (props: HamburgerMenuItemProps) { export function NavHamburgerMenuItem (props: HamburgerMenuItemProps) {
const { hideOption } = props const { hideOption } = props
const uid = 'workspace' + props.kind const uid = 'workspace' + props.kind
return ( return (
@ -87,15 +87,15 @@ export function HamburgerMenuItem (props: HamburgerMenuItemProps) {
</NavDropdown.Item> </NavDropdown.Item>
</> </>
) )
} }
export interface HamburgerSubMenuItemProps { export interface HamburgerSubMenuItemProps {
id: string id: string
title: string title: string
subMenus: Array<HamburgerMenuItemProps> subMenus: Array<HamburgerMenuItemProps>
} }
export function HamburgerSubMenuItem (props: HamburgerSubMenuItemProps) { export function HamburgerSubMenuItem (props: HamburgerSubMenuItemProps) {
return ( return (
<> <>
<NavDropdown <NavDropdown
@ -110,4 +110,4 @@ export function HamburgerMenuItem (props: HamburgerMenuItemProps) {
</NavDropdown> </NavDropdown>
</> </>
) )
} }

@ -82,10 +82,10 @@ export function HamburgerMenu (props: HamburgerMenuProps) {
}}></HamburgerMenuItem> }}></HamburgerMenuItem>
</> </>
) )
} }
// keep for later use // keep for later use
/*<HamburgerSubMenuItem /*<HamburgerSubMenuItem
id="web3-script-menu" id="web3-script-menu"
title="Web3 Scripts" title="Web3 Scripts"
subMenus={[ subMenus={[

@ -46,6 +46,6 @@ export const FileSystemContext = createContext<{
dispatchCreateTsSolGithubAction: () => Promise<void>, dispatchCreateTsSolGithubAction: () => Promise<void>,
dispatchCreateSlitherGithubAction: () => Promise<void> dispatchCreateSlitherGithubAction: () => Promise<void>
dispatchCreateHelperScripts: (script: string) => Promise<void> dispatchCreateHelperScripts: (script: string) => Promise<void>
}>(null) }>(null)

@ -7,4 +7,4 @@ import { deploy } from './ethers-lib'
} catch (e) { } catch (e) {
console.log(e.message) console.log(e.message)
} }
})() })()

@ -7,4 +7,4 @@ import { deploy } from './ethers-lib'
} catch (e) { } catch (e) {
console.log(e.message) console.log(e.message)
} }
})() })()

@ -7,4 +7,4 @@ import { deploy } from './ethers-lib'
} catch (e) { } catch (e) {
console.log(e.message) console.log(e.message)
} }
})() })()

@ -7,4 +7,4 @@ import { deploy } from './ethers-lib'
} catch (e) { } catch (e) {
console.log(e.message) console.log(e.message)
} }
})() })()

@ -11,4 +11,4 @@ import { deploy } from './ethers-lib'
} catch (e) { } catch (e) {
console.log(e.message) console.log(e.message)
} }
})() })()

@ -7,4 +7,4 @@ import { deploy } from './ethers-lib'
} catch (e) { } catch (e) {
console.log(e.message) console.log(e.message)
} }
})() })()

@ -12,7 +12,7 @@ console.log(Object.keys(projects.graph.nodes))
for(let node of Object.keys(projects.graph.nodes)){ for(let node of Object.keys(projects.graph.nodes)){
if(projects.graph.nodes[node].data.targets.lint){ if(projects.graph.nodes[node].data.targets.lint){
console.log(projects.graph.nodes[node].data.name) console.log(projects.graph.nodes[node].data.name)
const result = spawnSync('yarn', ['lint', projects.graph.nodes[node].data.name], '--fix') const result = spawnSync('yarn', ['lint', projects.graph.nodes[node].data.name, '--fix'])
if(result.status == 0){ if(result.status == 0){
console.log('success') console.log('success')
}else{ }else{

@ -1,3 +0,0 @@
yarn nx run remix-ui:lint --fix
yarn nx run remix-ide:lint --fix

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save