fprettify icon indicating copy to clipboard operation
fprettify copied to clipboard

config file example

Open alsimoneau opened this issue 2 years ago • 4 comments

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!

alsimoneau avatar Dec 12 '22 18:12 alsimoneau

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

vickysharma0812 avatar Dec 16 '22 16:12 vickysharma0812

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

gnikit avatar Jan 23 '23 14:01 gnikit

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

brunotessaro avatar Mar 24 '23 10:03 brunotessaro

@Bruno

One of the discussion on fortran-lang provided an example of application of a fprettify config file - possibly equally suitable for you as reference:

https://fortran-lang.discourse.group/t/fprettify-patrick-seewald-seeks-collaborator/4199/10

nbehrnd avatar Mar 24 '23 11:03 nbehrnd