May 2023 Summaries
13 posts from Sonar
Filter
Month:
Year:
Post Summaries
Back to Blog
The Node.js test runner provides a dependency-free testing functionality that can be used in JavaScript applications, making it easier to write and run tests without requiring third-party dependencies. The test runner execution model allows for automatic detection of test files and their contents, enabling users to write and run tests without installing any additional packages. The `node --test` command runs the test suite, and the test runner provides various options, such as skipping tests, setting timeouts, and running tests concurrently. The test runner also supports subtests, which allow for grouping related tests together. Additionally, the test runner offers hooks for running behavior before and after tests, enabling users to define fresh test data or perform cleanup actions. The test runner's syntax is customizable with options like `describe` and `it`, making it easier to write test suites. The test runner also supports various reporters, including the default spec reporter, tap reporter, and dot reporter, allowing users to choose the reporting format that suits their needs. Overall, the Node.js test runner provides a powerful tool for ensuring code quality and reliability in JavaScript applications.
May 30, 2023
2,099 words in the original blog post.
The survey results show that a significant majority of open source maintainers have either quit or considered quitting their maintenance work, with 58% reporting this. The top reasons for considering quitting include losing interest in the work and burnout, while not getting paid enough is also a common reason. On the other hand, organizations relying on open source projects can use these results to identify potential issues and take steps to prevent maintainers from leaving, such as providing financial incentives or finding ways to make the work more engaging and manageable.
May 25, 2023
430 words in the original blog post.
SonarSource's Vulnerability Researchers attended OffensiveCon 2023, a prominent offensive security conference that covers a range of IT security topics and provides opportunities for researchers to share knowledge and learn from others. As part of their diversity sponsorship efforts, SonarSource supported hackers who wouldn't usually be able to attend the event through OPCDE, She Hack KE, and Women in Security and Privacy programs. The researchers enjoyed various talks, including presentations on baseband research, exploitation techniques, and advancements in JavaScript engine fuzzing, which highlighted the importance of code security and mitigation in addressing persistent vulnerabilities. Overall, OffensiveCon 2023 reinforced the need for ongoing innovation and collaboration in securing software systems against increasingly sophisticated attacks.
May 24, 2023
1,012 words in the original blog post.
SonarCloud is an integrated tool that automates code quality checks and simplifies the code revision process for DevOps teams. It has partnered with HashiCorp to provide a tight integration with Terraform Cloud, ensuring clean code delivery. The SonarCloud Run Task integration analyzes pull requests and decorates the TFC pipeline with a Sonar Quality Gate, enabling developers to merge with confidence if the gate is green. This approach incorporates the Clean as You Code methodology, allowing teams to catch issues with their codebase sooner rather than later. With SonarCloud, individual developers and teams can consistently deliver clean Terraform projects, practice proactive security, experiment and grow, and keep their cloud native infrastructure free from vulnerabilities and code quality issues. The tool has helped clean over 2.5 billion lines of code since its launch in 2018 and is free to use on open-source projects.
May 23, 2023
580 words in the original blog post.
In today's software organizations, a proactive approach to identifying, prioritizing, and mitigating vulnerabilities is crucial to minimize the risk of security breaches and protect sensitive data. Continuous vulnerability management is a systematic process that involves assessing, analyzing, and remediating vulnerabilities on an ongoing basis, allowing organizations to proactively address security issues and meet regulatory compliance objectives. By implementing strategies such as asset inventory, vulnerability scanning, prioritization, risk assessment, remediation, ongoing monitoring and detection, incident response, and continuous improvement, organizations can effectively manage their vulnerabilities and protect their critical assets.
May 21, 2023
656 words in the original blog post.
In a significant development, SonarLint, a free and open-source IDE plugin, has announced its support for Go analysis in both GoLand and VS Code. The decision is based on the popularity of the Go language, with 20% of developers having used it in the past year according to the JetBrains 2022 survey. Go's speed, simplicity, and scalability have contributed to its growing popularity among web developers and DevOps professionals. With SonarLint's support, developers can catch coding issues in their IDE while creating fresh code, ensuring clean and maintainable Go projects. The plugin aims to be a helpful tool, not an intrusive one, offering contextual feedback and a clear path to issue resolution. This release marks the first step in expanding SonarLint's capabilities, with plans for additional rules in 2023.
May 17, 2023
570 words in the original blog post.
SonarCloud and SonarQube are both valuable tools for writing clean, quality code. Both products share the same underlying static analysis engine to catch bugs and generate code quality metrics, but differ in their hosting and management models. SonarCloud is a cloud-based product that integrates with popular DevOps platforms and provides automatic analysis for many languages, making it ideal for teams with fully cloud-based workflows. On the other hand, SonarQube is an on-premises solution that requires installation and maintenance, but offers more flexibility in terms of language support and extensibility through its plugin ecosystem. SonarCloud does not offer the same level of reporting and governance features as SonarQube, making it better suited for developer-focused workflows, while SonarQube is geared towards enterprise use cases with additional features such as authentication, governance, executive reporting, multiple repository support, and extensibility.
May 15, 2023
1,233 words in the original blog post.
The Pimcore Platform, used by over 100,000 clients across 56 countries, has two vulnerabilities that can be exploited with a single GET request. The first vulnerability is a path traversal issue in the create-csv endpoint, which allows an attacker to control the extension and folder path of a CSV file. The second vulnerability is an SQL injection vulnerability in the getData function, which enables an attacker to inject malicious SQL code into the query. By combining these two vulnerabilities, an attacker can create a malicious link that will deploy a web shell on the server. Both vulnerabilities were fixed in Pimcore version 10.5.19.
May 15, 2023
1,577 words in the original blog post.
The ECMAScript 2023 specification introduces new methods on the Array object that make it easier to write predictable and maintainable JavaScript programs. These methods, `toSorted`, `toReversed`, `toSpliced`, and `with`, allow for operations on arrays without mutating the original data, but instead making a copy and changing that copy. This change addresses issues with array mutations and side effects in React components. The new methods provide a more predictable way to work with arrays, especially when dealing with sorting, reversing, splicing, and modifying individual elements. Additionally, these methods can be used on any TypedArray, not just regular arrays. While there are some caveats and limitations to consider, the introduction of these new methods is seen as a positive addition to the ECMAScript standard, making it easier for developers to write more predictable code.
May 10, 2023
1,332 words in the original blog post.
The struggle for Data Scientists to balance speed and code quality in Jupyter notebooks is a persistent issue, driven by the need for rapid prototyping and testing in data analysis. Traditional developer methodologies and tools have shown promise in resolving this tension, empowering developers to own their code quality and catch errors during creation. Sonar envisions a solution that works alongside Data Scientists to offer a coding companion, flagging issues and providing educational guidance to enable easy correction without interrupting the flow. By leveraging this approach, Clean Code can be achieved for Jupyter notebooks, benefiting users in terms of understanding, collaboration, and personal growth, ultimately enhancing their reputation and confidence in their work.
May 10, 2023
1,481 words in the original blog post.
SonarQube 9.9 LTS offers a powerful Python analyzer with over 250 rules, significantly advancing Python analysis compared to the previous version. The new release extracts more data from Typeshed, leading to better performance and accuracy in analysis results. Developers can now provide the Python version used for analysis to detect issues specific to Python 2 or Python 3. Support for Python 3.10 and 3.11 has been added, including parsing new constructs like the match statement and except* syntax. The security engine for Python has been replaced with a symbolic analysis engine, providing field-sensitive tracking of tainted fields in commercial editions. Many false-positives have been fixed, and 31 specific issues were addressed by developers. New rules have been introduced to help Python developers write efficient regular expressions, unit tests, and secure AWS infrastructure code. Additionally, bug-detection rules track dataflow with symbolic execution, detecting advanced Python bugs. The new release is available as a free version upgrade for all users, and resources are provided to help teams get started with the upgrade.
May 04, 2023
1,546 words in the original blog post.
Cloud Native Computing Foundation (CNCF) has welcomed Sonar, a developer tool company, as its latest Silver member, further solidifying its commitment to open-source and collaboration with the cloud-native community. As a key partner in the CNCF, Sonar will leverage this membership to enhance its open-source project SonarQube, which provides critical tools for cloud-native developers to analyze and secure their infrastructure and source code. The CNCF is a prominent organization that hosts multiple initiatives and projects focused on shaping the future of cloud-native ecosystems, with over 55,000 members and 156 projects under its umbrella. By joining the CNCF, Sonar aims to tap into this vast community, fostering transparency, constructive feedback, and collaboration to further develop its products and ensure they meet the evolving needs of cloud-native developers.
May 04, 2023
183 words in the original blog post.
Python's interpreter has several unexpected behaviors that developers should be aware of when writing code. Mutable default arguments can lead to unintended behavior, as the default value is evaluated only once and retains its state between function calls. Integer caching means that integers are objects created at the start of the interpreter, which can affect comparisons using the identity operator. Late binding closures occur when a lambda function captures a variable's value during loop iteration instead of its current value. String interning stores small strings only once, but larger strings are stored separately. The += operator behaves differently with mutable and immutable types, sometimes modifying original objects in place and other times creating new ones. By understanding these quirks, developers can write more reliable and maintainable code using tools like SonarLint and SonarQube to help catch mistakes.
May 01, 2023
988 words in the original blog post.