Page MenuHomePhabricator

rename getConfig -> getProjectConfig, make all linters use getConfigFromAnySource
ClosedPublic

Authored by avivey on Oct 22 2013, 10:25 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 22, 3:37 PM
Unknown Object (File)
Mon, Apr 22, 3:37 PM
Unknown Object (File)
Thu, Apr 11, 7:28 AM
Unknown Object (File)
Sun, Mar 31, 6:38 PM
Unknown Object (File)
Sun, Mar 31, 6:38 PM
Unknown Object (File)
Sun, Mar 31, 6:22 PM
Unknown Object (File)
Sun, Mar 31, 6:10 PM
Unknown Object (File)
Mar 14 2024, 2:24 AM

Details

Summary

Lingers on from D7271; Rename ArcanistWorkingCopyIdentity.getConfig().

Changed all linters (Except one) to use getConfigFromAnySource(), because it seems to make sense.

Test Plan

arc unit --everything; arc lint in github.com:epriestley/arclint-examples.git (Except for phpcs, flake8, cpplint and csslint which I don't have installed).

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

I've kept ArcanistXHPASTLinter as getProjectConfig(), because it's doing some complex there.

Other places (Non linters) I've kept as getProjectConfig() because they all make at list some kind of reference to the call being project-specific.

src/workingcopyidentity/ArcanistWorkingCopyIdentity.php
157–161

After last week event with ...WhateverSourceAvailable, I think this might be less harmful.

Looks sane to me, thanks!

(And I agree that all those project vs global calls are reasonable ones, to my knowledge.)

@avivey, why is it necessary to keep ArcanistXHPASTLinter as getProjectConfig()?

Oh, I don't know if it's necessary - that usage is doing some stuff I didn't really understand and I was afraid to break it.