Findings
A finding is what Mortise works out from the files of an app. It is a problem or a warning. A problem breaks a rule or a check. A warning is under a limit the app set. Findings are not the runtime status: that is what the running app reports through the actuator.
Kinds of finding
Section titled “Kinds of finding”| Check | Severity | Raised when | Sentence |
|---|---|---|---|
| Rule: no circular use | Problem | Modules that are on use each other, directly or in a circle | “Checkout and Shipping use each other. 2 files in Checkout, 4 files in Shipping.” |
| Rule: Contracts and Events only | Problem | Files of a module read classes of another module outside its public folders | “3 files in Checkout read Modules\Billing\Models\Invoice directly. Billing offers Contracts and Events.” |
| Rule: allowed use | Problem | Files of a module with a list use a module that its list does not name | “2 files in Audit use Billing. mortise.json lets Audit use no module.” |
| Rule: allowed use | Warning | allowed-use names a module that the app does not have |
“mortise.json names Reports in allowed-use, and the app has no module of that name. Correct the name in mortise.json.” |
| Valid module.json | Problem | A module.json is not valid JSON |
“Modules/Loyalty/module.json is not valid JSON: unexpected end of file at line 14.” |
| Valid module.json | Problem | A module.json has no name |
“Modules/Loyalty/module.json has no name. The package needs one.” |
| Namespace | Problem | The namespace a module declares does not end in the name of its folder | “Blog declares the namespace Modules\Blogs. Its folder is Modules/Blog.” |
| Statuses file | Problem | The statuses file lists a module that has no folder | “modules_statuses.json lists Legacy, which has no folder.” |
| Coverage limit | Warning | A module that is not off is covered less than the limit of the app | “Notifications is 39% covered. The limit for shop-api is 50%.” |
| Translations | Warning | A locale of a module lacks keys or files that its other locales have | “Checkout: 4 keys in en are missing in fr.” |
Notes on each check:
- Rule: no circular use runs only while the rule is on. A circle is counted once, on the module with the fewest files in it, because that is the cheaper side to cut. The other modules of the circle show “Part of a circle counted on Checkout” on their Summary.
- Rule: … only runs only while the rule is on. Its name lists the public folders of the app, such as “Rule: Contracts and Events only”. With more than one class it reads “2 classes of Billing” instead of the class name.
- Rule: allowed use runs only while the rule is on and
mortise.jsonhas the keyrules.allowed-use. It checks the modules with a list. A module with a list names the modules it may use: “mortise.json lets History use Audit and Billing only.” Enter on the problem opens the Boundary of the module on that link. - Coverage limit runs only when the app has a coverage report. Without a report, coverage is unknown, which is not a finding.
The limit is 50% until it is changed in Settings > Apps > Coverage limit, or by
coverage.limitin mortise.json, which wins. - Translations comes from the report of
module:lang. It runs only after you run Check translations on the Actions tab. With two locales the sentence names both (“2 keys in en are missing in fr”). With more it names the locale only (“4 keys are missing in de”). Missing files are counted too (“1 key and 2 files in en are missing in fr”). - Statuses file is a finding of the app itself. It counts on no module.
The rules are set on the Boundary tab and kept in mortise.json.
Finding state of a module
Section titled “Finding state of a module”The finding state of a module is its worst finding: a problem with its count, a warning, or good. It shows as a solid mark on the index row, in the Findings column of the Summary table, and in the palette. A module that is off has no finding state. The rail raises a pip on an app with at least one problem; warnings raise none.
A waiting migration is work in progress. It is not a finding: it changes no mark and no count. It shows in the Findings list under To do, not counted as findings: “Checkout has 1 migration waiting.” The migration state comes from the package, through PHP.
Findings list
Section titled “Findings list”The list is a second view of the Summary of All modules. It opens from the Findings figure of the Summary, from Show all 3 findings, from F, and from the palette row “Findings in shop-api”. Back to Summary and Esc close it.


The title is “Findings in shop-api”. The rows stand in groups, each with its count:
- Problems
- Warnings
- To do, not counted as findings
| Column | Shows |
|---|---|
| Module | The code stamp of the module the finding counts on |
| Finding | The sentence of the finding |
| Check | The name of the check, such as “Rule: no circular use”, “Coverage limit” or “Migrations” |
| Enter opens | Where Enter goes |
| Finding | Enter opens |
|---|---|
| A circle | Boundary, on the link to the other module of the circle |
| Reads internals | Boundary, on the link to the module it reads |
| Translations | Actions, on Check translations of the module |
| A waiting migration | Actions, on Migrate of the module |
| Any other finding of a module | Summary of the module |
| A finding of the app itself | Nothing |
J and K move through the list.
Checks without a finding
Section titled “Checks without a finding”A box under the list, with the note “4 of 7 checks”. One line per check that ran and found nothing, with what it looked at:
| Check | Line | Looked at |
|---|---|---|
| Rule: no circular use | “No circular use” | “7 modules” |
| Rule: public surface | “Other modules use only a module’s public surface” | “7 modules” |
| Rule: allowed use | “A module uses only the modules of its list” | “3 modules”: the modules with a list |
| Valid module.json | “Every module.json is valid JSON” | “7 modules” |
| Namespace | “Declared namespace matches the folder” | “7 modules” |
| Statuses file | “No entry in modules_statuses.json without a module” | “7 entries” |
| Coverage limit | “Every module is covered 50% or more” | “7 modules” |
| Translations | “Translations are complete”, then module:lang |
“5 modules with lang files” |
An app with no finding says “No findings. 7 modules checked against 2 rules and 4 checks.”

