Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source files should have one module or a main program #257

Open
Beliavsky opened this issue Jan 2, 2025 · 0 comments
Open

Source files should have one module or a main program #257

Beliavsky opened this issue Jan 2, 2025 · 0 comments

Comments

@Beliavsky
Copy link

For a code such as

module foo
implicit none
end module foo

module bar
implicit none
end module bar

implicit none
print*,"hi"
end

I suggest that Fortitude warn that there are multiple modules defined in a single source file and that the source file has both a module and a main program. It could also warn that the modules are empty and not used in the program.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant