Added copyright and contributors

This commit is contained in:
PhnxRbrn 2015-09-21 17:51:42 -05:00
parent b5ccff6d37
commit 0d84ae01b2
7 changed files with 36 additions and 3 deletions

11
CONTRIBUTORS.md Normal file
View file

@ -0,0 +1,11 @@
# Contributors
The list of contributors is sorted alphabetical based on the last names.
The list of languages is sorted alphabetical.
## Code
* Chris Palmer (https://github.com/PhnxRbrn)
* Aaron Power (https://github.com/Aaronepower)
## Translations

View file

@ -1,3 +1,6 @@
# Copyright (c) 2015 Aaron Power
# Use of this source code is governed by the MIT license that can be
# found in the LICENSE file.
[package]
name = "tokei"
version = "1.1.0"

View file

@ -1,3 +1,6 @@
# Copyright (c) 2015 Aaron Power
# Use of this source code is governed by the MIT license that can be
# found in the LICENSE file.
name: Tokei
version: 1.1
author: Aaron P. <theaaronepower@gmail.com>

View file

@ -1,3 +1,7 @@
// Copyright (c) 2015 Aaron Power
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
extern crate glob;
use std::fs;
@ -11,7 +15,7 @@ pub fn contains_comments(file: &str, comment: &str) -> bool {
} else {
None
}
}).collect::<Vec<&str>>();
let length = vector.len();
@ -56,7 +60,7 @@ pub fn get_all_files(path: String, ignored_directories: &Vec<String>) -> Vec<Str
'file: for entry in dir {
let entry = unwrap_rs_cont!(entry);
let file_path = entry.path();
let file_str = unwrap_opt_cont!(file_path.to_str());
let file_str = unwrap_opt_cont!(file_path.to_str());
let file_string = file_str.to_owned();
let path_metadata = unwrap_rs_cont!(metadata(file_str));
@ -80,7 +84,7 @@ pub fn get_all_files(path: String, ignored_directories: &Vec<String>) -> Vec<Str
let iter = match glob(&path) {
Ok(value) => value,
Err(err) => panic!("{:?}", err)
};
};
for path_buf in iter {
let file_path = unwrap_opt_cont!(unwrap_rs_cont!(path_buf).as_path().to_str()).to_owned();
files.push(file_path);

View file

@ -1,3 +1,7 @@
// Copyright (c) 2015 Aaron Power
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
use std::fmt;
pub struct Language<'a> {

View file

@ -1,3 +1,7 @@
// Copyright (c) 2015 Aaron Power
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#[inline(always)]
macro_rules! unwrap_opt_cont {
($option:expr) => {

View file

@ -1,3 +1,7 @@
// Copyright (c) 2015 Aaron Power
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#[macro_use]
extern crate clap;