Skip to content

Commit ba4247e

Browse files
authored
ci: upgrade super-linter (#1690)
* ci: upgrade super -linter * fix * more fixes
1 parent 876ac5d commit ba4247e

File tree

12 files changed

+25
-25
lines changed

12 files changed

+25
-25
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Lint
22

33
on:
4-
- push
5-
- pull_request
4+
push:
5+
pull_request:
66

77
jobs:
88
build:
@@ -16,7 +16,7 @@ jobs:
1616
fetch-depth: 0
1717

1818
- name: Lint
19-
uses: github/super-linter@v3.17.0
19+
uses: github/super-linter/slim@v4
2020
env:
2121
VALIDATE_ALL_CODEBASE: false
2222
VALIDATE_EDITORCONFIG: false

core/controllers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class CreateBookPublication extends AbstractController
6060
}
6161
```
6262

63-
This custom operation behaves exactly like the built-in operation: it returns a JSON-LD document corresponding to the id
63+
This custom operation behaves exactly like the built-in operation: it returns a JSON-LD document corresponding to the ID
6464
passed in the URL.
6565

6666
Here we consider that [autowiring](https://symfony.com/doc/current/service_container/autowiring.html) is enabled for

core/filters.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,7 @@ App\Entity\Tweet:
951951

952952
[/codeSelector]
953953

954-
Given that the collection endpoint is `/tweets`, you can filter tweets by id and date in ascending or descending order:
954+
Given that the collection endpoint is `/tweets`, you can filter tweets by ID and date in ascending or descending order:
955955
`/tweets?order[id]=asc&order[date]=desc`.
956956

957957
By default, whenever the query does not specify the direction explicitly (e.g: `/tweets?order[id]&order[date]`), filters
@@ -1173,8 +1173,8 @@ to retrieve items, [extensions](extensions.md) are the way to go.
11731173
A Doctrine ORM filter is basically a class implementing the `ApiPlatform\Doctrine\Orm\Filter\FilterInterface`.
11741174
API Platform includes a convenient abstract class implementing this interface and providing utility methods: `ApiPlatform\Doctrine\Orm\Filter\AbstractFilter`.
11751175

1176-
In the following example, we create a class to filter a collection by applying a regexp to a property. The `REGEXP` DQL
1177-
function used in this example can be found in the [`DoctrineExtensions`](https://github.com/beberlei/DoctrineExtensions)
1176+
In the following example, we create a class to filter a collection by applying a regular expression to a property.
1177+
The `REGEXP` DQL function used in this example can be found in the [`DoctrineExtensions`](https://github.com/beberlei/DoctrineExtensions)
11781178
library. This library must be properly installed and registered to use this example (works only with MySQL).
11791179

11801180
```php
@@ -1518,7 +1518,7 @@ final class UserFilter extends SQLFilter
15181518
// Don't worry, getParameter automatically escapes parameters
15191519
$userId = $this->getParameter('id');
15201520
} catch (\InvalidArgumentException $e) {
1521-
// No user id has been defined
1521+
// No user ID has been defined
15221522
return '';
15231523
}
15241524

