pub fn from_config_files() -> Self {
        let conf_dir = dirs_next::config_dir()
            .and_then(Self::get_config)
            .unwrap_or_else(Self::default);

        let home_dir = dirs_next::home_dir()
            .and_then(Self::get_config)
            .unwrap_or_else(Self::default);

        let current_dir = env::current_dir()
            .ok()
            .and_then(Self::get_config)
            .unwrap_or_else(Self::default);

        #[allow(clippy::or_fun_call)]
        Config {
            columns: current_dir
                .columns
                .or(home_dir.columns.or(conf_dir.columns)),
            //languages: current_dir.languages.or(conf_dir.languages),
            treat_doc_strings_as_comments: current_dir.treat_doc_strings_as_comments.or(home_dir
                .treat_doc_strings_as_comments
                .or(conf_dir.treat_doc_strings_as_comments)),
            sort: current_dir.sort.or(home_dir.sort.or(conf_dir.sort)),
            types: current_dir.types.or(home_dir.types.or(conf_dir.types)),
            for_each_fn: current_dir
                .for_each_fn
                .or(home_dir.for_each_fn.or(conf_dir.for_each_fn)),
            no_ignore: current_dir
                .no_ignore
                .or(home_dir.no_ignore.or(conf_dir.no_ignore)),
            no_ignore_parent: current_dir
                .no_ignore_parent
                .or(home_dir.no_ignore_parent.or(conf_dir.no_ignore_parent)),
            no_ignore_dot: current_dir
                .no_ignore_dot
                .or(home_dir.no_ignore_dot.or(conf_dir.no_ignore_dot)),
            no_ignore_vcs: current_dir
                .no_ignore_vcs
                .or(home_dir.no_ignore_vcs.or(conf_dir.no_ignore_vcs)),
            ..Self::default()
        }
    }
/// Creates a `Config` from three configuration files if they are available.
/// Files can have two different names `tokei.toml` and `.tokeirc`.
/// Firstly it will attempt to find a config in the configuration directory
/// (see below), secondly from the home directory, `$HOME/`,
/// and thirdly from the current directory, `./`.
/// The current directory's configuration will take priority over the configuration
/// directory.
///
/// |Platform | Value | Example |
/// | ------- | ----- | ------- |
/// | Linux   | `$XDG_DATA_HOME` or `$HOME`/.local/share | /home/alice/.local/share |
/// | macOS   | `$HOME`/Library/Application Support | /Users/Alice/Library/Application Support |
/// | Windows | `{FOLDERID_RoamingAppData}` | C:\Users\Alice\AppData\Roaming |
///
/// # Example
/// ```toml
/// columns = 80
/// types = ["Python"]
/// treat_doc_strings_as_comments = true
// ///
// /// [[languages.Python]]
// /// extensions = ["py3"]
/// ```
Creates a `Config` from three configuration files if they are available.
Files can have two different names `tokei.toml` and `.tokeirc`.
Firstly it will attempt to find a config in the configuration directory
, secondly from the home directory, `$HOME/`,
and thirdly from the current directory, `./`.
The current directory's configuration will take priority over the configuration
directory.


Creates a ` Config ` from three configuration files if they are available . Files can have two different names ` tokei . toml ` and ` . tokeirc ` . Firstly it will attempt to find a config in the configuration directory secondly from the home directory ` $HOME / ` and thirdly from the current directory ` . / ` . The current directory ' s configuration will take priority over the configuration directory .
pub fn from_config_files() -> Self {
        let conf_dir = dirs_next::config_dir()
            .and_then(Self::get_config)
            .unwrap_or_else(Self::default);
        let home_dir = dirs_next::home_dir()
            .and_then(Self::get_config)
            .unwrap_or_else(Self::default);
        let current_dir = env::current_dir()
            .ok()
            .and_then(Self::get_config)
            .unwrap_or_else(Self::default);
        #[allow(clippy::or_fun_call)]
        Config {
            columns: current_dir
                .columns
                .or(home_dir.columns.or(conf_dir.columns)),
            //languages: current_dir.languages.or(conf_dir.languages),
            treat_doc_strings_as_comments: current_dir.treat_doc_strings_as_comments.or(home_dir
                .treat_doc_strings_as_comments
                .or(conf_dir.treat_doc_strings_as_comments)),
            sort: current_dir.sort.or(home_dir.sort.or(conf_dir.sort)),
            types: current_dir.types.or(home_dir.types.or(conf_dir.types)),
            for_each_fn: current_dir
                .for_each_fn
                .or(home_dir.for_each_fn.or(conf_dir.for_each_fn)),
            no_ignore: current_dir
                .no_ignore
                .or(home_dir.no_ignore.or(conf_dir.no_ignore)),
            no_ignore_parent: current_dir
                .no_ignore_parent
                .or(home_dir.no_ignore_parent.or(conf_dir.no_ignore_parent)),
            no_ignore_dot: current_dir
                .no_ignore_dot
                .or(home_dir.no_ignore_dot.or(conf_dir.no_ignore_dot)),
            no_ignore_vcs: current_dir
                .no_ignore_vcs
                .or(home_dir.no_ignore_vcs.or(conf_dir.no_ignore_vcs)),
            ..Self::default()
        }
    }
pub fn from_config_files ( ) -> Self { let conf_dir = dirs_next :: config_dir ( ) . and_then ( Self :: get_config ) . unwrap_or_else ( Self :: default ) ; let home_dir = dirs_next :: home_dir ( ) . and_then ( Self :: get_config ) . unwrap_or_else ( Self :: default ) ; let current_dir = env :: current_dir ( ) . ok ( ) . and_then ( Self :: get_config ) . unwrap_or_else ( Self :: default ) ; # [ allow ( clippy or_fun_call ) ] Config { columns : current_dir . columns . or ( home_dir . columns . or ( conf_dir . columns ) ) , //languages: current_dir.languages.or(conf_dir.languages), treat_doc_strings_as_comments : current_dir . treat_doc_strings_as_comments . or ( home_dir . treat_doc_strings_as_comments . or ( conf_dir . treat_doc_strings_as_comments ) ) , sort : current_dir . sort . or ( home_dir . sort . or ( conf_dir . sort ) ) , types : current_dir . types . or ( home_dir . types . or ( conf_dir . types ) ) , for_each_fn : current_dir . for_each_fn . or ( home_dir . for_each_fn . or ( conf_dir . for_each_fn ) ) , no_ignore : current_dir . no_ignore . or ( home_dir . no_ignore . or ( conf_dir . no_ignore ) ) , no_ignore_parent : current_dir . no_ignore_parent . or ( home_dir . no_ignore_parent . or ( conf_dir . no_ignore_parent ) ) , no_ignore_dot : current_dir . no_ignore_dot . or ( home_dir . no_ignore_dot . or ( conf_dir . no_ignore_dot ) ) , no_ignore_vcs : current_dir . no_ignore_vcs . or ( home_dir . no_ignore_vcs . or ( conf_dir . no_ignore_vcs ) ) , .. Self :: default ( ) } }
Creates a `Config` from three configuration files if they are available.
Creates a ` Config ` from three configuration files if they are available .
example
```toml
columns = 80
types = ["Python"]
treat_doc_strings_as_comments = true

[[languages.Python]]
extensions = ["py3"]
```
` ` ` toml columns = 80 types = [ " Python " ] treat_doc_strings_as_comments = true [[ languages . Python ]] extensions = [ " py3 " ] ` ` `