git.delta.rocks / jrsonnet / refs/commits / d78cbb7dd1e6

difftreelog

doc: move lints to Crates.io

Yaroslav Bolyukin2024-03-17parent: #32dd70e.patch.diff
in: master

1 file changed

modifiedcrates/jrsonnet-evaluator/src/lib.rsdiffbeforeafterboth
1//! jsonnet interpreter implementation1//! jsonnet interpreter implementation
2#![cfg_attr(feature = "nightly", feature(thread_local, type_alias_impl_trait))]2#![cfg_attr(feature = "nightly", feature(thread_local, type_alias_impl_trait))]
3#![deny(unsafe_op_in_unsafe_fn)]
4#![warn(
5 clippy::all,
6 clippy::nursery,
7 clippy::pedantic,
8 // missing_docs,
9 elided_lifetimes_in_paths,
10 explicit_outlives_requirements,
11 noop_method_call,
12 single_use_lifetimes,
13 variant_size_differences,
14 rustdoc::all
15)]
16#![allow(
17 macro_expanded_macro_exports_accessed_by_absolute_paths,
18 clippy::ptr_arg,
19 // Too verbose
20 clippy::must_use_candidate,
21 // A lot of functions pass around errors thrown by code
22 clippy::missing_errors_doc,
23 // A lot of pointers have interior Rc
24 clippy::needless_pass_by_value,
25 // Its fine
26 clippy::wildcard_imports,
27 clippy::enum_glob_use,
28 clippy::module_name_repetitions,
29 // TODO: fix individual issues, however this works as intended almost everywhere
30 clippy::cast_precision_loss,
31 clippy::cast_possible_wrap,
32 clippy::cast_possible_truncation,
33 clippy::cast_sign_loss,
34 // False positives
35 // https://github.com/rust-lang/rust-clippy/issues/6902
36 clippy::use_self,
37 // https://github.com/rust-lang/rust-clippy/issues/8539
38 clippy::iter_with_drain,
39 clippy::type_repetition_in_bounds,
40 // ci is being run with nightly, but library should work on stable
41 clippy::missing_const_for_fn,
42 // too many false-positives with .expect() calls
43 clippy::missing_panics_doc,
44 // false positive for IStr type. There is an configuration option for
45 // such cases, but it doesn't work:
46 // https://github.com/rust-lang/rust-clippy/issues/9801
47 clippy::mutable_key_type,
48 // false positives
49 clippy::redundant_pub_crate,
50 // Sometimes code is fancier without that
51 clippy::manual_let_else,
52)]
533
54// For jrsonnet-macros4// For jrsonnet-macros
55extern crate self as jrsonnet_evaluator;5extern crate self as jrsonnet_evaluator;