scilintr is a collection of static analysis tools for examining scientific code and reports. It focuses on programming patterns that may conceal scientific assumptions, introduce analytical errors or make research results difficult to reproduce.
Unlike conventional linters, which concentrate on coding style and common programming mistakes, scilintr examines constructs that can affect the interpretation of scientific analyses. These include silent error handling, hidden default values, label leakage during data selection and numerical adjustments that may change reported results.
The R linter provides a collection of specialised rules for examining scientific scripts and projects. For example, it can flag error handlers that quietly substitute missing values, unexplained numerical thresholds and operations that risk mixing information from different stages of an analysis.
Some checks operate across multiple files. These can identify situations involving overwritten sourced functions, changes to definitions and other relationships that are difficult to detect by examining individual expressions in isolation.
An important part of scilintr is its structured waiver mechanism. Scientific code sometimes contains deliberate choices that resemble suspicious patterns. Developers can document accepted findings using ANALYSIS_OK comments that identify the relevant category and provide a justification.
This approach creates a reviewable record of decisions rather than simply suppressing warnings without explanation. It also accommodates workflows in which automated coding agents or human reviewers examine findings and decide whether the code should be modified.
The project includes separate tools for R and Python analysis code. A companion report linter examines LaTeX and HTML documents for issues such as numerical discrepancies, unsupported numerical claims and inconsistencies between reports and registered analysis outputs.
The tools can be used through command-line interfaces or their respective programming interfaces, making them suitable for reproducibility checks and automated analysis workflows.
This is free and open source software.
Key Features
- Static analysis focused on scientific programming practices.
- Detects silent error handling and questionable default values.
- Flags label leakage and potentially misleading numerical adjustments.
- Checks scientific code for problematic data handling and analysis patterns.
- Includes checks that examine relationships across multiple source files.
- Structured ANALYSIS_OK waivers for documenting accepted findings.
- Supports project-wide analysis and command-line checking.
- Separate linters for R and Python scientific code.
- Companion checks for scientific reports in LaTeX and HTML.
- Can identify inconsistencies between registered analysis outputs and written reports.
- Cross-platform support – runs on Linux, macOS, and Windows.
Website: github.com/arjunrajlaboratory/scilintr
Support:
Developer: Arjun Raj Laboratory
License: MIT License
scilintr is written in Python and R. Learn Python with our recommended free books and free tutorials. Learn R with our recommended free books and free tutorials.
Related Software
| R Linters | |
|---|---|
| lintr | Provides static code analysis for R |
| jarl | Fast linter for R |
| flir | Parse and rewrite R code |
| flowR | Sophisticated, static dataflow analyzer |
| checkglobals | R package that performs static analysis of R source code dependencies |
| scilintr | Collection of scientific linting tools |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.