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

config file example #142

Open
alsimoneau opened this issue Dec 12, 2022 · 4 comments
Open

config file example #142

alsimoneau opened this issue Dec 12, 2022 · 4 comments

Comments

@alsimoneau
Copy link

Could an example config file be provided? I can't seem to be able to format it properly to support the CASE argument.

Thank you for your work!

@vickysharma0812
Copy link

vickysharma0812 commented Dec 16, 2022

I use following config file: Please let me know if you need more information.

case = [2,2,2,2]
line-length = 78
indent = 2
disable-indent = false
strict-indent = true
whitespace = 2
whitespace-comma = true
whitespace-assignment = true
enable-decl = true
whitespace-decl = true
whitespace-relational = true
whitespace-logical = true
whitespace-multdiv = true
whitespace-print = true
whitespace-type = false
whitespace-intrinsics = true

@gnikit
Copy link
Member

gnikit commented Jan 23, 2023

fprettify uses ConfigArgParse for its command line interface. Have a look at their examples for an intro to the config files

@brunotessaro
Copy link

Can you tell me where should I put such config file so that fprettify use the specified configurations upon call?

@nbehrnd
Copy link

nbehrnd commented Mar 24, 2023 via email

nbehrnd added a commit to nbehrnd/fprettify that referenced this issue Mar 27, 2023
There has been the request for an example how to set up and use
a configuration file.[1]  The documentation now includes both a
minimal example, as well as points to an example in a larger
project.

[1] fortran-lang#142

Signed-off-by: Norwid Behrnd <nbehrnd@yahoo.com>
nbehrnd added a commit to nbehrnd/fprettify that referenced this issue Mar 28, 2023
There has been the request for an example how to set up and use
a configuration file.[1] The documentation now includes both a
minimal example, as well as points to an example in a larger
project.

[1] fortran-lang#142

Signed-off-by: Norwid Behrnd <nbehrnd@yahoo.com>
nbehrnd added a commit to nbehrnd/fprettify that referenced this issue Mar 31, 2023
There was the request to display the use a configuration file.[1]
The documentation now includes a minimal example and indicates
an example in a larger project.

[1] fortran-lang#142

Signed-off-by: Norwid Behrnd <nbehrnd@yahoo.com>
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

5 participants