Index

A B C D E F G H I K L M N O P R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values

A

add(E) - Method in interface org.sonarsource.analyzer.commons.collections.PSet
 
add(String, String, String) - Method in class org.sonarsource.analyzer.commons.ProfileGenerator.RulesConfiguration
 
addRulesByAnnotatedClass(RulesDefinition.NewRepository, List<Class<?>>) - Method in class org.sonarsource.analyzer.commons.RuleMetadataLoader
 
addRulesByRuleKey(RulesDefinition.NewRepository, List<String>) - Method in class org.sonarsource.analyzer.commons.RuleMetadataLoader
 
alternate(List<? extends T>, List<? extends T>) - Static method in class org.sonarsource.analyzer.commons.collections.ListUtils
 
anyMatch(Predicate<E>) - Method in interface org.sonarsource.analyzer.commons.collections.PStack
Test given predicate on elements and return true if any of elements matches the predicate
API_VERSION_SUPPORTING_CLEAN_CODE_IMPACTS_AND_ATTRIBUTES - Static variable in class org.sonarsource.analyzer.commons.ExternalRuleLoader
 
attribute() - Method in interface org.sonarsource.analyzer.commons.domain.RuleManifestCode
 

B

build() - Method in class org.sonarsource.analyzer.commons.collections.MapBuilder
 
BuiltInQualityProfileJsonLoader - Class in org.sonarsource.analyzer.commons
Use to create BuiltInQualityProfilesDefinition.NewBuiltInQualityProfile based on json file, for profiles implementing BuiltInQualityProfilesDefinition Not designed for multi-threads

C

calculate(String) - Static method in class org.sonarsource.analyzer.commons.ShannonEntropy
 
cancel() - Method in class org.sonarsource.analyzer.commons.ProgressReport
 
code() - Method in interface org.sonarsource.analyzer.commons.domain.RuleManifest
 
concat(Iterable<? extends T>...) - Static method in class org.sonarsource.analyzer.commons.collections.ListUtils
 
concat(List<? extends T>...) - Static method in class org.sonarsource.analyzer.commons.collections.ListUtils
 
concat(Set<T>...) - Static method in class org.sonarsource.analyzer.commons.collections.SetUtils
 
constantCost() - Method in interface org.sonarsource.analyzer.commons.domain.RuleManifestRemediation
 
contains(E) - Method in interface org.sonarsource.analyzer.commons.collections.PSet
 
createExternalRuleRepository(RulesDefinition.Context) - Method in class org.sonarsource.analyzer.commons.ExternalRuleLoader
 
createRuleFromRuleManifest(RulesDefinition.NewRepository, RuleManifest) - Method in class org.sonarsource.analyzer.commons.RuleMetadataLoader
 

D

DEFAULT_ENTROPY_INCREASE_FACTOR_BY_MISSING_CHARACTER - Static variable in class org.sonarsource.analyzer.commons.EntropyDetector
 
DEFAULT_ENTROPY_SCORE_INCREMENT - Static variable in class org.sonarsource.analyzer.commons.EntropyDetector
 
DEFAULT_MIN_SECRET_LENGTH_FOR_GIVEN_ENTROPY - Static variable in class org.sonarsource.analyzer.commons.EntropyDetector
 
defaultSeverity() - Method in interface org.sonarsource.analyzer.commons.domain.RuleManifest
 
defaultValue() - Method in interface org.sonarsource.analyzer.commons.domain.RuleManifestParameter
 
DeprecatedRuleKey - Annotation Type in org.sonarsource.analyzer.commons.annotations
Annotate a rule class with this annotation in order to provide deprecated rule keys (see RulesDefinition.NewRule.addDeprecatedRuleKey(String, String)).
DeprecatedRuleKeys - Annotation Type in org.sonarsource.analyzer.commons.annotations
 
description() - Method in interface org.sonarsource.analyzer.commons.domain.RuleManifestParameter
 
difference(Set<T>, Set<T>) - Static method in class org.sonarsource.analyzer.commons.collections.SetUtils
 

E

emptyMap() - Static method in class org.sonarsource.analyzer.commons.collections.PCollections
Returns a persistent map containing zero mappings.
emptySet() - Static method in class org.sonarsource.analyzer.commons.collections.PCollections
Returns a persistent set containing zero elements.
emptyStack() - Static method in class org.sonarsource.analyzer.commons.collections.PCollections
Returns a persistent stack containing zero elements.
endLine() - Method in class org.sonarsource.analyzer.commons.TokenLocation
 
