Skip to content

Commit

Permalink
add extends & extended-by
Browse files Browse the repository at this point in the history
  • Loading branch information
SudoWeezy committed Oct 15, 2024
1 parent a868049 commit 282508b
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 2 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.

2 changes: 1 addition & 1 deletion 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.17"
version = "0.1.20"
edition = "2021"
license = "MPL-2.0"
rust-version = "1.60"
Expand Down
40 changes: 40 additions & 0 deletions arcw-lint-js/tests/arcs/arc-1001.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
arc: 1001
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: Deprecated
type: Standards Track
category: Core
created: 2020-01-01
extended-by: 20
replaces: 20
---

## 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).
22 changes: 22 additions & 0 deletions arcw-lint/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,26 @@ pub fn default_lints() -> impl Iterator<Item = (&'static str, Box<dyn Lint>)> {
}.boxed(),
),
("preamble-list-author", preamble::List("author").boxed()),
("preamble-list-extends", preamble::List("extends").boxed()),
(
"preamble-uint-extends",
preamble::UintList("extends").boxed(),
),
("preamble-list-extended-by", preamble::List("extended-by").boxed()),
(
"preamble-uint-extended-by",
preamble::UintList("extended-by").boxed(),
),
("preamble-list-replaces", preamble::List("replaces").boxed()),
(
"preamble-uint-replaces",
preamble::UintList("replaces").boxed(),
),
("preamble-list-superseded-by", preamble::List("superseded-by").boxed()),
(
"preamble-uint-superseded-by",
preamble::UintList("superseded-by").boxed(),
),
("preamble-list-requires", preamble::List("requires").boxed()),
(
"preamble-uint-requires",
Expand Down Expand Up @@ -178,6 +198,8 @@ pub fn default_lints() -> impl Iterator<Item = (&'static str, Box<dyn Lint>)> {
"created",
"requires",
"withdrawal-reason",
"extended-by",
"extends",
"replaces",
"superseded-by",
])
Expand Down

0 comments on commit 282508b

Please sign in to comment.