- calculateState() - Method in class com.diffplug.spotless.LazyForwardingEquality
-
This function is guaranteed to be called at most once.
- canonical() - Method in class com.diffplug.spotless.PaddedCell
-
Returns the “canonical” form for this particular result (only possible if isResolvable).
- check(Formatter, File) - Static method in class com.diffplug.spotless.PaddedCell
-
Applies the given formatter to the given file, checking that
F(F(input)) == F(input).
- check(Formatter, File, String) - Static method in class com.diffplug.spotless.PaddedCell
-
- check(File, File, Formatter, List<File>) - Static method in class com.diffplug.spotless.PaddedCellBulk
-
Performs a full check using PaddedCell logic on the given files with the given formatter.
- clear() - Static method in class com.diffplug.spotless.SpotlessCache
-
- clearOnce(Object) - Static method in class com.diffplug.spotless.SpotlessCache
-
Closes all cached classloaders iff key
is not .equals()
to the last call to clearOnce()
.
- close() - Method in class com.diffplug.spotless.Formatter
-
- close() - Method in interface com.diffplug.spotless.FormatterFunc.Closeable
-
- com.diffplug.spotless - package com.diffplug.spotless
-
- com.diffplug.spotless.annotations - package com.diffplug.spotless.annotations
-
- com.diffplug.spotless.cpp - package com.diffplug.spotless.cpp
-
- com.diffplug.spotless.css - package com.diffplug.spotless.css
-
- com.diffplug.spotless.generic - package com.diffplug.spotless.generic
-
- com.diffplug.spotless.java - package com.diffplug.spotless.java
-
- com.diffplug.spotless.kotlin - package com.diffplug.spotless.kotlin
-
- com.diffplug.spotless.markdown - package com.diffplug.spotless.markdown
-
- com.diffplug.spotless.npm - package com.diffplug.spotless.npm
-
- com.diffplug.spotless.scala - package com.diffplug.spotless.scala
-
- com.diffplug.spotless.sql - package com.diffplug.spotless.sql
-
- com.diffplug.spotless.sql.dbeaver - package com.diffplug.spotless.sql.dbeaver
-
- com.diffplug.spotless.xml - package com.diffplug.spotless.xml
-
- compute(String, File) - Method in class com.diffplug.spotless.Formatter
-
Returns the result of calling all of the FormatterSteps.
- computeLineEndings(String, File) - Method in class com.diffplug.spotless.Formatter
-
Applies the appropriate line endings to the given unix content.
- CppDefaults - Class in com.diffplug.spotless.cpp
-
Common utilities for C/C++
- create(String, State, ThrowingEx.Function<State, FormatterFunc>) - Static method in interface com.diffplug.spotless.FormatterStep
-
- create() - Static method in class com.diffplug.spotless.generic.EndWithNewlineStep
-
Creates a FormatterStep which forces lines to end with a newline.
- create(IndentStep.Type, int) - Static method in class com.diffplug.spotless.generic.IndentStep
-
Creates a step which will indent with the given type of whitespace, converting between tabs and spaces at the given ratio.
- create() - Method in enum com.diffplug.spotless.generic.IndentStep.Type
-
Creates a step which will indent with the given type of whitespace, converting between tabs and spaces at the default ratio.
- create(int) - Method in enum com.diffplug.spotless.generic.IndentStep.Type
-
- create(String, String, String) - Static method in class com.diffplug.spotless.generic.ReplaceRegexStep
-
- create(String, CharSequence, CharSequence) - Static method in class com.diffplug.spotless.generic.ReplaceStep
-
- create() - Static method in class com.diffplug.spotless.generic.TrimTrailingWhitespaceStep
-
- create(Provisioner) - Static method in class com.diffplug.spotless.java.GoogleJavaFormatStep
-
Creates a step which formats everything - code, import order, and unused imports.
- create(String, Provisioner) - Static method in class com.diffplug.spotless.java.GoogleJavaFormatStep
-
Creates a step which formats everything - code, import order, and unused imports.
- create(String, String, Provisioner) - Static method in class com.diffplug.spotless.java.GoogleJavaFormatStep
-
Creates a step which formats everything - code, import order, and unused imports.
- create(Provisioner) - Static method in class com.diffplug.spotless.java.RemoveUnusedImportsStep
-
- create(Provisioner) - Static method in class com.diffplug.spotless.kotlin.KtLintStep
-
- create(String, Provisioner) - Static method in class com.diffplug.spotless.kotlin.KtLintStep
-
- create(String, Provisioner, Map<String, String>) - Static method in class com.diffplug.spotless.kotlin.KtLintStep
-
- create(ThrowingEx.Supplier<Map<String, ?>>, Provisioner) - Static method in class com.diffplug.spotless.markdown.FreshMarkStep
-
Creates a formatter step for the given version and settings file.
- create(String, ThrowingEx.Supplier<Map<String, ?>>, Provisioner) - Static method in class com.diffplug.spotless.markdown.FreshMarkStep
-
Creates a formatter step for the given version and settings file.
- create(Provisioner, File, File, PrettierConfig) - Static method in class com.diffplug.spotless.npm.PrettierFormatterStep
-
Deprecated.
- create(Map<String, String>, Provisioner, File, File, PrettierConfig) - Static method in class com.diffplug.spotless.npm.PrettierFormatterStep
-
- create(Provisioner, File, File, File, TypedTsFmtConfigFile, Map<String, Object>) - Static method in class com.diffplug.spotless.npm.TsFmtFormatterStep
-
Deprecated.
- create(Map<String, String>, Provisioner, File, File, TypedTsFmtConfigFile, Map<String, Object>) - Static method in class com.diffplug.spotless.npm.TsFmtFormatterStep
-
- create(Provisioner) - Static method in class com.diffplug.spotless.scala.ScalaFmtStep
-
- create(String, Provisioner, File) - Static method in class com.diffplug.spotless.scala.ScalaFmtStep
-
- create(Iterable<File>) - Static method in class com.diffplug.spotless.sql.DBeaverSQLFormatterStep
-
- createFormatterFunc() - Method in class com.diffplug.spotless.npm.PrettierFormatterStep.State
-
- createFormatterFunc() - Method in class com.diffplug.spotless.npm.TsFmtFormatterStep.State
-
- createForScript(String, Provisioner) - Static method in class com.diffplug.spotless.kotlin.KtLintStep
-
- createForScript(String, Provisioner, Map<String, String>) - Static method in class com.diffplug.spotless.kotlin.KtLintStep
-
- createFrom(String...) - Method in class com.diffplug.spotless.java.ImportOrderStep
-
- createFrom(File) - Method in class com.diffplug.spotless.java.ImportOrderStep
-
- createFromFile(File, Charset, String) - Static method in class com.diffplug.spotless.generic.LicenseHeaderStep
-
Creates a FormatterStep which forces the start of each file to match the license header
contained in the given file.
- createFromFile(File, Charset, String, String) - Static method in class com.diffplug.spotless.generic.LicenseHeaderStep
-
Creates a FormatterStep which forces the start of each file to match the license header
contained in the given file.
- createFromFile(File) - Static method in class com.diffplug.spotless.java.ImportOrderStep
-
Deprecated.
- createFromHeader(String, String) - Static method in class com.diffplug.spotless.generic.LicenseHeaderStep
-
Creates a FormatterStep which forces the start of each file to match a license header.
- createFromHeader(String, String, String) - Static method in class com.diffplug.spotless.generic.LicenseHeaderStep
-
- createFromOrder(List<String>) - Static method in class com.diffplug.spotless.java.ImportOrderStep
-
Deprecated.
- createFromOrder(String...) - Static method in class com.diffplug.spotless.java.ImportOrderStep
-
Deprecated.
- createLazy(String, ThrowingEx.Supplier<State>, ThrowingEx.Function<State, FormatterFunc>) - Static method in interface com.diffplug.spotless.FormatterStep
-
- createNeverUpToDate(String, FormatterFunc) - Static method in interface com.diffplug.spotless.FormatterStep
-
- createNeverUpToDateLazy(String, ThrowingEx.Supplier<FormatterFunc>) - Static method in interface com.diffplug.spotless.FormatterStep
-
- createPolicy(File, Supplier<Iterable<File>>) - Method in enum com.diffplug.spotless.LineEnding
-
Returns a
LineEnding.Policy
appropriate for files which are contained within the given rootFolder.
- createPolicy() - Method in enum com.diffplug.spotless.LineEnding
-
- CssDefaults - Class in com.diffplug.spotless.css
-
Deprecated.
- failOnlyOnError() - Static method in interface com.diffplug.spotless.FormatExceptionPolicy
-
A policy which rethrows subclasses of Error
and logs other kinds of Exception.
- file() - Method in class com.diffplug.spotless.PaddedCell
-
Returns the file which was tested.
- FILE_FILTER - Static variable in class com.diffplug.spotless.cpp.CppDefaults
-
Filter based on Eclipse-CDT org.eclipse.core.contenttype.contentTypes
extension cSource
, cHeader
, cxxSource
and cxxHeader
.
- FILE_FILTER - Static variable in class com.diffplug.spotless.css.CssDefaults
-
Deprecated.
Filter based on Eclipse-WTP org.eclipse.core.contenttype.contentTypes
extension org.eclipse.wst.css.core.csssource
.
- FILE_FILTER - Static variable in class com.diffplug.spotless.xml.XmlDefaults
-
Deprecated.
Filter based on Eclipse-WTP org.eclipse.core.contenttype.contentTypes
extension org.eclipse.wst.xml.core.xmlsource
.
- files() - Method in class com.diffplug.spotless.FileSignature
-
Returns all of the files in this signature, throwing an exception if there are more or less than 1 file.
- FileSignature - Class in com.diffplug.spotless
-
Computes a signature for any needed files.
- filterByFile(SerializableFileFilter) - Method in interface com.diffplug.spotless.FormatterStep
-
Returns a new FormatterStep which will only apply its changes
to files which pass the given filter.
- forGroovy() - Static method in class com.diffplug.spotless.java.ImportOrderStep
-
- forJava() - Static method in class com.diffplug.spotless.java.ImportOrderStep
-
- format(String, File) - Method in interface com.diffplug.spotless.FormatterStep
-
Returns a formatted version of the given content.
- format(State, String, File) - Method in class com.diffplug.spotless.FormatterStep.Strict
-
- format(String, File) - Method in class com.diffplug.spotless.FormatterStep.Strict
-
- format(String) - Method in class com.diffplug.spotless.generic.LicenseHeaderStep
-
Formats the given string.
- format(String) - Method in class com.diffplug.spotless.sql.dbeaver.SQLTokenizedFormatter
-
- format(String) - Method in class com.diffplug.spotless.sql.DBeaverSQLFormatter
-
- FormatExceptionPolicy - Interface in com.diffplug.spotless
-
A policy for handling exceptions in the format.
- FormatExceptionPolicyStrict - Class in com.diffplug.spotless
-
A policy for handling exceptions in the format.
- FormatExceptionPolicyStrict() - Constructor for class com.diffplug.spotless.FormatExceptionPolicyStrict
-
- Formatter - Class in com.diffplug.spotless
-
Formatter which performs the full formatting.
- Formatter.Builder - Class in com.diffplug.spotless
-
- FormatterFunc - Interface in com.diffplug.spotless
-
A Function<String, String>
which can throw an exception.
- FormatterFunc.Closeable - Interface in com.diffplug.spotless
-
Function<String, String>
and BiFunction<String, File, String>
whose implementation
requires a resource which should be released when the function is no longer needed.
- FormatterProperties - Class in com.diffplug.spotless
-
Utility manages settings of formatter configured by properties.
- FormatterStep - Interface in com.diffplug.spotless
-
An implementation of this class specifies a single step in a formatting process.
- FormatterStep.Strict<State extends Serializable> - Class in com.diffplug.spotless
-
Implements a FormatterStep in a strict way which guarantees correct and lazy implementation
of up-to-date checks.
- forNameIgnoreCase(String) - Static method in enum com.diffplug.spotless.npm.TsConfigFileType
-
- FreshMarkStep - Class in com.diffplug.spotless.markdown
-
- from(File...) - Static method in class com.diffplug.spotless.FileSignature
-
Deprecated.
- from(Iterable<File>) - Static method in class com.diffplug.spotless.FileSignature
-
Deprecated.
- from(File...) - Static method in class com.diffplug.spotless.FormatterProperties
-
Import settings from a sequence of files (file import is the given order)
- from(Iterable<File>) - Static method in class com.diffplug.spotless.FormatterProperties
-
Import settings from a sequence of files (file import is the given order)
- from(String, Provisioner) - Static method in class com.diffplug.spotless.JarState
-
Provisions the given maven coordinate and its transitive dependencies.
- from(Collection<String>, Provisioner) - Static method in class com.diffplug.spotless.JarState
-
Provisions the given maven coordinates and their transitive dependencies.