202 |
#[allow(clippy::cyclomatic_complexity)]
|
203 |
#[test]
|
142 |
#[allow(clippy::cognitive_complexity)]
|
143 |
// The complexity is because of the multiple big quote! macros, but I don't see a way to make
|
1227 |
#[allow(clippy::cognitive_complexity)]
|
1228 |
#[test]
|
148 |
#[allow(clippy::cognitive_complexity)]
|
149 |
#[test]
|
28 |
#[allow(clippy::cognitive_complexity)]
|
29 |
fn new(req: &RequestHead, cfg: &AppConfig) -> ConnectionInfo {
|
262 |
#[test]
|
263 |
#[allow(clippy::cognitive_complexity)]
|
264 |
fn acontext_record() {
|
434 |
#[test]
|
435 |
#[allow(clippy::cognitive_complexity)]
|
436 |
fn abs_decompose() {
|
713 |
#[allow(clippy::cognitive_complexity)]
|
714 |
pub fn set_query(
|
127 |
#[test]
|
128 |
#[allow(clippy::cognitive_complexity)]
|
129 |
fn int_keys() {
|
1132 |
#[allow(clippy::cognitive_complexity)]
|
1133 |
#[inline]
|
2352 |
#[allow(clippy::cognitive_complexity)]
|
2353 |
pub(crate) fn define(
|
10 |
#[allow(clippy::many_single_char_names, clippy::cognitive_complexity)]
|
11 |
pub(crate) fn define(insts: &InstructionGroup, imm: &Immediates) -> TransformGroups {
|
463 |
/// Return None when the end of the source is encountered.
|
464 |
#[allow(clippy::cognitive_complexity)]
|
465 |
pub fn next(&mut self) -> Option<Result<LocatedToken<'a>, LocatedError>> {
|
759 |
#[rustfmt::skip]
|
760 |
#[allow(clippy::cognitive_complexity)]
|
761 |
fn filtered_counter() {
|
12 |
#[cfg_attr(feature = "cargo-clippy", allow(cyclomatic_complexity))]
|
13 |
fn main() {
|
409 |
#[allow(unused)]
|
410 |
#[cfg_attr(feature = "cargo-clippy", allow(cyclomatic_complexity))]
|
411 |
fn never_called() {
|
90 |
/// Implement on regular named or unit structs.
|
91 |
#[allow(clippy::cognitive_complexity)]
|
92 |
fn impl_struct(
|
73 |
/// Implement on regular named or unit structs.
|
74 |
#[allow(clippy::cognitive_complexity)]
|
75 |
fn impl_struct(
|
277 |
/// Issue a request.
|
278 |
#[allow(clippy::cognitive_complexity)]
|
279 |
async fn issue_<R>(&self, request: Request<Body>) -> Result<R::Output, RequestError<R::Error>>
|
244 |
#[allow(clippy::cognitive_complexity)]
|
245 |
fn from_line_iter<'a, I>(iter: I) -> Result<AppleCrashReport, ParseError>
|
416 |
#[test]
|
417 |
#[allow(clippy::cognitive_complexity)]
|
418 |
fn test_position_extended() {
|
56 |
#[allow(clippy::cognitive_complexity)]
|
57 |
pub fn reshape(&mut self, text: &str) -> String {
|
327 |
impl<'s> quote::ToTokens for OperationEnum<'s> {
|
328 |
#[allow(clippy::cognitive_complexity)]
|
329 |
fn to_tokens(&self, tokens: &mut pm2::TokenStream) {
|
192 |
#[allow(clippy::cyclomatic_complexity)]
|
193 |
#[test]
|
31 |
/// Construct a new instance.
|
32 |
#[allow(clippy::too_many_arguments, clippy::cognitive_complexity)]
|
33 |
#[inline]
|
281 |
#[allow(clippy::cognitive_complexity)]
|
282 |
fn main() -> Result<()> {
|
8 |
#[allow(clippy::cognitive_complexity)]
|
9 |
pub fn with_cli<F> (app_handler:F) where F: Fn(App<'_, '_>) {
|
116 |
#[cfg(feature="document_export")]
|
117 |
#[allow(clippy::cognitive_complexity)] // sorry
|
118 |
fn project_to_doc(project: &Project, config: &ExportConfig<'_>) -> Result<Option<PathBuf>, Error> {
|
419 |
impl ComponentDeclaration {
|
420 |
#[allow(clippy::cognitive_complexity)]
|
421 |
pub fn into_tokens(self) -> Result<TokenStream> {
|
1170 |
#[test]
|
1171 |
#[allow(clippy::cognitive_complexity)]
|
1172 |
fn replace_node() {
|
148 |
// ChannelMap would be used as a hash table to check the existence of channels.
|
149 |
#[allow(clippy::cognitive_complexity)]
|
150 |
fn build_mixing_matrix(
|
8 |
#[allow(clippy::cognitive_complexity)]
|
9 |
fn infer_event_type(dispatch_type: &str) -> Option<&'static str> {
|
305 |
#[test]
|
306 |
#[allow(clippy::cognitive_complexity)]
|
307 |
fn valid_params_works() {
|
618 |
#[allow(clippy::cyclomatic_complexity)]
|
619 |
#[test]
|
1282 |
#[cfg(test)]
|
1283 |
#[allow(clippy::cognitive_complexity)]
|
1284 |
mod parser_test {
|
196 |
/// Nom function to convert a given string in to a `Doc`
|
197 |
#[allow(clippy::cyclomatic_complexity)]
|
198 |
pub fn parse_doc<'a>(input: &'a str, delims: Delimiters) -> IResult<&'a str, Doc> {
|
533 |
impl Statement {
|
534 |
#[allow(clippy::cognitive_complexity)]
|
535 |
fn expect(parse: &mut BasicParser) -> Result<Statement> {
|
382 |
#[allow(clippy::cognitive_complexity)]
|
383 |
fn execute_loop(&mut self, iterations: usize) -> Result<Event> {
|
76 |
// giant match statement.
|
77 |
#[cfg_attr(feature = "cargo-clippy", allow(cyclomatic_complexity))]
|
78 |
fn emit_step(quad: BFQuad, comment: bool) -> Vec<BFQuad> {
|
28 |
/// other derives like `serde::Deserialize`.
|
29 |
#[allow(clippy::cognitive_complexity)]
|
30 |
#[proc_macro_derive(Bundle)]
|
339 |
#[allow(clippy::cognitive_complexity)] // https://github.com/rust-lang/rust-clippy/issues/3900
|
340 |
impl Config {
|
521 |
// TODO: try struct instead of builder
|
522 |
#[allow(clippy::cognitive_complexity)]
|
523 |
fn get_matches<I, T>(args: I) -> Result<clap::ArgMatches, BirliError>
|
422 |
// TODO: make this less shitty
|
423 |
#[allow(clippy::cognitive_complexity)]
|
424 |
pub fn compare_ms_with_csv(
|
117 |
#[allow(clippy::cognitive_complexity)]
|
118 |
fn fmt_instance(
|
17 |
#[allow(clippy::cognitive_complexity)]
|
18 |
/// addchain for 1000602388805416848354447456433976039139220704984751971333014534031007912622709466110671907282253916009473568139946
|
324 |
#[allow(clippy::cognitive_complexity)]
|
325 |
/// addchain for 1001205140483106588246484290269935788605945006208159541241399033561623546780709821462541004956387089373434649096260670658193992783731681621012512651314777238193313314641988297376025498093520728838658813979860931248214124593092835
|
17 |
#[allow(clippy::cognitive_complexity)]
|
18 |
/// addchain for 1000602388805416848354447456433976039139220704984751971333014534031007912622709466110671907282253916009473568139946
|
324 |
#[allow(clippy::cognitive_complexity)]
|
325 |
/// addchain for 1001205140483106588246484290269935788605945006208159541241399033561623546780709821462541004956387089373434649096260670658193992783731681621012512651314777238193313314641988297376025498093520728838658813979860931248214124593092835
|
107 |
#[allow(clippy::cognitive_complexity)]
|
108 |
#[tokio::main]
|
626 |
#[test]
|
627 |
#[allow(clippy::too_many_lines, clippy::cognitive_complexity)] // couldn't figure out how to macro-ize it
|
628 |
fn composite_key_tests() {
|
981 |
#[test]
|
982 |
#[allow(clippy::cognitive_complexity)] // I disagree - @ecton
|
983 |
fn primitive_key_encoding_tests() -> anyhow::Result<()> {
|
56 |
/// Set an option to a particular value.
|
57 |
#[allow(clippy::cognitive_complexity)]
|
58 |
pub fn set_opt(&self, opt: BtorOption) {
|
126 |
} else if attr.path.is_ident("bpaf") {
|
127 |
#[allow(clippy::cognitive_complexity)]
|
128 |
attr.parse_args_with(|input: ParseStream| loop {
|
1955 |
#[test]
|
1956 |
#[allow(clippy::cognitive_complexity)]
|
1957 |
fn test_realloc() {
|
279 |
/// violated during the benchmark.
|
280 |
#[allow(clippy::cognitive_complexity)]
|
281 |
pub fn run_silently<T: Collection>(&self) -> Measurement
|
131 |
// for macro https://github.com/rust-lang/rust-clippy/issues/3900
|
132 |
#[allow(clippy::cognitive_complexity)]
|
133 |
#[test]
|
296 |
/// Get a suitable `Storage` implementation from configuration.
|
297 |
#[allow(clippy::cognitive_complexity)] // TODO simplify!
|
298 |
pub fn storage_from_config(config: &Config, pool: &tokio::runtime::Handle) -> Arc<dyn Storage> {
|
716 |
#[test]
|
717 |
#[allow(clippy::cognitive_complexity)]
|
718 |
fn test_arginfo_cmp() {
|
1807 |
impl pkg::InputsPackager for RustInputsPackager {
|
1808 |
#[allow(clippy::cognitive_complexity)] // TODO simplify this method.
|
1809 |
fn write_inputs(self: Box<Self>, wtr: &mut dyn io::Write) -> Result<dist::PathTransformer> {
|
2428 |
#[test]
|
2429 |
#[allow(clippy::cognitive_complexity)]
|
2430 |
fn test_parse_arguments_simple() {
|
499 |
/// Creates the `Port`.
|
500 |
#[allow(clippy::cognitive_complexity)]
|
501 |
pub(crate) fn finish(
|
215 |
#[allow(clippy::cognitive_complexity)]
|
216 |
pub(crate) fn finish(&'a mut self) -> Result<CoreMap> {
|
79 |
/// Builds a runtime from config settings.
|
80 |
#[allow(clippy::cognitive_complexity)]
|
81 |
pub fn build(config: RuntimeConfig) -> Result<Self> {
|
562 |
/// Shuts down all the cores to stop task execution.
|
563 |
#[allow(clippy::cognitive_complexity)]
|
564 |
fn shutdown_cores(&mut self) {
|
106 |
// the default main function
|
107 |
#[allow(clippy::cognitive_complexity)]
|
108 |
#[cfg(not(feature = "ci-autoclean"))]
|
47 |
/// Converts value returned by NNG method into `error::Error`.
|
48 |
#[allow(clippy::cyclomatic_complexity)]
|
49 |
pub fn from_i32(value: i32) -> Option<nng_errno_enum> {
|
137 |
#[allow(clippy::cognitive_complexity)]
|
138 |
pub fn cmd(
|
397 |
/// Creates, or builds, an installer within a built context.
|
398 |
#[allow(clippy::cognitive_complexity)]
|
399 |
pub fn run(self) -> Result<()> {
|
338 |
impl Execution {
|
339 |
#[allow(clippy::cognitive_complexity)]
|
340 |
/// Prints a WiX Source (wxs) file based on the built context.
|
73 |
/// re-serialized `CLValue`.
|
74 |
#[allow(clippy::cognitive_complexity)]
|
75 |
fn rewrite_urefs(cl_value: CLValue, mut func: impl FnMut(&mut URef)) -> Result<CLValue, Error> {
|
622 |
#[test]
|
623 |
#[allow(clippy::cognitive_complexity)]
|
624 |
fn wrapping_addition_should_succeed() {
|
614 |
#[test]
|
615 |
#[allow(clippy::cognitive_complexity)]
|
616 |
fn small_array_of_u8_should_work() {
|
172 |
#[allow(clippy::cognitive_complexity)]
|
173 |
impl FromBytes for CLType {
|
551 |
#[test]
|
552 |
#[allow(clippy::cognitive_complexity)]
|
553 |
fn small_array_of_cl_type_should_work() {
|
140 |
#[allow(clippy::cognitive_complexity)]
|
141 |
fn extract_urefs(cl_value: &CLValue) -> Result<Vec<URef>, Error> {
|
511 |
#[test]
|
512 |
#[allow(clippy::cognitive_complexity)]
|
513 |
fn wrapping_addition_should_succeed() {
|
183 |
#[allow(clippy::cognitive_complexity)]
|
184 |
impl FromBytes for CLType {
|
562 |
#[test]
|
563 |
#[allow(clippy::cognitive_complexity)]
|
564 |
fn small_array_of_cl_type_should_work() {
|
1296 |
#[allow(clippy::cognitive_complexity)]
|
1297 |
impl<'a> fmt::Display for Type2<'a> {
|
1958 |
#[test]
|
1959 |
#[allow(clippy::cognitive_complexity)]
|
1960 |
fn num_cmp() {
|
850 |
#[test]
|
851 |
#[allow(clippy::cognitive_complexity)]
|
852 |
fn uwild() {
|
543 |
#[allow(clippy::cognitive_complexity)]
|
544 |
async fn _consume_from(self: Arc<Self>, queues: &[&str]) -> Result<(), CeleryError> {
|
52 |
/// ```
|
53 |
#[allow(clippy::cognitive_complexity)]
|
54 |
pub fn take_elemattr<'a>(buf: &'a [u8], lookup: &[String]) -> IResult<&'a [u8], BinElAttr> {
|
94 |
impl TargetMatcher for target_lexicon::Triple {
|
95 |
#[allow(clippy::cognitive_complexity)]
|
96 |
#[allow(clippy::match_same_arms)]
|
89 |
#[test]
|
90 |
#[allow(clippy::cognitive_complexity)]
|
91 |
fn handles_single_predicate() {
|
22 |
#[allow(clippy::cognitive_complexity)]
|
23 |
fn convert_keycode_keyboard_input(code: VirtualKeyCode, shift: bool) -> Option<KeyboardInput> {
|
9 |
#[allow(clippy::cognitive_complexity)]
|
10 |
fn keyboard_input_from_js_event_key_press(key_code: u8, shift: bool) -> Option<KeyboardInput> {
|
23 |
#[allow(clippy::cognitive_complexity)]
|
24 |
fn convert_keycode_keyboard_input(code: VirtualKeyCode, shift: bool) -> Option<KeyboardInput> {
|
747 |
/// Label each corner with their correct x/y index within the grid.
|
748 |
#[allow(clippy::cognitive_complexity)]
|
749 |
fn label_quad_group(
|
158 |
}
|
159 |
#[allow(clippy::too_many_lines, clippy::cognitive_complexity)]
|
160 |
fn main() {
|
523 |
/// ~~~~
|
524 |
#[cfg_attr(feature = "cargo-clippy", allow(cyclomatic_complexity))]
|
525 |
pub fn overflowing_add_signed(&self, mut rhs: OldDuration) -> (NaiveTime, i64) {
|
523 |
/// ~~~~
|
524 |
#[cfg_attr(feature = "cargo-clippy", allow(cyclomatic_complexity))]
|
525 |
pub fn overflowing_add_signed(&self, mut rhs: OldDuration) -> (NaiveTime, i64) {
|
193 |
#[allow(clippy::cognitive_complexity)]
|
194 |
pub fn run(&mut self) -> Result<InterpreterResult, err::Error> {
|
202 |
#[allow(clippy::cognitive_complexity)]
|
203 |
pub fn run(&mut self) -> Result<InterpreterResult, err::Error> {
|
224 |
/// Applies the contained scoped data to fill an event.
|
225 |
#[allow(clippy::cognitive_complexity)]
|
226 |
pub fn apply_to_event(&self, mut event: Event<'static>) -> Option<Event<'static>> {
|
220 |
#[test]
|
221 |
#[allow(clippy::cognitive_complexity)]
|
222 |
fn test_add_no_roots() {
|
790 |
#[allow(clippy::cognitive_complexity)]
|
791 |
async fn process(mut service: TxPoolService, message: Message) {
|
92 |
#[allow(clippy::cognitive_complexity)]
|
93 |
pub fn factory<R: Register>(instruction_bits: u32, version: u32) -> Option<Instruction> {
|
49 |
// The actual parsing function
|
50 |
#[allow(clippy::cognitive_complexity)]
|
51 |
pub(crate) fn get_matches_with(
|
1911 |
impl<'a> From<&'a Yaml> for App<'a> {
|
1912 |
#[allow(clippy::cognitive_complexity)]
|
1913 |
fn from(mut yaml: &'a Yaml) -> Self {
|
981 |
#[allow(clippy::cognitive_complexity)]
|
982 |
#[test]
|
147 |
#[cfg(feature = "yaml")]
|
148 |
#[allow(clippy::cognitive_complexity)]
|
149 |
pub fn from_yaml(y: &yaml_rust::yaml::Hash) -> Arg {
|
258 |
#[allow(clippy::cognitive_complexity)]
|
259 |
#[test]
|
416 |
// The actual parsing function
|
417 |
#[allow(clippy::cognitive_complexity)]
|
418 |
pub fn get_matches_with(&mut self, matcher: &mut ArgMatcher, it: &mut Input) -> ClapResult<()> {
|
1456 |
#[allow(clippy::cognitive_complexity)]
|
1457 |
pub(crate) fn add_defaults(&mut self, matcher: &mut ArgMatcher) -> ClapResult<()> {
|
49 |
// The actual parsing function
|
50 |
#[allow(clippy::cognitive_complexity)]
|
51 |
pub(crate) fn get_matches_with(
|
52 |
impl dyn ColumnData {
|
53 |
#[allow(clippy::cognitive_complexity)]
|
54 |
pub(crate) fn load_data<W: ColumnWrapper, T: ReadEx>(
|
56 |
impl dyn ColumnData {
|
57 |
#[allow(clippy::cognitive_complexity)]
|
58 |
pub(crate) fn load_data<W: ColumnWrapper, T: ReadEx>(
|
1392 |
#[allow(clippy::cognitive_complexity)]
|
1393 |
fn evict<'a, S>(
|
84 |
clippy::doc_markdown,
|
85 |
clippy::cognitive_complexity,
|
86 |
clippy::cast_possible_truncation
|
144 |
#[cfg_attr(miri, ignore)] // Miri is too slow
|
145 |
#[allow(clippy::cognitive_complexity)]
|
146 |
fn select_nth_unstable() {
|
220 |
// }
|
221 |
#[allow(clippy::cognitive_complexity)]
|
222 |
notifier.wait(|_events, data| {
|
180 |
#[proc_macro_derive(__cpp_internal_closure)]
|
181 |
#[allow(clippy::cognitive_complexity)]
|
182 |
pub fn expand_internal(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
|
462 |
/// Return None when the end of the source is encountered.
|
463 |
#[allow(clippy::cognitive_complexity)]
|
464 |
pub fn next(&mut self) -> Option<Result<LocatedToken<'a>, LocatedError>> {
|
1041 |
#[allow(clippy::cognitive_complexity)]
|
1042 |
fn default_cfg(target: &str) -> Vec<(String, Option<String>)> {
|
1045 |
#[allow(clippy::cognitive_complexity)]
|
1046 |
fn default_cfg(target: &str) -> Vec<(String, Option<String>)> {
|
47 |
#[allow(clippy::cyclomatic_complexity)]
|
48 |
fn main() {
|
390 |
#[allow(clippy::cognitive_complexity)]
|
391 |
fn blt_keycode_to_char_impl(kc: KeyCode, shift: bool) -> char {
|
165 |
#[cfg(target_endian = "little")]
|
166 |
#[allow(clippy::cognitive_complexity)] // Manual indexing wins.
|
167 |
#[must_use]
|
233 |
#[cfg(target_endian = "little")]
|
234 |
#[allow(clippy::cognitive_complexity)] // Manual indexing wins.
|
235 |
#[allow(clippy::too_many_lines)] // Agreed! These numbers are fucking huge!
|
1292 |
/// [`encode_len`]: struct.Encoding.html#method.encode_len
|
1293 |
#[allow(clippy::cognitive_complexity)]
|
1294 |
pub fn encode_mut(&self, input: &[u8], output: &mut [u8]) {
|
1409 |
/// [`written`]: struct.DecodePartial.html#structfield.written
|
1410 |
#[allow(clippy::cognitive_complexity)]
|
1411 |
pub fn decode_mut(&self, input: &[u8], output: &mut [u8]) -> Result<usize, DecodePartial> {
|
1553 |
#[allow(clippy::cognitive_complexity)]
|
1554 |
#[test]
|
1716 |
#[allow(clippy::cognitive_complexity)]
|
1717 |
#[test]
|
1890 |
#[allow(clippy::cognitive_complexity)]
|
1891 |
#[test]
|
2064 |
#[allow(clippy::cognitive_complexity)]
|
2065 |
#[test]
|
2236 |
#[allow(clippy::cognitive_complexity)]
|
2237 |
#[test]
|
509 |
#[test]
|
510 |
#[allow(clippy::cognitive_complexity)]
|
511 |
fn test_tx_packet_assembly() {
|
657 |
#[test]
|
658 |
#[allow(clippy::cognitive_complexity)]
|
659 |
fn test_packet_hdr_accessors() {
|
385 |
#[allow(clippy::cognitive_complexity)]
|
386 |
fn generate_delta_body(
|
261 |
/// Parse the `derivative` attributes on a type.
|
262 |
#[allow(clippy::cognitive_complexity)] // mostly macros
|
263 |
pub fn from_ast(
|
446 |
/// Parse the `derivative` attributes on a type.
|
447 |
#[allow(clippy::cognitive_complexity)] // mostly macros
|
448 |
pub fn from_ast(
|
73 |
#[allow(clippy::cognitive_complexity)]
|
74 |
fn enum_content(
|
11 |
/// Provides the hook to expand `#[derive(TryInto)]` into an implementation of `TryInto`
|
12 |
#[allow(clippy::cognitive_complexity)]
|
13 |
pub fn expand(input: &DeriveInput, trait_name: &'static str) -> Result<TokenStream> {
|
439 |
/// resynchronization after encrypting those BS+2 octets.
|
440 |
#[allow(clippy::cognitive_complexity)] // FIXME
|
441 |
pub fn encrypt_with_iv<'a>(
|
321 |
#[allow(clippy::cognitive_complexity)]
|
322 |
fn try_from_ctx(source: &'a [u8], dex: &super::Dex<S>) -> Result<(Self, Self::Size)> {
|
430 |
/// Decodes a single instruction (opcode and operands).
|
431 |
#[allow(clippy::cognitive_complexity)]
|
432 |
#[rustfmt::skip]
|
180 |
#[allow(clippy::cognitive_complexity)]
|
181 |
#[cfg(unix)]
|
616 |
impl Process<Iptables> for WiderWorldToContainerRule {
|
617 |
#[allow(clippy::cognitive_complexity)]
|
618 |
fn process(&self, ctx: &ProcessContext<Iptables>) -> Result<Option<Vec<IptablesRule>>> {
|
310 |
#[allow(clippy::cognitive_complexity)]
|
311 |
fn apply_builtin<'cx>(
|
416 |
#[test]
|
417 |
#[allow(clippy::cognitive_complexity)]
|
418 |
fn test_position_extended() {
|
5214 |
/// <https://docs.microsoft.com/en-us/windows/win32/api/directxcollision/nf-directxcollision-intersects~r1>
|
5215 |
#[allow(clippy::cognitive_complexity)]
|
5216 |
#[inline]
|
214 |
#[allow(clippy::cognitive_complexity)]
|
215 |
lua.context(|ctx| {
|
188 |
#[inline]
|
189 |
#[allow(clippy::cognitive_complexity)]
|
190 |
fn next(&mut self) -> Option<&'a str> {
|
431 |
#[inline]
|
432 |
#[allow(clippy::cognitive_complexity)]
|
433 |
#[cfg_attr(feature = "cargo-clippy", allow(cyclomatic_complexity))]
|
434 |
fn next_back(&mut self) -> Option<&'a str> {
|
672 |
impl<B: BufRead> Reader<B> {
|
673 |
#[allow(clippy::cognitive_complexity)]
|
674 |
pub fn read_event(&mut self) -> Result<Event, Error> {
|
864 |
#[allow(clippy::cyclomatic_complexity)]
|
865 |
fn dispatch(&mut self, bus: &mut Bus) -> Result<i32, CpuError> {
|
98 |
// NOTE(clippy): tracing generates cognitive complexity due to macro expansion.
|
99 |
#[allow(clippy::cognitive_complexity)]
|
100 |
pub fn run<T, Fut>(self, test: T)
|
511 |
impl fmt::Display for ResolvConf {
|
512 |
#[allow(clippy::cognitive_complexity)]
|
513 |
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
526 |
impl fmt::Display for ResolvConf {
|
527 |
#[allow(clippy::cognitive_complexity)]
|
528 |
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
1318 |
#[allow(clippy::enum_glob_use)]
|
1319 |
#[allow(clippy::cognitive_complexity)]
|
1320 |
fn by_name_and_level() {
|
59 |
#[allow(clippy::cognitive_complexity)]
|
60 |
#[test]
|
542 |
#[test]
|
543 |
#[allow(clippy::cognitive_complexity)]
|
544 |
fn basis_approx_eq() {
|
131 |
#[allow(clippy::too_many_lines, clippy::cognitive_complexity)]
|
132 |
pub fn proc_macro(input: TokenStream) -> TokenStream {
|
195 |
#[allow(clippy::too_many_lines, clippy::cognitive_complexity)]
|
196 |
pub fn proc_macro(input: TokenStream) -> TokenStream {
|
169 |
impl Variant {
|
170 |
#[allow(clippy::too_many_lines, clippy::cognitive_complexity)]
|
171 |
fn generate(&self) -> TokenStream2 {
|
150 |
#[allow(clippy::too_many_lines, clippy::cognitive_complexity)]
|
151 |
pub fn proc_macro(input: TokenStream) -> TokenStream {
|
84 |
#[cfg_attr(feature = "cargo-clippy", allow(cyclomatic_complexity))]
|
85 |
pub fn proc_macro(input: TokenStream) -> TokenStream {
|
113 |
#[allow(clippy::cognitive_complexity)]
|
114 |
Harness::create_simple((), widget, |harness| {
|
21 |
#[allow(clippy::cognitive_complexity)]
|
22 |
fn backspace_offset(text: &impl EditableText, start: usize) -> usize {
|
1198 |
#[test]
|
1199 |
#[allow(clippy::cognitive_complexity)]
|
1200 |
fn test_main_axis_alignment_spacing() {
|
55 |
#[allow(clippy::cognitive_complexity)]
|
56 |
pub(crate) unsafe fn build_panel(ty: FileDialogType, mut options: FileDialogOptions) -> id {
|
708 |
#[allow(clippy::cognitive_complexity)]
|
709 |
fn window_proc(
|
734 |
#[allow(clippy::cognitive_complexity)] // Imitating Python API is priority
|
735 |
fn parse_with_tokens(
|
83 |
/// the implementation test.
|
84 |
#[allow(clippy::cognitive_complexity)]
|
85 |
pub fn generic_wot_test<W>()
|
281 |
#[test]
|
282 |
#[allow(clippy::cognitive_complexity)]
|
283 |
#[ignore = "duckdb doesn't support this"]
|
60 |
/// the implementation test.
|
61 |
#[allow(clippy::cognitive_complexity)]
|
62 |
pub fn generic_wot_test<W>()
|
63 |
#[allow(clippy::cognitive_complexity)]
|
64 |
pub fn report_source<Output: Write>(
|
692 |
}
|
693 |
#[allow(clippy::cognitive_complexity)]
|
694 |
fn apply_custom_reader_material<I>(
|
40 |
impl TableCellStyle {
|
41 |
#[allow(clippy::cognitive_complexity)]
|
42 |
pub(crate) fn read<I>(iter: &mut CodePairPutBack<I>) -> DxfResult<Option<TableCellStyle>>
|
14 |
#[allow(clippy::cognitive_complexity)]
|
15 |
fn main() -> anyhow::Result<()> {
|
719 |
#[allow(clippy::cyclomatic_complexity)]
|
720 |
fn make_rocksdb_options(opt: &RocksDbOpt) -> Result<rocksdb::Options> {
|
26 |
#[test]
|
27 |
#[allow(clippy::cognitive_complexity)]
|
28 |
fn test_iterator() {
|
298 |
#[allow(clippy::cognitive_complexity)]
|
299 |
#[cfg(test)]
|
697 |
/// no RTL characters.
|
698 |
#[cfg_attr(feature = "cargo-clippy", allow(collapsible_if, cyclomatic_complexity))]
|
699 |
#[inline]
|
231 |
#[cfg_attr(feature = "cargo-clippy", allow(never_loop, cyclomatic_complexity))]
|
232 |
pub fn convert_utf8_to_utf16_up_to_invalid(src: &[u8], dst: &mut [u16]) -> (usize, usize) {
|
28 |
#[allow(clippy::cognitive_complexity)]
|
29 |
fn new(req: &RequestHead, cfg: &AppConfig) -> ConnectionInfo {
|
323 |
/// into a final derivation output.
|
324 |
#[allow(clippy::cognitive_complexity)]
|
325 |
pub fn assemble_output(&self, parts:OutputParts) -> TokenStream {
|
28 |
#[allow(clippy::cognitive_complexity)]
|
29 |
fn new(req: &RequestHead, cfg: &AppConfig) -> ConnectionInfo {
|
842 |
#[cfg(test)]
|
843 |
#[allow(clippy::cognitive_complexity)]
|
844 |
mod bitlist {
|
1304 |
#[test]
|
1305 |
#[allow(clippy::cognitive_complexity)]
|
1306 |
fn std_num_conversion() {
|
1368 |
#[test]
|
1369 |
#[allow(clippy::cognitive_complexity)]
|
1370 |
fn std_num_conversion() {
|
198 |
#[test]
|
199 |
#[allow(clippy::cognitive_complexity)] // More test code is fine
|
200 |
fn execution_error_matching() {
|
36 |
#[test]
|
37 |
#[allow(clippy::cognitive_complexity)]
|
38 |
fn test_explorer_basics() {
|
517 |
#[test]
|
518 |
#[allow(clippy::cognitive_complexity)]
|
519 |
fn test_list_index_methods() {
|
228 |
#[test]
|
229 |
#[allow(clippy::cognitive_complexity, clippy::too_many_lines)]
|
230 |
fn interleaved_rollbacks() {
|
116 |
#[allow(clippy::cognitive_complexity)]
|
117 |
fn compute_internal(
|
235 |
#[test]
|
236 |
#[allow(clippy::cognitive_complexity)]
|
237 |
fn decode_statuses_with_success() {
|
424 |
/// Run the program with options.
|
425 |
#[allow(clippy::cognitive_complexity)]
|
426 |
pub(crate) fn run(
|
275 |
/// Verifies a transformation of the `Accumulator` with the `PublicKey`, given a 64-byte transcript `digest`.
|
276 |
#[allow(clippy::too_many_arguments, clippy::cognitive_complexity)]
|
277 |
pub fn verify_transformation(
|
163 |
#[allow(clippy::cognitive_complexity)]
|
164 |
#[test]
|
407 |
#[allow(clippy::cognitive_complexity)]
|
408 |
#[allow(clippy::too_many_lines)]
|
358 |
#[test]
|
359 |
#[allow(clippy::cognitive_complexity)]
|
360 |
#[allow(clippy::too_many_lines)]
|
8 |
#[allow(clippy::cognitive_complexity)]
|
9 |
fn main() -> ffp::Result<()> {
|
30 |
#[doc(hidden)]
|
31 |
#[allow(clippy::cognitive_complexity, clippy::too_many_lines)]
|
32 |
fn main() {
|
1098 |
#[allow(clippy::cognitive_complexity)]
|
1099 |
fn main() {
|
729 |
#[cfg_attr(feature = "cargo-clippy", allow(cyclomatic_complexity))]
|
730 |
fn keyboard_key(&mut self, view: Option<&View>, time: u32, modifiers: Modifiers, key: Key,
|
308 |
#[cfg_attr(feature = "cargo-clippy", allow(cyclomatic_complexity))]
|
309 |
fn keyboard_key(&mut self, view: Option<&View>, _time: u32, modifiers: Modifiers, key: Key,
|
163 |
#[allow(clippy::cognitive_complexity)]
|
164 |
fn read_next_field<R>(
|
450 |
#[allow(clippy::cognitive_complexity)]
|
451 |
pub fn read_next_field(
|
583 |
#[allow(clippy::too_many_arguments)]
|
584 |
#[allow(clippy::cognitive_complexity)]
|
585 |
async fn rename_transaction_lock_context<'a>(
|
134 |
#[allow(clippy::cognitive_complexity)]
|
135 |
fn sais_sub<T, C, K>(text: K, sa: &mut [u64], converter: &C)
|
36 |
renamed_and_removed_lints,
|
37 |
clippy::cyclomatic_complexity,
|
38 |
clippy::cognitive_complexity
|
39 |
)]
|
343 |
#[allow(clippy::cognitive_complexity)]
|
344 |
fn handle_request(&mut self, request: Request) {
|
554 |
impl fmt::Debug for Ready {
|
555 |
#[allow(clippy::cognitive_complexity)]
|
556 |
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
586 |
#[test]
|
587 |
#[allow(clippy::cognitive_complexity)]
|
588 |
fn test_purge_transaction_status() {
|
859 |
#[test]
|
860 |
#[allow(clippy::cognitive_complexity)]
|
861 |
fn test_purge_transaction_status_exact() {
|
4974 |
#[test]
|
4975 |
#[allow(clippy::cognitive_complexity)]
|
4976 |
pub fn test_forward_chaining_is_connected() {
|
6411 |
#[test]
|
6412 |
#[allow(clippy::cognitive_complexity)]
|
6413 |
fn test_transaction_status_index() {
|
3082 |
#[allow(clippy::cognitive_complexity)]
|
3083 |
fn update_error_counters(error_counters: &ErrorCounters) {
|
6758 |
#[test]
|
6759 |
#[allow(clippy::cognitive_complexity)]
|
6760 |
fn test_rent_complex() {
|
6995 |
#[test]
|
6996 |
#[allow(clippy::cognitive_complexity)]
|
6997 |
fn test_rent_eager_across_epoch_without_gap_under_multi_epoch_cycle() {
|
530 |
impl InformationAI {
|
531 |
#[allow(clippy::cognitive_complexity)]
|
532 |
pub fn read_from(mut input: impl Read, version: f32) -> Result<Self> {
|
48 |
#[allow(clippy::cognitive_complexity)]
|
49 |
pub fn read_from(mut input: impl Read, version: f32, num_players: u8) -> Result<Self> {
|
387 |
#[allow(clippy::cognitive_complexity)]
|
388 |
fn read_event_default(event: Event, key_bindings: &KeyBindings) -> Event {
|
264 |
#[allow(clippy::cognitive_complexity, clippy::too_many_lines)]
|
265 |
fn rebuild(&mut self, view_data: &ViewData) {
|
63 |
impl Config {
|
64 |
#[allow(clippy::cognitive_complexity)]
|
65 |
pub fn load(args: &Args) -> Result<Self> {
|
1079 |
#[allow(clippy::cognitive_complexity)]
|
1080 |
#[test]
|
1168 |
#[allow(clippy::cognitive_complexity)]
|
1169 |
#[test]
|
213 |
//TODO: cleanup
|
214 |
#[allow(clippy::cognitive_complexity)]
|
215 |
fn event(&mut self, ev: &Event) -> Result<EventState> {
|
724 |
#[allow(clippy::cognitive_complexity)]
|
725 |
fn event(&mut self, ev: &Event) -> Result<EventState> {
|
823 |
#[allow(clippy::too_many_lines, clippy::cognitive_complexity)]
|
824 |
fn event(
|
169 |
#[allow(clippy::cyclomatic_complexity)]
|
170 |
pub fn tokenize<'a>(
|
359 |
#[allow(clippy::cognitive_complexity)]
|
360 |
fn apply_update_in_memory<F>(&mut self, u: &mut GraphUpdate, progress_callback: F) -> Result<()>
|
735 |
/// <https://sass-lang.com/documentation/at-rules/import#load-paths>
|
736 |
#[allow(clippy::cognitive_complexity)]
|
737 |
fn find_import(&self, path: &Path) -> Option<PathBuf> {
|
340 |
/// sequences can't be merged, returns `None`.
|
341 |
#[allow(clippy::cognitive_complexity)]
|
342 |
fn merge_final_combinators(
|
67 |
#[allow(clippy::too_many_lines)]
|
68 |
#[allow(clippy::cognitive_complexity)]
|
69 |
pub fn main() -> Result<()> {
|
136 |
#[allow(clippy::cognitive_complexity)]
|
137 |
#[allow(clippy::too_many_lines)]
|
18 |
#[allow(clippy::too_many_lines)]
|
19 |
#[allow(clippy::cognitive_complexity)]
|
20 |
pub fn parse_obu<'a>(
|
1345 |
#[test]
|
1346 |
#[allow(clippy::cognitive_complexity)]
|
1347 |
fn test_memories() {
|
431 |
#[test]
|
432 |
#[allow(clippy::cognitive_complexity)]
|
433 |
fn test_buffer_cursor() {
|
523 |
#[test]
|
524 |
#[allow(clippy::cognitive_complexity)]
|
525 |
fn test_buffer_cursor_ref() {
|
538 |
#[allow(clippy::cognitive_complexity)]
|
539 |
#[test]
|
1192 |
#[test]
|
1193 |
#[allow(clippy::cognitive_complexity)]
|
1194 |
fn test_generic() {
|
277 |
#[allow(clippy::cognitive_complexity)]
|
278 |
#[test]
|
406 |
#[allow(clippy::cognitive_complexity)]
|
407 |
#[test]
|
521 |
#[allow(clippy::cognitive_complexity)]
|
522 |
#[test]
|
1319 |
#[allow(
|
1320 |
clippy::cognitive_complexity,
|
1321 |
clippy::float_cmp,
|
1334 |
#[allow(
|
1335 |
clippy::cognitive_complexity,
|
1336 |
clippy::float_cmp,
|
704 |
#[cfg(test)]
|
705 |
#[allow(clippy::cognitive_complexity)]
|
706 |
fn assert_valid(&self) {
|
947 |
// need to actually invoke the clone impl, and I don't feel like splitting this.
|
948 |
#[allow(clippy::clone_on_copy, clippy::cognitive_complexity)]
|
949 |
fn test_trait_impls() {
|
89 |
// TODO: Add an observer node to the test network.
|
90 |
#[allow(clippy::needless_pass_by_value, clippy::cyclomatic_complexity)]
|
91 |
fn do_drop_and_re_add(cfg: TestConfig) {
|
137 |
#[test]
|
138 |
#[allow(clippy::cyclomatic_complexity)]
|
139 |
fn network_from_u32_is_correct() {
|
134 |
#[allow(clippy::too_many_lines)]
|
135 |
#[allow(clippy::cognitive_complexity)]
|
136 |
fn try_from(v: u8) -> Result<Self, Self::Error> {
|
343 |
#[allow(clippy::cognitive_complexity)]
|
344 |
fn _mark_ready(
|
1171 |
/// The absence of value represents the unavailability of the required context.
|
1172 |
#[allow(clippy::cognitive_complexity)]
|
1173 |
fn get_context_priority(
|
10 |
impl EnumNameDesc for Name {
|
11 |
#[allow(clippy::cognitive_complexity)]
|
12 |
fn name(&self, lang: Lang) -> String {
|
247 |
#[allow(clippy::cognitive_complexity)]
|
248 |
fn process_args(matches: &clap::ArgMatches) -> anyhow::Result<()> {
|
380 |
#[test]
|
381 |
#[allow(clippy::cognitive_complexity)]
|
382 |
fn test_decode_single_value() {
|
451 |
#[test]
|
452 |
#[allow(clippy::cognitive_complexity)]
|
453 |
fn test_encode_single_value() {
|
342 |
#[test]
|
343 |
#[allow(clippy::cognitive_complexity)]
|
344 |
fn test_units() {
|
249 |
/// beyond that and still gives them to the user.
|
250 |
#[allow(clippy::cognitive_complexity)]
|
251 |
pub fn nearest<'a>(
|
581 |
#[allow(clippy::cognitive_complexity)]
|
582 |
#[test]
|
17 |
#[allow(clippy::cognitive_complexity)]
|
18 |
/// addchain for 1000602388805416848354447456433976039139220704984751971333014534031007912622709466110671907282253916009473568139946
|
324 |
#[allow(clippy::cognitive_complexity)]
|
325 |
/// addchain for 1001205140483106588246484290269935788605945006208159541241399033561623546780709821462541004956387089373434649096260670658193992783731681621012512651314777238193313314641988297376025498093520728838658813979860931248214124593092835
|
106 |
#[allow(clippy::cognitive_complexity)]
|
107 |
#[test]
|
223 |
#[allow(clippy::cognitive_complexity)]
|
224 |
#[test]
|
351 |
#[allow(clippy::too_many_lines, clippy::cognitive_complexity)]
|
352 |
fn on_event(
|
1534 |
// split up without extracting structs for each `Statement` variant.
|
1535 |
#[allow(clippy::cognitive_complexity)]
|
1536 |
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
241 |
#[allow(clippy::cognitive_complexity)]
|
242 |
fn serve_node(&self) -> impl Future<Item = (), Error = ()> {
|
465 |
/// process or on the configured port.
|
466 |
#[allow(clippy::cognitive_complexity)]
|
467 |
fn serve_prometheus(&self) -> impl Future<Item = (), Error = ()> {
|
480 |
/// Based on code in https://github.com/alexcrichton/rustc-demangle/blob/master/src/legacy.rs
|
481 |
#[allow(clippy::cognitive_complexity)]
|
482 |
pub(crate) fn fix_partially_demangled_rust_symbol(symbol: &str) -> Cow<str> {
|
404 |
/// [differential flame graph]: http://www.brendangregg.com/blog/2014-11-09/differential-flame-graphs.html
|
405 |
#[allow(clippy::cognitive_complexity)]
|
406 |
pub fn from_lines<'a, I, W>(opt: &mut Options<'_>, lines: I, writer: W) -> quick_xml::Result<()>
|
458 |
#[test]
|
459 |
#[allow(clippy::cognitive_complexity)]
|
460 |
fn has_right_between() -> Result<()> {
|
17 |
#[allow(clippy::cognitive_complexity)]
|
18 |
/// addchain for 1000602388805416848354447456433976039139220704984751971333014534031007912622709466110671907282253916009473568139946
|
324 |
#[allow(clippy::cognitive_complexity)]
|
325 |
/// addchain for 1001205140483106588246484290269935788605945006208159541241399033561623546780709821462541004956387089373434649096260670658193992783731681621012512651314777238193313314641988297376025498093520728838658813979860931248214124593092835
|
264 |
#[allow(clippy::cognitive_complexity)]
|
265 |
fn next(&mut self) -> Option<Self::Item> {
|
72 |
#[allow(clippy::too_many_lines, clippy::cognitive_complexity)]
|
73 |
fn parser<'cli>(
|
39 |
// TODO: split main functions and remove following allow.
|
40 |
#[allow(clippy::cognitive_complexity)]
|
41 |
fn main() {
|
267 |
#[allow(clippy::cognitive_complexity)]
|
268 |
#[test]
|
104 |
/// execution log, so that it can be examined how an operation proceeded.
|
105 |
#[allow(clippy::cognitive_complexity)]
|
106 |
fn filter2idl(
|
848 |
// TODO: Can this be improved?
|
849 |
#[allow(clippy::cognitive_complexity)]
|
850 |
fn entry_index(
|
75 |
// TODO: Can this be improved?
|
76 |
#[allow(clippy::cognitive_complexity)]
|
77 |
impl CredHandler {
|
46 |
// TODO: Can this be improved?
|
47 |
#[allow(clippy::cognitive_complexity)]
|
48 |
fn pre_create_transform(
|
94 |
#[allow(clippy::cognitive_complexity)]
|
95 |
fn apply_memberof(
|
111 |
#[allow(clippy::cognitive_complexity)]
|
112 |
pub async fn handle_network_event(&mut self, io_event: IoEvent) {
|
6 |
#[allow(clippy::cognitive_complexity)]
|
7 |
pub fn generate(key_maps: HashSet<KeyMap>) -> TokenStream {
|
242 |
#[allow(clippy::cognitive_complexity)]
|
243 |
fn update(&mut self, message: Message) -> Command<Message> {
|
21 |
/// * `transmitters` The set of transmitters for sending messages into each peripheral thread
|
22 |
#[allow(clippy::cognitive_complexity)]
|
23 |
pub fn routes(request: &Request, libs: &[TSLibrary], txs: Arc<RwLock<Transmitters>>) -> Response {
|
177 |
#[allow(clippy::cognitive_complexity)]
|
178 |
async fn certauth(&self, command: CaCommand) -> Result<ApiResponse, Error> {
|
206 |
#[allow(clippy::cognitive_complexity)]
|
207 |
impl fmt::Display for BgpAnalysisSuggestion {
|
378 |
#[allow(clippy::cognitive_complexity)]
|
379 |
impl fmt::Display for BgpAnalysisReport {
|
273 |
#[test]
|
274 |
#[allow(clippy::cyclomatic_complexity)]
|
275 |
fn source_stream() {
|
242 |
#[test]
|
243 |
#[allow(clippy::cyclomatic_complexity)]
|
244 |
fn source_stream() {
|
403 |
#[test]
|
404 |
#[allow(clippy::cyclomatic_complexity)]
|
405 |
fn refcnt_slice() {
|
573 |
#[test]
|
574 |
#[allow(unused_results, clippy::cyclomatic_complexity)]
|
575 |
fn pos_strish_srcstrm() {
|
349 |
/// not be of benefit).
|
350 |
#[allow(clippy::cognitive_complexity,clippy::many_single_char_names)]
|
351 |
pub fn decode_ms<T: DecodeFrom>(self, llrs: &[T], output: &mut [u8],
|
1889 |
#[test]
|
1890 |
#[allow(clippy::cognitive_complexity)]
|
1891 |
fn dir() {
|
1988 |
#[allow(clippy::cognitive_complexity)]
|
1989 |
#[test]
|
471 |
#[test]
|
472 |
#[allow(clippy::cognitive_complexity)]
|
473 |
fn distribution_creation() {
|
387 |
#[allow(clippy::cognitive_complexity)]
|
388 |
#[test]
|
149 |
#[cfg(feature = "parallel")]
|
150 |
#[allow(clippy::cognitive_complexity)]
|
151 |
// TODO: we should break this up
|
129 |
#[cfg(feature = "par-schedule")]
|
130 |
#[allow(clippy::cognitive_complexity)]
|
131 |
// TODO: we should break this up
|
278 |
/// Sends an email
|
279 |
#[cfg_attr(feature = "cargo-clippy", allow(match_same_arms, cyclomatic_complexity))]
|
280 |
fn send(&mut self, email: SendableEmail) -> SmtpResult {
|
31 |
#[allow(clippy::cognitive_complexity)]
|
32 |
fn test_sec_buf(&self) {
|
195 |
/// Generate the final format.
|
196 |
#[allow(clippy::cognitive_complexity)]
|
197 |
pub fn finalize(&self) -> String {
|
390 |
#[allow(clippy::cognitive_complexity)]
|
391 |
unsafe extern "C" fn internal_cipher(
|
218 |
#[test]
|
219 |
#[allow(clippy::cognitive_complexity)]
|
220 |
fn test_validate_name() {
|
354 |
/// Custom colors cannot be made with this method; use `Color::Custom(s)` instead.
|
355 |
#[allow(clippy::cyclomatic_complexity)]
|
356 |
fn from_str(s: &str) -> Result<Self, Self::Err> {
|
919 |
#[allow(clippy::cognitive_complexity)]
|
920 |
fn read_from_ini(&mut self, mut file: File) -> Result<(), Error> {
|
929 |
#[allow(clippy::cognitive_complexity)]
|
930 |
pub fn write<W: Write>(
|
941 |
#[allow(clippy::cognitive_complexity)]
|
942 |
#[allow(clippy::single_match)]
|
330 |
/// Example that includes all kinds of data (argv, env, different kinds of aux vars
|
331 |
#[allow(clippy::cognitive_complexity)]
|
332 |
#[test]
|
443 |
impl CallingConvention {
|
444 |
#[allow(clippy::cognitive_complexity)]
|
445 |
#[rustfmt::skip] // each calling convention on one line, even if lines get a little long
|
137 |
#[test]
|
138 |
#[allow(clippy::cognitive_complexity)]
|
139 |
fn loopbc() {
|
99 |
#[allow(non_snake_case)]
|
100 |
#[allow(clippy::cognitive_complexity)]
|
101 |
fn DILocation_implicit_code_extra_checks() {
|
157 |
#[allow(clippy::cognitive_complexity)]
|
158 |
fn repl(locustdb: &LocustDB) {
|
114 |
#[allow(clippy::cognitive_complexity)]
|
115 |
fn partition(&self) -> Vec<ExecutorStage> {
|
218 |
#[allow(clippy::cognitive_complexity)]
|
219 |
fn generator_matrix(&self) -> &BinMatrix {
|
309 |
#[allow(clippy::cognitive_complexity)]
|
310 |
fn decode_to_message(&self, c: &BinVector) -> Result<BinVector, &str> {
|
98 |
#[allow(clippy::cognitive_complexity)]
|
99 |
fn enumeration_tests<Map>()
|
158 |
#[allow(clippy::cognitive_complexity)]
|
159 |
fn iteration_tests<Map>()
|
318 |
#[allow(clippy::cognitive_complexity)]
|
319 |
fn check_uniform_type_match(
|
372 |
#[allow(clippy::cognitive_complexity)]
|
373 |
fn check_types_match(name: &str, ty: UniformType, glty: u32) -> Result<(), UniformWarning> {
|
10 |
#[allow(clippy::cognitive_complexity)]
|
11 |
pub fn into_tokens(c: char, it: &mut Peekable<Chars>, state: &mut State) -> LexResult {
|
2029 |
#[test]
|
2030 |
#[allow(clippy::cognitive_complexity)]
|
2031 |
fn aips_117() {
|
270 |
// TODO: reduce cognitive complexity
|
271 |
#[allow(clippy::cognitive_complexity)]
|
272 |
fn test_no_precession_at_j2000() {
|
333 |
// TODO: reduce cognitive complexity
|
334 |
#[allow(clippy::cognitive_complexity)]
|
335 |
fn test_no_precession_at_j2000_with_dut1() {
|
503 |
#[test]
|
504 |
#[allow(clippy::cognitive_complexity)]
|
505 |
fn test_list_index_methods() {
|
1507 |
#[cfg(test)]
|
1508 |
#[allow(clippy::cognitive_complexity)]
|
1509 |
mod tests {
|
1507 |
#[cfg(test)]
|
1508 |
#[allow(clippy::cognitive_complexity)]
|
1509 |
mod tests {
|
39 |
#[allow(clippy::cognitive_complexity)]
|
40 |
#[instrument(level = "trace", skip(writer, settings, environment, theme))]
|
5 |
clippy::unit_arg,
|
6 |
clippy::cyclomatic_complexity,
|
7 |
clippy::len_zero,
|
1077 |
/// has an unsupported type, we leave it out of the remainder.
|
1078 |
#[allow(clippy::cognitive_complexity)]
|
1079 |
fn vtk_to_mesh_attrib<M, I>(
|
1182 |
/// Populate face vertex attributes from field attributes.
|
1183 |
#[allow(clippy::cognitive_complexity)]
|
1184 |
fn vtk_field_to_mesh_attrib<M>(
|
529 |
#[test]
|
530 |
#[allow(clippy::cognitive_complexity)]
|
531 |
fn test_list_index_methods() {
|
340 |
#[test]
|
341 |
#[allow(clippy::cognitive_complexity)]
|
342 |
fn basics() {
|
200 |
#[allow(clippy::cognitive_complexity)]
|
201 |
fn serialize_unnamed(
|
1023 |
/// EndOfOriginalArchiveData)
|
1024 |
#[allow(clippy::cognitive_complexity)]
|
1025 |
pub fn convert_to_archive<W: InnerWriterTrait>(
|
91 |
#[test]
|
92 |
#[allow(clippy::cognitive_complexity)] // extensive checks, and it doesn't matter for tests
|
93 |
fn new_free_list_grain1() {
|
131 |
#[test]
|
132 |
#[allow(clippy::cognitive_complexity)] // extensive checks, and it doesn't matter for tests
|
133 |
fn new_free_list_grain2() {
|
208 |
#[test]
|
209 |
#[allow(clippy::cognitive_complexity)] // extensive checks, and it doesn't matter for tests
|
210 |
fn alloc_split() {
|
280 |
#[test]
|
281 |
#[allow(clippy::cognitive_complexity)] // extensive checks, and it doesn't matter for tests
|
282 |
fn new_free_list_grain1() {
|
320 |
#[test]
|
321 |
#[allow(clippy::cognitive_complexity)] // extensive checks, and it doesn't matter for tests
|
322 |
fn new_free_list_grain2() {
|
398 |
#[test]
|
399 |
#[allow(clippy::cognitive_complexity)] // extensive checks, and it doesn't matter for tests
|
400 |
fn alloc_split() {
|
88 |
/// Requires a reference to source chars
|
89 |
#[allow(clippy::cognitive_complexity)] // Some functions are just complicated ok?
|
90 |
pub fn excerpt (&self, f: &mut Formatter) -> FMTResult {
|
340 |
#[test]
|
341 |
#[allow(clippy::cognitive_complexity)]
|
342 |
fn basics() {
|
1747 |
#[allow(clippy::cognitive_complexity)]
|
1748 |
#[test]
|
13 |
impl GenEnumerator for ast::Union {
|
14 |
#[allow(clippy::cognitive_complexity)]
|
15 |
fn gen_enumerator(&self) -> m4::TokenStream {
|
293 |
#[allow(clippy::collapsible_if)]
|
294 |
#[allow(clippy::cognitive_complexity)]
|
295 |
#[allow(clippy::float_cmp)]
|
263 |
#[test]
|
264 |
#[allow(clippy::cognitive_complexity)]
|
265 |
fn test_util_read_float() {
|
293 |
#[allow(clippy::collapsible_if)]
|
294 |
#[allow(clippy::cognitive_complexity)]
|
295 |
#[allow(clippy::float_cmp)]
|
263 |
#[test]
|
264 |
#[allow(clippy::cognitive_complexity)]
|
265 |
fn test_util_read_float() {
|
50 |
#[allow(clippy::cognitive_complexity)]
|
51 |
fn main() {
|
160 |
#[allow(clippy::cognitive_complexity)]
|
161 |
pub fn generate_bytecode(
|
89 |
#[allow(clippy::cognitive_complexity)]
|
90 |
#[test]
|
199 |
#[allow(clippy::cognitive_complexity)]
|
200 |
#[test]
|
414 |
#[test]
|
415 |
#[allow(clippy::cognitive_complexity)] // all macro-generated
|
416 |
fn ocb_test_vectors() {
|
472 |
#[test]
|
473 |
#[allow(clippy::cognitive_complexity)] // all macro-generated
|
474 |
fn ocb_test_vectors() {
|
2885 |
impl<'help> From<&'help Yaml> for App<'help> {
|
2886 |
#[allow(clippy::cognitive_complexity)]
|
2887 |
fn from(y: &'help Yaml) -> Self {
|
1164 |
#[allow(clippy::cognitive_complexity)]
|
1165 |
#[test]
|
4864 |
/// ```
|
4865 |
#[allow(clippy::cognitive_complexity)]
|
4866 |
fn from(y: &'help Yaml) -> Self {
|
258 |
#[allow(clippy::cognitive_complexity)]
|
259 |
#[test]
|
308 |
// The actual parsing function
|
309 |
#[allow(clippy::cognitive_complexity)]
|
310 |
pub(crate) fn get_matches_with(
|
743 |
#[test]
|
744 |
#[allow(clippy::cognitive_complexity)]
|
745 |
fn merge_axes() {
|
1457 |
#[test]
|
1458 |
#[allow(clippy::cognitive_complexity)]
|
1459 |
fn insert_axis() {
|
242 |
#[test]
|
243 |
#[allow(clippy::cognitive_complexity)]
|
244 |
fn test_hash() {
|
307 |
#[cfg(feature = "std")]
|
308 |
#[allow(clippy::cognitive_complexity)]
|
309 |
fn test_all_ndindex() {
|
378 |
#[allow(clippy::cognitive_complexity)]
|
379 |
impl NoiseFn<[f64; 4]> for Worley {
|
259 |
#[inline(always)]
|
260 |
#[allow(clippy::cognitive_complexity)]
|
261 |
pub fn worley_4d<F, NH>(
|
118 |
#[allow(clippy::cognitive_complexity)]
|
119 |
impl NoiseFn<f64, 4> for Worley {
|
914 |
#[test]
|
915 |
#[allow(clippy::cognitive_complexity)]
|
916 |
fn data_type_fungibility() {
|
434 |
impl Table {
|
435 |
#[allow(clippy::cognitive_complexity)]
|
436 |
fn input(
|
753 |
#[allow(clippy::cognitive_complexity)]
|
754 |
fn handle(&mut self, m: Box<Packet>, executor: &mut dyn Executor, top: bool) {
|
1782 |
#[allow(clippy::cognitive_complexity)]
|
1783 |
fn handle_replay(&mut self, m: Box<Packet>, ex: &mut dyn Executor) {
|
181 |
#[test]
|
182 |
#[allow(clippy::cognitive_complexity)]
|
183 |
fn it_forwards() {
|
304 |
#[test]
|
305 |
#[allow(clippy::cognitive_complexity)]
|
306 |
fn it_groups_by_multiple_columns() {
|
276 |
#[test]
|
277 |
#[allow(clippy::cognitive_complexity)]
|
278 |
fn it_forwards() {
|
302 |
#[test]
|
303 |
#[allow(clippy::cognitive_complexity)]
|
304 |
fn it_forwards() {
|
418 |
#[test]
|
419 |
#[allow(clippy::cognitive_complexity)]
|
420 |
fn it_groups_by_multiple_columns() {
|
228 |
#[allow(clippy::cognitive_complexity)]
|
229 |
fn on_input(
|
114 |
#[allow(clippy::cognitive_complexity)]
|
115 |
fn on_input(
|
35 |
#[allow(clippy::cognitive_complexity)]
|
36 |
pub fn merge_mir_for_queries(
|
20 |
for &node in topo_list {
|
21 |
#[allow(clippy::cognitive_complexity)]
|
22 |
let assignment = (|| {
|
101 |
/// satisfy indexing obligations in the given set of (new) nodes.
|
102 |
#[allow(clippy::cognitive_complexity)]
|
103 |
fn extend(&mut self, graph: &Graph, new: &HashSet<NodeIndex>) {
|
479 |
/// populating new materializations.
|
480 |
#[allow(clippy::cognitive_complexity)]
|
481 |
pub(super) fn commit(
|
107 |
/// eventually reported back by `finalize`.
|
108 |
#[allow(clippy::cognitive_complexity)]
|
109 |
pub(super) fn add(&mut self, index_on: Vec<usize>, replies: &mut DomainReplies) {
|
284 |
/// new updates should be sent to introduce them into the Soup.
|
285 |
#[allow(clippy::cognitive_complexity)]
|
286 |
pub(super) fn commit(self) {
|
9 |
#[allow(clippy::cognitive_complexity)]
|
10 |
pub fn shard(
|
1605 |
/// Returns list of nodes added
|
1606 |
#[allow(clippy::cognitive_complexity)]
|
1607 |
fn make_nodes_for_selection(
|
458 |
#[allow(clippy::cognitive_complexity)]
|
459 |
pub fn to_query_graph(st: &SelectStatement) -> Result<QueryGraph, String> {
|
941 |
#[test]
|
942 |
#[allow(clippy::cognitive_complexity)]
|
943 |
fn test_into_response() {
|
892 |
#[test]
|
893 |
#[allow(clippy::cognitive_complexity)]
|
894 |
fn test_error_helpers() {
|
29 |
#[allow(clippy::cognitive_complexity)]
|
30 |
fn new(req: &RequestHead, cfg: &AppConfig) -> ConnectionInfo {
|
38 |
#[allow(clippy::cognitive_complexity)]
|
39 |
fn get_documentation(
|
34 |
#[allow(clippy::cognitive_complexity)]
|
35 |
pub fn view_text_value(value: &Value) {
|
280 |
{
|
281 |
#[allow(clippy::cognitive_complexity)]
|
282 |
fn serialize<SE>(&self, serializer: SE) -> Result<SE::Ok, SE::Error>
|
359 |
{
|
360 |
#[allow(clippy::cognitive_complexity)]
|
361 |
fn serialize<SE>(&self, serializer: SE) -> Result<SE::Ok, SE::Error>
|
71 |
impl dyn ColumnData {
|
72 |
#[allow(clippy::cognitive_complexity)]
|
73 |
pub(crate) fn load_data<W: ColumnWrapper, T: ReadEx>(
|
31 |
impl Container {
|
32 |
#[allow(clippy::cognitive_complexity)]
|
33 |
pub fn from_ast(cx: &ParsingContext, input: &syn::DeriveInput) -> Self {
|
114 |
#[allow(clippy::cognitive_complexity)]
|
115 |
#[tokio::main]
|
396 |
// TODO: REFACTOR THIS SHIT
|
397 |
#[allow(clippy::cognitive_complexity)]
|
398 |
#[allow(clippy::many_single_char_names)]
|
55 |
// compatibly with Budroni-Pintore GLV-based method
|
56 |
#[allow(clippy::cognitive_complexity)]
|
57 |
fn chain_h2_eff<PtT: CurveProjective>(var1: &mut PtT, var0: &PtT) {
|
16 |
#[allow(clippy::cognitive_complexity)]
|
17 |
/// addchain for 1000602388805416848354447456433976039139220704984751971333014534031007912622709466110671907282253916009473568139946
|
340 |
#[allow(clippy::cognitive_complexity)]
|
341 |
/// addchain for 1001205140483106588246484290269935788605945006208159541241399033561623546780709821462541004956387089373434649096260670658193992783731681621012512651314777238193313314641988297376025498093520728838658813979860931248214124593092835
|
529 |
#[test]
|
530 |
#[allow(clippy::cognitive_complexity)]
|
531 |
fn test_frob_coeffs() {
|
10 |
#[allow(clippy::cognitive_complexity)]
|
11 |
/* *** addchain for 1000602388805416848354447456433976039139220704984751971333014534031007912622709466110671907282253916009473568139946 *** */
|
333 |
#[allow(clippy::cognitive_complexity)]
|
334 |
/* *** addchain for 1001205140483106588246484290269935788605945006208159541241399033561623546780709821462541004956387089373434649096260670658193992783731681621012512651314777238193313314641988297376025498093520728838658813979860931248214124593092835 *** */
|
637 |
mod test {
|
638 |
#[allow(clippy::cognitive_complexity)]
|
639 |
#[test]
|
250 |
#[allow(clippy::cognitive_complexity)]
|
251 |
#[test]
|
61 |
// The actual parsing function
|
62 |
#[allow(clippy::cognitive_complexity)]
|
63 |
pub(crate) fn get_matches_with(
|
102 |
// number is a superset of nom::double! that includes '1' and '1.'
|
103 |
#[allow(clippy::cyclomatic_complexity)]
|
104 |
fn number(input: &[u8]) -> IResult<&[u8], Float> {
|
621 |
/// "day-time literal"s (that look like ('4 5:6:7')
|
622 |
#[allow(clippy::cognitive_complexity)]
|
623 |
fn format_interval(
|
1014 |
/// Returns `None` if `other == 0`.
|
1015 |
#[allow(clippy::cognitive_complexity)]
|
1016 |
pub fn div_common(&self, other: &Self, rscale: i32, round: bool) -> Option<Self> {
|
1254 |
/// Returns `None` if `other == 0`.
|
1255 |
#[allow(clippy::cognitive_complexity)]
|
1256 |
pub fn div_fast_common(&self, other: &Self, rscale: i32, round: bool) -> Option<Self> {
|
438 |
/// resynchronization after encrypting those BS+2 octets.
|
439 |
#[allow(clippy::cognitive_complexity)] // FIXME
|
440 |
pub fn encrypt_with_iv<'a>(
|
77 |
#[allow(clippy::cognitive_complexity)]
|
78 |
#[rstest_parametrize(ser_method_int, case(0), case(1), case(2), case(3))]
|
60 |
#[allow(clippy::cognitive_complexity)]
|
61 |
#[test]
|
13 |
#[allow(clippy::cognitive_complexity)]
|
14 |
#[rstest_parametrize(ser_method_int, case(0), case(1), case(2), case(3))]
|
2607 |
#[allow(clippy::cognitive_complexity)]
|
2608 |
#[test]
|
2782 |
#[allow(clippy::cognitive_complexity)]
|
2783 |
#[test]
|
2966 |
#[allow(clippy::cognitive_complexity)]
|
2967 |
#[test]
|
3150 |
#[allow(clippy::cognitive_complexity)]
|
3151 |
#[test]
|
3332 |
#[allow(clippy::cognitive_complexity)]
|
3333 |
#[test]
|
228 |
#[allow(clippy::too_many_lines)]
|
229 |
#[allow(clippy::cognitive_complexity)]
|
230 |
pub fn get_candidates_without_rhotic(&self, strict: bool) -> Vec<Candidate> {
|
232 |
#[allow(clippy::too_many_lines)]
|
233 |
#[allow(clippy::cognitive_complexity)]
|
234 |
fn next(&mut self) -> Option<Self::Item> {
|
205 |
#[test]
|
206 |
#[allow(clippy::cognitive_complexity)] // I disagree - @ecton
|
207 |
fn primitive_key_encoding_tests() -> anyhow::Result<()> {
|
479 |
#[allow(clippy::too_many_arguments)]
|
480 |
#[allow(clippy::cognitive_complexity)]
|
481 |
fn draw_axis_and_labels(
|
132 |
#[allow(clippy::too_many_arguments)]
|
133 |
#[allow(clippy::cognitive_complexity)]
|
134 |
fn draw_axis_and_labels(
|
266 |
#[allow(clippy::too_many_arguments)]
|
267 |
#[allow(clippy::cognitive_complexity)]
|
268 |
fn draw_axis_and_labels(
|
408 |
#[allow(clippy::map_entry)]
|
409 |
#[allow(clippy::cognitive_complexity)]
|
410 |
/// encode a binary flow file
|
619 |
#[test]
|
620 |
#[allow(clippy::cognitive_complexity)]
|
621 |
fn test_lexer() {
|
3144 |
#[test]
|
3145 |
#[allow(clippy::cognitive_complexity)]
|
3146 |
fn and_expression() {
|
3219 |
#[test]
|
3220 |
#[allow(clippy::cognitive_complexity)]
|
3221 |
fn isa_on_lists() {
|
3355 |
#[test]
|
3356 |
#[allow(clippy::cognitive_complexity)]
|
3357 |
fn isa_on_dicts() {
|
140 |
#[allow(clippy::cognitive_complexity)]
|
141 |
pub async fn issue<E>(
|
309 |
/// Subscribe to and stream events from the Polygon service.
|
310 |
#[allow(clippy::cognitive_complexity)]
|
311 |
pub async fn stream<S>(
|
102 |
#[allow(clippy::cognitive_complexity)]
|
103 |
fn apply(parsed: EnvConfig, builder: &mut ConfigBuilder) {
|
140 |
#[allow(clippy::cognitive_complexity)]
|
141 |
fn parse(path: &Path) -> TomlConfig {
|
237 |
#[allow(clippy::cognitive_complexity)]
|
238 |
fn apply(parsed: TomlConfig, builder: &mut ConfigBuilder) {
|
1373 |
#[test]
|
1374 |
#[allow(clippy::cognitive_complexity, clippy::too_many_lines)]
|
1375 |
fn integer_casts() {
|
660 |
#[test]
|
661 |
#[allow(clippy::cognitive_complexity)]
|
662 |
fn value_display_tests() {
|
1013 |
#[allow(clippy::cognitive_complexity)]
|
1014 |
fn prettify_traceback(bt: &[u8], whitelist: &[String], pack: bool) -> String {
|
623 |
#[cfg_attr(feature = "cargo-clippy", allow(needless_return))]
|
624 |
#[cfg_attr(feature = "cargo-clippy", allow(cyclomatic_complexity))]
|
625 |
#[cfg_attr(feature = "cargo-clippy", allow(string_lit_as_bytes))]
|
55 |
impl NetworkDialog {
|
56 |
#[allow(clippy::cognitive_complexity)]
|
57 |
pub fn update(&self, network: &sysinfo::NetworkData) {
|
398 |
#[allow(clippy::cognitive_complexity)]
|
399 |
#[allow(clippy::blocks_in_if_conditions)]
|
248 |
impl Stat {
|
249 |
#[allow(clippy::cognitive_complexity)]
|
250 |
pub fn from_reader<R: Read>(mut r: R) -> ProcResult<Stat> {
|
44 |
#[allow(clippy::cognitive_complexity)]
|
45 |
#[test]
|
443 |
#[allow(clippy::cyclomatic_complexity)]
|
444 |
#[allow(clippy::redundant_closure_call)]
|
51 |
#[allow(clippy::cognitive_complexity)]
|
52 |
#[allow(clippy::print_literal)]
|
22 |
#[allow(clippy::cognitive_complexity)]
|
23 |
fn convert_keycode_keyboard_input(code: VirtualKeyCode, shift: bool) -> Option<KeyboardInput> {
|
9 |
#[allow(clippy::cognitive_complexity)]
|
10 |
fn keyboard_input_from_js_event_key_press(key_code: u8, shift: bool) -> Option<KeyboardInput> {
|
663 |
/// Obtain an instance by scanning a directory containing an extracted distribution.
|
664 |
#[allow(clippy::cognitive_complexity)]
|
665 |
pub fn from_directory(dist_dir: &Path) -> Result<Self> {
|
1348 |
#[allow(clippy::cognitive_complexity)]
|
1349 |
#[test]
|
863 |
/// Write packed resources data, version 3.
|
864 |
#[allow(clippy::cognitive_complexity)]
|
865 |
pub fn write_packed_resources_v3<'a, T: AsRef<Resource<'a, u8>>, W: Write>(
|
33 |
/// Parses include files to detect which methods are signals or slots.
|
34 |
#[allow(clippy::cyclomatic_complexity)]
|
35 |
pub fn detect_signals_and_slots(data: &mut ProcessorData) -> Result<()> {
|
275 |
#[allow(clippy::cognitive_complexity)]
|
276 |
fn relay_message(
|
26 |
#[allow(clippy::cognitive_complexity)]
|
27 |
fn inner_derive(input: TokenStream) -> syn::Result<proc_macro2::TokenStream> {
|
29 |
#[test]
|
30 |
#[allow(clippy::cognitive_complexity)]
|
31 |
fn sort_integer() {
|
71 |
#[test]
|
72 |
#[allow(clippy::cognitive_complexity)]
|
73 |
fn sort_cached() {
|
686 |
#[allow(clippy::cognitive_complexity)]
|
687 |
async fn connect(wrapped_client: Client) {
|
1215 |
#[allow(clippy::cognitive_complexity)]
|
1216 |
async fn handle_server_message(wrapped_client: Arc<Mutex<Self>>, message: ServerMessage) {
|
38 |
/// call destructors.
|
39 |
#[allow(clippy::cognitive_complexity)]
|
40 |
fn run_frontend() -> i32 {
|
193 |
impl Flags {
|
194 |
#[allow(clippy::cognitive_complexity)]
|
195 |
/// Create a flags instance from commandline arguments.
|
841 |
/// Returns a conflict if it can be found by unit propagation.
|
842 |
#[allow(clippy::cognitive_complexity)]
|
843 |
fn propagate(checker: &mut Checker) -> MaybeConflict {
|
1089 |
/// Return true if the lemma is a propagation redundancy (PR) inference.
|
1090 |
#[allow(clippy::cognitive_complexity)]
|
1091 |
fn pr(checker: &mut Checker) -> bool {
|
1462 |
/// The reasons for the conflict are recorded for the LRAT and GRAT outputs if applicable.
|
1463 |
#[allow(clippy::cognitive_complexity)]
|
1464 |
fn extract_dependencies(
|
139 |
#[test]
|
140 |
#[allow(clippy::cognitive_complexity)]
|
141 |
fn front_back() {
|
286 |
impl Tokenize for Element {
|
287 |
#[allow(clippy::cognitive_complexity)]
|
288 |
fn tokenize(&self, tokens: &mut TokenStream, idents: &mut ViewFields, scopes: &ViewFields) {
|
28 |
#[allow(clippy::cognitive_complexity)]
|
29 |
fn new(req: &RequestHead, cfg: &AppConfig) -> ConnectionInfo {
|
356 |
/// method may be specified in `context_class` and `context_method`.
|
357 |
#[allow(clippy::cyclomatic_complexity)]
|
358 |
fn parse_unexposed_type(
|
866 |
/// Parses a function `entity`.
|
867 |
#[allow(clippy::cyclomatic_complexity)]
|
868 |
fn parse_function(&self, entity: Entity) -> Result<(CppFunction, DatabaseItemSource)> {
|
454 |
#[test]
|
455 |
#[allow(clippy::cyclomatic_complexity)]
|
456 |
fn c_signature_method_returning_class() {
|
383 |
#[allow(clippy::cyclomatic_complexity)]
|
384 |
#[test]
|
22 |
#[test]
|
23 |
#[allow(clippy::cognitive_complexity)]
|
24 |
fn test_iterator() {
|
22 |
#[test]
|
23 |
#[allow(clippy::cognitive_complexity)]
|
24 |
fn test_iterator() {
|
335 |
// TODO: Extract the individual tests into their own functions.
|
336 |
#[cfg_attr(feature = "cargo-clippy", allow(cyclomatic_complexity))]
|
337 |
fn core() {
|
8 |
#[must_use]
|
9 |
#[allow(clippy::cognitive_complexity)]
|
10 |
pub fn add_matrix_args(app: App<'static>) -> App<'static> {
|
26 |
#[allow(clippy::cognitive_complexity)]
|
27 |
pub fn max_weight_branching<'a, G, W>(g: &'a G, weights: &EdgeVec<'a, &'a G, W>) -> Vec<G::Edge>
|
140 |
/// used in production code.
|
141 |
#[allow(clippy::cognitive_complexity)]
|
142 |
pub fn from_ascii<G>(text: &str) -> Result<Data<G>, Error>
|
84 |
#[allow(clippy::cognitive_complexity)]
|
85 |
#[test]
|
119 |
#[allow(clippy::cognitive_complexity)]
|
120 |
#[test]
|
151 |
#[allow(clippy::cognitive_complexity)]
|
152 |
#[test]
|
179 |
#[allow(clippy::cognitive_complexity)]
|
180 |
#[test]
|
215 |
#[allow(clippy::cognitive_complexity)]
|
216 |
#[test]
|
74 |
/// <https://gmplib.org/repo/gmp-6.1/file/tip/mpn/generic/hgcd2.c#l44>
|
75 |
#[allow(clippy::cognitive_complexity)]
|
76 |
fn div1(mut a: u64, b: u64) -> u64 {
|
104 |
// Clippy operates on the unrolled code, giving a false positive.
|
105 |
#[allow(clippy::cognitive_complexity)]
|
106 |
fn lehmer_unroll(a2: u64, a3: &mut u64, k2: u64, k3: &mut u64) {
|
166 |
#[allow(clippy::redundant_else)]
|
167 |
#[allow(clippy::cognitive_complexity)] // REFACTOR: Improve
|
168 |
pub fn from_u64_prefix(a0: u64, mut a1: u64) -> Self {
|
4 |
/// See Handbook of Applied Cryptography, Algorithm 14.32, p. 601.
|
5 |
#[allow(clippy::cognitive_complexity)] // REFACTOR: Improve
|
6 |
pub fn mul_redc(a: &[u64], b: &[u64], result: &mut [u64], m: &[u64], inv: u64) {
|
243 |
#[test]
|
244 |
#[allow(clippy::cognitive_complexity)]
|
245 |
fn test_mismatched_types() -> Result<()> {
|
243 |
#[test]
|
244 |
#[allow(clippy::cognitive_complexity)]
|
245 |
fn test_mismatched_types() -> Result<()> {
|
236 |
#[test]
|
237 |
#[allow(clippy::cognitive_complexity)]
|
238 |
fn test_mismatched_types() -> Result<()> {
|
366 |
// This may change in the future during a refactoring but is accepted for now.
|
367 |
#[allow(clippy::cyclomatic_complexity)]
|
368 |
async fn handle(self) -> errors::Result<(CoreLogicHandler, bool)> {
|
90 |
#[cfg_attr(feature = "cargo-clippy",
|
91 |
allow(cyclomatic_complexity))] // Allows us to have macros that use the parsed arguments.
|
92 |
#[cfg_attr(feature = "cargo-clippy",
|
2982 |
#[test]
|
2983 |
#[allow(clippy::cognitive_complexity)]
|
2984 |
#[allow(clippy::eq_op)]
|
2017 |
#[test]
|
2018 |
#[allow(clippy::cognitive_complexity)]
|
2019 |
#[allow(clippy::eq_op)]
|
2048 |
#[test]
|
2049 |
#[allow(clippy::cognitive_complexity)]
|
2050 |
#[allow(clippy::eq_op)]
|
356 |
/// Handle \E[ <seq2:digit> escape sequences
|
357 |
#[allow(clippy::cognitive_complexity)]
|
358 |
fn extended_escape(&mut self, seq2: char) -> Result<KeyEvent> {
|
356 |
/// Handle \E[ <seq2:digit> escape sequences
|
357 |
#[allow(clippy::cognitive_complexity)]
|
358 |
fn extended_escape(&mut self, seq2: char) -> Result<KeyEvent> {
|
287 |
/// [PKGBUILD.proto]: https://git.archlinux.org/pacman.git/tree/proto/PKGBUILD.proto
|
288 |
#[allow(clippy::cognitive_complexity)]
|
289 |
pub fn from_source(source_code: &str) -> Result<PkgData, Error> {
|
403 |
impl<'s> quote::ToTokens for OperationEnum<'s> {
|
404 |
#[allow(clippy::cognitive_complexity)]
|
405 |
fn to_tokens(&self, tokens: &mut pm2::TokenStream) {
|
163 |
/// Decode and execute an instruction
|
164 |
#[allow(clippy::cognitive_complexity)]
|
165 |
pub fn execute(&mut self, mmu: &mut dyn Mmu<R>) -> Result<(), Exception> {
|
353 |
#[test]
|
354 |
#[allow(clippy::cognitive_complexity)] // several operations are needed to get the buffer in the desired state
|
355 |
fn write_and_read_buffer() {
|
159 |
#[test]
|
160 |
#[allow(clippy::cognitive_complexity)] // several operations are needed to get the desired state
|
161 |
fn insert() {
|
220 |
#[test]
|
221 |
#[allow(clippy::cognitive_complexity)] // several comparisons are needed
|
222 |
fn insert_at_edge() {
|
80 |
impl Request {
|
81 |
#[allow(clippy::cognitive_complexity)]
|
82 |
pub fn validate_response(
|
334 |
impl Request {
|
335 |
#[allow(clippy::cognitive_complexity)]
|
336 |
pub fn validate_response(
|
233 |
#[allow(clippy::cognitive_complexity)]
|
234 |
fn handle_client_request(
|
583 |
#[test]
|
584 |
#[allow(clippy::cognitive_complexity)]
|
585 |
fn test_purge_transaction_status() {
|
852 |
#[test]
|
853 |
#[allow(clippy::cognitive_complexity)]
|
854 |
fn test_purge_transaction_status_exact() {
|
4800 |
#[test]
|
4801 |
#[allow(clippy::cognitive_complexity)]
|
4802 |
pub fn test_forward_chaining_is_connected() {
|
6258 |
#[test]
|
6259 |
#[allow(clippy::cognitive_complexity)]
|
6260 |
fn test_transaction_status_index() {
|
9085 |
#[ignore]
|
9086 |
#[allow(clippy::cognitive_complexity)]
|
9087 |
fn test_rent_complex() {
|
9398 |
#[test]
|
9399 |
#[allow(clippy::cognitive_complexity)]
|
9400 |
fn test_rent_eager_across_epoch_without_gap_under_multi_epoch_cycle() {
|
28 |
// it can't be any smaller without supporting fewer features
|
29 |
#[allow(clippy::cognitive_complexity)]
|
30 |
pub(super) fn compile_expr(&mut self, expr: Expr, builder: &mut FunctionBuilder) -> IrResult {
|
368 |
#[test]
|
369 |
#[allow(clippy::cognitive_complexity)]
|
370 |
fn test_decode_single_value() {
|
450 |
#[test]
|
451 |
#[allow(clippy::cognitive_complexity)]
|
452 |
fn test_encode_single_value() {
|
380 |
#[test]
|
381 |
#[allow(clippy::cognitive_complexity)]
|
382 |
fn test_decode_single_value() {
|
451 |
#[test]
|
452 |
#[allow(clippy::cognitive_complexity)]
|
453 |
fn test_encode_single_value() {
|
178 |
/// transaction handler.
|
179 |
#[allow(clippy::cognitive_complexity)]
|
180 |
pub fn start(&mut self) {
|
330 |
/// Get a suitable `Storage` implementation from configuration.
|
331 |
#[allow(clippy::cognitive_complexity)] // TODO simplify!
|
332 |
pub fn storage_from_config(config: &Config, pool: &tokio::runtime::Handle) -> Arc<dyn Storage> {
|
716 |
#[test]
|
717 |
#[allow(clippy::cognitive_complexity)]
|
718 |
fn test_arginfo_cmp() {
|
1797 |
impl pkg::InputsPackager for RustInputsPackager {
|
1798 |
#[allow(clippy::cognitive_complexity)] // TODO simplify this method.
|
1799 |
fn write_inputs(self: Box<Self>, wtr: &mut dyn io::Write) -> Result<dist::PathTransformer> {
|
2411 |
#[test]
|
2412 |
#[allow(clippy::cognitive_complexity)]
|
2413 |
fn test_parse_arguments_simple() {
|
28 |
#[allow(clippy::cognitive_complexity)]
|
29 |
fn new(req: &RequestHead, cfg: &AppConfig) -> ConnectionInfo {
|
842 |
#[cfg(test)]
|
843 |
#[allow(clippy::cognitive_complexity)]
|
844 |
mod bitlist {
|
125 |
/// in the same fashion.
|
126 |
#[allow(clippy::cognitive_complexity)]
|
127 |
fn diff_structure<'tcx>(
|
912 |
#[test]
|
913 |
#[allow(clippy::cognitive_complexity)]
|
914 |
fn value_new() {
|
1009 |
#[test]
|
1010 |
#[allow(clippy::cognitive_complexity)]
|
1011 |
fn value_methods() {
|
181 |
#[allow(
|
182 |
clippy::cognitive_complexity,
|
183 |
clippy::unnecessary_wraps,
|
52 |
#[allow(clippy::cognitive_complexity)]
|
53 |
fn deserialize_any<V>(self, visitor: V) -> Result<V::Value>
|
452 |
#[allow(clippy::cognitive_complexity)]
|
453 |
pub fn run_service(start_arguments: Vec<std::ffi::OsString>) -> windows_service::Result<()> {
|
106 |
#[allow(
|
107 |
clippy::cognitive_complexity,
|
108 |
clippy::too_many_lines,
|
1151 |
#[test]
|
1152 |
#[allow(clippy::cognitive_complexity)]
|
1153 |
/// This test is taken from:
|
929 |
#[test]
|
930 |
#[allow(clippy::cognitive_complexity)]
|
931 |
fn test_weng_two_teams() {
|
998 |
#[test]
|
999 |
#[allow(clippy::cognitive_complexity)]
|
1000 |
fn test_weng_multi_team_two() {
|
1600 |
// challenging to understand.
|
1601 |
#[allow(clippy::cognitive_complexity)]
|
1602 |
pub(crate) fn view_for_key<'g, K>(
|
145 |
impl MetadataInput {
|
146 |
#[allow(clippy::cognitive_complexity)]
|
147 |
pub fn new(ast: &syn::DeriveInput) -> MetadataInput {
|
229 |
impl<W> Write for Base64Writer<W> where W: Write {
|
230 |
#[allow(clippy::cognitive_complexity)]
|
231 |
fn write(&mut self, buf: &[u8]) -> Result<usize, Error> {
|
75 |
{
|
76 |
#[allow(clippy::cognitive_complexity)]
|
77 |
fn read(&mut self, buf: &mut [u8]) -> Result<usize, Error> {
|
1040 |
#[test]
|
1041 |
#[allow(clippy::cognitive_complexity)]
|
1042 |
fn files_tree_should_display_entire_directory_tree_of_container() -> Result<()> {
|
291 |
#[allow(clippy::cognitive_complexity)]
|
292 |
fn try_from(handshake: &'a HandshakeChoice) -> Result<Self, Self::Error> {
|
284 |
#[cfg_attr(feature = "cargo-clippy", allow(cyclomatic_complexity))]
|
285 |
fn main() {
|
30 |
//Default is always op==0
|
31 |
#[allow(clippy::cognitive_complexity)]
|
32 |
const fn mul_add(mut ui_a: u16, mut ui_b: u16, mut ui_c: u16, op: MulAddType) -> P16E1 {
|
28 |
#[allow(clippy::cognitive_complexity)]
|
29 |
const fn mul_add(mut ui_a: u32, mut ui_b: u32, mut ui_c: u32, op: MulAddType) -> P32E2 {
|
30 |
//Default is always op==0
|
31 |
#[allow(clippy::cognitive_complexity)]
|
32 |
const fn mul_add(mut ui_a: u8, mut ui_b: u8, mut ui_c: u8, op: MulAddType) -> P8E0 {
|
121 |
#[allow(clippy::cognitive_complexity)]
|
122 |
pub fn from_f64(mut float: f64) -> Self {
|
27 |
#[allow(clippy::cognitive_complexity)]
|
28 |
const fn mul_add_ui(mut ui_a: u32, mut ui_b: u32, mut ui_c: u32, op: MulAddType) -> Self {
|
121 |
#[allow(clippy::cognitive_complexity)]
|
122 |
pub fn from_f64(mut float: f64) -> Self {
|
27 |
#[allow(clippy::cognitive_complexity)]
|
28 |
const fn mul_add_ui(mut ui_a: u32, mut ui_b: u32, mut ui_c: u32, op: MulAddType) -> Self {
|
10 |
#[allow(clippy::cognitive_complexity)]
|
11 |
fn main() {
|
1820 |
#[test]
|
1821 |
#[allow(clippy::cognitive_complexity)]
|
1822 |
fn test_cli_parse_command() {
|
2032 |
#[test]
|
2033 |
#[allow(clippy::cognitive_complexity)]
|
2034 |
fn test_cli_process_command() {
|
2339 |
#[test]
|
2340 |
#[allow(clippy::cognitive_complexity)]
|
2341 |
fn test_cli_parse_deploy() {
|
2554 |
#[test]
|
2555 |
#[allow(clippy::cognitive_complexity)]
|
2556 |
fn test_cli_parse_write_buffer() {
|
2707 |
#[test]
|
2708 |
#[allow(clippy::cognitive_complexity)]
|
2709 |
fn test_cli_parse_set_upgrade_authority() {
|
2815 |
#[test]
|
2816 |
#[allow(clippy::cognitive_complexity)]
|
2817 |
fn test_cli_parse_set_buffer_authority() {
|
2872 |
#[test]
|
2873 |
#[allow(clippy::cognitive_complexity)]
|
2874 |
fn test_cli_parse_show() {
|
2689 |
#[test]
|
2690 |
#[allow(clippy::cognitive_complexity)]
|
2691 |
fn test_parse_command() {
|
365 |
#[test]
|
366 |
#[allow(clippy::cognitive_complexity)]
|
367 |
fn test_push_vote() {
|
103 |
#[allow(clippy::cognitive_complexity)]
|
104 |
fn main() -> Result<(), Box<dyn error::Error>> {
|
617 |
#[test]
|
618 |
#[allow(clippy::cognitive_complexity)]
|
619 |
fn test_purge_transaction_status() {
|
904 |
#[test]
|
905 |
#[allow(clippy::cognitive_complexity)]
|
906 |
fn test_purge_transaction_status_exact() {
|
5447 |
#[test]
|
5448 |
#[allow(clippy::cognitive_complexity)]
|
5449 |
pub fn test_forward_chaining_is_connected() {
|
6950 |
#[test]
|
6951 |
#[allow(clippy::cognitive_complexity)]
|
6952 |
fn test_transaction_status_index() {
|
459 |
#[allow(clippy::cognitive_complexity)]
|
460 |
fn graph_forks(bank_forks: &BankForks, config: &GraphConfig) -> String {
|
1077 |
#[allow(clippy::cognitive_complexity)]
|
1078 |
fn main() {
|
416 |
#[test]
|
417 |
#[allow(clippy::cognitive_complexity)]
|
418 |
fn test_position_extended() {
|
177 |
/// instruction to be executed.
|
178 |
#[allow(clippy::cognitive_complexity)]
|
179 |
pub fn execute_block(
|
257 |
/// run with a fixed, predetermined leader schedule
|
258 |
#[allow(clippy::cognitive_complexity)]
|
259 |
pub fn run_cluster_partition<C>(
|
53 |
#[allow(clippy::cognitive_complexity)]
|
54 |
fn main() {
|
8849 |
#[ignore]
|
8850 |
#[allow(clippy::cognitive_complexity)]
|
8851 |
fn test_rent_complex() {
|
9162 |
#[test]
|
9163 |
#[allow(clippy::cognitive_complexity)]
|
9164 |
fn test_rent_eager_across_epoch_without_gap_under_multi_epoch_cycle() {
|
1091 |
#[allow(clippy::cognitive_complexity)] // Yeah I know...
|
1092 |
fn main() -> Result<(), Box<dyn error::Error>> {
|
130 |
impl Externals for MockSubstrate {
|
131 |
#[allow(clippy::cognitive_complexity)]
|
132 |
fn invoke_index(
|
76 |
// in time `cyclomatic_complexity` should go back to warn
|
77 |
#[cfg_attr(feature = "cargo-clippy", allow(single_match, cyclomatic_complexity))]
|
78 |
fn main() {
|
71 |
#[allow(clippy::cognitive_complexity)]
|
72 |
/// Takes an empty TermIndexMap, and checks that it behaves as expected.
|
332 |
#[test]
|
333 |
#[allow(clippy::cognitive_complexity)]
|
334 |
fn test_minified_source_view() {
|
117 |
#[allow(clippy::cognitive_complexity)]
|
118 |
#[test]
|
214 |
#[allow(clippy::cognitive_complexity)]
|
215 |
#[test]
|
77 |
#[allow(clippy::cognitive_complexity, clippy::too_many_lines)]
|
78 |
fn spdx_from_atoms(atoms: &[Atom]) -> Result<SPDX, SpdxError> {
|
277 |
#[allow(clippy::too_many_lines, clippy::cognitive_complexity)]
|
278 |
fn process_atom_for_packages(
|
557 |
#[test]
|
558 |
#[allow(clippy::cognitive_complexity)]
|
559 |
fn test_spectrum_basic() {
|
12 |
#[allow(clippy::cognitive_complexity)]
|
13 |
fn main() -> anyhow::Result<()> {
|
1244 |
// to avoid needing a lock in the PeerManager.
|
1245 |
#[allow(clippy::too_many_arguments, clippy::cognitive_complexity)]
|
1246 |
fn handle_connected(
|
18 |
/// - otherwise: it's the LBD of the learnt clause.
|
19 |
#[allow(clippy::cognitive_complexity)]
|
20 |
pub fn handle_conflict(
|
426 |
/// `mes` should be shorter than or equal to 9, or 8 + a delimiter.
|
427 |
#[allow(clippy::cognitive_complexity)]
|
428 |
fn progress<A, C>(&mut self, asg: &A, cdb: &C)
|
614 |
impl State {
|
615 |
#[allow(clippy::cognitive_complexity)]
|
616 |
fn record_stats<A, C>(&mut self, asg: &A, cdb: &C)
|
143 |
#[allow(clippy::cognitive_complexity)]
|
144 |
pub async fn handle_network_event(&mut self, io_event: IoEvent) {
|
537 |
// split up without extracting structs for each `Statement` variant.
|
538 |
#[allow(clippy::cognitive_complexity)]
|
539 |
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
1639 |
// split up without extracting structs for each `Statement` variant.
|
1640 |
#[allow(clippy::cognitive_complexity)]
|
1641 |
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
125 |
#[allow(clippy::cognitive_complexity)]
|
126 |
fn merge_current_package(&mut self) {
|
859 |
#[cfg(test)]
|
860 |
#[allow(clippy::cognitive_complexity)]
|
861 |
mod bitlist {
|
34 |
// TODO: Address this lint
|
35 |
#[allow(clippy::cognitive_complexity)]
|
36 |
fn iter(&mut self) -> Loop {
|
127 |
#[allow(clippy::cognitive_complexity)]
|
128 |
fn compute_internal(
|
355 |
// Every statement after the array initialization is unrelated to every other statement.
|
356 |
#[allow(clippy::cognitive_complexity)]
|
357 |
fn structural_aliases() {
|
447 |
// At some point it would be a good idea to split this into multiple functions
|
448 |
#[allow(clippy::cognitive_complexity)]
|
449 |
pub(crate) fn for_delegation<'a, A, I>(
|
167 |
#[allow(clippy::cognitive_complexity)]
|
168 |
fn deriving_structural<'a>(
|
337 |
#[allow(clippy::cognitive_complexity)]
|
338 |
fn render_source_line(
|
931 |
#[allow(clippy::cognitive_complexity, clippy::comparison_chain)]
|
932 |
fn emit_message_default(
|
2125 |
#[allow(clippy::cognitive_complexity)]
|
2126 |
fn emit_list5<N: Node>(
|
325 |
#[test]
|
326 |
#[allow(clippy::cognitive_complexity)]
|
327 |
fn test_minified_source_view() {
|
56 |
#[allow(clippy::cognitive_complexity)]
|
57 |
pub fn synth(
|
560 |
#[cfg(feature = "std")]
|
561 |
#[allow(clippy::cognitive_complexity)]
|
562 |
#[test]
|
745 |
#[cfg(any(unix, windows))]
|
746 |
#[allow(clippy::cognitive_complexity)]
|
747 |
#[test]
|
2754 |
impl<'help> From<&'help Yaml> for App<'help> {
|
2755 |
#[allow(clippy::cognitive_complexity)]
|
2756 |
fn from(mut yaml: &'help Yaml) -> Self {
|
1071 |
#[allow(clippy::cognitive_complexity)]
|
1072 |
#[test]
|
4425 |
/// [`Arg`]: ./struct.Arg.html
|
4426 |
#[allow(clippy::cognitive_complexity)]
|
4427 |
fn from(y: &'help Yaml) -> Self {
|
254 |
#[allow(clippy::cognitive_complexity)]
|
255 |
#[test]
|
335 |
// The actual parsing function
|
336 |
#[allow(clippy::cognitive_complexity)]
|
337 |
pub(crate) fn get_matches_with(
|
233 |
// This has become a mess, it screams for a refactor
|
234 |
#[allow(clippy::cognitive_complexity)]
|
235 |
impl Cast for RootNode {
|
154 |
// TODO(refactor)
|
155 |
#[allow(clippy::cognitive_complexity)]
|
156 |
fn format_root(node: SyntaxNode, builder: &mut GreenNodeBuilder, options: &Options) {
|
78 |
}
|
79 |
#[allow(clippy::cognitive_complexity)]
|
80 |
impl TransactionBackend for TransactionMemoryDatabase {
|
1169 |
#[allow(clippy::cognitive_complexity)]
|
1170 |
#[allow(clippy::too_many_lines)] // can't split the huge match
|
1396 |
#[allow(clippy::too_many_lines, clippy::cognitive_complexity)] // can't split the huge match
|
1397 |
fn handle_message_edit_update(
|
157 |
#[allow(clippy::cognitive_complexity)] // can't do much
|
158 |
#[allow(clippy::too_many_lines)]
|
437 |
/// be able to parse the next directive.
|
438 |
#[allow(clippy::cognitive_complexity)]
|
439 |
pub fn parse(&mut self, chunk: &[u8]) -> Result<(usize, bool), T::Error> {
|
157 |
#[cfg(test)]
|
158 |
#[allow(clippy::cognitive_complexity)]
|
159 |
#[allow(clippy::redundant_clone)]
|
17 |
/// Parse an example `config.toml` file to a `TendermintConfig` struct
|
18 |
#[allow(clippy::cognitive_complexity)]
|
19 |
#[test]
|
73 |
#[doc(hidden)]
|
74 |
#[allow(clippy::cognitive_complexity)]
|
75 |
pub fn gradients<Tys, Txs, S>(
|
327 |
#[allow(clippy::cognitive_complexity)]
|
328 |
pub fn set_tensor_parameters_read_write(
|
55 |
impl PartialEq for BuiltinOptionsUnion {
|
56 |
#[allow(clippy::cognitive_complexity)]
|
57 |
fn eq(&self, other: &Self) -> bool {
|
1553 |
#[allow(clippy::cognitive_complexity)]
|
1554 |
#[test]
|
1716 |
#[allow(clippy::cognitive_complexity)]
|
1717 |
#[test]
|
1890 |
#[allow(clippy::cognitive_complexity)]
|
1891 |
#[test]
|
2064 |
#[allow(clippy::cognitive_complexity)]
|
2065 |
#[test]
|
2236 |
#[allow(clippy::cognitive_complexity)]
|
2237 |
#[test]
|
39 |
// TODO: split main functions and remove following allow.
|
40 |
#[allow(clippy::cognitive_complexity)]
|
41 |
fn main() {
|
89 |
#[test]
|
90 |
#[allow(clippy::cognitive_complexity)]
|
91 |
fn test_units() {
|
102 |
#[test]
|
103 |
#[allow(clippy::cognitive_complexity)]
|
104 |
fn test_units() {
|
154 |
#[test]
|
155 |
#[allow(clippy::cognitive_complexity)]
|
156 |
fn test_units() {
|
102 |
#[test]
|
103 |
#[allow(clippy::cognitive_complexity)]
|
104 |
fn test_units() {
|
102 |
#[test]
|
103 |
#[allow(clippy::cognitive_complexity)]
|
104 |
fn test_units() {
|
14 |
#[allow(unknown_lints)]
|
15 |
#[allow(clippy::cognitive_complexity)]
|
16 |
#[allow(clippy::unreadable_literal)]
|
97 |
#[allow(clippy::cognitive_complexity)]
|
98 |
#[test]
|
185 |
#[allow(clippy::cognitive_complexity)]
|
186 |
#[test]
|
91 |
#[cfg_attr(feature = "cargo-clippy", allow(cyclomatic_complexity))]
|
92 |
fn next(&mut self) -> Option<Self::Item> {
|
139 |
/// The comma before utc has to have already been consumed.
|
140 |
#[cfg_attr(feature = "cargo-clippy", allow(cyclomatic_complexity))]
|
141 |
fn parse_gga(
|
387 |
/// for lowercase charts by their uppercase counterpart and vice versa.
|
388 |
#[allow(clippy::cognitive_complexity)]
|
389 |
#[allow(clippy::if_same_then_else)]
|
397 |
/// is available so that they can try to find more work to process.
|
398 |
#[allow(clippy::cognitive_complexity)] // https://github.com/rust-lang/rust-clippy/issues/3900
|
399 |
pub(crate) fn signal_work(&self, pool: &Arc<Pool>) {
|
98 |
// tracing macro expansion adds enough branches to make clippy angry here.
|
99 |
#[allow(clippy::cognitive_complexity)] // https://github.com/rust-lang/rust-clippy/issues/3900
|
100 |
pub(crate) fn run(me: &Arc<Task>, pool: &Arc<Pool>) -> Run {
|
566 |
// tracing macro expansion adds enough branches to make clippy angry here.
|
567 |
#[allow(clippy::cognitive_complexity)] // https://github.com/rust-lang/rust-clippy/issues/3900
|
568 |
fn sleep(&self) -> bool {
|
283 |
#[test]
|
284 |
#[allow(clippy::cognitive_complexity)]
|
285 |
fn scheduler_workflow() {
|
265 |
#[test]
|
266 |
#[allow(clippy::cognitive_complexity)]
|
267 |
fn test_set_with_seperator_into_nested_table() {
|
397 |
#[cfg(test)]
|
398 |
#[allow(clippy::unwrap_used, clippy::cognitive_complexity)]
|
399 |
mod test {
|
1231 |
#[test]
|
1232 |
#[allow(clippy::cognitive_complexity)]
|
1233 |
fn sampling_and_usage() {
|
381 |
#[allow(clippy::unwrap_used)]
|
382 |
#[allow(clippy::cognitive_complexity)]
|
383 |
mod test {
|
490 |
pub(super) async fn run_once(&mut self) -> std::result::Result<(), ReactorError> {
|
491 |
#[allow(clippy::cognitive_complexity)]
|
492 |
let fut = futures::future::poll_fn(|cx| -> Poll<std::result::Result<_, ReactorError>> {
|
412 |
impl ToBytes for FriendState {
|
413 |
#[allow(clippy::cognitive_complexity)]
|
414 |
fn to_bytes<'a>(&self, buf: (&'a mut [u8], usize)) -> Result<(&'a mut [u8], usize), GenError> {
|
75 |
/// in this case it's safe to ignore the clippy lint.
|
76 |
#[allow(clippy::cognitive_complexity)]
|
77 |
pub(crate) fn from_syn_type(ty: &syn::Type) -> Option<ArgTypeInfo> {
|
558 |
#[allow(
|
559 |
clippy::cognitive_complexity,
|
560 |
clippy::too_many_lines,
|
160 |
impl UsageTrie {
|
161 |
#[allow(clippy::cognitive_complexity)]
|
162 |
fn default() -> Self {
|
598 |
#[test]
|
599 |
#[allow(clippy::cognitive_complexity)]
|
600 |
fn soa() {
|
250 |
#[allow(clippy::cognitive_complexity)]
|
251 |
fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> {
|
13 |
#[test]
|
14 |
#[allow(clippy::cognitive_complexity)]
|
15 |
fn test_zone() {
|
410 |
#[test]
|
411 |
#[allow(clippy::cognitive_complexity)]
|
412 |
fn test_bad_cname_at_soa() {
|
261 |
/// Parse the `derivative` attributes on a type.
|
262 |
#[allow(clippy::cognitive_complexity)] // mostly macros
|
263 |
pub fn from_ast(
|
446 |
/// Parse the `derivative` attributes on a type.
|
447 |
#[allow(clippy::cognitive_complexity)] // mostly macros
|
448 |
pub fn from_ast(
|
837 |
// clippy: using `.deref()` is cleaner
|
838 |
#[allow(clippy::cognitive_complexity, clippy::explicit_deref_methods)]
|
839 |
fn update(&self, c: &InMemoryCache) {
|
749 |
#[test]
|
750 |
#[allow(clippy::cognitive_complexity)]
|
751 |
fn complexity() -> Result<()> {
|
803 |
#[test]
|
804 |
#[allow(clippy::cognitive_complexity)]
|
805 |
fn physical_stream() -> Result<()> {
|
14 |
impl<'a> FieldContext<'a> {
|
15 |
#[allow(clippy::cyclomatic_complexity)]
|
16 |
fn generic_to_ts(&self, ts: &TSType) -> QuoteT {
|
14 |
impl<'a> FieldContext<'a> {
|
15 |
#[allow(clippy::cyclomatic_complexity)]
|
16 |
fn generic_to_ts(&self, ts: &TSType) -> QuoteT {
|
18 |
// Tokenize the contents of a schema file.
|
19 |
#[allow(clippy::cognitive_complexity)]
|
20 |
#[allow(clippy::too_many_lines)]
|
403 |
#[inline]
|
404 |
#[cfg_attr(feature = "cargo-clippy", allow(cyclomatic_complexity))]
|
405 |
fn next_back(&mut self) -> Option<&'a str> {
|
13 |
#[allow(clippy::cognitive_complexity)]
|
14 |
pub fn get_args() -> Args {
|
420 |
#[cfg_attr(feature = "cargo-clippy", allow(cyclomatic_complexity))]
|
421 |
pub fn walk_expr<V: Visitor>(visitor: &mut V, expr: &Expr) {
|
191 |
#[allow(clippy::cognitive_complexity)]
|
192 |
fn cut_fields_delimiter<R: Read>(
|
506 |
#[uucore::main]
|
507 |
#[allow(clippy::cognitive_complexity)]
|
508 |
pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
64 |
#[uucore::main]
|
65 |
#[allow(clippy::cognitive_complexity)]
|
66 |
pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
56 |
#[allow(clippy::cognitive_complexity)]
|
57 |
fn detect_algo(
|
491 |
#[allow(clippy::cognitive_complexity)]
|
492 |
fn hashsum<'a, I>(mut options: Options, files: I) -> UResult<()>
|
641 |
///
|
642 |
#[allow(clippy::cognitive_complexity)]
|
643 |
fn copy(from: &Path, to: &Path, b: &Behavior) -> UResult<()> {
|
429 |
impl Config {
|
430 |
#[allow(clippy::cognitive_complexity)]
|
431 |
pub fn from(options: &clap::ArgMatches) -> UResult<Self> {
|
205 |
#[allow(clippy::cognitive_complexity)]
|
206 |
fn print_it(output: &OutputType, flags: Flags, width: usize, precision: Option<usize>) {
|
52 |
impl dyn ColumnData {
|
53 |
#[allow(clippy::cognitive_complexity)]
|
54 |
pub(crate) fn load_data<W: ColumnWrapper, T: ReadEx>(
|
621 |
#[allow(clippy::cognitive_complexity)]
|
622 |
#[test]
|
106 |
impl Eval for Fun {
|
107 |
#[allow(clippy::cognitive_complexity)]
|
108 |
#[inline]
|
4479 |
#[test]
|
4480 |
#[allow(clippy::cognitive_complexity)]
|
4481 |
#[allow(clippy::eq_op)]
|
617 |
impl Display for VCard {
|
618 |
#[allow(clippy::cognitive_complexity)]
|
619 |
fn fmt(&self, f: &mut Formatter) -> Result<(), fmt::Error> {
|
107 |
#[allow(clippy::unreadable_literal)]
|
108 |
#[allow(clippy::cognitive_complexity)]
|
109 |
fn test_parse_record1() -> Result<(), VCFError> {
|
438 |
#[allow(clippy::unreadable_literal)]
|
439 |
#[allow(clippy::cognitive_complexity)]
|
440 |
fn test_parse_record7() -> Result<(), VCFError> {
|
81 |
#[allow(clippy::cognitive_complexity)]
|
82 |
pub fn handle_message<T: FsCacheReqHandler>(
|
323 |
/// generates rust source code from the given `vec` and writes it to `writer`
|
324 |
#[allow(clippy::cognitive_complexity)]
|
325 |
pub fn gen(
|
316 |
impl<'de> Deserialize<'de> for Registry {
|
317 |
#[allow(clippy::cognitive_complexity)]
|
318 |
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {
|
137 |
#[test]
|
138 |
#[allow(clippy::cognitive_complexity)]
|
139 |
fn seek_hole() {
|
90 |
impl Config {
|
91 |
#[allow(clippy::cognitive_complexity)]
|
92 |
pub fn merge_file(&mut self, mut file: ConfigFile) {
|
175 |
#[allow(clippy::cognitive_complexity)]
|
176 |
fn run<P: Protocol, S: Socket>(config: Config, socket: S) {
|
1600 |
// challenging to understand.
|
1601 |
#[allow(clippy::cognitive_complexity)]
|
1602 |
pub(crate) fn view_for_key<'g, K>(
|
47 |
impl MailMimeParser {
|
48 |
#[allow(clippy::cognitive_complexity)]
|
49 |
#[tracing::instrument(name = "parsing email", skip_all)]
|
308 |
#[allow(clippy::cognitive_complexity)]
|
309 |
fn parse_multipart(
|
635 |
/// * `get_header_untouched` failed.
|
636 |
#[allow(clippy::cognitive_complexity)]
|
637 |
fn verify_first_signature_or_error(
|
208 |
#[rhai_fn(global, name = "log")]
|
209 |
#[allow(clippy::cognitive_complexity)]
|
210 |
pub fn log(level: &str, message: &str) {
|
265 |
/// at this point, any ill formed input will produce an error.
|
266 |
#[allow(clippy::cognitive_complexity)]
|
267 |
fn get_delegation_directive_from_header(
|
397 |
impl Drop for VxDraw {
|
398 |
#[allow(clippy::cognitive_complexity)]
|
399 |
fn drop(&mut self) {
|
1076 |
/// Internal drawing routine
|
1077 |
#[allow(clippy::cognitive_complexity)]
|
1078 |
fn draw_frame_internal<T>(
|
9072 |
#[ignore]
|
9073 |
#[allow(clippy::cognitive_complexity)]
|
9074 |
fn test_rent_complex() {
|
9385 |
#[test]
|
9386 |
#[allow(clippy::cognitive_complexity)]
|
9387 |
fn test_rent_eager_across_epoch_without_gap_under_multi_epoch_cycle() {
|
444 |
impl<'f, 'm, 's, I: Importer> Execute<'f, 'm, 's, I> for ast::Instruction {
|
445 |
#[allow(clippy::cognitive_complexity)]
|
446 |
fn execute(&self, machine: &mut Machine<'m, 's, I>, frame: &CallFrame<'f>) -> ExecResult {
|
2775 |
/// Passes if the right schema elements are generated
|
2776 |
#[allow(clippy::cognitive_complexity)]
|
2777 |
#[test]
|
2893 |
/// Passes if the right schema elements are generated
|
2894 |
#[allow(clippy::cognitive_complexity)]
|
2895 |
#[test]
|
2979 |
/// Passes if the right schema elements are generated
|
2980 |
#[allow(clippy::cognitive_complexity)]
|
2981 |
#[test]
|
3057 |
/// Passes if the right schema elements are generated
|
3058 |
#[allow(clippy::cognitive_complexity)]
|
3059 |
#[test]
|
3239 |
/// Passes if the right schema elements are generated
|
3240 |
#[allow(clippy::cognitive_complexity)]
|
3241 |
#[test]
|
59 |
#[wg_test]
|
60 |
#[allow(clippy::cognitive_complexity, dead_code)]
|
61 |
async fn test_read_node_comparison<RequestCtx: RequestContext>(mut client: Client<RequestCtx>) {
|
285 |
#[wg_test]
|
286 |
#[allow(clippy::cognitive_complexity, dead_code)]
|
287 |
async fn test_create_node_comparison<RequestCtx: RequestContext>(mut client: Client<RequestCtx>) {
|
332 |
#[wg_test]
|
333 |
#[allow(clippy::cognitive_complexity, dead_code)]
|
334 |
async fn test_update_node_comparison<RequestCtx: RequestContext>(mut client: Client<RequestCtx>) {
|
385 |
#[wg_test]
|
386 |
#[allow(clippy::cognitive_complexity, dead_code)]
|
387 |
async fn test_delete_node_comparison<RequestCtx: RequestContext>(mut client: Client<RequestCtx>) {
|
398 |
#[wg_test]
|
399 |
#[allow(clippy::cognitive_complexity, dead_code)]
|
400 |
async fn test_read_rel_comparison<RequestCtx: RequestContext>(mut client: Client<RequestCtx>) {
|
160 |
impl<'a> Parse<'a> for Instruction {
|
161 |
#[allow(clippy::cognitive_complexity)]
|
162 |
fn parse(parser: Parser<'a>) -> Result<Self> {
|
98 |
impl<'a> Parse<'a> for Instruction {
|
99 |
#[allow(clippy::cognitive_complexity)]
|
100 |
fn parse(parser: Parser<'a>) -> Result<Self> {
|
239 |
#[allow(clippy::cyclomatic_complexity)]
|
240 |
fn process_expression(&mut self, i: usize, e: &Expression) {
|
225 |
#[allow(unknown_lints)]
|
226 |
#[allow(clippy::cognitive_complexity)]
|
227 |
fn get_next_token(&mut self) -> Option<<Self as Iterator>::Item> {
|
63 |
type Err = Box<dyn (::std::error::Error)>;
|
64 |
#[cfg_attr(feature = "cargo-clippy", allow(cyclomatic_complexity))]
|
65 |
fn from_str(s: &str) -> Result<SpecifierStack> {
|
13 |
impl Normalize<Term> for Op {
|
14 |
#[allow(clippy::cognitive_complexity)]
|
15 |
fn apply_to_normal_form(
|
881 |
// split up without extracting structs for each `Statement` variant.
|
882 |
#[allow(clippy::cognitive_complexity)]
|
883 |
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
101 |
#[allow(clippy::cognitive_complexity)]
|
102 |
pub fn tick(&mut self) -> Result<Option<VMRequest>, VMError> {
|
305 |
#[allow(clippy::cognitive_complexity)]
|
306 |
fn packet_to_command(&self, raw_pkt: &[u8]) -> Result<GdbCommand, GdbServerError> {
|
557 |
#[allow(clippy::cognitive_complexity)]
|
558 |
pub fn process(
|
2154 |
#[allow(clippy::cognitive_complexity)]
|
2155 |
pub(crate) fn compile(ast: &VVal, ce: &mut Rc<RefCell<CompileEnv>>)
|
655 |
impl DestructureInfo {
|
656 |
#[allow(clippy::cognitive_complexity)]
|
657 |
pub fn destructure(&self, env: &mut Env, val: VVal) {
|
248 |
#[allow(clippy::many_single_char_names)]
|
249 |
#[allow(clippy::cognitive_complexity)]
|
250 |
pub fn vm(prog: &Prog, env: &mut Env) -> Result<VVal, StackAction> {
|
2125 |
#[allow(clippy::cognitive_complexity)]
|
2126 |
#[allow(clippy::comparison_chain)]
|
129 |
#[allow(clippy::cognitive_complexity)]
|
130 |
fn client_connected<Ctx: Clone + Send + 'static>(
|
229 |
// Wtf, clippy?
|
230 |
#[allow(clippy::cognitive_complexity)]
|
231 |
fn cancel_response_stream(snd_cancel: oneshot::Sender<()>) {
|
1303 |
// Parse a X11 request into a concrete type
|
1304 |
#[allow(clippy::cognitive_complexity, clippy::single_match)]
|
1305 |
pub fn parse(
|
8816 |
/// Parse a generic X11 event into a concrete event type.
|
8817 |
#[allow(clippy::cognitive_complexity, clippy::match_single_binding)]
|
8818 |
pub fn parse(
|
198 |
#[allow(clippy::cognitive_complexity)]
|
199 |
fn poll_aggregation(&mut self, cx: &mut Context) {
|
23 |
#[allow(clippy::cognitive_complexity)]
|
24 |
pub fn offset_for_delete_backwards(
|
109 |
#[allow(clippy::cognitive_complexity)]
|
110 |
fn handle_notification(&mut self, method: &str, params: Value) -> Self::NotificationFuture {
|
356 |
/// Handle \E[ <seq2:digit> escape sequences
|
357 |
#[allow(clippy::cognitive_complexity)]
|
358 |
fn extended_escape(&mut self, seq2: char) -> Result<KeyEvent> {
|
100 |
impl ToTokens for HtmlElement {
|
101 |
#[allow(clippy::cognitive_complexity)]
|
102 |
fn to_tokens(&self, tokens: &mut TokenStream) {
|
27 |
#[allow(clippy::cognitive_complexity)]
|
28 |
fn main() {
|
156 |
#[test]
|
157 |
#[allow(clippy::cognitive_complexity)]
|
158 |
fn ld_rr() {
|
378 |
#[test]
|
379 |
#[allow(clippy::cognitive_complexity)]
|
380 |
fn get() {
|
454 |
#[test]
|
455 |
#[allow(clippy::cognitive_complexity)]
|
456 |
fn reset() {
|
530 |
#[test]
|
531 |
#[allow(clippy::cognitive_complexity)]
|
532 |
fn set() {
|
3009 |
#[test]
|
3010 |
#[allow(clippy::cognitive_complexity)]
|
3011 |
fn test_new_error() {
|
343 |
// TODO: Simplify
|
344 |
#[allow(clippy::cognitive_complexity)]
|
345 |
// TODO: Split up
|
971 |
#[allow(non_snake_case)]
|
972 |
#[allow(clippy::cognitive_complexity)]
|
973 |
#[allow(clippy::too_many_lines)]
|
77 |
/// <https://gmplib.org/repo/gmp-6.1/file/tip/mpn/generic/hgcd2.c#l44>
|
78 |
#[allow(clippy::cognitive_complexity)]
|
79 |
fn div1(mut a: u64, b: u64) -> u64 {
|
107 |
// Clippy operates on the unrolled code, giving a false positive.
|
108 |
#[allow(clippy::cognitive_complexity)]
|
109 |
fn lehmer_unroll(a2: u64, a3: &mut u64, k2: u64, k3: &mut u64) {
|
20 |
#![allow(
|
21 |
clippy::cognitive_complexity,
|
22 |
clippy::enum_variant_names,
|
2 |
#![allow(
|
3 |
clippy::cognitive_complexity,
|
4 |
clippy::type_complexity,
|
1 |
#![type_length_limit = "2097152"]
|
2 |
#![allow(clippy::cognitive_complexity, clippy::type_complexity)]
|
29 |
#![allow(
|
30 |
clippy::cognitive_complexity, // instruction decode methods are large
|
31 |
clippy::many_single_char_names, // ...it's a CPU, what do you expect?
|
2 |
clippy::too_many_arguments,
|
3 |
clippy::cognitive_complexity,
|
4 |
clippy::wrong_self_convention
|
174 |
#![allow(clippy::redundant_pub_crate)]
|
175 |
#![allow(clippy::cognitive_complexity)]
|
176 |
#![allow(clippy::useless_let_if_seq)]
|
1 |
#![allow(clippy::cognitive_complexity)]
|
2 |
#![allow(clippy::vec_init_then_push)]
|
10 |
fn test_buffered_writer() {
|
11 |
#![allow(clippy::cognitive_complexity)]
|
12 |
task::block_on(async {
|
56 |
fn len_empty_full() {
|
57 |
#![allow(clippy::cognitive_complexity)]
|
58 |
task::block_on(async {
|
1 |
#![allow(clippy::cognitive_complexity)]
|
33 |
#![allow(clippy::multiple_crate_versions)]
|
34 |
#![allow(clippy::cognitive_complexity)]
|
35 |
#![allow(clippy::module_name_repetitions)]
|
1 |
#![allow(clippy::cognitive_complexity)]
|
1 |
#![recursion_limit = "128"]
|
2 |
#![allow(clippy::cognitive_complexity)]
|
35 |
clippy::missing_inline_in_public_items,
|
36 |
clippy::cognitive_complexity,
|
37 |
clippy::must_use_candidate,
|
53 |
clippy::missing_inline_in_public_items,
|
54 |
clippy::cognitive_complexity,
|
55 |
clippy::must_use_candidate,
|
64 |
clippy::missing_inline_in_public_items,
|
65 |
clippy::cognitive_complexity,
|
66 |
clippy::must_use_candidate,
|
64 |
clippy::missing_inline_in_public_items,
|
65 |
clippy::cognitive_complexity,
|
66 |
clippy::must_use_candidate,
|
61 |
clippy::missing_inline_in_public_items,
|
62 |
clippy::cognitive_complexity,
|
63 |
clippy::must_use_candidate,
|
2 |
#![allow(
|
3 |
clippy::cognitive_complexity,
|
4 |
clippy::large_enum_variant,
|
266 |
#![allow(clippy::cognitive_complexity, clippy::derive_partial_eq_without_eq)]
|
267 |
#![doc(html_root_url = "https://docs.rs/bson/2.5.0")]
|
266 |
#![allow(clippy::cognitive_complexity)]
|
267 |
#![doc(html_root_url = "https://docs.rs/bson/2.0.1")]
|
18 |
#![allow(clippy::cast_possible_truncation)] // Annoying
|
19 |
#![allow(clippy::cognitive_complexity)] // This is dumb
|
20 |
#![allow(clippy::too_many_lines)] // This is also dumb
|
18 |
#![allow(clippy::cast_sign_loss)] // Annoying
|
19 |
#![allow(clippy::cognitive_complexity)] // This is dumb
|
20 |
#![allow(clippy::single_match_else)] // Future expansion
|
58 |
#![allow(clippy::cast_possible_truncation)] // Annoying
|
59 |
#![allow(clippy::cognitive_complexity)] // This is dumb
|
60 |
#![allow(clippy::too_many_lines)] // This is also dumb
|
5 |
#![allow(clippy::boxed_local)] // bug rust-lang-nursery/rust-clippy#1123
|
6 |
#![allow(clippy::cyclomatic_complexity)] // large project
|
7 |
#![allow(clippy::derive_hash_xor_eq)] // there's an intentional incoherence
|
1 |
#![allow(clippy::cognitive_complexity)]
|
2 |
#![allow(clippy::many_single_char_names)]
|
707 |
// TODO: Remove when https://github.com/rust-lang/rust-clippy/issues/3900 is fixed
|
708 |
#![allow(clippy::cognitive_complexity)]
|
7 |
#![warn(clippy::nursery, clippy::pedantic)]
|
8 |
#![allow(clippy::cognitive_complexity, clippy::missing_panics_doc, clippy::too_many_lines)]
|
47 |
clippy::shadow_reuse,
|
48 |
clippy::cognitive_complexity,
|
49 |
clippy::similar_names,
|
56 |
shadow_reuse,
|
57 |
cyclomatic_complexity,
|
58 |
similar_names,
|
9 |
clippy::unseparated_literal_suffix,
|
10 |
clippy::cognitive_complexity,
|
11 |
clippy::upper_case_acronyms
|
22 |
// Hard to avoid in generated code:
|
23 |
cyclomatic_complexity,
|
24 |
too_many_arguments,
|
376 |
#![allow(
|
377 |
clippy::cognitive_complexity,
|
378 |
clippy::declare_interior_mutable_const,
|
2 |
clippy::cast_sign_loss,
|
3 |
clippy::cognitive_complexity,
|
4 |
clippy::default_trait_access,
|
1 |
#![allow(clippy::cognitive_complexity)]
|
1 |
#![allow(clippy::cognitive_complexity)]
|
7 |
#![allow(clippy::option_as_ref_deref)] // needs rustc 1.40
|
8 |
#![allow(clippy::cyclomatic_complexity)] // old name of cognitive_complexity
|
9 |
#![allow(clippy::cognitive_complexity)] // in code generated by macros
|
10 |
#![allow(clippy::redundant_closure)]
|
1 |
#![allow(renamed_and_removed_lints)] // clippy::cyclomatic_complexity → clippy::cognitive_complexity
|
2 |
#![allow(clippy::cyclomatic_complexity)]
|
3 |
#![allow(clippy::cognitive_complexity)]
|
4 |
#![allow(clippy::trivially_copy_pass_by_ref)]
|
1 |
#![allow(renamed_and_removed_lints)] // clippy::cyclomatic_complexity → clippy::cognitive_complexity
|
2 |
#![allow(clippy::cyclomatic_complexity)]
|
3 |
#![allow(clippy::cognitive_complexity)]
|
4 |
#![allow(clippy::trivially_copy_pass_by_ref)]
|
8 |
#![deny(broken_intra_doc_links)]
|
9 |
#![allow(clippy::cognitive_complexity)]
|
9 |
)]
|
10 |
#![allow(clippy::cognitive_complexity)]
|
11 |
#![deny(rustdoc::broken_intra_doc_links)]
|
31 |
#![allow(clippy::bool_comparison)]
|
32 |
#![allow(clippy::cognitive_complexity)]
|
33 |
#![allow(clippy::match_bool)]
|
105 |
#![allow(clippy::bool_comparison)]
|
106 |
#![allow(clippy::cognitive_complexity)]
|
107 |
#![allow(clippy::match_bool)]
|
11 |
)]
|
12 |
#![allow(clippy::cognitive_complexity)]
|
13 |
#![deny(broken_intra_doc_links)]
|
19 |
#![allow(unused)]
|
20 |
#![allow(clippy::cognitive_complexity)]
|
21 |
#![allow(clippy::enum_variant_names)]
|
2 |
#![allow(clippy::type_complexity)]
|
3 |
#![allow(clippy::cognitive_complexity)]
|
4 |
#![allow(clippy::upper_case_acronyms)]
|
1 |
#![allow(clippy::cognitive_complexity, warnings)]
|
2 |
#![warn(
|
26 |
#![allow(clippy::module_inception)]
|
27 |
#![allow(clippy::cognitive_complexity)]
|
28 |
#![allow(clippy::new_without_default)]
|
241 |
#![warn(rust_2018_idioms)]
|
242 |
#![allow(clippy::cognitive_complexity)]
|
3 |
#![allow(clippy::cognitive_complexity)]
|
3 |
clippy::too_many_arguments,
|
4 |
clippy::cognitive_complexity,
|
5 |
clippy::redundant_closure
|
6 |
clippy::cast_sign_loss,
|
7 |
clippy::cognitive_complexity,
|
8 |
clippy::float_cmp,
|
20 |
clippy::float_cmp,
|
21 |
clippy::cognitive_complexity,
|
22 |
clippy::uninit_assumed_init,
|
20 |
#![allow(
|
21 |
clippy::cognitive_complexity,
|
22 |
clippy::needless_pass_by_value,
|
1 |
#![allow(clippy::cognitive_complexity)]
|
2 |
use ibuilder::*;
|
46 |
#![allow(clippy::cognitive_complexity)]
|
41 |
#![allow(clippy::comparison_chain)]
|
42 |
#![allow(clippy::cognitive_complexity)]
|
10 |
#![allow(clippy::cognitive_complexity)]
|
11 |
#![warn(clippy::cargo_common_metadata)]
|
11 |
#![allow(clippy::cognitive_complexity)]
|
12 |
#![warn(clippy::cargo_common_metadata)]
|
18 |
#![allow(clippy::cargo)]
|
19 |
#![allow(clippy::cognitive_complexity)]
|
8 |
#![allow(clippy::useless_let_if_seq)]
|
9 |
#![allow(clippy::cognitive_complexity)]
|
9 |
clippy::unreadable_literal,
|
10 |
clippy::cognitive_complexity
|
11 |
)]
|
9 |
clippy::unreadable_literal,
|
10 |
clippy::cognitive_complexity
|
11 |
)]
|
9 |
clippy::unreadable_literal,
|
10 |
clippy::cognitive_complexity
|
11 |
)]
|
4 |
#![allow(clippy::useless_transmute)]
|
5 |
#![allow(clippy::cognitive_complexity)]
|
6 |
#![allow(clippy::missing_safety_doc)]
|
8 |
#![allow(clippy::needless_borrow)] // &original_text must be borrowed in fn list()
|
9 |
#![allow(clippy::cognitive_complexity, clippy::missing_panics_doc, clippy::too_many_lines)]
|
12 |
#![cfg_attr(feature = "cargo-clippy", allow(clippy::too_many_arguments))]
|
13 |
#![cfg_attr(feature = "cargo-clippy", allow(cyclomatic_complexity))]
|
1 |
#![allow(clippy::cognitive_complexity)]
|
2 |
#![allow(clippy::many_single_char_names)]
|
1 |
#![allow(clippy::cognitive_complexity)]
|
2 |
#![allow(clippy::too_many_arguments)]
|
94 |
#![allow(
|
95 |
clippy::cognitive_complexity,
|
96 |
clippy::float_cmp,
|
26 |
clippy::bool_assert_comparison, // Often clearer than using !
|
27 |
clippy::cognitive_complexity,
|
28 |
clippy::excessive_precision,
|
110 |
clippy::assertions_on_constants,
|
111 |
clippy::cognitive_complexity,
|
112 |
clippy::many_single_char_names,
|
4 |
clippy::assertions_on_constants,
|
5 |
clippy::cognitive_complexity,
|
6 |
clippy::excessive_precision,
|
62 |
clippy::assertions_on_constants,
|
63 |
clippy::cognitive_complexity,
|
64 |
clippy::many_single_char_names,
|
4 |
clippy::assertions_on_constants,
|
5 |
clippy::cognitive_complexity,
|
6 |
clippy::excessive_precision,
|
174 |
//! </details>
|
175 |
#![allow(clippy::cognitive_complexity)]
|
176 |
#![allow(clippy::get_first)]
|
36 |
#![allow(
|
37 |
clippy::cognitive_complexity,
|
38 |
clippy::comparison_chain,
|
36 |
#![allow(
|
37 |
clippy::cognitive_complexity,
|
38 |
clippy::comparison_chain,
|
1 |
#![deny(warnings)]
|
2 |
#![allow(clippy::cognitive_complexity)]
|
3 |
extern crate mpi;
|
1 |
#![deny(warnings)]
|
2 |
#![allow(clippy::cognitive_complexity)]
|
3 |
extern crate mpi_fork_fnsp as mpi;
|
40 |
#![warn(clippy::get_unwrap)]
|
41 |
#![allow(clippy::cognitive_complexity)]
|
42 |
#![allow(clippy::missing_const_for_fn)]
|
1 |
#![allow(
|
2 |
clippy::cognitive_complexity,
|
3 |
clippy::large_enum_variant,
|
11 |
non_snake_case,
|
12 |
clippy::cognitive_complexity,
|
13 |
clippy::empty_enum,
|
11 |
non_snake_case,
|
12 |
clippy::cognitive_complexity,
|
13 |
clippy::empty_enum,
|
11 |
non_snake_case,
|
12 |
clippy::cognitive_complexity,
|
13 |
clippy::too_many_lines,
|
46 |
#![allow(clippy::cognitive_complexity)]
|
7 |
#![warn(clippy::nursery, clippy::pedantic)]
|
8 |
#![allow(clippy::cast_precision_loss, clippy::cognitive_complexity, clippy::missing_panics_doc, clippy::similar_names, clippy::too_many_lines, clippy::uninlined_format_args)]
|
7 |
#![warn(clippy::nursery, clippy::pedantic)]
|
8 |
#![allow(clippy::cast_precision_loss, clippy::cognitive_complexity, clippy::missing_panics_doc, clippy::similar_names, clippy::too_many_lines, clippy::uninlined_format_args)]
|
1 |
#![allow(clippy::cognitive_complexity)]
|
2 |
extern crate env_logger;
|
1 |
#![allow(clippy::cognitive_complexity, clippy::expect_fun_call)]
|
2 |
extern crate color_backtrace;
|
3 |
#![allow(
|
4 |
clippy::cognitive_complexity,
|
5 |
clippy::default_trait_access,
|
6 |
#![allow(clippy::unreadable_literal)]
|
7 |
#![allow(clippy::cognitive_complexity)]
|
8 |
#![allow(clippy::useless_transmute)]
|
1 |
#![allow(clippy::cyclomatic_complexity)]
|
1 |
#![allow(clippy::cyclomatic_complexity)]
|
1 |
#![allow(clippy::cyclomatic_complexity)]
|
13 |
#![warn(clippy::range_plus_one)]
|
14 |
#![allow(clippy::cognitive_complexity)]
|
15 |
#![allow(clippy::upper_case_acronyms)]
|
13 |
#![warn(clippy::range_plus_one)]
|
14 |
#![allow(clippy::cognitive_complexity)]
|
267 |
#![allow(clippy::cognitive_complexity)]
|
268 |
#![allow(clippy::float_cmp)]
|
45 |
fn len_empty_full() {
|
46 |
#![allow(clippy::cognitive_complexity)]
|
47 |
task::block_on(async {
|
16 |
#![allow(clippy::mut_from_ref)]
|
17 |
#![allow(clippy::cognitive_complexity)]
|
4 |
#![allow(clippy::too_many_arguments)]
|
5 |
#![allow(clippy::cognitive_complexity)]
|
46 |
#![allow(clippy::cognitive_complexity)]
|
46 |
#![allow(clippy::cognitive_complexity)]
|
52 |
#![warn(clippy::get_unwrap)]
|
53 |
#![allow(clippy::cognitive_complexity)]
|
54 |
#![allow(clippy::missing_const_for_fn)]
|
17 |
// Fixes welcome:
|
18 |
#![allow(clippy::cognitive_complexity)]
|
19 |
#![allow(clippy::too_many_arguments)]
|
230 |
#![allow(clippy::needless_lifetimes)]
|
231 |
#![allow(clippy::cognitive_complexity)]
|
1 |
#![allow(clippy::missing_const_for_fn)]
|
2 |
#![allow(clippy::cognitive_complexity)]
|
12 |
#![allow(clippy::cast_ptr_alignment)]
|
13 |
#![allow(clippy::cognitive_complexity)]
|
14 |
#![allow(clippy::needless_range_loop)]
|
12 |
#![allow(clippy::cast_ptr_alignment)]
|
13 |
#![allow(clippy::cognitive_complexity)]
|
14 |
#![allow(clippy::needless_range_loop)]
|
39 |
#![allow(clippy::cast_ptr_alignment)]
|
40 |
#![allow(clippy::cognitive_complexity)]
|
41 |
#![allow(clippy::needless_range_loop)]
|
266 |
#![allow(clippy::cognitive_complexity)]
|
267 |
#![doc(html_root_url = "https://docs.rs/bson/2.0.1")]
|
5 |
#![warn(clippy::get_unwrap)]
|
6 |
#![allow(clippy::cognitive_complexity)]
|
7 |
#![allow(clippy::missing_const_for_fn)]
|
5 |
#![warn(clippy::get_unwrap)]
|
6 |
#![allow(clippy::cognitive_complexity)]
|
7 |
#![allow(clippy::missing_const_for_fn)]
|
5 |
#![warn(clippy::get_unwrap)]
|
6 |
#![allow(clippy::cognitive_complexity)]
|
7 |
#![allow(clippy::missing_const_for_fn)]
|
39 |
)]
|
40 |
#![allow(clippy::cognitive_complexity)]
|
41 |
#![deny(broken_intra_doc_links)]
|
2 |
#![cfg_attr(feature = "cargo-clippy", allow(cyclomatic_complexity))]
|
2 |
#![cfg_attr(feature = "cargo-clippy", allow(cyclomatic_complexity))]
|
32 |
// False positives, or make code harder to understand.
|
33 |
#![allow(clippy::cognitive_complexity)]
|
34 |
#![allow(clippy::match_like_matches_macro)]
|
6 |
#![forbid(unsafe_code)]
|
7 |
#![allow(clippy::cognitive_complexity)]
|
15 |
//! parser chances have it that it exists but it is not marked as `pub`.
|
16 |
#![allow(clippy::cognitive_complexity)]
|
17 |
#![recursion_limit = "256"]
|
90 |
#![allow(
|
91 |
clippy::cognitive_complexity,
|
92 |
clippy::doc_markdown,
|
1 |
#![allow(clippy::cast_lossless, clippy::cognitive_complexity, clippy::new_without_default)]
|
7 |
clippy::new_without_default,
|
8 |
clippy::cognitive_complexity,
|
9 |
clippy::type_complexity,
|
37 |
cast_lossless,
|
38 |
cyclomatic_complexity,
|
39 |
many_single_char_names,
|
9 |
// FIXME: consider splitting test functions into multiple smaller ones
|
10 |
#![allow(clippy::cognitive_complexity)]
|
11 |
#![allow(unused_imports)] // Remove this after fixing all the tests
|
1 |
#![allow(clippy::cognitive_complexity)]
|
2 |
#![warn(absolute_paths_not_starting_with_crate)]
|
21 |
clippy::branches_sharing_code,
|
22 |
clippy::cognitive_complexity,
|
23 |
// clippy bug: https://github.com/rust-lang/rust-clippy/issues/7575
|
5 |
#![allow(
|
6 |
clippy::cognitive_complexity,
|
7 |
// clippy bug: https://github.com/rust-lang/rust-clippy/issues/6797
|
20 |
#![allow(
|
21 |
clippy::cognitive_complexity,
|
22 |
clippy::enum_variant_names,
|
61 |
#![allow(
|
62 |
clippy::cognitive_complexity,
|
63 |
clippy::let_unit_value,
|
438 |
mod test {
|
439 |
#![allow(clippy::cognitive_complexity)]
|
440 |
use super::*;
|
377 |
mod test {
|
378 |
#![allow(clippy::cognitive_complexity)]
|
379 |
use super::*;
|
26 |
mod test {
|
27 |
#![allow(clippy::cognitive_complexity)]
|
28 |
use super::StaticNode as Value;
|
553 |
) -> TernaryNaNPropagationResults {
|
554 |
#![allow(clippy::cognitive_complexity)]
|
555 |
use TernaryNaNPropagationMode::*;
|
4246 |
mod tests {
|
4247 |
#![allow(clippy::cognitive_complexity)]
|
4248 |
use super::*;
|
8 |
#![allow(clippy::float_cmp)]
|
9 |
#![allow(clippy::cognitive_complexity)]
|
10 |
#![allow(clippy::wrong_self_convention)]
|
1606 |
mod test {
|
1607 |
#![allow(clippy::redundant_clone, clippy::cognitive_complexity, clippy::op_ref)]
|
6 |
#![allow(clippy::cognitive_complexity)]
|
7 |
// Long tests are all composed of independent statements.
|
8 |
#![allow(clippy::cognitive_complexity)]
|
249 |
clippy::block_in_if_condition_stmt,
|
250 |
clippy::cognitive_complexity,
|
251 |
clippy::doc_markdown,
|
249 |
clippy::block_in_if_condition_stmt,
|
250 |
clippy::cognitive_complexity,
|
251 |
clippy::doc_markdown,
|
232 |
block_in_if_condition_stmt,
|
233 |
cognitive_complexity,
|
234 |
cyclomatic_complexity,
|
235 |
const_static_lifetime,
|
10 |
#![warn(missing_docs)]
|
11 |
#![allow(clippy::redundant_field_names, clippy::cognitive_complexity)]
|
12 |
#![cfg_attr(feature = "nightly", allow(incomplete_features))]
|
15 |
#![allow(clippy::mut_from_ref)]
|
16 |
#![allow(clippy::cognitive_complexity)]
|
70 |
#![warn(clippy::get_unwrap)]
|
71 |
#![allow(clippy::cognitive_complexity)]
|
72 |
#![allow(clippy::missing_const_for_fn)]
|
431 |
// Some test functions contain long lists of assertions. Clippy thinks they are too complex.
|
432 |
#![allow(clippy::cognitive_complexity)]
|
18 |
clippy::clone_on_copy,
|
19 |
clippy::cognitive_complexity,
|
20 |
clippy::std_instead_of_core
|
1 |
#![allow(
|
2 |
clippy::cognitive_complexity,
|
3 |
clippy::large_enum_variant,
|
1 |
#![allow(clippy::cognitive_complexity)]
|
2 |
#![warn(rust_2018_idioms)]
|
1 |
#![allow(clippy::cognitive_complexity)]
|
2 |
#![warn(rust_2018_idioms)]
|
6 |
fn test_buffered_writer() {
|
7 |
#![allow(clippy::cognitive_complexity)]
|
8 |
task::block_on(async {
|
47 |
fn len_empty_full() {
|
48 |
#![allow(clippy::cognitive_complexity)]
|
49 |
task::block_on(async {
|
1 |
#![allow(
|
2 |
clippy::cognitive_complexity,
|
3 |
clippy::large_enum_variant,
|
1 |
#![allow(clippy::cognitive_complexity)]
|
1 |
#![allow(
|
2 |
clippy::cognitive_complexity,
|
3 |
clippy::large_enum_variant,
|
1 |
#![allow(clippy::cognitive_complexity)]
|
2 |
#![warn(rust_2018_idioms)]
|
1 |
#![allow(clippy::cognitive_complexity)]
|
2 |
#![warn(rust_2018_idioms)]
|
1 |
#![allow(clippy::cognitive_complexity)]
|
1 |
#![allow(clippy::cognitive_complexity)]
|
339 |
#![allow(clippy::unwrap_used)]
|
340 |
#![allow(clippy::cognitive_complexity)]
|
341 |
use super::*;
|
1238 |
#![allow(clippy::unwrap_used)]
|
1239 |
#![allow(clippy::cognitive_complexity)]
|
1240 |
use super::*;
|
154 |
fn basic_usage() {
|
155 |
#![allow(clippy::cognitive_complexity)]
|
156 |
let rsa1 = RsaIdentity::from(hex!("42656c6f7665642c207768617420617265206e61"));
|
1215 |
#![allow(clippy::unwrap_used)]
|
1216 |
#![allow(clippy::cognitive_complexity)]
|
1217 |
use super::*;
|
104 |
pub(crate) mod test {
|
105 |
#![allow(clippy::cognitive_complexity)]
|
683 |
#![allow(clippy::unwrap_used)]
|
684 |
#![allow(clippy::cognitive_complexity)]
|
685 |
use super::*;
|
627 |
mod test {
|
628 |
#![allow(clippy::cognitive_complexity)]
|
629 |
use super::*;
|
18 |
#![warn(clippy::get_unwrap)]
|
19 |
#![allow(clippy::cognitive_complexity)]
|
20 |
#![allow(clippy::missing_const_for_fn)]
|
5 |
#![warn(clippy::get_unwrap)]
|
6 |
#![allow(clippy::cognitive_complexity)]
|
7 |
#![allow(clippy::missing_const_for_fn)]
|
5 |
#![warn(clippy::get_unwrap)]
|
6 |
#![allow(clippy::cognitive_complexity)]
|
7 |
#![allow(clippy::missing_const_for_fn)]
|
6 |
#![allow(clippy::option_as_ref_deref)] // needs rustc 1.40
|
7 |
#![allow(clippy::cyclomatic_complexity)] // old name of cognitive_complexity
|
8 |
#![allow(clippy::cognitive_complexity)] // in code generated by macros
|
9 |
#![allow(clippy::redundant_closure)]
|
1 |
#![allow(renamed_and_removed_lints)] // clippy::cyclomatic_complexity → clippy::cognitive_complexity
|
2 |
#![allow(clippy::cyclomatic_complexity)]
|
3 |
#![allow(clippy::cognitive_complexity)]
|
4 |
#![allow(clippy::trivially_copy_pass_by_ref)]
|
1 |
#![allow(renamed_and_removed_lints)] // clippy::cyclomatic_complexity → clippy::cognitive_complexity
|
2 |
#![allow(clippy::cyclomatic_complexity)]
|
3 |
#![allow(clippy::cognitive_complexity)]
|
4 |
#![allow(clippy::trivially_copy_pass_by_ref)]
|
3 |
#![allow(
|
4 |
clippy::cognitive_complexity,
|
5 |
clippy::large_enum_variant,
|
5 |
#![allow(clippy::cognitive_complexity)]
|
6 |
#![allow(clippy::let_and_return)]
|
1 |
#![allow(clippy::cognitive_complexity)]
|
2 |
#![allow(clippy::let_and_return)]
|
9 |
clippy::cast_sign_loss,
|
10 |
clippy::cognitive_complexity,
|
11 |
clippy::float_cmp,
|
12 |
#![allow(clippy::cast_ptr_alignment)]
|
13 |
#![allow(clippy::cognitive_complexity)]
|
14 |
#![allow(clippy::needless_range_loop)]
|
1 |
#![allow(clippy::cognitive_complexity)]
|
5 |
#![allow(clippy::blacklisted_name)] // frequently used in tests
|
6 |
#![allow(clippy::cognitive_complexity)] // large project
|
7 |
#![allow(clippy::derive_hash_xor_eq)] // there's an intentional incoherence
|
40 |
#![warn(clippy::get_unwrap)]
|
41 |
#![allow(clippy::cognitive_complexity)]
|
42 |
#![allow(clippy::missing_const_for_fn)]
|
2 |
// caused by macros.
|
3 |
#![allow(clippy::cognitive_complexity)]
|
1 |
#![forbid(unsafe_code)]
|
2 |
#![allow(clippy::cognitive_complexity)]
|
16 |
#![allow(clippy::cognitive_complexity, clippy::too_many_arguments)]
|
1 |
#![allow(unused, clippy::too_many_arguments, clippy::cognitive_complexity)]
|
16 |
#![allow(clippy::cognitive_complexity, clippy::too_many_arguments)]
|
1 |
#![allow(unused, clippy::too_many_arguments, clippy::cognitive_complexity)]
|
16 |
#![allow(clippy::cognitive_complexity, clippy::too_many_arguments)]
|
1 |
#![allow(unused, clippy::too_many_arguments, clippy::cognitive_complexity)]
|
1 |
#![allow(
|
2 |
clippy::cognitive_complexity,
|
3 |
clippy::float_cmp,
|
1 |
#![allow(
|
2 |
clippy::cognitive_complexity,
|
3 |
clippy::float_cmp,
|
117 |
#![cfg_attr(not(test), allow(dead_code))]
|
118 |
#![allow(clippy::cognitive_complexity)]
|
119 |
#![allow(clippy::too_many_arguments)]
|
185 |
#![allow(clippy::too_many_arguments)]
|
186 |
#![allow(clippy::cognitive_complexity)]
|
187 |
#![allow(clippy::single_match)]
|
1 |
#![allow(clippy::cognitive_complexity)]
|
9 |
//! The HTML5 tokenizer.
|
10 |
#![allow(clippy::never_loop, clippy::cognitive_complexity, clippy::single_match)]
|
11 |
#![allow(clippy::unnested_or_patterns)]
|
22 |
#![allow(
|
23 |
clippy::cognitive_complexity,
|
24 |
clippy::redundant_static_lifetimes,
|
1 |
#![allow(clippy::many_single_char_names, clippy::cognitive_complexity)]
|
2 |
use std::ops::{Deref, DerefMut};
|
7 |
#![warn(clippy::nursery, clippy::pedantic)]
|
8 |
#![allow(clippy::cognitive_complexity, clippy::missing_panics_doc, clippy::similar_names, clippy::too_many_lines)]
|
7 |
#![allow(clippy::cognitive_complexity)]
|