Skip to content

Commit

Permalink
feat(cli): integrate refactor + pretty print diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLucqs committed Aug 22, 2024
1 parent c6d6181 commit 729d4b1
Show file tree
Hide file tree
Showing 17 changed files with 367 additions and 238 deletions.
81 changes: 47 additions & 34 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 14 additions & 13 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ license = "Apache-2.0"
license-file = "LICENSE"

[workspace.dependencies]
cairo-lang-compiler = { git = "https://github.com/0xLucqs/cairo", branch = "lucas/multiline_diag" }
cairo-lang-parser = { git = "https://github.com/0xLucqs/cairo", branch = "lucas/multiline_diag" }
cairo-lang-utils = { git = "https://github.com/0xLucqs/cairo", branch = "lucas/multiline_diag" }
cairo-lang-semantic = { git = "https://github.com/0xLucqs/cairo", branch = "lucas/multiline_diag" }
cairo-lang-filesystem = { git = "https://github.com/0xLucqs/cairo", branch = "lucas/multiline_diag" }
cairo-lang-diagnostics = { git = "https://github.com/0xLucqs/cairo", branch = "lucas/multiline_diag" }
cairo-lang-test-plugin = { git = "https://github.com/0xLucqs/cairo", branch = "lucas/multiline_diag" }
cairo-lang-lowering = { git = "https://github.com/0xLucqs/cairo", branch = "lucas/multiline_diag" }
cairo-lang-syntax = { git = "https://github.com/0xLucqs/cairo", branch = "lucas/multiline_diag" }
cairo-lang-defs = { git = "https://github.com/0xLucqs/cairo", branch = "lucas/multiline_diag" }
cairo-lang-starknet = { git = "https://github.com/0xLucqs/cairo", branch = "lucas/multiline_diag" }
cairo-lang-test-utils = { git = "https://github.com/0xLucqs/cairo", branch = "lucas/multiline_diag" }
cairo-lang-language-server = { git = "https://github.com/0xLucqs/cairo", branch = "lucas/multiline_diag" }
cairo-lang-compiler = { git = "https://github.com/starkware-libs/cairo", branch = "main" }
cairo-lang-parser = { git = "https://github.com/starkware-libs/cairo", branch = "main" }
cairo-lang-utils = { git = "https://github.com/starkware-libs/cairo", branch = "main" }
cairo-lang-semantic = { git = "https://github.com/starkware-libs/cairo", branch = "main" }
cairo-lang-filesystem = { git = "https://github.com/starkware-libs/cairo", branch = "main" }
cairo-lang-diagnostics = { git = "https://github.com/starkware-libs/cairo", branch = "main" }
cairo-lang-test-plugin = { git = "https://github.com/starkware-libs/cairo", branch = "main" }
cairo-lang-lowering = { git = "https://github.com/starkware-libs/cairo", branch = "main" }
cairo-lang-syntax = { git = "https://github.com/starkware-libs/cairo", branch = "main" }
cairo-lang-defs = { git = "https://github.com/starkware-libs/cairo", branch = "main" }
cairo-lang-starknet = { git = "https://github.com/starkware-libs/cairo", branch = "main" }
cairo-lang-test-utils = { git = "https://github.com/starkware-libs/cairo", branch = "main" }
cairo-lang-language-server = { git = "https://github.com/starkware-libs/cairo", branch = "main" }
salsa = "0.16.1"
indoc = "2"
test-case = "3.0"
Expand All @@ -40,3 +40,4 @@ regex = "1.10.6"
clap = "4.5.16"
anyhow = "1.0.86"
smol_str = "0.2.2"
annotate-snippets = "0.11.4"
4 changes: 3 additions & 1 deletion crates/cairo-lint-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ cairo-lang-test-plugin.workspace = true
cairo-lang-lowering.workspace = true
cairo-lang-syntax.workspace = true
cairo-lang-defs.workspace = true
cairo-lang-language-server.workspace = true
cairo-lang-starknet.workspace = true
salsa.workspace = true
clap = { workspace = true, features = ["derive"] }
scarb-ui = "0.1.5"
anyhow.workspace = true
scarb-metadata = "1.12.0"
cairo-lint-core = { path = "../cairo-lint-core" }
semver = "1.0.23"
# scarb = { git = "https://github.com/software-mansion/scarb", branch = "main" }
smol_str.workspace = true
annotate-snippets.workspace = true
Loading

0 comments on commit 729d4b1

Please sign in to comment.