Skip to content

chore: Address all linter issues in new API for consistency and docs #3136

Closed

Description

@jpadams
yarn add graphql 
yarn add docusaurus-graphql-plugin (for docs generation)
yarn add graphql-schema-linter

from website directory on cloak branch (after merge of #3135)

npx graphql-schema-linter ../api/*.gql

yields

/Users/jeremyadams/src/dagger-fork/api/container.gql
1:1    A `PageInfo` object type is required as per the Relay spec.                                                                                                                                                                                                                                                                                                                                                                       relay-page-info-spec                     
6:15   The `id` argument of `container` is missing a description.                                                                                                                                                                                                                                                                                                                                                                        arguments-have-descriptions              
24:1   The fields of object type `Container` should be sorted in alphabetical order. Expected sorting: directory, entrypoint, exec, exitCode, from, id, mounts, publish, rootfs, stderr, stdout, user, variable, variables, withEntrypoint, withMountedCache, withMountedDirectory, withMountedFile, withMountedSecret, withMountedTemp, withSecretVariable, withUser, withVariable, withWorkdir, withoutMount, withoutVariable, workdir type-fields-sorted-alphabetically        
32:10  The `address` argument of `from` is missing a description.                                                                                                                                                                                                                                                                                                                                                                        arguments-have-descriptions              
38:15  The `path` argument of `directory` is missing a description.                                                                                                                                                                                                                                                                                                                                                                      arguments-have-descriptions              
44:14  The `name` argument of `withUser` is missing a description.                                                                                                                                                                                                                                                                                                                                                                       arguments-have-descriptions              
50:17  The `path` argument of `withWorkdir` is missing a description.                                                                                                                                                                                                                                                                                                                                                                    arguments-have-descriptions              
56:14  The `name` argument of `variable` is missing a description.                                                                                                                                                                                                                                                                                                                                                                       arguments-have-descriptions              
59:18  The `name` argument of `withVariable` is missing a description.                                                                                                                                                                                                                                                                                                                                                                   arguments-have-descriptions              
59:33  The `value` argument of `withVariable` is missing a description.                                                                                                                                                                                                                                                                                                                                                                  arguments-have-descriptions              
62:24  The `name` argument of `withSecretVariable` is missing a description.                                                                                                                                                                                                                                                                                                                                                             arguments-have-descriptions              
62:39  The `secret` argument of `withSecretVariable` is missing a description.                                                                                                                                                                                                                                                                                                                                                           arguments-have-descriptions              
65:21  The `name` argument of `withoutVariable` is missing a description.                                                                                                                                                                                                                                                                                                                                                                arguments-have-descriptions              
71:20  The `args` argument of `withEntrypoint` is missing a description.                                                                                                                                                                                                                                                                                                                                                                 arguments-have-descriptions              
77:26  The `path` argument of `withMountedDirectory` is missing a description.                                                                                                                                                                                                                                                                                                                                                           arguments-have-descriptions              
77:41  The `source` argument of `withMountedDirectory` is missing a description.                                                                                                                                                                                                                                                                                                                                                         arguments-have-descriptions              
80:21  The `path` argument of `withMountedFile` is missing a description.                                                                                                                                                                                                                                                                                                                                                                arguments-have-descriptions              
80:36  The `source` argument of `withMountedFile` is missing a description.                                                                                                                                                                                                                                                                                                                                                              arguments-have-descriptions              
83:21  The `path` argument of `withMountedTemp` is missing a description.                                                                                                                                                                                                                                                                                                                                                                arguments-have-descriptions              
86:22  The `path` argument of `withMountedCache` is missing a description.                                                                                                                                                                                                                                                                                                                                                               arguments-have-descriptions              
86:37  The `source` argument of `withMountedCache` is missing a description.                                                                                                                                                                                                                                                                                                                                                             arguments-have-descriptions              
89:23  The `path` argument of `withMountedSecret` is missing a description.                                                                                                                                                                                                                                                                                                                                                              arguments-have-descriptions              
89:38  The `source` argument of `withMountedSecret` is missing a description.                                                                                                                                                                                                                                                                                                                                                            arguments-have-descriptions              
94:18  The `path` argument of `withoutMount` is missing a description.                                                                                                                                                                                                                                                                                                                                                                   arguments-have-descriptions              
98:10  The `args` argument of `exec` is missing a description.                                                                                                                                                                                                                                                                                                                                                                           arguments-have-descriptions              
98:28  The `opts` argument of `exec` is missing a description.                                                                                                                                                                                                                                                                                                                                                                           arguments-have-descriptions              
119:13 The `address` argument of `publish` is missing a description.                                                                                                                                                                                                                                                                                                                                                                     arguments-have-descriptions              
122:1  The fields of input type `ExecOpts` should be sorted in alphabetical order. Expected sorting: redirectStderr, redirectStdout, stdin                                                                                                                                                                                                                                                                                               input-object-fields-sorted-alphabetically

/Users/jeremyadams/src/dagger-fork/api/directory.gql
3:15  The `id` argument of `directory` is missing a description.                                                                                                                                                         arguments-have-descriptions      
9:1   The fields of object type `Directory` should be sorted in alphabetical order. Expected sorting: contents, diff, directory, file, secret, withCopiedFile, withDirectory, withNewFile, withoutDirectory, withoutFile type-fields-sorted-alphabetically
12:14 The `path` argument of `contents` is missing a description.                                                                                                                                                        arguments-have-descriptions      
15:10 The `path` argument of `file` is missing a description.                                                                                                                                                            arguments-have-descriptions      
18:12 The `path` argument of `secret` is missing a description.                                                                                                                                                          arguments-have-descriptions      
21:17 The `path` argument of `withNewFile` is missing a description.                                                                                                                                                     arguments-have-descriptions      
21:32 The `contents` argument of `withNewFile` is missing a description.                                                                                                                                                 arguments-have-descriptions      
24:20 The `path` argument of `withCopiedFile` is missing a description.                                                                                                                                                  arguments-have-descriptions      
24:35 The `source` argument of `withCopiedFile` is missing a description.                                                                                                                                                arguments-have-descriptions      
27:17 The `path` argument of `withoutFile` is missing a description.                                                                                                                                                     arguments-have-descriptions      
30:15 The `path` argument of `directory` is missing a description.                                                                                                                                                       arguments-have-descriptions      
33:19 The `path` argument of `withDirectory` is missing a description.                                                                                                                                                   arguments-have-descriptions      
33:34 The `directory` argument of `withDirectory` is missing a description.                                                                                                                                              arguments-have-descriptions      
36:22 The `path` argument of `withoutDirectory` is missing a description.                                                                                                                                                arguments-have-descriptions      
39:10 The `other` argument of `diff` is missing a description.                                                                                                                                                           arguments-have-descriptions      

/Users/jeremyadams/src/dagger-fork/api/file.gql
3:10 The `id` argument of `file` is missing a description.                                                                 arguments-have-descriptions      
6:1  The scalar type `FileID` is missing a description.                                                                    types-have-descriptions          
8:1  The fields of object type `File` should be sorted in alphabetical order. Expected sorting: contents, id, secret, size type-fields-sorted-alphabetically

/Users/jeremyadams/src/dagger-fork/api/git.gql
3:9   The `url` argument of `git` is missing a description.                                                                           arguments-have-descriptions      
6:1   The fields of object type `GitRepository` should be sorted in alphabetical order. Expected sorting: branch, branches, tag, tags type-fields-sorted-alphabetically
11:12 The `name` argument of `branch` is missing a description.                                                                       arguments-have-descriptions      
15:9  The `name` argument of `tag` is missing a description.                                                                          arguments-have-descriptions      

/Users/jeremyadams/src/dagger-fork/api/host.gql
6:1   The fields of object type `Host` should be sorted in alphabetical order. Expected sorting: variable, workdir     type-fields-sorted-alphabetically
12:14 The `name` argument of `variable` is missing a description.                                                      arguments-have-descriptions      
15:1  The fields of object type `HostVariable` should be sorted in alphabetical order. Expected sorting: secret, value type-fields-sorted-alphabetically

/Users/jeremyadams/src/dagger-fork/api/http.gql
4:10 The `url` argument of `http` is missing a description. arguments-have-descriptions

/Users/jeremyadams/src/dagger-fork/api/root.gql
1:1 The object type `Query` is missing a description. types-have-descriptions

/Users/jeremyadams/src/dagger-fork/api/secret.gql
4:9 The `id` argument of `secret` is missing a description. arguments-have-descriptions

✖ 56 errors detected

Activity

  1. added this to the Cloak GA milestone on Sep 18, 2022
  2. added
    area/engine
    and removed on Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/engine

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions