Skip to content

Credo check to check function calls that violate context boundaries.

Notifications You must be signed in to change notification settings

Eptis/credo_context_violation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ContextViolation

This is super alpha, it is the result of 2 hours of hacking and missing tests and configuration parameters and probably doesn't cover all the edge cases.

Credo check to check if function calls are made into a context and bypass the root modules public API. Example: Post.publish/2 calling a function on Account.User, which should go through Account.

Installation

The package can be installed by adding credo_context_violation to your list of dependencies in mix.exs:

def deps do
  [
    {:credo_context_violation, "~> 0.1.0", runtime: false}
  ]
end

Then include it in .credo.exs:

  {CredoContextViolation, []}

About

Credo check to check function calls that violate context boundaries.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages