sdadfadas
/
lintconf.yaml
58 строк · 1.8 Кб
1#
2# Licensed to the Apache Software Foundation (ASF) under one or more
3# contributor license agreements. See the NOTICE file distributed with
4# this work for additional information regarding copyright ownership.
5# The ASF licenses this file to You under the Apache License, Version 2.0
6# (the "License"); you may not use this file except in compliance with
7# the License. You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16#
17---
18rules:
19braces:
20min-spaces-inside: 0
21max-spaces-inside: 1
22min-spaces-inside-empty: -1
23max-spaces-inside-empty: -1
24brackets:
25min-spaces-inside: -1
26max-spaces-inside: -1
27min-spaces-inside-empty: -1
28max-spaces-inside-empty: -1
29colons:
30max-spaces-before: 0
31max-spaces-after: 1
32commas:
33max-spaces-before: 0
34min-spaces-after: 1
35max-spaces-after: 1
36comments:
37require-starting-space: false
38min-spaces-from-content: -1
39document-end: disable
40document-start: disable # No --- to start a file
41empty-lines:
42max: 2
43max-start: 0
44max-end: 0
45hyphens:
46max-spaces-after: 1
47indentation:
48spaces: consistent
49indent-sequences: whatever # - list indentation will handle both indentation and without
50check-multi-line-strings: false
51key-duplicates: enable
52line-length: disable # Lines can be any length
53new-line-at-end-of-file: enable
54new-lines:
55type: unix
56trailing-spaces: enable
57truthy:
58level: warning
59