Skip to content

Commit

Permalink
adding sub-category
Browse files Browse the repository at this point in the history
  • Loading branch information
SudoWeezy committed Sep 11, 2024
1 parent 07b3bbe commit 2070528
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

4 changes: 2 additions & 2 deletions arcw-lint-js/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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" }
Expand Down
40 changes: 40 additions & 0 deletions arcw-lint-js/tests/arcs/arc-9999.md
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
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).
15 changes: 15 additions & 0 deletions arcw-lint/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ pub fn default_lints() -> impl Iterator<Item = (&'static str, Box<dyn Lint>)> {
"last-call-deadline",
"type",
"category",
"sub-category",
"created",
"requires",
"withdrawal-reason",
Expand All @@ -182,6 +183,20 @@ pub fn default_lints() -> impl Iterator<Item = (&'static str, Box<dyn Lint>)> {
])
.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",
Expand Down

0 comments on commit 2070528

Please sign in to comment.