export function isNativeMode()

in common/qodana.ts [134:145]


export function isNativeMode(args: string[]): boolean {
  if (args.includes('--ide') || args.includes('--within-docker=false')) {
    return true
  }

  let index = args.findIndex(arg => arg =='--within-docker')

  if (index == -1) return false
  let nextIndex = index + 1

  return args.length > nextIndex && args[nextIndex] == 'false';
}