scud 0.1.3

A secret library atm, woo woo.
1
2
3
4
5
6
7
8
9
10
11
pub fn get_remaining_subject_length(commit_type: &str, scope: &str) -> usize {
    let max_subject_length = 100;

    let mut remaining_subject_length = max_subject_length - scope.len() - commit_type.len() - 2;

    if scope.len() > 0 {
      remaining_subject_length -= 2;
    }

    remaining_subject_length
}