Skip to content

Credo plugin for allowing you to ignore checks based on a credo ignore file

License

Notifications You must be signed in to change notification settings

albert-io/credo-ignore-file-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

credo-ignore-file-plugin

This is a plugin for https://github.com/rrrene/credo. It allows you to ignore files from credo analysis by adding a .credoignore file to your project.

Installation

Add credo_ignore_file_plugin to your list of dependencies in mix.exs:

def deps do
  [
    {:credo_ignore_file_plugin, , "~> 0.1.0", only: [:dev, :test], runtime: false}
  ]
end

To use it in Credo, add it to the list of plugins in .credo.exs:

%{
  configs: [
    %{
      name: "default",
      plugins: [
        {CredoIgnoreFilePlugin, []}
      ]
    }
  ]
}

Now generate a .credoignore file in the root of your project:

mix credo list --format json > .credoignore

Now when you run mix credo it will ignore the checks listed in .credoignore.

Contributing

  1. Fork it!
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

Credo plugin for allowing you to ignore checks based on a credo ignore file

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages