-
Notifications
You must be signed in to change notification settings - Fork 9
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
PWR007: Suggest using implicit none (external)
#50
base: main
Are you sure you want to change the base?
Conversation
d919b8c
to
c48d94e
Compare
so it does not exceed 80 characters.
c48d94e
to
c44f8c5
Compare
> `implicit none (type, external)` to disable implicit typing and enable the | ||
> compiler to detect procedure calls through implicit interfaces. This approach |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think of:
> `implicit none (type, external)` to disable implicit typing and enable the | |
> compiler to detect procedure calls through implicit interfaces. This approach | |
> `implicit none (type, external)` to disable both implicit variables and | |
> implicit procedures, which are called through implicit interfaces. This approach |
To make it more specific as to what type of procedures are affected, as the external
attribute doesn't prevent all possible scenarios of calls through implicit interfaces.
paths-ignore: | ||
- 'Checks/**/*.md' | ||
- 'Glossary/**/*.md' | ||
- 'src/**' | ||
- 'static/**' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To prevent this check from "breaking" whenever the structure of the repo gets altered, what about checking directly for changes in source files? E.g.:
on:
push:
paths:
- 'Benchmark/
- '**.c'
- '**.cpp'
- '**.f90'
- '**.F'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I also agree with @alvrogd suggestions.
Suggest using the extended form
implicit none (type, external)
to avoid calling procedures through implicit interfaces. I also took the chance to adjust the benchmark script actions to trigger iff we change source code. And I also formatted one line in PWR007 so it does not exceed 80 characters 😁.