You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ownership/validator.rs
+8-11Lines changed: 8 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@ use std::rc::Rc;
8
8
9
9
usecrate::project::{Project,ProjectFile};
10
10
11
+
use error_stack::Context;
11
12
use itertools::Itertools;
12
13
use rayon::prelude::IntoParallelRefIterator;
13
14
use rayon::prelude::ParallelIterator;
@@ -127,9 +128,9 @@ impl Validator {
127
128
}
128
129
129
130
implError{
130
-
pubfntitle(&self) -> String{
131
+
pubfncategory(&self) -> String{
131
132
matchself{
132
-
Error::FileWithoutOwner{path: _ } => "Some files are missing ownership:".to_owned(),
133
+
Error::FileWithoutOwner{path: _ } => "Some files are missing ownership".to_owned(),
133
134
Error::FileWithMultipleOwners{path: _,owners: _ } => "Code ownership should only be defined for each file in one way. The following files have declared ownership in multiple ways.".to_owned(),
134
135
Error::CodeownershipFileIsStale => {
135
136
"CODEOWNERS out of date. Run `codeownership generate` to update the CODEOWNERS file".to_owned()
.stdout(predicate::str::contains("CODEOWNERS out of date. Run `codeownership generate` to update the CODEOWNERS file"))
14
-
.stdout(predicate::str::contains("Some files are missing ownership:\n- ruby/app/unowned.rb"))
14
+
.stdout(predicate::str::contains("Some files are missing ownership\n- ruby/app/unowned.rb"))
15
15
.stdout(predicate::str::contains("Code ownership should only be defined for each file in one way. The following files have declared ownership in multiple ways.\n- gems/payroll_calculator/calculator.rb (owner: Payments, source: team_file_mapper)\n- gems/payroll_calculator/calculator.rb (owner: Payroll, source: team_gem_mapper)"));
0 commit comments