Skip to content

Commit

Permalink
Add directory for linter
Browse files Browse the repository at this point in the history
  • Loading branch information
d0cd committed Sep 4, 2024
1 parent 36600c8 commit fd89de1
Show file tree
Hide file tree
Showing 4 changed files with 125 additions and 80 deletions.
5 changes: 5 additions & 0 deletions Cargo.lock

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

165 changes: 85 additions & 80 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ members = [
"leo/package",
"tests/test-framework",
"utils/disassembler",
"utils/linter",
"utils/retriever"
]

Expand All @@ -65,117 +66,121 @@ num-format = "0.4.4"
text-tables = "0.3.1"
ureq = "2.10.1"

[dependencies.leo-ast]
path = "./compiler/ast"
version = "2.1.0"
[dependencies.leo-ast]
path = "./compiler/ast"
version = "2.1.0"

[dependencies.leo-compiler]
path = "./compiler/compiler"
version = "2.1.0"
[dependencies.leo-compiler]
path = "./compiler/compiler"
version = "2.1.0"

[dependencies.leo-errors]
path = "./errors"
version = "2.1.0"
[dependencies.leo-errors]
path = "./errors"
version = "2.1.0"

[dependencies.leo-package]
path = "./leo/package"
version = "2.1.0"
[dependencies.leo-linter]
path = "./utils/linter"
version = "2.1.0"

[dependencies.leo-parser]
path = "./compiler/parser"
version = "2.1.0"
[dependencies.leo-package]
path = "./leo/package"
version = "2.1.0"

[dependencies.leo-span]
path = "./compiler/span"
version = "2.1.0"
[dependencies.leo-parser]
path = "./compiler/parser"
version = "2.1.0"

[dependencies.leo-span]
path = "./compiler/span"
version = "2.1.0"

[dependencies.leo-retriever]
path = "./utils/retriever"
version = "2.1.0"
[dependencies.leo-retriever]
path = "./utils/retriever"
version = "2.1.0"

[dependencies.aleo-std]
version = "0.1.24"
default-features = false
[dependencies.aleo-std]
version = "0.1.24"
default-features = false

[dependencies.backtrace]
version = "0.3.73"
[dependencies.backtrace]
version = "0.3.73"

[dependencies.clap]
version = "4.5"
features = [ "derive", "env", "color", "unstable-styles" ]
[dependencies.clap]
version = "4.5"
features = [ "derive", "env", "color", "unstable-styles" ]

[dependencies.color-backtrace]
version = "0.6.1"
[dependencies.color-backtrace]
version = "0.6.1"

[dependencies.colored]
version = "2.0"
[dependencies.colored]
version = "2.0"

[dependencies.console]
version = "0.15.8"
[dependencies.console]
version = "0.15.8"

[dependencies.dirs]
version = "5.0.0"
[dependencies.dirs]
version = "5.0.0"

[dependencies.dotenvy]
version = "0.15.7"
[dependencies.dotenvy]
version = "0.15.7"

[dependencies.indexmap]
version = "1.9"
features = [ "serde" ]
[dependencies.indexmap]
version = "1.9"
features = [ "serde" ]

[dependencies.lazy_static]
version = "1.5.0"
[dependencies.lazy_static]
version = "1.5.0"

[dependencies.rand]
version = "0.8"
[dependencies.rand]
version = "0.8"

[dependencies.rand_chacha]
version = "0.3.0"
default-features = false
[dependencies.rand_chacha]
version = "0.3.0"
default-features = false

[dependencies.rand_core]
version = "0.6.4"
[dependencies.rand_core]
version = "0.6.4"

[dependencies.reqwest]
version = "0.12.5"
features = [ "blocking", "json", "multipart" ]
[dependencies.reqwest]
version = "0.12.5"
features = [ "blocking", "json", "multipart" ]

[dependencies.self_update]
version = "0.41.0"
features = [ "archive-zip", "compression-zip-deflate" ]
[dependencies.self_update]
version = "0.41.0"
features = [ "archive-zip", "compression-zip-deflate" ]

[dependencies.serde]
version = "1.0"
features = [ "derive" ]
[dependencies.serde]
version = "1.0"
features = [ "derive" ]

[dependencies.serde_json]
version = "1.0"
[dependencies.serde_json]
version = "1.0"

[dependencies.serial_test]
version = "3.1.1"
[dependencies.serial_test]
version = "3.1.1"

[dependencies.snarkvm]
workspace = true
features = [ "circuit", "console" ]
[dependencies.snarkvm]
workspace = true
features = [ "circuit", "console" ]

[dependencies.sys-info]
version = "0.9.1"
[dependencies.sys-info]
version = "0.9.1"

[dependencies.toml]
version = "0.8"
[dependencies.toml]
version = "0.8"

[dependencies.tracing]
version = "0.1"
[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3.18"
features = [ "fmt" ]
[dependencies.tracing-subscriber]
version = "0.3.18"
features = [ "fmt" ]

[dependencies.crossterm]
version = "0.28.1"
[dependencies.crossterm]
version = "0.28.1"

[dependencies.rpassword]
version = "7.3.1"
[dependencies.rpassword]
version = "7.3.1"

[target."cfg(windows)".dependencies.ansi_term]
version = "0.12.1"
Expand Down
20 changes: 20 additions & 0 deletions utils/linter/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[package]
name = "leo-linter"
version = "2.1.0"
authors = [ "The Aleo Team <[email protected]>" ]
description = "A linter for the Leo programming language"
homepage = "https://aleo.org"
repository = "https://github.com/AleoHQ/leo"
keywords = [
"aleo",
"cryptography",
"leo",
"programming-language",
"zero-knowledge"
]
categories = [ "compilers", "cryptography", "web-programming" ]
include = [ "Cargo.toml", "src", "README.md", "LICENSE.md" ]
license = "GPL-3.0"
edition = "2021"
rust-version = "1.69"

15 changes: 15 additions & 0 deletions utils/linter/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright (C) 2019-2023 Aleo Systems Inc.
// This file is part of the Leo library.

// The Leo library is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// The Leo library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with the Leo library. If not, see <https://www.gnu.org/licenses/>.

0 comments on commit fd89de1

Please sign in to comment.