Page MenuHomePhorge

Arcanist Text Linter: do not break the "ics" special format
AbandonedPublic

Authored by valerio.bozzolan on Aug 7 2024, 10:08.
Tags
None
Referenced Files
F3330448: D25766.1743489378.diff
Mon, Mar 31, 06:36
F3328166: D25766.1743451205.diff
Sun, Mar 30, 20:00
F3323731: D25766.1743389026.diff
Sun, Mar 30, 02:43
F3308250: D25766.1743161245.diff
Thu, Mar 27, 11:27
F3300566: D25766.1743041960.diff
Wed, Mar 26, 02:19
F3296903: D25766.1742979328.diff
Tue, Mar 25, 08:55
F3292159: D25766.1742887686.diff
Mon, Mar 24, 07:28
F3289803: D25766.1742853528.diff
Sun, Mar 23, 21:58

Details

Reviewers
None
Group Reviewers
O1: Blessed Committers
Maniphest Tasks
T15905: Linter: do not break "ics" files
Summary

Avoid these unexpected lint errors on .ics files:

  • Error (TXT1) DOS Newlines You must use ONLY Unix linebreaks ("\n") in source code.
  • Error (TXT5) Bad Charset Source code should contain only ASCII bytes with ordinal decimal values...

Also, their related auto-fixers (that break the format) are now not triggered anymore.

Specifications about newlines:

https://www.rfc-editor.org/rfc/rfc5545#section-3.1

Closes T15905

Test Plan

Put an .ics file on Phorge. No weird lint errors (for example on feature T15564).

Diff Detail

Repository
rARC Arcanist
Branch
master
Lint
Lint Passed
Unit
Test Failures
Build Status
Buildable 1503
Build 1503: arc lint + arc unit

Unit TestsFailed

TimeTest
72 msArcanistPhpcsLinterTestCase::testLinter
Lint emitted an unexpected set of messages for file "basics.lint-test". MISSING MESSAGES Message with severity "error" at "2:1"
6 msArcanistChmodLinterTestCase::testLinter
5 assertion(s) passed.
0 msArcanistClosureLinterTestCase::testVersion
1 assertion(s) passed.
0 msArcanistCpplintLinterTestCase::testVersion
1 assertion(s) passed.
11 msArcanistFilenameLinterTestCase::testLinter
5 assertion(s) passed.
View Full Test Results (1 Failed · 21 Passed · 31 Skipped)