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

[FEATURE] add .cmake-format config file and use cmake-format please #38

Open
ClausKlein opened this issue Apr 3, 2022 · 1 comment
Open
Assignees
Labels
acknowledged The issue is being worked on enhancement New feature or request

Comments

@ClausKlein
Copy link

Is your feature request related to a problem? Please describe.
IMHO: A template project with cmake files should be clean of cmake-lint problems

Describe the solution you'd like
Add a .cmake-format config file to your project root:

format:
  dangle_parens: true
  keyword_case: upper
  line_ending: unix
  line_width: 120
  max_lines_hwrap: 3
  max_pargs_hwrap: 8
  max_rows_cmdline: 3
  max_subgroups_hwrap: 4
  min_prefix_chars: 8
  separate_ctrl_name_with_space: false
  separate_fn_name_with_space: false
  tab_size: 2

markup:
  bullet_char: '*'
  enum_char: .
  enable_markup: false

Provide usage examples

  • cmake-format -i cmake/*.cmake
  • cmake-lint cmake/*.cmake

Additional context
you may also use this:
https://github.com/TheLartians/Format.cmake#how-to-integrate

@ClausKlein ClausKlein added the enhancement New feature or request label Apr 3, 2022
@ClausKlein ClausKlein changed the title [FEATURE] add .cmake-formt config file and use cmake-format [FEATURE] add .cmake-format config file and use cmake-format please Apr 3, 2022
@filipdutescu filipdutescu self-assigned this May 17, 2022
@filipdutescu filipdutescu added the acknowledged The issue is being worked on label May 17, 2022
@filipdutescu
Copy link
Owner

Hello, you are perfectly right, thanks for providing me with a template and guidance on how to implement this! I really like the idea and will work on integrating it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
acknowledged The issue is being worked on enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants