Skip to content

lint-local-code should be able to accept Workspace paths #3717

@william-conti

Description

@william-conti

Is there an existing issue for this?

  • I have searched the existing issues

Problem statement

At the moment lint-local-code requires us to locally clone the code we would like to lint on the local machine. As our customer doesn't code anything locally, it complexifies the migration.

At the moment the command fails with below error

➜ ~ databricks labs ucx lint-local-code
Executing CLI v0.240.0...

Which file or directory do you want to lint? (default: /Users/william.conti): /Workspace/Users/william.conti/notebook
Which file or directory do you want to lint? (default: /Users/william.conti): /Workspace/Users/william.conti/notebook
Which file or directory do you want to lint? (default: /Users/william.conti): /Workspace/Users/william.conti/notebook
Which file or directory do you want to lint? (default: /Users/william.conti): ...

Never fails ...

Proposed Solution

databricks labs ucx lint-local-code --workspace-path /Workspace/Users/william.conti/notebook

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    migrate/codeAbstract Syntax Trees and other dark magic

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions