
•Static code analysis is a method of debugging by examining source code before a program is run. It’s done by analyzing a set of code against a set (or multiple sets) of coding rules.
•This type of analysis addresses weaknesses in source code that might lead to vulnerabilities.
•Static analysis is commonly used to comply with coding guidelines — such as MISRA. And it’s often used for complying with industry standards — such as ISO 26262.
•Static code analysis is a method of debugging by examining source code before a program is run. It’s done by analyzing a set of code against a set (or multiple sets) of coding rules.
•This type of analysis addresses weaknesses in source code that might lead to vulnerabilities.
•Static analysis is commonly used to comply with coding guidelines — such as MISRA. And it’s often used for complying with industry standards — such as ISO 26262.
•Sonar cloud/ Sonar qube
•Perforce Klocwork
•Codesonar
•Coverity
•Fortify etc
Discover why static code analysis tools enable shift-left testing, scanning for errors, vulnerabilities, and standard violations early in the SDLC, and how to automate tests for every build with SonarCloud.
Discover the advantages of static code analysis tools: speed, depth, and accuracy, showing how automated scanning reduces manual reviews, pinpoints errors, and enforces standards for higher quality code.
Learn a pull-request driven workflow in Azure DevOps, from feature branches to develop, and integrate SonarCloud for static analysis, unit tests, and reporting.
Learn how to integrate sonar cloud with Azure DevOps, create the connection, and configure a pipeline with prepare analysis, run code analysis, and publish quality gate results.
Configure Azure DevOps to run sonar cloud analysis by selecting the service endpoint and run analysis method, storing project key, name, and version in sonar-project.properties.
Explore azure pipeline integration with sonar cloud through a complete yaml script, covering preparation, organization, cli and properties file usage, and publishing the quality gate result.
Create a SonarCloud service connection in Azure DevOps by selecting your project, choosing SonarCloud, entering the token from SonarCloud security, and saving the connection for YAML pipelines.
Learn how to connect SonarCloud to Azure pipelines by creating and feeding a service connection name into the GUI endpoint or the YAML file, enabling the prepared analysis step.
Discover the five steps to integrate sonar cloud with azure pipelines for C projects: download the build wrapper, configure analysis, compile, analyze, and publish quality gate.
Learn how the build wrapper analyzes C, C++, and Objective-C projects, why it's needed, and how to download and configure it for sonar cloud analysis.
Use the sonar build wrapper to generate a JSON build configuration and prepend the clean build command with the wrapper, enabling accurate analysis by the sonar scanner in Azure DevOps.
Configure sonar project properties and prepare analysis to integrate SonarCloud with Azure DevOps for C language projects, using standalone scanner, project key and project name from SonarCloud.io, and source folders.
Import your Azure DevOps organization into sonar cloud by providing organization URL and a personal access token with code read/write, then load repos and choose a paid plan.
Learn to locate the SonarCloud organization and feed the organization attribute into Azure Pipelines, using GUI dropdowns or YAML configuration for accurate project analysis.
Learn to locate the SonarCloud project key in SonarCloud and feed it into sonar-project.properties for Azure DevOps pipelines, whether using the GUI or YAML.
Learn to create batch and build scripts for the IAR compiler, integrate sonar cloud with a build wrapper, and run clean and release builds from the command line.
Integrate sonar cloud with azure devops by completing the final steps, including prepared analysis, running code analysis, and publishing quality gate results.
Explore configuring an azure pipelines.yml to integrate sonar cloud with Azure DevOps, including build agent demands, PowerShell and batch tasks, and publishing artifacts to Azure artifactory.
Trigger pipelines in Azure DevOps either manually or via pull requests with branch policies, see SonarCloud analysis for full project or delta changes, and review the SonarCloud report.
Log in to sonarcloud.io from a web browser and connect it to Azure DevOps by using your email or Outlook account (or a personal account), then load your projects.
Learn to create an organization in sonar cloud by logging in with your Azure account, navigating to my account, and selecting the organizations tab to initiate a new organization.
Create an organization in SonarCloud using your Azure DevOps organization name and a code read and write personal access token, paste it, and continue to import details.
Learn how to create a SonarCloud organization manually, entering a unique key with optional details, note that manual setup is not recommended and may affect pull request analysis.
Learn to obtain the Sonar Cloud organization and create a project key, choose public or private access, and prepare analysis using the project key and name.
Learn how to analyze a local project with SonarCloud by configuring build wrapper and sonar scanner, downloading and unzipping them, and setting environment variables, while using Azure DevOps.
Explore SonarCloud rules by language, view rule descriptions with compliant and non-compliant examples, and filter by type, severity, and tags to build a quality profile.
Learn how quality profiles group rules for sonar scan analysis in sonar cloud, switching between the default sonar way and custom profiles to ensure consistent project rules.
Copy a built-in quality profile to create a custom profile and name it. Activate or deactivate rules, adjust categories, and tailor the profile to your coding standards.
Learn how to create a quality profile in extended mode, comparing copying and extending; extending forms a parent-child relationship where the child inherits and reflects parent rules.
Manage sonar cloud quality profiles by backing up, restoring, sharing, renaming, and comparing profiles, set a default profile for scanning, and explore quality gates.
Understand quality gates in Sonar Cloud by learning how conditions compare analysis results to thresholds to determine pass or fail, with Sonar Way gate and quality profiles guiding new projects.
Identify bugs, code smells, vulnerabilities, and security hotspots within the quality gate framework, and learn how unit test coverage and clean coding reduce technical debt.
Customize quality gates in sonar cloud by copying or editing the default sonar way, adjusting metrics like coverage, duplicated lines, reliability rating, and new versus overall code checks.
Quality gates define failure conditions on analysis results, with separate rules for new code and overall code, guiding whether a pull request can merge or code can be released today.
Explore how sonar cloud analyzes delta changes in pull requests and auto comments via a static code analyzer plugin, decorating the pull request with code smells and vulnerabilities.
Enable pull request decoration in a sonar cloud organization by selecting Azure DevOps services as the provider and configuring a personal access token with code read and write.
Learn to manually create a sonar project and run a scan with build wrapper and sonar scanner for sonarcloud.io, configuring environment variables and properties for Azure pipeline readiness.
Identify sonar cloud limitations, including supported compilers and run-time environments, before integration, and assess embedded C false positives to choose the right static analysis tool.
Understand continued limitations of sonar cloud integration, including C language prerequisites, limited compiler support, required build wrappers, and language-specific properties for Java and JavaScript.
Overcome challenges in sonar cloud integration with azure devops by using a build wrapper for c/c++ projects, solving scanning issues, and addressing local build agent licensing and line limits.
Execute static code analysis with pull request analysis to reduce technical debt and ensure high code quality for new code using SonarCloud and pull request decoration, quality gates.
Explore the new Sonar Cloud user interface, set up new code definitions to track delta changes, and configure scopes and dates for accurate new code analysis in Azure Pipelines.
Troubleshoot errors adding new code by running sonar cloud analysis in an Azure DevOps workflow, including cleaning, building, and retrying the sonar scanner after failures.
Execute the sonar batch file, configure the sonar scanner CLI, and resolve SCM and path issues to complete a SonarCloud analysis integrated with Azure DevOps.
Resolve sonar scanner batch issues by correctly applying attributes, relocating the build wrapper and bw-outputs, and updating the sonar-scanner properties. Re-run analysis to refresh the quality gate in sonar cloud.
Learn to exclude files in sonar cloud by setting the analysis scope and sonar.exclusions in project properties, covering code coverage, duplication, source, and test file exclusions in the updated UI.
Learn to create a personal access token in Azure DevOps by going to your organization, selecting new token, configuring a custom scope for pull request decoration, and saving the token.
Enable build validation with a sonar cloud quality gate as a status check on develop to auto analyze pull requests. Configure optional or mandatory auto comments in Azure DevOps.
Learn how to add a metric in azure devops to display sonar cloud quality gate status for a mapped project, using the code quality widget that shows pass or fail.
Automate static code analysis with Sonar Cloud integrated into Azure DevOps to enforce coding standards, catch bugs early, and unify embedded C DevOps practices across teams.
In this course, we are going to see how to integrate Sonar cloud analysis tool in MS Azure pipelines for Embedded C.
To integrate sonar build wrapper is used and a small power shell script written to download this build wrapper.
Creating IAR Compiler batch files for making build with sonar cloud scanner.
YAML file creation for Build pipeline with detailed sonar cloud configuration steps.
Local Build agent is created and used for build pipelines. (Not a hosted agent)
Understanding and analyzing sonar cloud reports.
How to create a quality profiles?
How to create quality gates?
Walk through on Administration and settings.
Pull request decoration for auto comment in Pull request (in your Build pipeline).
Terminology understanding including code smells, Vulnerabilities , static code analysis (SCA) , build pipeline etc.
Focused more on version controlling of complete CI integration.
Will walkthrough on different SCA tools available and what need to be considered when we choose a SCA tool.
Will discuss on Challenges faced , limitations of these tools and lessons learnt.
Difference between sonar cloud and sonarqube.
Work flow on the sonar cloud integration with Azure DevOps services.
Shift left testing and SCA advantages.
Will walkthrough on the sonar cloud creating project manually and scanning the project manually.
sonarcloud website walkthrough