/dports/lang/rust/rustc-1.58.1-src/src/tools/clippy/clippy_dev/src/ |
H A D | new_lint.rs | 36 pub fn create(pass: Option<&str>, lint_name: Option<&str>, category: Option<&str>, msrv: bool) -> i… in create() 39 name: lint_name.expect("`name` argument is validated by clap"), in create() 60 write_file(path.join("Cargo.toml"), get_manifest_contents(lint_name, hint))?; in create_test() 64 let header = format!("// compile-flags: --crate-name={}", lint_name); in create_test() 65 write_file(path.join("main.rs"), get_test_file_contents(lint_name, Some(&header)))?; in create_test() 135 fn get_test_file_contents(lint_name: &str, header_commands: Option<&str>) -> String { in get_test_file_contents() 144 lint_name in get_test_file_contents() 154 fn get_manifest_contents(lint_name: &str, hint: &str) -> String { in get_manifest_contents() 166 hint, lint_name in get_manifest_contents() 181 let lint_name = lint.name; in get_lint_file_contents() localVariable [all …]
|
H A D | update_lints.rs | 320 for (is_public, module_name, lint_name) in details { in gen_register_lint_list() 324 output.push_str(&format!(" {}::{},\n", module_name, lint_name)); in gen_register_lint_list()
|
/dports/devel/py-molecule/molecule-2.22/molecule/verifier/ |
H A D | base.py | 107 lint_name = self._config.config['verifier']['lint']['name'] 108 if lint_name == 'flake8': 110 if lint_name == 'pre-commit': 112 if lint_name == 'rubocop': 114 if lint_name == 'yamllint': 116 if lint_name == 'ansible-lint':
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_lint/src/ |
H A D | context.rs | 292 match self.by_name.get(lint_name) { in find_lints() 316 lint_name: &str, in check_lint_name_cmdline() 349 lint_name, new_name in check_lint_name_cmdline() 372 lint_name in check_lint_name_cmdline() 383 lint_name, in is_lint_group() 403 lint_name: &str, in check_lint_name() 416 lint_name.to_string() in check_lint_name() 494 lint_name: &str, in check_tool_name_for_backwards_compat() 1116 match lint_name.split_once("::") { in parse_lint_and_tool_name() 1120 (Some(tool_name), lint_name) in parse_lint_and_tool_name() [all …]
|
H A D | levels.rs | 85 for &(ref lint_name, level) in &sess.opts.lint_opts { in process_command_line() 86 store.check_lint_name_cmdline(sess, &lint_name, level, self.crate_attrs); in process_command_line() 88 let lint_flag_val = Symbol::intern(lint_name); in process_command_line() 90 let ids = match store.find_lints(&lint_name) { in process_command_line()
|
/dports/lang/rust/rustc-1.58.1-src/src/tools/clippy/clippy_lints/src/utils/internal_lints/ |
H A D | metadata_collector.rs | 174 fn get_lint_configs(&self, lint_name: &str) -> Option<String> { in get_lint_configs() 177 .filter(|config| config.lints.iter().any(|lint| lint == lint_name)) in get_lint_configs() 404 let lint_name = sym_to_string(item.ident.name).to_ascii_lowercase(); in check_item() localVariable 405 if !BLACK_LISTED_LINTS.contains(&lint_name.as_str()); in check_item() 415 lint_name, in check_item() 428 if !BLACK_LISTED_LINTS.contains(&lint_name.as_str()); in check_item() 433 lint_name, in check_item() 557 lint_name: &str, in get_lint_group_and_level_or_lint() 562 .check_lint_name(cx.sess(), lint_name, Some(sym::clippy), &[]); in get_lint_group_and_level_or_lint() 673 .map(|lint_name| (lint_name, applicability, multi_part)) in extract_emission_info() [all …]
|
/dports/lang/rust/rustc-1.58.1-src/src/tools/lint-docs/src/ |
H A D | groups.rs | 119 for lint_name in to_link { in make_groups_table() 120 let lint_def = match lints.iter().find(|l| l.name == lint_name.replace("-", "_")) { in make_groups_table() 127 lint_name in make_groups_table() 140 lint_name, in make_groups_table() 142 lint_name in make_groups_table()
|
H A D | lib.rs | 157 let name = lint_name(line).map_err(|e| { in lints_from_file() 466 fn lint_name(line: &str) -> Result<String, &'static str> { in lint_name() function
|
/dports/lang/rust/rustc-1.58.1-src/src/test/ui/macros/ |
H A D | issue-78892-substitution-in-statement-attr.rs | 6 ($lint_name:ident) => {{ 7 #[allow($lint_name)]
|
/dports/devel/py-molecule/molecule-2.22/molecule/provisioner/ |
H A D | base.py | 70 lint_name = self._config.config['provisioner']['lint']['name'] 71 if lint_name == 'ansible-lint':
|
/dports/lang/rust/rustc-1.58.1-src/src/tools/clippy/clippy_lints/src/methods/ |
H A D | option_map_or_none.rs | 34 let (lint_name, msg, instead, hint) = { in check() 81 lint_name, in check()
|
/dports/devel/py-molecule/molecule-2.22/molecule/command/init/ |
H A D | role.py | 142 lint_name, argument 152 'lint_name': lint_name,
|
H A D | scenario.py | 205 lint_name, argument 216 'lint_name': lint_name,
|
/dports/lang/rust/rustc-1.58.1-src/src/tools/clippy/clippy_lints/src/ |
H A D | attrs.rs | 371 let lint_name = meta_item.path.segments.last().unwrap().ident.name; in extract_clippy_lint() localVariable 372 return Some(lint_name.as_str()); in extract_clippy_lint() 380 if let Some(lint_name) = extract_clippy_lint(lint) { in check_clippy_lint_names() 381 if lint_name == "restriction" && name != sym::allow { in check_clippy_lint_names()
|
/dports/lang/rust/rustc-1.58.1-src/src/tools/clippy/ |
H A D | README.md | 183 To allow `lint_name`, run 186 cargo clippy -- -A clippy::lint_name 189 And to warn on `lint_name`, run 192 cargo clippy -- -W clippy::lint_name
|
/dports/devel/racer/racer-2.1.48/cargo-crates/rustc-ap-rustc_span-718.0.0/src/ |
H A D | edition.rs | 49 pub fn lint_name(&self) -> &'static str { in lint_name() method
|
/dports/devel/racer/racer-2.1.48/cargo-crates/rustc-ap-rustc_span-722.0.0/src/ |
H A D | edition.rs | 49 pub fn lint_name(&self) -> &'static str { in lint_name() method
|
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_span/src/ |
H A D | edition.rs | 49 pub fn lint_name(&self) -> &'static str { in lint_name() method
|
/dports/lang/rust/rustc-1.58.1-src/vendor/rustc-ap-rustc_span/src/ |
H A D | edition.rs | 49 pub fn lint_name(&self) -> &'static str { in lint_name() method
|
/dports/devel/py-molecule/molecule-2.22/molecule/cookiecutter/molecule/{{cookiecutter.role_name}}/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/ |
H A D | molecule.yml | 11 name: {{ cookiecutter.lint_name }}
|
/dports/lang/rust/rustc-1.58.1-src/src/tools/clippy/.github/ |
H A D | PULL_REQUEST_TEMPLATE.md | 8 e.g. ``[`lint_name`]``.
|
/dports/devel/py-molecule/molecule-2.22/molecule/ |
H A D | config.py | 230 lint_name = self.config['lint']['name'] 231 if lint_name == 'yamllint':
|
/dports/devel/racer/racer-2.1.48/cargo-crates/rustc-ap-rustc_session-718.0.0/src/ |
H A D | config.rs | 1156 for (passed_arg_pos, lint_name) in matches.opt_strs_pos(level.as_str()) { in get_cmd_lint_options() 1165 if lint_name == "help" { in get_cmd_lint_options() 1168 lint_opts_with_position.push((arg_pos, lint_name.replace("-", "_"), level)); in get_cmd_lint_options() 1177 .map(|(_, lint_name, level)| (lint_name, level)) in get_cmd_lint_options()
|
/dports/devel/racer/racer-2.1.48/cargo-crates/rustc-ap-rustc_session-722.0.0/src/ |
H A D | config.rs | 1164 for (passed_arg_pos, lint_name) in matches.opt_strs_pos(level.as_str()) { in get_cmd_lint_options() 1173 if lint_name == "help" { in get_cmd_lint_options() 1176 lint_opts_with_position.push((arg_pos, lint_name.replace("-", "_"), level)); in get_cmd_lint_options() 1185 .map(|(_, lint_name, level)| (lint_name, level)) in get_cmd_lint_options()
|
/dports/lang/rust/rustc-1.58.1-src/vendor/rustc-ap-rustc_session/src/ |
H A D | config.rs | 1164 for (passed_arg_pos, lint_name) in matches.opt_strs_pos(level.as_str()) { in get_cmd_lint_options() 1173 if lint_name == "help" { in get_cmd_lint_options() 1176 lint_opts_with_position.push((arg_pos, lint_name.replace("-", "_"), level)); in get_cmd_lint_options() 1185 .map(|(_, lint_name, level)| (lint_name, level)) in get_cmd_lint_options()
|