Skip to content

Conversation

@lucasmichot
Copy link
Contributor

@lucasmichot lucasmichot commented Feb 17, 2020

Why?

Why are you making this change?

We want to add many small improvements to this project.


How?

Technical details on your change

See comments in code for the detailed changes

steps:
- checkout
- run: composer install --no-interaction
- run: composer install --no-interaction --no-suggest --prefer-dist
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer dist, and no need to display suggested packages.

@@ -1,2 +1,2 @@
exclude_paths:
- test/*
- test/*
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Respect .editorconfig file

@@ -0,0 +1,15 @@
root = true

[*]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a standard .editorconfig file.

/.codeclimate.yml export-ignore
* text=auto

/.circleci export-ignore
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sort folders, hidden files and files that don't need to be exported.


# PhpStorm
.idea
/.idea
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Properly prefix folders and un-prefix files

/.idea

# Composer
/vendor
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, sort folders, then hidden files, the files

"name": "intercom/intercom-php",
"description": "Intercom API client built on top of Guzzle 6",
"keywords": ["intercom", "intercom.io", "api", "guzzle"],
"keywords": [
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Format and sort keywords

{
"name": "Intercom Platform Team",
"homepage": "http://intercom.io"
"homepage": "https://www.intercom.com"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update homepage

"homepage": "https://www.intercom.com"
}
],
"support": {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add support section

"autoload": {
"psr-4": {
"Intercom\\": ["src"]
"Intercom\\": [
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Default composer formatting

"php": ">= 7.1",
"ext-json": "*",
"php-http/httplug": "^1.0 || ^2.0",
"php-http/client-common": "^1.9 || ^2.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sort packages

convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
stopOnFailure="false"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formatting

Copy link
Contributor

@GabrielAnca GabrielAnca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you for taking care of this!

@GabrielAnca GabrielAnca merged commit 6d40169 into intercom:master Feb 18, 2020
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

Successfully merging this pull request may close these issues.

2 participants