Sha256: c6733c877d209bc121c3e2932812b5e58ad0ec1024abac565376d986a6782f70
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
Feature: Exclude directives In order to have a more fine-grained control over what Reek reports As a user I want to be able to exclude specific contexts from reporting Scenario: Exclude multiple contexts Given a file named "config.reek" with: """ --- UncommunicativeMethodName: exclude: - "Smelly#x" UnusedPrivateMethod: enabled: true exclude: - "Smelly#foobar" """ And a file named "smelly.rb" with: """ class Smelly # Should report IrresponsibleModule def foo(arg); end # Should report UnusedParameter def x; end # Should not report UncommunicativeMethodName private def foobar; end # Should not report UnusedPrivateMethod end """ When I run reek -c config.reek smelly.rb Then it reports: """ smelly.rb -- 2 warnings: [1]:IrresponsibleModule: Smelly has no descriptive comment [3]:UnusedParameters: Smelly#foo has unused parameter 'arg' """
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
reek-4.8.2 | features/configuration_files/exclude_directives.feature |