Coding Standard Compliance

A common way to improve the consistency, maintainability, and overall quality of code is to assess the code against industry- or company-defined standards so that deficiencies can be quickly identified and corrected. While this is often achieved through manual peer reviews, the process can be painful and time-consuming, especially in large projects. If your team is struggling to maintain code quality and consistency, it might be time to take a more rigorous approach.

For many companies, coding standards compliance usually starts either with guidelines and rules developed in-house or with widely accepted rules from standards such as MISRA or CERT. Often in-house rules are combined with industry-standard rules to form a corporate standard that is appropriate for the needs of the organisation.

See Which Tools Are Right For Me? for help choosing your customised tool suite.

Coding Standards Compliance Tools from LDRA
  • LDRA Testbed/TBvision is the static analysis engine and code visualisation capability that helps enforce compliance with coding standards and clearly indicates software flaws that might otherwise pass through the standard build and test process
  • LDRArules is a cost-effective, stand-alone rules checker that doesn’t require investment in the complete tool chain
LDRA automates static analysis and rules checking with tools that support almost any standard—or standards—you define

With LDRA’s code visualisation, you can identify exactly where the source code deviates from the standard so it can be rapidly addressed. While many rules checking tools are created equally (because they’re based on the same commercial third-party parsing engine), LDRA’s standards compliance tools offer significant advantages. We have complete control over our parsing technology, which means we can quickly adapt to variations in languages and language constructs. And with our long involvement in standards organisations such as MISRA, we’re able to respond rapidly with updated rules checking as new standards are released.

Our coding standards compliance tools let you combine standards and define appropriate rule subsets, select individual rules, and add your own. Within the tool, you can easily check for coding standards compliance to any single standard or combination of standards or subsets. And you can check compliance of a single code base against multiple standards to compare how the code fulfills each one and see what would be required to adapt the code to conform to it.

software coding standards aerospace