diff --git a/Cargo.lock b/Cargo.lock index 986d795..557ef3a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -50,7 +50,7 @@ dependencies = [ [[package]] name = "arcw-lint-js" -version = "0.1.15" +version = "0.1.16" dependencies = [ "annotate-snippets", "arcw-lint", diff --git a/arcw-lint-js/Cargo.toml b/arcw-lint-js/Cargo.toml index f4957a7..d0a9268 100644 --- a/arcw-lint-js/Cargo.toml +++ b/arcw-lint-js/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "arcw-lint-js" -version = "0.1.15" +version = "0.1.16" edition = "2021" license = "MPL-2.0" rust-version = "1.60" @@ -19,7 +19,7 @@ default = ["console_error_panic_hook"] [dependencies] annotate-snippets = "0.9.1" -wasm-bindgen = { version = "0.2.81", features = [ "serde-serialize" ] } +wasm-bindgen = { version = "0.2.81", features = ["serde-serialize"] } wasm-bindgen-futures = "0.4.31" console_error_panic_hook = { version = "0.1.7", optional = true } arcw-lint = { version = "0.1.0", path = "../arcw-lint" } diff --git a/arcw-lint-js/tests/arcs/arc-9999.md b/arcw-lint-js/tests/arcs/arc-9999.md new file mode 100644 index 0000000..2e4c284 --- /dev/null +++ b/arcw-lint-js/tests/arcs/arc-9999.md @@ -0,0 +1,40 @@ +--- +arc: 9999 +title: A sample proposal +description: This proposal is a sample that should be considered +author: John Doe (@johndoe), Jenny Doe +discussions-to: https://github.com/algorandfoundation/ARCs/issues/ +status: Last Call +last-call-deadline: 2020-01-01 +type: Standards Track +category: Core +sub-category: Smart Contract +created: 2020-01-01 +--- + +## Abstract +This is the abstract for the arc. + +## Motivation +This is the motivation for the arc. + +## Specification +This is the specification for the arc. + +## Rationale +This is the rationale for the arc. + +## Backwards Compatibility +These are the backwards compatibility concerns for the arc. + +## Test Cases +These are the test cases for the arc. + +## Reference Implementation +This is the implementation for the arc. + +## Security Considerations +These are the security considerations for the arc. + +## Copyright +Copyright and related rights waived via [CC0](../LICENSE.md). diff --git a/arcw-lint/src/lib.rs b/arcw-lint/src/lib.rs index e6ce98f..0d0b830 100644 --- a/arcw-lint/src/lib.rs +++ b/arcw-lint/src/lib.rs @@ -174,6 +174,7 @@ pub fn default_lints() -> impl Iterator)> { "last-call-deadline", "type", "category", + "sub-category", "created", "requires", "withdrawal-reason", @@ -182,6 +183,20 @@ pub fn default_lints() -> impl Iterator)> { ]) .boxed(), ), + ( + "preamble-enum-sub-category", + preamble::OneOf { + name: "sub-category", + values: &[ + "General", + "Token", + "Smart Contract", + "Explorer", + "Wallet" + ], + } + .boxed(), + ), ("preamble-date-created", preamble::Date("created").boxed()), ( "preamble-req-last-call-deadline",