1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-23 23:32:39 +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": [
"(^externals/)",
"(\\.lint-test$)"
"(^externals/)"
],
"linters": {
"chmod": {
@ -41,19 +40,7 @@
"exclude": "(^resources/spelling/.*\\.json$)"
},
"text": {
"type": "text",
"exclude": [
"(^\\.arclint$)"
]
},
"text-without-length": {
"type": "text",
"severity": {
"3": "disabled"
},
"include": [
"(^\\.arclint$)"
]
"type": "text"
},
"xhpast": {
"type": "xhpast",

View file

@ -3,24 +3,50 @@
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = 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/*]
trim_trailing_whitespace = 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
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]
end_of_line =
[src/parser/__tests__/**/*.txt]
max_line_length =
[src/repository/parser/__tests__/mercurial/*.txt]
trim_trailing_whitespace = 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/**]
; Use editor default (possible autodetection).
indent_style =
indent_size =
trim_trailing_whitespace = false

View file

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

View file

@ -166,7 +166,11 @@ def main(stdscr):
h = height / 10
for x in range(1, width / 7 - 1):
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 select.select([ sys.stdin ], [], [], 0)[0]:

View file

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

View file

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

View file

@ -5,4 +5,9 @@ chroot('/tmp');
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"
}
}