Skip to content

Control over Fortran file extensions recognised by ModuleManager#3469

Open
mn416 wants to merge 4 commits into
masterfrom
mn416-fortran-file-exts
Open

Control over Fortran file extensions recognised by ModuleManager#3469
mn416 wants to merge 4 commits into
masterfrom
mn416-fortran-file-exts

Conversation

@mn416

@mn416 mn416 commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Basic stuff, but I started using PSyclone in a code base with .f95 files and wondered why imports were not getting resolved. Turns out that ModuleManager has a limited set of harded coded file extensions that doesn't include .f95 so this PR adds the ability to add/remove Fortran file extensions recognised by ModuleManager. It also abstracts out a commonly used "doesn't need preprocessing" check into a method, which makes the code a bit cleaner.

Edit: I believe these changes preserve existing behaviour exactly; they just introduce methods to allow modification of the default settings.

@codecov

codecov Bot commented Jun 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (bb44e5d) to head (a10202d).

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #3469   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          395       395           
  Lines        55199     55228   +29     
=========================================
+ Hits         55199     55228   +29     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant