Skip to content

Many improvements for `ProhibitUnusedVariable`

Compare
Choose a tag to compare
@Kuniwak Kuniwak released this 29 Jun 04:34
· 73 commits to master since this release
eff2e80

Change Log

This release is an alpha release because it includes huge changes. So, this release is recommended for only users who want to use new features. Feel free to report bugs if you find it.

New Features

  • Support --stdin-display-name and the mixed style of files and stdin (#278)

  • Support a new configuration comments such as vint: next-line -PolicyA (#275)

  • Support a new configuration option as the following for ProhibitUnusedVariable (#275)

    ---
    policies:
      ProhibitUnusedVariable:
        enabled: yes
        ignored_patterns:
          - '^_+$'
          - '^s:_vital_loaded$'
          - '^s:_vital_depends$'

Bugfixes

  • Fix false positives on lambdas of ProhibitUnusedVariable (#275)
  • Fix false positives on function references of ProhibitUnusedVariable (#275)
  • Fix false positives on curlynames of ProhibitUnusedVariable (#275)
  • Fix false positives on variadic arguments tokens of ProhibitUnusedVariable (#275)