endLineOffset() - Method in class org.sonarsource.analyzer.commons.TokenLocation
 
entries() - Method in interface org.sonarsource.analyzer.commons.collections.PMap
 
EntropyDetector - Class in org.sonarsource.analyzer.commons
 
EntropyDetector(double) - Constructor for class org.sonarsource.analyzer.commons.EntropyDetector
Randomness sensibility should be between 0 and 10.
EntropyDetector(double, int, double, double) - Constructor for class org.sonarsource.analyzer.commons.EntropyDetector
 
ExternalReportProvider - Class in org.sonarsource.analyzer.commons
 
ExternalRuleLoader - Class in org.sonarsource.analyzer.commons
Creates external rule repository based on json file in the format [ { "key": "...", "name": "..." }, ... ]
ExternalRuleLoader(String, String, String, String) - Constructor for class org.sonarsource.analyzer.commons.ExternalRuleLoader
Deprecated.
Use the constructor that also provide the SonarRuntime argument to determine if you can use the new Clean Code attributes and impacts API. Then you should test "isCleanCodeImpactsAndAttributesSupported()" before using codeAttribute and codeImpacts.
ExternalRuleLoader(String, String, String, String, SonarRuntime) - Constructor for class org.sonarsource.analyzer.commons.ExternalRuleLoader
 

F

FileProvider - Class in org.sonarsource.analyzer.commons
 
FileProvider(File, String) - Constructor for class org.sonarsource.analyzer.commons.FileProvider
 
forEach(BiConsumer<K, V>) - Method in interface org.sonarsource.analyzer.commons.collections.PMap
Performs the given action for each entry in this map until all entries have been processed or the action throws an exception.
func() - Method in interface org.sonarsource.analyzer.commons.domain.RuleManifestRemediation
 

G

generateProfile(String, String, String, ProfileGenerator.RulesConfiguration, Set<String>) - Static method in class org.sonarsource.analyzer.commons.ProfileGenerator
 
get(K) - Method in interface org.sonarsource.analyzer.commons.collections.PMap
 
getLast(List<T>) - Static method in class org.sonarsource.analyzer.commons.collections.ListUtils
 
getMatchingFiles() - Method in class org.sonarsource.analyzer.commons.FileProvider
 
getOnlyElement(List<T>) - Static method in class org.sonarsource.analyzer.commons.collections.ListUtils
 
getOnlyElement(Set<T>) - Static method in class org.sonarsource.analyzer.commons.collections.SetUtils
 
getReportFiles(SensorContext, String) - Static method in class org.sonarsource.analyzer.commons.ExternalReportProvider
 

H

hasEnoughEntropy(String) - Method in class org.sonarsource.analyzer.commons.EntropyDetector
 
htmlDocumentation() - Method in interface org.sonarsource.analyzer.commons.domain.RuleManifest
 
HumanLanguageDetector - Class in org.sonarsource.analyzer.commons
 
humanLanguageScore(String) - Static method in class org.sonarsource.analyzer.commons.HumanLanguageDetector
Calculates human language score.

I

immutableSetOf(T...) - Static method in class org.sonarsource.analyzer.commons.collections.SetUtils
 
impacts() - Method in interface org.sonarsource.analyzer.commons.domain.RuleManifestCode
 
isCleanCodeImpactsAndAttributesSupported() - Method in class org.sonarsource.analyzer.commons.ExternalRuleLoader
 
isEmpty() - Method in interface org.sonarsource.analyzer.commons.collections.PMap
 
isEmpty() - Method in interface org.sonarsource.analyzer.commons.collections.PSet
 
isEmpty() - Method in interface org.sonarsource.analyzer.commons.collections.PStack
 

K

keySet() - Method in interface org.sonarsource.analyzer.commons.collections.PMap
 

L

LengthPrefixSerializer - Class in org.sonarsource.analyzer.commons
A utility class to de/serialize a List<byte[]> and Map<String, byte[]> from/to byte[].
linearDescription() - Method in interface org.sonarsource.analyzer.commons.domain.RuleManifestRemediation
 
linearFactor() - Method in interface org.sonarsource.analyzer.commons.domain.RuleManifestRemediation
 
linearOffset() - Method in interface org.sonarsource.analyzer.commons.domain.RuleManifestRemediation
 
ListUtils - Class in org.sonarsource.analyzer.commons.collections
 
load(BuiltInQualityProfilesDefinition.NewBuiltInQualityProfile, String, String) - Static method in class org.sonarsource.analyzer.commons.BuiltInQualityProfileJsonLoader
 
loadActiveKeysFromJsonProfile(String) - Static method in class org.sonarsource.analyzer.commons.BuiltInQualityProfileJsonLoader
 

M

MapBuilder<K,V> - Class in org.sonarsource.analyzer.commons.collections
This class is used for Java < 9 to simplify the creation of maps.

N

name() - Method in interface org.sonarsource.analyzer.commons.domain.RuleManifest
 
name() - Method in interface org.sonarsource.analyzer.commons.domain.RuleManifestParameter
 
newMap() - Static method in class org.sonarsource.analyzer.commons.collections.MapBuilder
 
nextFile() - Method in class org.sonarsource.analyzer.commons.ProgressReport
 

O

of() - Static method in interface org.sonarsource.analyzer.commons.collections.PMap
Returns a persistent map containing zero mappings.
of() - Static method in interface org.sonarsource.analyzer.commons.collections.PSet
Returns a persistent set containing zero elements.
of() - Static method in interface org.sonarsource.analyzer.commons.collections.PStack
Returns a persistent stack containing zero elements.
of(E) - Static method in interface org.sonarsource.analyzer.commons.collections.PSet
Returns a persistent set containing one element.
of(E) - Static method in interface org.sonarsource.analyzer.commons.collections.PStack
Returns a persistent stack containing one element.
of(E, E) - Static method in interface org.sonarsource.analyzer.commons.collections.PSet
Returns a persistent set containing two elements.
of(E, E) - Static method in interface org.sonarsource.analyzer.commons.collections.PStack
Returns a persistent stack containing two elements, pushed left to right.
of(E, E, E) - Static method in interface org.sonarsource.analyzer.commons.collections.PSet
Returns a persistent set containing three elements.
of(E, E, E) - Static method in interface org.sonarsource.analyzer.commons.collections.PStack
Returns a persistent stack containing three elements, pushed left to right.
of(E, E, E, E) - Static method in interface org.sonarsource.analyzer.commons.collections.PSet
Returns a persistent set containing four elements.
of(E, E, E, E) - Static method in interface org.sonarsource.analyzer.commons.collections.PStack
Returns a persistent stack containing four elements, pushed left to right.
of(E, E, E, E, E) - Static method in interface org.sonarsource.analyzer.commons.collections.PSet
Returns a persistent set containing five elements.
of(E, E, E, E, E) - Static method in interface org.sonarsource.analyzer.commons.collections.PStack
Returns a persistent stack containing five elements, pushed left to right.
of(E, E, E, E, E, E) - Static method in interface org.sonarsource.analyzer.commons.collections.PSet
Returns a persistent set containing six elements.
of(E, E, E, E, E, E) - Static method in interface org.sonarsource.analyzer.commons.collections.PStack
Returns a persistent stack containing six elements, pushed left to right.
of(E, E, E, E, E, E, E) - Static method in interface org.sonarsource.analyzer.commons.collections.PSet
Returns a persistent set containing seven elements.
of(E, E, E, E, E, E, E) - Static method in interface org.sonarsource.analyzer.commons.collections.PStack
Returns a persistent stack containing seven elements, pushed left to right.
of(E, E, E, E, E, E, E, E) - Static method in interface org.sonarsource.analyzer.commons.collections.PSet
Returns a persistent set containing eight elements.
of(E, E, E, E, E, E, E, E) - Static method in interface org.sonarsource.analyzer.commons.collections.PStack
Returns a persistent stack containing eight elements, pushed left to right.
of(E, E, E, E, E, E, E, E, E) - Static method in interface org.sonarsource.analyzer.commons.collections.PSet
Returns a persistent set containing nine elements.
of(E, E, E, E, E, E, E, E, E) - Static method in interface org.sonarsource.analyzer.commons.collections.PStack
Returns a persistent stack containing nine elements, pushed left to right.
of(E, E, E, E, E, E, E, E, E, E) - Static method in interface org.sonarsource.analyzer.commons.collections.PSet
Returns a persistent set containing ten elements.
of(E, E, E, E, E, E, E, E, E, E) - Static method in interface org.sonarsource.analyzer.commons.collections.PStack
Returns a persistent stack containing ten elements, pushed left to right.
of(K, V) - Static method in interface org.sonarsource.analyzer.commons.collections.PMap
Returns a persistent map containing a single mapping.
of(K, V, K, V) - Static method in interface org.sonarsource.analyzer.commons.collections.PMap
Returns a persistent map containing two mappings.
of(K, V, K, V, K, V) - Static method in interface org.sonarsource.analyzer.commons.collections.PMap
Returns a persistent map containing three mappings.
of(K, V, K, V, K, V, K, V) - Static method in interface org.sonarsource.analyzer.commons.collections.PMap
Returns a persistent map containing four mappings.
of(K, V, K, V, K, V, K, V, K, V) - Static method in interface org.sonarsource.analyzer.commons.collections.PMap
Returns a persistent map containing five mappings.
of(K, V, K, V, K, V, K, V, K, V, K, V) - Static method in interface org.sonarsource.analyzer.commons.collections.PMap
Returns a persistent map containing six mappings.
of(K, V, K, V, K, V, K, V, K, V, K, V, K, V) - Static method in interface org.sonarsource.analyzer.commons.collections.PMap
Returns a persistent map containing seven mappings.
of(K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V) - Static method in interface org.sonarsource.analyzer.commons.collections.PMap
Returns a persistent map containing eight mappings.
of(K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V) - Static method in interface org.sonarsource.analyzer.commons.collections.PMap
Returns a persistent map containing nine mappings.
of(K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V, K, V) - Static method in interface org.sonarsource.analyzer.commons.collections.PMap
Returns a persistent map containing ten mappings.
org.sonarsource.analyzer.commons - package org.sonarsource.analyzer.commons
 
org.sonarsource.analyzer.commons.annotations - package org.sonarsource.analyzer.commons.annotations
 
org.sonarsource.analyzer.commons.collections - package org.sonarsource.analyzer.commons.collections
 
org.sonarsource.analyzer.commons.domain - package org.sonarsource.analyzer.commons.domain
 

P

parameters() - Method in interface org.sonarsource.analyzer.commons.domain.RuleManifest
 
PCollections - Class in org.sonarsource.analyzer.commons.collections
 
peek() - Method in interface org.sonarsource.analyzer.commons.collections.PStack
 
peek(int) - Method in interface org.sonarsource.analyzer.commons.collections.PStack
 
PMap<K,V> - Interface in org.sonarsource.analyzer.commons.collections
Persistent (functional) Map.
pop() - Method in interface org.sonarsource.analyzer.commons.collections.PStack
 
ProfileGenerator - Class in org.sonarsource.analyzer.commons
 
ProfileGenerator.RulesConfiguration - Class in org.sonarsource.analyzer.commons
 
ProgressReport - Class in org.sonarsource.analyzer.commons
 
ProgressReport(String, long) - Constructor for class org.sonarsource.analyzer.commons.ProgressReport
 
ProgressReport(String, long, String) - Constructor for class org.sonarsource.analyzer.commons.ProgressReport
 
ProgressReport(String, long, Logger, String) - Constructor for class org.sonarsource.analyzer.commons.ProgressReport
 
PSet<E> - Interface in org.sonarsource.analyzer.commons.collections
Persistent (functional) Set.
PStack<E> - Interface in org.sonarsource.analyzer.commons.collections
Persistent (functional) Stack.
push(E) - Method in interface org.sonarsource.analyzer.commons.collections.PStack
 
put(K, V) - Method in class org.sonarsource.analyzer.commons.collections.MapBuilder
 
put(K, V) - Method in interface org.sonarsource.analyzer.commons.collections.PMap
 

R

remediation() - Method in interface org.sonarsource.analyzer.commons.domain.RuleManifest
 
remove(E) - Method in interface org.sonarsource.analyzer.commons.collections.PSet
 
remove(K) - Method in interface org.sonarsource.analyzer.commons.collections.PMap
 
repositoryKey() - Element in annotation type org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey
 
reverse(List<T>) - Static method in class org.sonarsource.analyzer.commons.collections.ListUtils
 
ruleConstantDebtMinutes(String) - Method in class org.sonarsource.analyzer.commons.ExternalRuleLoader
 
ruleKey() - Element in annotation type org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKey
 
ruleKeys() - Method in class org.sonarsource.analyzer.commons.ExternalRuleLoader
 
RuleManifest - Interface in org.sonarsource.analyzer.commons.domain
 
RuleManifestCode - Interface in org.sonarsource.analyzer.commons.domain
 
RuleManifestParameter - Interface in org.sonarsource.analyzer.commons.domain
 
RuleManifestRemediation - Interface in org.sonarsource.analyzer.commons.domain
 
RuleMetadataLoader - Class in org.sonarsource.analyzer.commons
Not designed for multi-threads
RuleMetadataLoader(String, String, SonarRuntime) - Constructor for class org.sonarsource.analyzer.commons.RuleMetadataLoader
 
RuleMetadataLoader(String, SonarRuntime) - Constructor for class org.sonarsource.analyzer.commons.RuleMetadataLoader
 
RuleMetadataLoader(SonarRuntime) - Constructor for class org.sonarsource.analyzer.commons.RuleMetadataLoader
 
RulesConfiguration() - Constructor for class org.sonarsource.analyzer.commons.ProfileGenerator.RulesConfiguration
 
ruleSeverity(String) - Method in class org.sonarsource.analyzer.commons.ExternalRuleLoader
 
ruleType(String) - Method in class org.sonarsource.analyzer.commons.ExternalRuleLoader
 
run() - Method in class org.sonarsource.analyzer.commons.ProgressReport
 

S

scope() - Method in interface org.sonarsource.analyzer.commons.domain.RuleManifest
 
serializeList(List<byte[]>) - Static method in class org.sonarsource.analyzer.commons.LengthPrefixSerializer
 
serializeMap(Map<String, byte[]>) - Static method in class org.sonarsource.analyzer.commons.LengthPrefixSerializer
 
SetUtils - Class in org.sonarsource.analyzer.commons.collections
This class is used for Java < 9 to simplify the creation of maps.
ShannonEntropy - Class in org.sonarsource.analyzer.commons
 
size() - Method in interface org.sonarsource.analyzer.commons.collections.PStack
Naive implementation has O(n) time complexity, where n is number of elements.
start(Iterable<String>) - Method in class org.sonarsource.analyzer.commons.ProgressReport
 
startLine() - Method in class org.sonarsource.analyzer.commons.TokenLocation
 
startLineOffset() - Method in class org.sonarsource.analyzer.commons.TokenLocation
 
status() - Method in interface org.sonarsource.analyzer.commons.domain.RuleManifest
 
stop() - Method in class org.sonarsource.analyzer.commons.ProgressReport
 
stream() - Method in interface org.sonarsource.analyzer.commons.collections.PSet
 
stream() - Method in interface org.sonarsource.analyzer.commons.collections.PStack
 

T

tags() - Method in interface org.sonarsource.analyzer.commons.domain.RuleManifest
 
title() - Method in interface org.sonarsource.analyzer.commons.domain.RuleManifest
 
TokenLocation - Class in org.sonarsource.analyzer.commons
A utility class to compute the offsets which should be provided to SonarQube APIs (highlighting, CPD).
TokenLocation(int, int, String) - Constructor for class org.sonarsource.analyzer.commons.TokenLocation
Constructor which computes end line and column based on the token content.
toString() - Method in interface org.sonarsource.analyzer.commons.collections.PMap
The string representation consists of a list of key-value mappings in the ascending order of hash codes of keys.
toString() - Method in interface org.sonarsource.analyzer.commons.collections.PSet
The string representation consists of a list of elements in the ascending order of hash codes.
toString() - Method in interface org.sonarsource.analyzer.commons.collections.PStack
 
type() - Method in interface org.sonarsource.analyzer.commons.domain.RuleManifest
 
type() - Method in interface org.sonarsource.analyzer.commons.domain.RuleManifestParameter
 

U

unserializeList(byte[]) - Static method in class org.sonarsource.analyzer.commons.LengthPrefixSerializer
 
unserializeList(InputStream) - Static method in class org.sonarsource.analyzer.commons.LengthPrefixSerializer
 
unserializeMap(byte[]) - Static method in class org.sonarsource.analyzer.commons.LengthPrefixSerializer
 
unserializeMap(InputStream) - Static method in class org.sonarsource.analyzer.commons.LengthPrefixSerializer
 

V

value() - Element in annotation type org.sonarsource.analyzer.commons.annotations.DeprecatedRuleKeys
 
A B C D E F G H I K L M N O P R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values