cloudamatic/mu

View on GitHub

Showing 2,704 of 2,705 total issues

unexpected token tSTRING_BEG (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

ln -s %{prefix}/ruby-%{version} $RPM_BUILD_ROOT%{prefix}/ruby-%{version}
Severity: Minor
Found in extras/ruby_rpm/muby.spec by rubocop

-' interpreted as argument prefix (Using Ruby 2.1 parser; configure usingTargetRubyVersionparameter, underAllCops`)
Open

test -f $RPM_SOURCE_DIR/Python-%{version}.tgz || ( cd $RPM_SOURCE_DIR && curl -O https://www.python.org/ftp/python/%{version}/Python-%{version}.tgz )
Severity: Minor
Found in extras/python_rpm/muthon.spec by rubocop

-' interpreted as argument prefix (Using Ruby 2.1 parser; configure usingTargetRubyVersionparameter, underAllCops`)
Open

rm -f $RPM_BUILD_ROOT/usr/local/bin/ruby
Severity: Minor
Found in extras/ruby_rpm/muby.spec by rubocop

unexpected token tCOLON (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

Name: muthon
Severity: Minor
Found in extras/python_rpm/muthon.spec by rubocop

unexpected token tRCURLY (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

ln -s %{prefix}/Python-%{version} $RPM_BUILD_ROOT%{prefix}/Python-%{version}
Severity: Minor
Found in extras/python_rpm/muthon.spec by rubocop

unexpected token tCOLON (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

BuildRequires: tcl-devel
Severity: Minor
Found in extras/python_rpm/muthon.spec by rubocop

%build: unknown type of percent-literal (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

%build
Severity: Minor
Found in extras/python_rpm/muthon.spec by rubocop

-' interpreted as argument prefix (Using Ruby 2.1 parser; configure usingTargetRubyVersionparameter, underAllCops`)
Open

sed -i "s/sqlite_inc_paths = \[ '\/usr\/include'/sqlite_inc_paths = \[ '\/usr\/local\/sqlite-current\/include'/" setup.py
Severity: Minor
Found in extras/python_rpm/muthon.spec by rubocop

Avoid rescuing the Exception class. Perhaps you meant to rescue StandardError?
Open

        rescue Exception => e
          MU.log e.message, MU::ERR
          exitcode = 1
Severity: Minor
Found in extras/generate-stock-images by rubocop

This cop checks for rescue blocks targeting the Exception class.

Example:

# bad

begin
  do_something
rescue Exception
  handle_exception
end

Example:

# good

begin
  do_something
rescue ArgumentError
  handle_exception
end

Useless assignment to variable - pwd.
Open

pwd = Dir.pwd
Severity: Minor
Found in extras/generate-stock-images by rubocop

This cop checks for every useless assignment to local variable in every scope. The basic idea for this cop was from the warning of ruby -cw:

assigned but unused variable - foo

Currently this cop has advanced logic that detects unreferenced reassignments and properly handles varied cases such as branch, loop, rescue, ensure, etc.

Example:

# bad

def some_method
  some_var = 1
  do_something
end

Example:

# good

def some_method
  some_var = 1
  do_something(some_var)
end

unexpected token tCOLON (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

Summary: SQLite for Mu on RHEL6-compatible systems
Severity: Minor
Found in extras/sqlite_rpm/muqlite.spec by rubocop

%description: unknown type of percent-literal (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

%description
Severity: Minor
Found in extras/sqlite_rpm/muqlite.spec by rubocop

unexpected token tSTRING_BEG (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

rm -rf %{prefix}
Severity: Minor
Found in extras/sqlite_rpm/muqlite.spec by rubocop

unexpected token tRCURLY (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

mkdir -p $RPM_BUILD_ROOT%{prefix}
Severity: Minor
Found in extras/sqlite_rpm/muqlite.spec by rubocop

-' interpreted as argument prefix (Using Ruby 2.1 parser; configure usingTargetRubyVersionparameter, underAllCops`)
Open

mkdir -p %{prefix}/sqlite-%{version}
Severity: Minor
Found in extras/sqlite_rpm/muqlite.spec by rubocop

unexpected token tCOLON (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

BuildRequires: openssl
Severity: Minor
Found in extras/ruby_rpm/muby.spec by rubocop

%prep: unknown type of percent-literal (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

%prep
Severity: Minor
Found in extras/ruby_rpm/muby.spec by rubocop

-' interpreted as argument prefix (Using Ruby 2.1 parser; configure usingTargetRubyVersionparameter, underAllCops`)
Open

./configure --prefix=%{prefix}/ruby-%{version}  --enable-load-relative --enable-shared
Severity: Minor
Found in extras/ruby_rpm/muby.spec by rubocop

unexpected token tSTRING_BEG (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

mkdir -p %{prefix}
Severity: Minor
Found in extras/ruby_rpm/muby.spec by rubocop

unexpected token tCOLON (Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
Open

Version: 3.8.3
Severity: Minor
Found in extras/python_rpm/muthon.spec by rubocop
Severity
Category
Status
Source
Language