Showing 115 of 117 total issues
Unintended read access in kramdown gem Open
kramdown (1.17.0)
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Advisory: CVE-2020-14001
Criticality: Critical
URL: https://github.com/advisories/GHSA-mqm2-cgpr-p4m6
Solution: upgrade to >= 2.3.0
Remote code execution in Kramdown Open
kramdown (1.17.0)
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Advisory: CVE-2021-28834
Criticality: Critical
URL: https://github.com/advisories/GHSA-52p9-v744-mwjj
Solution: upgrade to >= 2.3.1
Class has too many lines. [255/250] Open
class ShowDataGenerator < Jekyll::Generator
priority :high
# From years.rb
def years_by_slug
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop checks if the length a class exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.
httparty has multipart/form-data request tampering vulnerability Open
httparty (0.16.4)
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Advisory:
Criticality: Medium
URL: https://github.com/jnunemaker/httparty/security/advisories/GHSA-5pq7-52mg-hr42
Solution: upgrade to >= 0.21.0
Code injection in ruby git Open
git (1.12.0)
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Advisory: CVE-2022-47318
Criticality: High
URL: https://github.com/ruby-git/ruby-git/pull/602
Solution: upgrade to >= 1.13.0
Potential remote code execution in ruby-git Open
git (1.12.0)
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Advisory: CVE-2022-46648
Criticality: Medium
URL: https://github.com/ruby-git/ruby-git/pull/602
Solution: upgrade to >= 1.13.0
Method people_iterator
has a Cognitive Complexity of 42 (exceeds 5 allowed). Consider refactoring. Open
def people_iterator(person)
if person.data["shows"]
# If had shows
for record in person.data["shows"]
# Loop through each show with involvement
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method has too many lines. [64/30] Open
def generate_show(show)
# Set year attributes
show.data["year"] = get_show_year(show)
show.data["year_page"] = get_show_year_page(show)
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.
Method generate_show
has a Cognitive Complexity of 31 (exceeds 5 allowed). Consider refactoring. Open
def generate_show(show)
# Set year attributes
show.data["year"] = get_show_year(show)
show.data["year_page"] = get_show_year_page(show)
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method generate
has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring. Open
def generate(site)
# Generate venue pages for venues without manually created pages.
if not site.config["skip_venues"]
@collection = site.collections["venues"]
Jekyll.logger.info "Generating venues..."
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method has too many lines. [47/30] Open
def generate_person(person)
"""Method called on all people"""
# Validate things
if not person.data.has_key?("title")
Jekyll.logger.abort_with("Person record #{person.basename_without_ext} missing key 'title'")
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.
Cyclomatic complexity for generate_show is too high. [23/6] Open
def generate_show(show)
# Set year attributes
show.data["year"] = get_show_year(show)
show.data["year_page"] = get_show_year_page(show)
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop checks that the cyclomatic complexity of methods is not higher than the configured maximum. The cyclomatic complexity is the number of linearly independent paths through a method. The algorithm counts decision points and adds one.
An if statement (or unless or ?:) increases the complexity by one. An else branch does not, since it doesn't add a decision point. The && operator (or keyword and) can be converted to a nested if statement, and ||/or is shorthand for a sequence of ifs, so they also add one. Loops can be said to have an exit condition, so they add one.
Cyclomatic complexity for people_iterator is too high. [23/6] Open
def people_iterator(person)
if person.data["shows"]
# If had shows
for record in person.data["shows"]
# Loop through each show with involvement
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop checks that the cyclomatic complexity of methods is not higher than the configured maximum. The cyclomatic complexity is the number of linearly independent paths through a method. The algorithm counts decision points and adds one.
An if statement (or unless or ?:) increases the complexity by one. An else branch does not, since it doesn't add a decision point. The && operator (or keyword and) can be converted to a nested if statement, and ||/or is shorthand for a sequence of ifs, so they also add one. Loops can be said to have an exit condition, so they add one.
Method has too many lines. [45/30] Open
def missing_majority(show)
# We don't have crew_incomplete yet, so let's work it out.
show_crew_count = show.data["crew"] ? show.data["crew"].length : 0
amount_missing = 0
missing_fields = ''
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.
Method has too many lines. [45/30] Open
def generate(site)
# Generate venue pages for venues without manually created pages.
if not site.config["skip_venues"]
@collection = site.collections["venues"]
Jekyll.logger.info "Generating venues..."
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.
Function init
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
function init() {
var hadKeyboardEvent = false;
var elWithFocusRing;
var inputTypesWhitelist = {
- Create a ticketCreate a ticket
Method fill_people_reverse_index
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
def fill_people_reverse_index(item, people_list, index_name, site)
# Create the RI for this case if first time
unless site.data.key?(index_name)
site.data[index_name] = Hash.new
- Read upRead up
- Create a ticketCreate a ticket
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Cyclomatic complexity for generate_person is too high. [16/6] Open
def generate_person(person)
"""Method called on all people"""
# Validate things
if not person.data.has_key?("title")
Jekyll.logger.abort_with("Person record #{person.basename_without_ext} missing key 'title'")
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop checks that the cyclomatic complexity of methods is not higher than the configured maximum. The cyclomatic complexity is the number of linearly independent paths through a method. The algorithm counts decision points and adds one.
An if statement (or unless or ?:) increases the complexity by one. An else branch does not, since it doesn't add a decision point. The && operator (or keyword and) can be converted to a nested if statement, and ||/or is shorthand for a sequence of ifs, so they also add one. Loops can be said to have an exit condition, so they add one.
Method generate_show
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
def generate_show(show)
# Set year attributes
show.data["year"] = get_show_year(show)
show.data["year_page"] = get_show_year_page(show)
- Create a ticketCreate a ticket
Method has too many lines. [37/30] Open
def people_iterator(person)
if person.data["shows"]
# If had shows
for record in person.data["shows"]
# Loop through each show with involvement
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.