@@ -195,11 +195,11 @@ https://github.blog/2015-06-08-how-to-undo-almost-anything-with-git/#redo-after-
195
195
fn deny_clippy ( path : & Path , text : & str ) {
196
196
let ignore = & [
197
197
// The documentation in string literals may contain anything for its own purposes
198
- "ide_db /src/generated/lints.rs" ,
198
+ "ide-db /src/generated/lints.rs" ,
199
199
// The tests test clippy lint hovers
200
200
"ide/src/hover/tests.rs" ,
201
201
// The tests test clippy lint completions
202
- "ide_completion /src/tests/attribute.rs" ,
202
+ "ide-completion /src/tests/attribute.rs" ,
203
203
] ;
204
204
if ignore. iter ( ) . any ( |p| path. ends_with ( p) ) {
205
205
return ;
@@ -289,11 +289,11 @@ fn check_todo(path: &Path, text: &str) {
289
289
// `ast::make`.
290
290
"ast/make.rs" ,
291
291
// The documentation in string literals may contain anything for its own purposes
292
- "ide_db /src/generated/lints.rs" ,
293
- "ide_assists /src/utils/gen_trait_fn_body.rs" ,
294
- "ide_assists /src/tests/generated.rs" ,
292
+ "ide-db /src/generated/lints.rs" ,
293
+ "ide-assists /src/utils/gen_trait_fn_body.rs" ,
294
+ "ide-assists /src/tests/generated.rs" ,
295
295
// The tests for missing fields
296
- "ide_diagnostics /src/handlers/missing_fields.rs" ,
296
+ "ide-diagnostics /src/handlers/missing_fields.rs" ,
297
297
] ;
298
298
if need_todo. iter ( ) . any ( |p| path. ends_with ( p) ) {
299
299
return ;
@@ -320,12 +320,12 @@ fn check_dbg(path: &Path, text: &str) {
320
320
// Assists to remove `dbg!()`
321
321
"handlers/remove_dbg.rs" ,
322
322
// We have .dbg postfix
323
- "ide_completion /src/completions/postfix.rs" ,
324
- "ide_completion /src/completions/keyword.rs" ,
325
- "ide_completion /src/tests/proc_macros.rs" ,
323
+ "ide-completion /src/completions/postfix.rs" ,
324
+ "ide-completion /src/completions/keyword.rs" ,
325
+ "ide-completion /src/tests/proc_macros.rs" ,
326
326
// The documentation in string literals may contain anything for its own purposes
327
- "ide_completion /src/lib.rs" ,
328
- "ide_db /src/generated/lints.rs" ,
327
+ "ide-completion /src/lib.rs" ,
328
+ "ide-db /src/generated/lints.rs" ,
329
329
// test for doc test for remove_dbg
330
330
"src/tests/generated.rs" ,
331
331
] ;
@@ -351,13 +351,13 @@ fn check_test_attrs(path: &Path, text: &str) {
351
351
"ide/src/runnables.rs" ,
352
352
// A legit test which needs to be ignored, as it takes too long to run
353
353
// :(
354
- "hir_def /src/nameres/collector.rs" ,
354
+ "hir-def /src/nameres/collector.rs" ,
355
355
// Long sourcegen test to generate lint completions.
356
- "ide_db /src/tests/sourcegen_lints.rs" ,
356
+ "ide-db /src/tests/sourcegen_lints.rs" ,
357
357
// Obviously needs ignore.
358
- "ide_assists /src/handlers/toggle_ignore.rs" ,
358
+ "ide-assists /src/handlers/toggle_ignore.rs" ,
359
359
// See above.
360
- "ide_assists /src/tests/generated.rs" ,
360
+ "ide-assists /src/tests/generated.rs" ,
361
361
] ;
362
362
if text. contains ( "#[ignore" ) && !need_ignore. iter ( ) . any ( |p| path. ends_with ( p) ) {
363
363
panic ! ( "\n don't `#[ignore]` tests, see:\n \n {}\n \n {}\n " , ignore_rule, path. display( ) , )
@@ -368,7 +368,7 @@ fn check_test_attrs(path: &Path, text: &str) {
368
368
let need_panic: & [ & str ] = & [
369
369
// This file.
370
370
"slow-tests/tidy.rs" ,
371
- "test_utils /src/fixture.rs" ,
371
+ "test-utils /src/fixture.rs" ,
372
372
] ;
373
373
if text. contains ( "#[should_panic" ) && !need_panic. iter ( ) . any ( |p| path. ends_with ( p) ) {
374
374
panic ! (
0 commit comments