Changes for version 0.03

  • Refactored make_problem into new_problem and added support for passing config + directive instead of just a severity. new_problem will discover the caller and get the severity from there
  • Added INFO and CRITICAL levels to possible severities
  • Added [Variable] checks with checks for matches-name, arrays-in-plural and hashes-in-singular
  • Improved processing of $line argument to make_problem function
  • Refactored some code to follow my own guidelines
  • Renamed 'disallow-fully-qualified-names' to 'no-fully-qualified-names' in [Subroutine] checks
  • Added 'no-calling-with-ampersand' check to [Subroutine] checks
  • Fixed doc typos in [Subroutine] for max-length and disallow-fully-qualified-name
  • Added check in [Whitespace] for whitespace after control-flow keyword in compound statements
  • Fixed debug typo when creating M::S object
  • Improved test coverage
  • Added missing 'use strict' in lib/Module/Checkstyle/Check.pm
  • Flipped changelog order
  • Added .svn to list of files/directories to ignore
  • Made configuration example follow perlstyle for subroutine names (reported by jonasbn)
  • Corrected t/00-base.t to handle ignore_common test correctly for non CVS checkouts of M::C
  • Fixed an issue where M::C tries to figure out if a file is parsable by looking at the shebang and it happens to be undefined which generates a warning.
  • Added missing dependency (Module::Pluggable) to Makefile.PL (reported by jonasbn)

Documentation

Check that your code keeps style

Modules

Validate that your code confirms to coding guidelines
Base class for checks
Handles 'package' declarations
Checks length, naming etc. of named subroutines
Checks variable declarations
Make sure whitespace is at correct places
Handles configuration directives
Represents a checkstyle violation
Convenient functions for checks