Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flexible diagnostics configuration #422

Merged
merged 9 commits into from
Aug 29, 2021
Merged

Flexible diagnostics configuration #422

merged 9 commits into from
Aug 29, 2021

Conversation

soutaro
Copy link
Owner

@soutaro soutaro commented Aug 29, 2021

This PR adds a new diagnostics configuration via #configure_code_diagnostics method.

It yields a hash, and you can update the hash in the block. Or you can pass a hash to #merge! the configuration.

D = Steep::Diagnostic

target :app do
  configure_code_diagnostics do |hash|
    hash[D::Ruby::UnexpectedPositionalArgument] = :error
  end
end

target :test do
  configure_code_diagnostics D::Ruby.lenient
end
  • Implement new diagnostics configuration mechanics
  • Add default configurations
  • Fix output tests
  • Add option to CLI to configure the threshold to be reported as an error
  • Fix Steepfile template

@soutaro soutaro merged commit b3c65f0 into master Aug 29, 2021
@soutaro soutaro deleted the diagnostics-options branch August 29, 2021 14:28
@soutaro soutaro linked an issue Aug 29, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Diagnostics error level configuration
1 participant