public abstract class ParserConfig extends Object implements ConfigView<BuckConfig>
Modifier and Type | Class and Description |
---|---|
static class |
ParserConfig.AllowSymlinks |
static class |
ParserConfig.ApplyDefaultFlavorsMode
Controls whether default flavors should be applied to unflavored targets.
|
static class |
ParserConfig.BuildFileSearchMethod |
static class |
ParserConfig.GlobHandler |
static class |
ParserConfig.PackageBoundaryEnforcement
How package boundary violation should be enforced
|
static class |
ParserConfig.SkylarkGlobHandler
Glob handler supported by Skylark parser.
|
static class |
ParserConfig.WatchmanGlobSanityCheck |
Modifier and Type | Field and Description |
---|---|
static String |
BUILDFILE_SECTION_NAME |
static boolean |
DEFAULT_ALLOW_EMPTY_GLOBS |
static String |
DEFAULT_BUILD_FILE_NAME |
static String |
INCLUDES_PROPERTY_NAME |
static String |
PACKAGE_INCLUDES_PROPERTY_NAME |
Constructor and Description |
---|
ParserConfig() |
public static final boolean DEFAULT_ALLOW_EMPTY_GLOBS
public static final String DEFAULT_BUILD_FILE_NAME
public static final String BUILDFILE_SECTION_NAME
public static final String INCLUDES_PROPERTY_NAME
public static final String PACKAGE_INCLUDES_PROPERTY_NAME
public abstract BuckConfig getDelegate()
getDelegate
in interface ConfigView<BuckConfig>
public static ParserConfig of(BuckConfig delegate)
@Value.Lazy public boolean getAllowEmptyGlobs()
@Value.Lazy public String getBuildFileName()
@Value.Lazy public Iterable<String> getDefaultIncludes()
@Value.Lazy public com.google.common.collect.ImmutableMap<String,ImplicitInclude> getPackageImplicitIncludes()
@Value.Lazy public boolean getEnforceBuckPackageBoundary()
@Value.Lazy public com.google.common.collect.ImmutableList<Path> getBuckPackageBoundaryExceptions()
@Value.Lazy public Optional<com.google.common.collect.ImmutableList<Path>> getReadOnlyPaths()
@Value.Lazy public ParserConfig.AllowSymlinks getAllowSymlinks()
@Value.Lazy public ParserConfig.BuildFileSearchMethod getBuildFileSearchMethod()
@Value.Lazy public ParserConfig.GlobHandler getGlobHandler()
@Value.Lazy public ParserConfig.WatchmanGlobSanityCheck getWatchmanGlobSanityCheck()
@Value.Lazy public boolean getWatchCells()
@Value.Lazy public WatchmanWatcher.CursorType getWatchmanCursor()
@Value.Lazy public boolean getEnableParallelParsing()
@Value.Lazy public int getNumParsingThreads()
@Value.Lazy public ParserConfig.ApplyDefaultFlavorsMode getDefaultFlavorsMode()
@Value.Lazy public com.google.common.collect.ImmutableList<String> getBuildFileImportWhitelist()
@Value.Lazy public Optional<String> getPythonModuleSearchPath()
@Value.Lazy public boolean isPolyglotParsingEnabled()
For a list of supported syntax see Syntax
.
@Value.Lazy public Syntax getDefaultBuildFileSyntax()
For a list of supported syntax see Syntax
.
@Value.Lazy public ImplicitNativeRulesState getImplicitNativeRulesState()
@Value.Lazy public boolean isWarnAboutDeprecatedSyntax()
@Value.Lazy public ParserConfig.SkylarkGlobHandler getSkylarkGlobHandler()
@Value.Lazy public int getParserTargetThreshold()
@Value.Lazy public boolean getEnableTargetCompatibilityChecks()
@Value.Lazy public boolean getRequireTargetPlatform()
default_target_platform
or globally with --target-platforms=
command line flag.@Value.Lazy public String getTargetPlatformDetectorSpec()
@Value.Lazy public Optional<String> getTargetPlatforms()
platform
rule that describes the target platforms.
This is used when command-line argument is unspecified. Please do not use this option.@Value.Lazy public Optional<String> getHostPlatform()
platform
rule that describes the host platforms. This
is used when command-line argument is unspecified. Please do not use this option.public AbsPath getAbsolutePathToBuildFileUnsafe(Cell cell, UnconfiguredBuildTarget target)
getAbsolutePathToBuildFile(com.facebook.buck.core.cell.Cell, com.facebook.buck.core.model.UnconfiguredBuildTarget)
.cell
- the cell where the given target is definedtarget
- target to look uppublic AbsPath getAbsolutePathToBuildFile(Cell cell, UnconfiguredBuildTarget target) throws MissingBuildFileException
cell
- the cell where the given target is definedtarget
- target to look upMissingBuildFileException
@Value.Lazy public boolean getLogPackageBoundaryExceptionViolations()
public ParserConfig.PackageBoundaryEnforcement getPackageBoundaryEnforcementPolicy(Path path)
path
- Path of package (or file in a package) relative to the cell root.path
@Value.Lazy public UserDefinedRulesState getUserDefinedRulesState()
RuleAnalysisComputation
is also disabled. This
is in progress work, and experimental at this time.@Value.Lazy public boolean getEnablePackageFiles()
@Value.Lazy public int getMissingTargetLevenshteinDistance()