1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-21 22:32:41 +01:00

Fix text lint issues

Summary: Ref T5105. This is a proof-of-concept for D11458.

Test Plan: `arc lint --everything`

Reviewers: chad, #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T5105

Differential Revision: https://secure.phabricator.com/D11640
This commit is contained in:
Joshua Spence 2015-04-07 18:09:26 +10:00
parent 3a5ffdc2fd
commit f2a3fdf5e3
22 changed files with 84 additions and 65 deletions

View file

@ -1,7 +1,6 @@
{ {
"exclude": [ "exclude": [
"(^externals/)", "(^externals/)"
"(\\.lint-test$)"
], ],
"linters": { "linters": {
"chmod": { "chmod": {
@ -41,19 +40,7 @@
"exclude": "(^resources/spelling/.*\\.json$)" "exclude": "(^resources/spelling/.*\\.json$)"
}, },
"text": { "text": {
"type": "text", "type": "text"
"exclude": [
"(^\\.arclint$)"
]
},
"text-without-length": {
"type": "text",
"severity": {
"3": "disabled"
},
"include": [
"(^\\.arclint$)"
]
}, },
"xhpast": { "xhpast": {
"type": "xhpast", "type": "xhpast",

View file

@ -3,24 +3,50 @@
[*] [*]
indent_style = space indent_style = space
indent_size = 2 indent_size = 2
end_of_line = lf
charset = utf-8 charset = utf-8
trim_trailing_whitespace = true trim_trailing_whitespace = true
insert_final_newline = true insert_final_newline = true
max_line_length = 80
[src/lint/linter/__tests__/**.lint-test]
indent_style =
end_of_line =
max_line_length =
trim_trailing_whitespace =
[src/parser/__tests__/bundle/*] [src/parser/__tests__/bundle/*]
trim_trailing_whitespace = false
insert_final_newline = false insert_final_newline = false
[src/parser/__tests__/diff/*.{git,hg,svn,u}diff] [src/parser/__tests__/diff/*.{git,hg,rcs,svn,u}diff]
indent_style =
trim_trailing_whitespace = false trim_trailing_whitespace = false
insert_final_newline = false insert_final_newline = false
max_line_length =
[src/parser/__tests__/patches/*.{git,hg,rcs,svn,u}patch]
indent_style =
trim_trailing_whitespace = false
max_line_length =
[src/parser/__tests__/patches/*.gitpatch] [src/parser/__tests__/patches/*.gitpatch]
end_of_line =
[src/parser/__tests__/**/*.txt]
max_line_length =
[src/repository/parser/__tests__/mercurial/*.txt]
trim_trailing_whitespace = false trim_trailing_whitespace = false
insert_final_newline = false insert_final_newline = false
max_line_length =
[src/unit/parser/__tests__/testresults/go.*]
indent_style =
[src/unit/parser/__tests__/testresults/xunit.*]
max_line_length =
[externals/**] [externals/**]
; Use editor default (possible autodetection).
indent_style = indent_style =
indent_size = indent_size =
trim_trailing_whitespace = false trim_trailing_whitespace = false

View file

@ -1,4 +1,3 @@
Apache License Apache License
Version 2.0, January 2004 Version 2.0, January 2004
http://www.apache.org/licenses/ http://www.apache.org/licenses/

View file

@ -166,7 +166,11 @@ def main(stdscr):
h = height / 10 h = height / 10
for x in range(1, width / 7 - 1): for x in range(1, width / 7 - 1):
for y in range(1, 7): for y in range(1, 7):
entities.append(Block(x * 7, y * h + x / 2 % 2, 7, h, colors[y - 1])) entities.append(Block(x * 7,
y * h + x / 2 % 2,
7,
h,
colors[y - 1]))
while True: while True:
while select.select([ sys.stdin ], [], [], 0)[0]: while select.select([ sys.stdin ], [], [], 0)[0]:

View file

@ -1,4 +1,3 @@
// simple array/list: // simple array/list:
.multiunit { .multiunit {

View file

@ -1,4 +1,3 @@
// For now, variables can't be declared inside @media blocks. // For now, variables can't be declared inside @media blocks.
@var: 42; @var: 42;

View file

@ -5,4 +5,9 @@ chroot('/tmp');
error:3:1 error:3:1
~~~~~~~~~~ ~~~~~~~~~~
~~~~~~~~~~ ~~~~~~~~~~
{"config": {"xhpast.php-version": "5.2.3", "xhpast.php-version.windows": "5.3.0"}} {
"config": {
"xhpast.php-version": "5.2.3",
"xhpast.php-version.windows": "5.3.0"
}
}