OTRSCodePolicy

Free

Static code analysis tool for OTRS, Znuny, and OTOBO to enforce coding standards.

OTRSCodePolicy is an essential tool for developers in the OTRS ecosystem (including Znuny and OTOBO). It is a command-line tool that performs static code analysis to ensure that extensions and customizations comply with official coding guidelines. The tool integrates Perl::Critic with an extensive set of custom rules specifically tailored to the architecture of these ticket systems. It not only checks Perl code but also validates package metadata (SOPM), XML configurations, JavaScript, and SQL statements for potential errors and security risks.

Features

  • Perl Code Analysis

    Analyzes Perl files using Perl::Critic and specific guidelines for OTRS/Znuny/OTOBO.

  • SOPM Validation

    Validates SOPM package description files for structure and completeness.

  • XML/SysConfig Check

    Checks XML configuration files (SysConfig) for syntax and best practices.

  • API Compliance

    Identifies the use of deprecated API functions and forbidden Perl commands.

Related packages