eipw icon indicating copy to clipboard operation
eipw copied to clipboard

Lints to ensure link text for EIPs should match the EIP's number

Open KatyaRyazantseva opened this issue 1 year ago • 9 comments

Issue 67. Covered examples with tests.

KatyaRyazantseva avatar Jun 25 '24 19:06 KatyaRyazantseva

Issue #67

KatyaRyazantseva avatar Jul 03 '24 10:07 KatyaRyazantseva

Pushed updates. I tried to fix everything according to comments. Haven't found EIP-1 example in existing eips. So, for now ignoring you)) Can we create a new issue for it in case it comes later?

Hardcoded regexes in lib.rs are kind of a style for the whole file, I followed the pattern. If we need to change regexes in config files, we need to refactor it globally.

KatyaRyazantseva avatar Jul 05 '24 14:07 KatyaRyazantseva

Hardcoded regexes in lib.rs are kind of a style for the whole file, I followed the pattern. If we need to change regexes in config files, we need to refactor it globally.

The configuration in lib.rs (default_lints_enum is just the defaults. Hard coding there is fine because anything there can be overridden by the config file.

Other regexes, like this one cannot be overridden.

SamWilsn avatar Jul 06 '24 15:07 SamWilsn

I've added a test in https://github.com/ethereum/eipw/pull/99/commits/09d7de74228d6daffc408655b6bf7b479eb5e8c6 that demonstrates the problem I brought up in https://github.com/ethereum/eipw/pull/99#discussion_r1664272030.

SamWilsn avatar Jul 06 '24 15:07 SamWilsn

Hardcoded regexes in lib.rs are kind of a style for the whole file, I followed the pattern. If we need to change regexes in config files, we need to refactor it globally.

The configuration in lib.rs (default_lints_enum is just the defaults. Hard coding there is fine because anything there can be overridden by the config file.

Other regexes, like this one cannot be overridden.

This one is dynamic. It depends on the lib.rs pattern. I extract the number of eip there and put into a new regex. Do you have any better ideas?

KatyaRyazantseva avatar Jul 06 '24 17:07 KatyaRyazantseva

fixed bold text

KatyaRyazantseva avatar Jul 06 '24 18:07 KatyaRyazantseva

@SamWilsn, I've done with the fixes. Could you please review it and merge if there are no any comments?

KatyaRyazantseva avatar Jul 26 '24 12:07 KatyaRyazantseva

@SamWilsn I updated Rust (1.80.1 the latest stable version) and now have this issue with time crates https://github.com/rust-lang/rust/issues/127343. Can't build the project anymore. Can we somehow fix it? Delete it from Cargo.lock? I haven't found it elsewhere in the project.

KatyaRyazantseva avatar Aug 24 '24 21:08 KatyaRyazantseva

If you're using rustup, you can use, for example, cargo +1.69 build to pick a particular version.

I'll update the rust version in a separate PR.

SamWilsn avatar Sep 04 '24 14:09 SamWilsn