-
Notifications
You must be signed in to change notification settings - Fork 99
Adding fortitude rules2 #539
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
base: main
Are you sure you want to change the base?
Changes from all commits
3ebb3f4
7a6a717
b380978
1f2d5e5
f17179e
401c90e
76cf897
8d7dcb7
8d928bf
eaea42b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,20 +8,16 @@ | |
|
|
||
| file-extensions= ["f90", "F90", "X90", "x90", "pf"] #check these file types | ||
|
|
||
| select = ["E000", "C001", "C021", "C022", "C031", "C032", "C043", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similar to comment made about the C043 removal in |
||
| "C051", "C061", "C071", "C072", "C081", "C091", "C082", "C092", | ||
| select = ["E000", "C001", "C021", "C022", | ||
| "C061", "C071", "C072", "C081", "C091", "C092", | ||
| "C132", "C141", "OB011", "OB021", "OB051", "OB061", "MOD001", "MOD021", | ||
| "S101", "S071", "PORT011", "PORT012", "PORT021", "FORT001", | ||
| "FORT002", "FORT003", "FORT004", "FORT005"] | ||
|
|
||
|
|
||
| output-format = "grouped" #group results by file | ||
|
|
||
| [check.per-file-ignores] | ||
|
|
||
| "galewsky_test_case_mod.F90" = ["MOD021"] | ||
|
|
||
|
|
||
| # Leaving out for now (these rules are used in the universal config): | ||
| # E001, C121 | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,8 +8,8 @@ | |
|
|
||
| file-extensions= ["f90", "F90", "X90", "x90", "pf"] #check these file types | ||
|
|
||
| select = ["E000", "C001", "C021", "C022", "C031", "C032", "C043", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similar to comment made about the C043 removal in |
||
| "C051", "C061", "C071", "C072", "C091", "C082", "C092", | ||
| select = ["E000", "C001", "C021", "C022", | ||
| "C061", "C071", "C072", "C091", "C092", | ||
| "C132", "C141", "OB011", "OB021", "OB051", "OB061", "MOD001", "MOD021", | ||
| "S101", "S071", "PORT011", "PORT012", "PORT021", "FORT001", | ||
| "FORT002", "FORT003", "FORT004", "FORT005"] | ||
|
|
@@ -18,8 +18,6 @@ output-format = "grouped" #group results by file | |
|
|
||
| [check.per-file-ignores] | ||
|
|
||
| "jedi_lfric_linear_modeldb_driver_mod.f90" = ["S101"] | ||
| "atlas_field_interface_mod.F90" = ["S101"] | ||
| "jedi_lfric_field_meta_mod.f90" = ["C061"] | ||
| "jedi_lfric_wind_fields_mod.f90" = ["C061"] | ||
| "atlas_field_interface_test.pf" = ["C021"] | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,9 +8,9 @@ | |
|
|
||
| file-extensions= ["f90", "F90", "X90", "x90", "pf"] #check these file types | ||
|
|
||
| select = ["E000", "C001", "C031", "C032", "C043", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similar to comment made about the C043 removal in |
||
| "C051", "C071", "C072", "C091", "C082", "C092", | ||
| "C132", "C141", "OB011", "OB021", "OB051", "OB061", "MOD001", "MOD021", | ||
| select = ["E000", "S101", "C001", | ||
| "C071", "C072", "C091", "C092", | ||
| "C132", "C141", "S071", "OB011", "OB021", "OB051", "OB061", "MOD001", "MOD021", | ||
| "PORT011", "PORT012", "PORT021", "FORT001", | ||
| "FORT002", "FORT003", "FORT004", "FORT005"] | ||
|
|
||
|
|
@@ -23,9 +23,8 @@ output-format = "grouped" #group results by file | |
| "fastjx_inphot_mod.f90" = ["C072"] | ||
| "umprintmgr.f90" = ["C072", "C132"] | ||
| "ukca_photol_param_mod.f90" = ["C072", "C132"] | ||
| "psykal_lite_phys_mod.F90" = ["C132", "MOD021"] | ||
| "um_sizes_init_mod.f90" = ["MOD021"] | ||
| "psykal_lite_phys_mod.F90" = ["C132"] | ||
|
|
||
| # Leaving out for now (these rules are used in the universal config): | ||
| # S101, C081, C021, C022, C061, S071, E001, C121 | ||
| # C081, C021, C022, C061, E001, C121 | ||
|
|
||
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.
I'm wondering if removing C043 is a good idea unless I have missed a good technical reason to do so. Doesn't it make more sense to specify the intent of an I/O function to the compiler as to give it more information and avoid dynamic allocation at runtime?
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.
C043 is removed alongside C031, C032, C051, C082 (see description above) because they are all preview rules and not being used yet, but producing warnings. They'll be re-added with another ticket with the move to the latest fortitude version.
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.
I'm happy this makes sense as it would me more useful for the rules to fail loudly in production.