Conversation
SummaryThis PR contains three distinct improvements:
What reviewers should knowWhere to start: Review the three files separately—they address different concerns with no interdependencies. Key observations:
Status change: The
|
Ruling ReportCode no longer flagged (6 issues)S3403 6971 | var indentStrings = ["", " "];
6972 | function getIndentString(level) {
> 6973 | if (indentStrings[level] === undefined) {
6974 | indentStrings[level] = getIndentString(level - 1) + indentStrings[1];
6975 | }react-cloud-music/src/api/utils.js:59 57 | };
58 | for (let key in transformNames) {
> 59 | if (elementStyle[transformNames[key]] !== undefined) {
60 | return key;
61 | }S1154ace/lib/ace/mode/xml/dom-parser.js:243 241 | * #unparsedEntityDecl(name, publicId, systemId, notationName) {};
242 | */
> 243 | "endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(key){
244 | DOMHandler.prototype[key] = function(){return null}
245 | }) 1863 | if (!compliantExecNpcg && match.length > 1) {
1864 | /* eslint-disable no-loop-func */
> 1865 | match[0].replace(separator2, function () {
1866 | for (var i = 1; i < arguments.length - 2; i++) {
1867 | if (typeof arguments[i] === 'undefined') { 1915 | var replaceReportsGroupsCorrectly = (function () {
1916 | var groups = [];
> 1917 | 'x'.replace(/x(.)?/g, function (match, group) {
1918 | pushCall(groups, group);
1919 | });paper.js/src/core/PaperScope.js:89 87 | // here: { chrome: true, webkit: false }, Mozilla missing is the
88 | // only difference to jQuery.browser
> 89 | user.replace(
90 | /(opera|chrome|safari|webkit|firefox|msie|trident|atom|node|jsdom)\/?\s*([.\d]+)(?:.*version\/([.\d]+))?(?:.*rv\:v?([.\d]+))?/g,
91 | function(match, n, v1, v2, rv) {New issues flagged (5 issues)S6582 44759 | table.forEach(function (labelMarker, labelText) {
44760 | var statements = [];
> 44761 | if (!outerLoop || (outerLoop.labels && outerLoop.labels.get(labelText))) {
44762 | var label = ts.createIdentifier(labelText);
44763 | statements.push(isBreak ? ts.createBreak(label) : ts.createContinue(label));desktop/app/src/ui/toolbar/branch-dropdown.tsx:330 328 | target instanceof Node &&
329 | ((prBadgeElem !== null && prBadgeElem.contains(target)) ||
> 330 | (rerunDialog !== null && rerunDialog.contains(target)))
331 | ) {
332 | returnknockout/src/binding/editDetection/arrayToDomNodeChildren.js:89 87 | ko.utils.arrayForEach(array, itemAdded);
88 | } else {
> 89 | if (!editScript || (lastMappingResult && lastMappingResult['_countWaitingForRemove'])) {
90 | // Compare the provided array against the previous one
91 | var lastArray = ko.utils.arrayMap(lastMappingResult, function (x) { return x.arrayEntry; }), 143 | // Chrome doesn't fire keypress events for command and alt keys,
144 | // so we need to handle this in a way that works across all OSes.
> 145 | if (key.length > 1 || agent && (agent.chrome && (event.altKey
146 | || agent.mac && event.metaKey
147 | || !agent.mac && event.ctrlKey))) {paper.js/src/path/PathItem.Boolean.js:442 440 | // This is a new curve, update clearHandles setting.
441 | clearHandles = !curve.hasHandles()
> 442 | || clearLookup && clearLookup[getId(curve)];
443 | // Keep track of locations for later curve-time
444 | // renormalization within the curve.📋 View full reportCode no longer flagged (6)
New issues flagged (5) |
|
I have a PR to remove the flaky ESlint8 Node 16 job #6837 |
b34473c to
cb2746f
Compare
README Freshness Check❌ The rules README is out of date. A fix PR has been created: #6869 Please review and merge it into your branch. |
We removed the TypeScript rule S4043 warning in the metric.ts file from the CSS analyzer.
Taking as a proxy the file Http.java file in the same directory, we have replaced the RuntimeException class for an IllegalStateException containing a descriptive message.
4ad68df to
bb4e4d3
Compare
zglicz
left a comment
There was a problem hiding this comment.
Good job! First one down.
| | [object-alt-content](https://sonarsource.github.io/rspec/#/rspec/S5264/javascript) | "<object>" tags should provide an alternative content | ✅ | | | | | | ||
| | [operation-returning-nan](https://sonarsource.github.io/rspec/#/rspec/S3757/javascript) | Arithmetic operations should not result in "NaN" | | | | 💭 | | | ||
| | [os-command](https://sonarsource.github.io/rspec/#/rspec/S4721/javascript) | Using shell interpreter when executing OS commands is security-sensitive | ✅ | | | | | | ||
| | [os-command](https://sonarsource.github.io/rspec/#/rspec/S4721/javascript) | OS commands should not be executed using a shell interpreter | | | | | ❌ | |
There was a problem hiding this comment.
The os-command entry has two independent changes bundled together:
- Description — updated from
"Using shell interpreter when executing OS commands is security-sensitive"to"OS commands should not be executed using a shell interpreter". Fine on its own. - Status — removed from the
recommendedconfiguration (✅ dropped) and marked as deprecated (❌ added).
The second change is not backed by the code. packages/analysis/src/jsts/rules/S4721/rule.ts is fully active — there is no deprecated marker in the rule metadata, and there is no CHANGELOG entry for this deprecation. The other rules marked ❌ in this file (e.g. aws-s3-bucket-server-encryption, standard-input) have corresponding deprecation markers in their implementations.
The README table is also flagged as auto-generated, so a manual status change here will be overwritten the next time the generator runs.
If the intent is just a description update, revert the status columns to match the original: ✅ in the first column and nothing in the ❌ column. If os-command is genuinely being deprecated, the rule implementation and CHANGELOG also need to be updated.
| | [os-command](https://sonarsource.github.io/rspec/#/rspec/S4721/javascript) | OS commands should not be executed using a shell interpreter | | | | | ❌ | | |
| | [os-command](https://sonarsource.github.io/rspec/#/rspec/S4721/javascript) | OS commands should not be executed using a shell interpreter | ✅ | | | | | |
- Mark as noise
|




Part of introduction exercise