core/graphql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ The `mercureUrl` field is the Mercure URL you need to use to [subscribe to the u
596596

597597
### Receiving an Update
598598

599-
On the client side, you will receive the pushed updated data like you would receive the updated data if you did an `update` mutation.
599+
On the client-side, you will receive the pushed updated data like you would receive the updated data if you did an `update` mutation.
600600

601601
For instance, you could receive a JSON payload like this:
602602

core/mercure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ In addition to `private`, the following options are available:
9797

9898
* `topics`: the list of topics of this update, if not the resource IRI is used
9999
* `data`: the content of this update, if not set the content will be the serialization of the resource using the default format
100-
* `id`: the SSE id of this event, if not set the ID will be generated by the Mercure Hub
100+
* `id`: the SSE ID of this event, if not set the ID will be generated by the Mercure Hub
101101
* `type`: the SSE type of this event, if not set this field is omitted
102102
* `retry`: the `retry` field of the SSE, if not set this field is omitted
103103
* `normalization_context`: the specific normalization context to use for the update.

core/openapi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ api_platform:
590590
# To enable or disable OAuth.
591591
enabled: false
592592
593-
# The OAuth client id.
593+
# The OAuth client ID.
594594
clientId: ''
595595
596596
# The OAuth client secret.

core/performance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ To configure Blackfire.io follow these simple steps:
368368
- BLACKFIRE_DISABLE_LEGACY_PORT=1
369369
```
370370

371-
2. Add your Blackfire.io id and server token to your `.env` file at the root of your project (be sure not to commit this to a public repository):
371+
2. Add your Blackfire.io ID and server token to your `.env` file at the root of your project (be sure not to commit this to a public repository):
372372

373373
```shell
374374
BLACKFIRE_SERVER_ID=xxxxxxxxxx

create-client/nextjs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
![List screenshot](images/nextjs/create-client-nextjs-list.png)
44

5-
The Next.js generator scaffolds components for Server Side Rendered applications using [Next.js](https://nextjs.org/).
5+
The Next.js generator scaffolds components for server-side rendered (SSR) applications using [Next.js](https://nextjs.org/).
66

77
## Install
88

create-client/nuxtjs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Nuxt.js Generator
22

3-
The Nuxt.js generator scaffolds components for Server Side Rendered applications using [Nuxt.js](https://nuxtjs.org/) and [Vuetify](https://vuetifyjs.com/).
3+
The Nuxt.js generator scaffolds components for server-side rendered (SSR) applications using [Nuxt.js](https://nuxtjs.org/) and [Vuetify](https://vuetifyjs.com/).
44

55
## Install
66

distribution/index.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ allows to easily write functional tests and has good team collaboration features
235235
Your API Platform project is now 100% functional. Let's expose our own data model.
236236
Our bookshop API will start simple. It will be composed of a `Book` resource type and a `Review` one.
237237

238-
Books have an id, an ISBN, a title, a description, an author, a publication date and are related to a list of reviews.
239-
Reviews have an id, a rating (between 0 and 5), a body, an author, a publication date and are related to one book.
238+
Books have an ID, an ISBN, a title, a description, an author, a publication date and are related to a list of reviews.
239+
Reviews have an ID, a rating (between 0 and 5), a body, an author, a publication date and are related to one book.
240240

241241
Let's describe this data model as a set of Plain Old PHP Objects (POPO):
242242

@@ -252,7 +252,7 @@ use Doctrine\Common\Collections\ArrayCollection;
252252
#[ApiResource]
253253
class Book
254254
{
255-
/** The id of this book. */
255+
/** The ID of this book. */
256256
private ?int $id = null;
257257

258258
/** The ISBN of this book (or null if doesn't have one). */
@@ -296,7 +296,7 @@ use ApiPlatform\Metadata\ApiResource;
296296
#[ApiResource]
297297
class Review
298298
{
299-
/** The id of this review. */
299+
/** The ID of this review. */
300300
private ?int $id = null;
301301

302302
/** The rating of this review (between 0 and 5). */
@@ -335,7 +335,7 @@ Note that entities' and properties' descriptions in the API documentation, and t
335335

336336
The framework also use these metadata to serialize and deserialize data from JSON (and other formats) to PHP objects (back and forth)!
337337

338-
For the sake of simplicity, in this example we used public properties (except for the id, see below). API Platform (as well
338+
For the sake of simplicity, in this example we used public properties (except for the ID, see below). API Platform (as well
339339
as Symfony and Doctrine) also supports accessor methods (getters/setters), use them if you want to.
340340
We used a private property and a getter for the ID to enforce the fact that it is read only (we will let the DBMS generating it). API Platform also has first-grade support for UUIDs. [You should
341341
probably use them instead of auto-incremented IDs](https://www.clever-cloud.com/blog/engineering/2015/05/20/why-auto-increment-is-a-terrible-idea/).
@@ -372,7 +372,7 @@ Modify these files as described in these patches:
372372
#[ApiResource]
373373
class Book
374374
{
375-
/** The id of this book. */
375+
/** The ID of this book. */
376376
+ #[ORM\Id, ORM\Column, ORM\GeneratedValue]
377377
private ?int $id = null;
378378

@@ -416,7 +416,7 @@ Modify these files as described in these patches:
416416
#[ApiResource]
417417
class Review
418418
{
419-
/** The id of this review. */
419+
/** The ID of this review. */
420420
+ #[ORM\Id, ORM\Column, ORM\GeneratedValue]
421421
private ?int $id = null;
422422

0 commit comments

Comments
 (0)