Canop / bacon

background rust code check
https://dystroy.org/bacon
GNU Affero General Public License v3.0
1.97k stars 73 forks source link

[Feature request] Ignore some messages by regex #223

Closed dalance closed 1 month ago

dalance commented 1 month ago

I uses cargo:warning to inform some messages in build.rs. This is because cargo:info is not supported yet. ( https://github.com/rust-lang/cargo/issues/7037 )

bacon handles these messages as warning, but it can't be resolved. So I think message filtering by regex may be useful.

For example, an actual message is like below:

warning: veryl-std@0.13.0: std hash: 158094aee3b99767fbd3cf75a1be02bf31a4aa5215dc39053c4e81a3b6617b8b

I expect the above message is ignored by a configuration like below

ignore_messages = ["warning: veryl-std@.*"]
Canop commented 1 month ago

Can you please build a minimal project demonstrating the problem ?

dalance commented 1 month ago

Please refer https://github.com/dalance/demo_for_bacon

dalance commented 1 month ago

Thank you!