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

Allow global config file #136

Open
chipco opened this issue May 8, 2020 · 2 comments
Open

Allow global config file #136

chipco opened this issue May 8, 2020 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@chipco
Copy link

chipco commented May 8, 2020

I want to use a global config file, outside the project folder.

The documentation suggest that prefer_beautifier_config can be used to provide a path, but it's not taken into account. The function resolveConfig only looks between file and project path.

I changed finishPath: "/", but maybe you can find a better solution to use a path provided in unibeautify config.

@Glavin001
Copy link
Member

Would passing the path to the desired global config file work for you? https://unibeautify.com/docs/options-for-beautifiers#config-file-path

---
PHP:
  beautifiers:
  - PHP-CS-Fixer
  PHP-CS-Fixer:
-   prefer_beautifier_config: true
+   prefer_beautifier_config: "path/to/beautifier/config/file" # <-- Change true to config file absolute path

@Glavin001 Glavin001 added the question Further information is requested label May 9, 2020
@Glavin001 Glavin001 self-assigned this May 9, 2020
@chipco
Copy link
Author

chipco commented May 10, 2020

Yes that would be a good solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants