Showing 6,856 of 14,752 total issues
Method getAllChoices
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public List<Map<String, Integer>> getAllChoices() {
List<Map<String, Integer>> choices = new ArrayList<>();
List<String> argList = new ArrayList<>(functionArguments.keySet());
List<Integer> choice = new ArrayList<>(Collections.nCopies(
argList.size(), 0));
- Create a ticketCreate a ticket
Method actionPerformed
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
public void actionPerformed(ActionEvent e) {
if (e.getSource() == selectAllButton) {
for (int i = 0; i < selectTable.getRowCount(); i++) {
selectTable.setValueAt(true, i, 1);
- Create a ticketCreate a ticket
Method test
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Test
public void test() {
// Test default values
FskMetaData metadata = new FskMetaData();
assertNull(metadata.modelName);
- Create a ticketCreate a ticket
Method testModelMath
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Test
public void testModelMath() {
final GenericModelModelMath math = importer.retrieveModelMath(sheet);
- Create a ticketCreate a ticket
Method testIndependentSetters
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Test
public void testIndependentSetters() {
final ParametricModel model = new ParametricModel();
model.addIndepVar("indep");
- Create a ticketCreate a ticket
Method configure
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
protected PortObjectSpec[] configure(final PortObjectSpec[] inSpecs)
throws InvalidSettingsException {
DataTableSpec inSpec = (DataTableSpec)inSpecs[0];
if (settings.getColumn() == null) {
- Create a ticketCreate a ticket
Method append
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static void append(final PCMLDocument doc,
final PCMLDocument toAppend) {
Map<String, XmlObject> newNodes = PCMLUtil.append(doc, toAppend,
"ProcessNode");
// TODO: this might be automated by getting the parent of ProcessNode.
- Create a ticketCreate a ticket
Method testConstructor2
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Test
public void testConstructor2() {
final DepXml dep = new DepXml("dep");
- Create a ticketCreate a ticket
Method monitor
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private REXP monitor(final Callable<REXP> task)
throws InterruptedException, RException, CanceledExecutionException {
final FutureTask<REXP> runningTask = new FutureTask<>(task);
final Thread t =
(m_useNodeContext) ? ThreadUtils.threadWithContext(runningTask, "R-Evaluation")
- Create a ticketCreate a ticket
Method keyPressed
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
public void keyPressed(KeyEvent event) {
JTextField textField = (JTextField) event.getComponent();
String query = textField.getText();
- Create a ticketCreate a ticket
Function tokenLexer
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function tokenLexer(stream, state) {
var style = state.tokenize(stream, state);
var current = stream.current();
// Handle '.' connected identifiers
- Create a ticketCreate a ticket
Function blankLine
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function blankLine(state) {
// Reset linkTitle state
state.linkTitle = false;
state.linkHref = false;
state.linkText = false;
- Create a ticketCreate a ticket
Function copy
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
State.prototype.copy = function () {
var res = new State();
res.javaScriptLine = this.javaScriptLine;
res.javaScriptLineExcludesColon = this.javaScriptLineExcludesColon;
res.javaScriptArguments = this.javaScriptArguments;
- Create a ticketCreate a ticket
Function html
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function html(stream, state) {
var style = htmlMode.token(stream, state.htmlState), tag = /\btag\b/.test(style), tagName
if (tag && !/[<>\s\/]/.test(stream.current()) &&
(tagName = state.htmlState.tagName && state.htmlState.tagName.toLowerCase()) &&
tags.hasOwnProperty(tagName)) {
- Create a ticketCreate a ticket
Function rval
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function rval(state,stream,type) {
// parse stack
pushToken(state,realToken(type,stream));
- Create a ticketCreate a ticket
Function token
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
token: function(stream, state) {
if (stream.sol()) {
if (state.context && state.context.align == null) state.context.align = false;
state.indent = stream.indentation();
}
- Create a ticketCreate a ticket
Function keyframes
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
states.keyframes = function(type, stream, state) {
if (stream.indentation() == "0" && ((type == "}" && startOfLine(stream)) || type == "]" || type == "hash"
|| type == "qualifier" || wordIsTag(stream.current()))) {
return popAndPass(type, stream, state);
}
- Create a ticketCreate a ticket
Function atBlock
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
states.atBlock = function(type, stream, state) {
if (type == "(") return pushContext(state, stream, "atBlock_parens");
if (type == "}" || type == ";") return popAndPass(type, stream, state);
if (type == "{") return popContext(state) && pushContext(state, stream, allowNested ? "block" : "top");
- Create a ticketCreate a ticket
Function token
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
token:function(stream,state){
if(stream.sol()){
if(state.context&&state.context.align==null)
state.context.align=false;
state.indent=stream.indentation();
- Create a ticketCreate a ticket
Function blockType
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
blockType: function(stream, state) {
var match, type;
state.layoutType = null;
if (match = stream.match(RE("type")))
- Create a ticketCreate a ticket