Home
last modified time | relevance | path

Searched refs:lint_name (Results 1 – 25 of 279) sorted by relevance

12345678910>>...12

/dports/lang/rust/rustc-1.58.1-src/src/tools/clippy/clippy_dev/src/
H A Dnew_lint.rs36 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 Dupdate_lints.rs320 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 Dbase.py107 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 Dcontext.rs292 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 Dlevels.rs85 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 Dmetadata_collector.rs174 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 Dgroups.rs119 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 Dlib.rs157 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 Dissue-78892-substitution-in-statement-attr.rs6 ($lint_name:ident) => {{
7 #[allow($lint_name)]
/dports/devel/py-molecule/molecule-2.22/molecule/provisioner/
H A Dbase.py70 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 Doption_map_or_none.rs34 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 Drole.py142 lint_name, argument
152 'lint_name': lint_name,
H A Dscenario.py205 lint_name, argument
216 'lint_name': lint_name,
/dports/lang/rust/rustc-1.58.1-src/src/tools/clippy/clippy_lints/src/
H A Dattrs.rs371 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 DREADME.md183 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 Dedition.rs49 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 Dedition.rs49 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 Dedition.rs49 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 Dedition.rs49 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 Dmolecule.yml11 name: {{ cookiecutter.lint_name }}
/dports/lang/rust/rustc-1.58.1-src/src/tools/clippy/.github/
H A DPULL_REQUEST_TEMPLATE.md8 e.g. ``[`lint_name`]``.
/dports/devel/py-molecule/molecule-2.22/molecule/
H A Dconfig.py230 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 Dconfig.rs1156 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 Dconfig.rs1164 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 Dconfig.rs1164 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()

12345678910>>...12