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

Commented out code #260

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

Commented out code #260

Beliavsky opened this issue Jan 7, 2025 · 0 comments
Labels
rule A new rule for the linter

Comments

@Beliavsky
Copy link

Comment lines in source code should be explanatory and not be commented out code. (Many people do this, including me, but commented out code should not be in the final version of a code.) It would be nice if Fortitude could warn about commented out code. The rule could be to warn about comment lines that would be valid source code if the leading ! were removed.

An example of a code where many but not all of the comment lines are commented out code is

https://github.com/CQPES/Model-Zoo/blob/main/CH3CN-CC-2023/src/ch3cn_pipnn.f90

@ZedThree ZedThree added the rule A new rule for the linter label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rule A new rule for the linter
Projects
None yet
Development

No branches or pull requests

2 participants