{ "$schema": "http://json.schemastore.org/sarif-1.0.0", "version": "1.0.0", "runs": [ { "tool": { "name": "Microsoft (R) Visual C# Compiler", "version": "3.7.0.0", "fileVersion": "3.7.0-6.20570.4 (dc3f4eef)", "semanticVersion": "3.7.0", "language": "en-US" }, "results": [ { "ruleId": "CS0649", "level": "warning", "message": "Field 'GameManagerScript.initiativeCreaturePanel' is never assigned to, and will always have its default value null", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/GameManagerScript.cs", "region": { "startLine": 19, "startColumn": 33, "endLine": 19, "endColumn": 56 } } } ], "properties": { "warningLevel": 4 } }, { "ruleId": "CS0649", "level": "warning", "message": "Field 'InitCreaturePanelScript.healthBar' is never assigned to, and will always have its default value null", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Panels/InitPanel/InitCreaturePanelScript.cs", "region": { "startLine": 8, "startColumn": 28, "endLine": 8, "endColumn": 37 } } } ], "properties": { "warningLevel": 4 } }, { "ruleId": "CS0649", "level": "warning", "message": "Field 'Creature.creatureImage' is never assigned to, and will always have its default value null", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Creature.cs", "region": { "startLine": 10, "startColumn": 29, "endLine": 10, "endColumn": 42 } } } ], "properties": { "warningLevel": 4 } }, { "ruleId": "CS0649", "level": "warning", "message": "Field 'Creature.humanControlled' is never assigned to, and will always have its default value false", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Creature.cs", "region": { "startLine": 11, "startColumn": 27, "endLine": 11, "endColumn": 42 } } } ], "properties": { "warningLevel": 4 } }, { "ruleId": "CS0649", "level": "warning", "message": "Field 'GameManagerScript.roundActionsPanel' is never assigned to, and will always have its default value null", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/GameManagerScript.cs", "region": { "startLine": 20, "startColumn": 33, "endLine": 20, "endColumn": 50 } } } ], "properties": { "warningLevel": 4 } }, { "ruleId": "CS0649", "level": "warning", "message": "Field 'GameManagerScript.humans' is never assigned to, and will always have its default value null", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/GameManagerScript.cs", "region": { "startLine": 17, "startColumn": 39, "endLine": 17, "endColumn": 45 } } } ], "properties": { "warningLevel": 4 } }, { "ruleId": "CS0649", "level": "warning", "message": "Field 'GenerateSkeletonScript.skeletonPrefab' is never assigned to, and will always have its default value null", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/GenerateSkeletonScript.cs", "region": { "startLine": 9, "startColumn": 33, "endLine": 9, "endColumn": 47 } } } ], "properties": { "warningLevel": 4 } }, { "ruleId": "CS0649", "level": "warning", "message": "Field 'GameManagerScript.enemies' is never assigned to, and will always have its default value null", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/GameManagerScript.cs", "region": { "startLine": 16, "startColumn": 39, "endLine": 16, "endColumn": 46 } } } ], "properties": { "warningLevel": 4 } }, { "ruleId": "CS0649", "level": "warning", "message": "Field 'StartFightScript.startFightButton' is never assigned to, and will always have its default value null", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Panels/StartFightPanel/StartFightScript.cs", "region": { "startLine": 8, "startColumn": 29, "endLine": 8, "endColumn": 45 } } } ], "properties": { "warningLevel": 4 } }, { "ruleId": "CS0649", "level": "warning", "message": "Field 'RoundManager.executeRoundButton' is never assigned to, and will always have its default value null", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/RoundManager.cs", "region": { "startLine": 11, "startColumn": 29, "endLine": 11, "endColumn": 47 } } } ], "properties": { "warningLevel": 4 } }, { "ruleId": "CS0649", "level": "warning", "message": "Field 'GameManagerScript.initiativePanel' is never assigned to, and will always have its default value null", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/GameManagerScript.cs", "region": { "startLine": 18, "startColumn": 33, "endLine": 18, "endColumn": 48 } } } ], "properties": { "warningLevel": 4 } }, { "ruleId": "CS0414", "level": "warning", "message": "The field 'MoveAction.shouldMove' is assigned but its value is never used", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/MoveAction.cs", "region": { "startLine": 12, "startColumn": 18, "endLine": 12, "endColumn": 28 } } } ], "properties": { "warningLevel": 3 } }, { "ruleId": "S125", "level": "warning", "message": "Remove this commented out code.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/AttackAction.cs", "region": { "startLine": 14, "startColumn": 9, "endLine": 14, "endColumn": 54 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S125", "level": "warning", "message": "Remove this commented out code.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/SpellAction.cs", "region": { "startLine": 13, "startColumn": 5, "endLine": 13, "endColumn": 33 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S1135", "level": "warning", "message": "Complete the task associated to this 'TODO' comment.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/RoundManager.cs", "region": { "startLine": 54, "startColumn": 20, "endLine": 54, "endColumn": 24 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S1135", "level": "warning", "message": "Complete the task associated to this 'TODO' comment.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/RoundManager.cs", "region": { "startLine": 64, "startColumn": 79, "endLine": 64, "endColumn": 83 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S1134", "level": "warning", "message": "Take the required action to fix the issue indicated by this 'FIXME' comment.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/RoundManager.cs", "region": { "startLine": 67, "startColumn": 68, "endLine": 67, "endColumn": 73 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S1144", "level": "warning", "message": "Remove the unused private field 'target'.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/SpellAction.cs", "region": { "startLine": 7, "startColumn": 5, "endLine": 7, "endColumn": 31 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S1144", "level": "warning", "message": "Remove the unused private method 'Start'.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/SpellAction.cs", "region": { "startLine": 16, "startColumn": 5, "endLine": 18, "endColumn": 6 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S1144", "level": "warning", "message": "Remove the unused private method 'Update'.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/SpellAction.cs", "region": { "startLine": 21, "startColumn": 5, "endLine": 23, "endColumn": 6 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S4487", "level": "warning", "message": "Remove this unread private field 'target' or refactor the code to use its value.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/AttackAction.cs", "region": { "startLine": 6, "startColumn": 14, "endLine": 6, "endColumn": 20 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S2933", "level": "warning", "message": "Make 'target' 'readonly'.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/AttackAction.cs", "region": { "startLine": 6, "startColumn": 14, "endLine": 6, "endColumn": 20 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S3903", "level": "warning", "message": "Move 'GenerateSkeletonScript' into a named namespace.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/GenerateSkeletonScript.cs", "region": { "startLine": 7, "startColumn": 14, "endLine": 7, "endColumn": 36 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S3903", "level": "warning", "message": "Move 'AttackAction' into a named namespace.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/AttackAction.cs", "region": { "startLine": 5, "startColumn": 14, "endLine": 5, "endColumn": 26 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S3903", "level": "warning", "message": "Move 'NewSkeletonSpriteScript' into a named namespace.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/NewSkeletonSpriteScript.cs", "region": { "startLine": 6, "startColumn": 14, "endLine": 6, "endColumn": 37 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S3903", "level": "warning", "message": "Move 'SpellAction' into a named namespace.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/SpellAction.cs", "region": { "startLine": 5, "startColumn": 14, "endLine": 5, "endColumn": 25 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S3903", "level": "warning", "message": "Move 'InitCreaturePanelScript' into a named namespace.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Panels/InitPanel/InitCreaturePanelScript.cs", "region": { "startLine": 6, "startColumn": 14, "endLine": 6, "endColumn": 37 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S3903", "level": "warning", "message": "Move 'CameraManager' into a named namespace.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/CameraManager.cs", "region": { "startLine": 4, "startColumn": 14, "endLine": 4, "endColumn": 27 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S1144", "level": "warning", "message": "Remove the unused private constructor 'Die'.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Die.cs", "region": { "startLine": 7, "startColumn": 5, "endLine": 9, "endColumn": 6 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S2245", "level": "warning", "message": "Make sure that using this pseudorandom number generator is safe here.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Die.cs", "region": { "startLine": 6, "startColumn": 18, "endLine": 6, "endColumn": 30 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S2933", "level": "warning", "message": "Make 'combatants' 'readonly'.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/GameManagerScript.cs", "region": { "startLine": 28, "startColumn": 20, "endLine": 28, "endColumn": 30 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S2933", "level": "warning", "message": "Make 'sides' 'readonly'.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Die.cs", "region": { "startLine": 5, "startColumn": 9, "endLine": 5, "endColumn": 14 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S3903", "level": "warning", "message": "Move 'GameManagerScript' into a named namespace.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/GameManagerScript.cs", "region": { "startLine": 11, "startColumn": 14, "endLine": 11, "endColumn": 31 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S2933", "level": "warning", "message": "Make 'rnd' 'readonly'.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Die.cs", "region": { "startLine": 6, "startColumn": 12, "endLine": 6, "endColumn": 15 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S3453", "level": "warning", "message": "This class can't be instantiated; make its constructor 'public'.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Die.cs", "region": { "startLine": 3, "startColumn": 16, "endLine": 3, "endColumn": 19 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S3903", "level": "warning", "message": "Move 'IAction' into a named namespace.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/IAction.cs", "region": { "startLine": 5, "startColumn": 18, "endLine": 5, "endColumn": 25 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S3903", "level": "warning", "message": "Move 'Human' into a named namespace.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Human.cs", "region": { "startLine": 5, "startColumn": 14, "endLine": 5, "endColumn": 19 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S3903", "level": "warning", "message": "Move 'StartFightScript' into a named namespace.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Panels/StartFightPanel/StartFightScript.cs", "region": { "startLine": 7, "startColumn": 14, "endLine": 7, "endColumn": 30 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S3903", "level": "warning", "message": "Move 'Die' into a named namespace.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Die.cs", "region": { "startLine": 3, "startColumn": 16, "endLine": 3, "endColumn": 19 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S3903", "level": "warning", "message": "Move 'RoundManager' into a named namespace.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/RoundManager.cs", "region": { "startLine": 9, "startColumn": 14, "endLine": 9, "endColumn": 26 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S4487", "level": "warning", "message": "Remove this unread private field 'damageType' or refactor the code to use its value.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Weapon.cs", "region": { "startLine": 24, "startColumn": 17, "endLine": 24, "endColumn": 27 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S4487", "level": "warning", "message": "Remove this unread private field 'weaponType' or refactor the code to use its value.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Weapon.cs", "region": { "startLine": 25, "startColumn": 17, "endLine": 25, "endColumn": 27 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S2933", "level": "warning", "message": "Make 'attackDie' 'readonly'.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Weapon.cs", "region": { "startLine": 23, "startColumn": 9, "endLine": 23, "endColumn": 18 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S2933", "level": "warning", "message": "Make 'damageType' 'readonly'.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Weapon.cs", "region": { "startLine": 24, "startColumn": 17, "endLine": 24, "endColumn": 27 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S2933", "level": "warning", "message": "Make 'weaponType' 'readonly'.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Weapon.cs", "region": { "startLine": 25, "startColumn": 17, "endLine": 25, "endColumn": 27 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S3903", "level": "warning", "message": "Move 'Weapon' into a named namespace.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Weapon.cs", "region": { "startLine": 1, "startColumn": 16, "endLine": 1, "endColumn": 22 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S1144", "level": "warning", "message": "Remove the unused private field 'shouldMove'.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/MoveAction.cs", "region": { "startLine": 12, "startColumn": 5, "endLine": 12, "endColumn": 37 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S2292", "level": "warning", "message": "Make this an auto-implemented property and remove its backing field.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Creature.cs", "region": { "startLine": 38, "startColumn": 16, "endLine": 38, "endColumn": 19 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S2292", "level": "warning", "message": "Make this an auto-implemented property and remove its backing field.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Creature.cs", "region": { "startLine": 40, "startColumn": 16, "endLine": 40, "endColumn": 20 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S2292", "level": "warning", "message": "Make this an auto-implemented property and remove its backing field.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Creature.cs", "region": { "startLine": 42, "startColumn": 16, "endLine": 42, "endColumn": 30 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S2292", "level": "warning", "message": "Make this an auto-implemented property and remove its backing field.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Creature.cs", "region": { "startLine": 44, "startColumn": 23, "endLine": 44, "endColumn": 33 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S2933", "level": "warning", "message": "Make 'shouldMove' 'readonly'.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/MoveAction.cs", "region": { "startLine": 12, "startColumn": 18, "endLine": 12, "endColumn": 28 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S3903", "level": "warning", "message": "Move 'MoveAction' into a named namespace.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/MoveAction.cs", "region": { "startLine": 7, "startColumn": 14, "endLine": 7, "endColumn": 24 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S2933", "level": "warning", "message": "Make 'actions' 'readonly'.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Creature.cs", "region": { "startLine": 16, "startColumn": 27, "endLine": 16, "endColumn": 34 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S3903", "level": "warning", "message": "Move 'Creature' into a named namespace.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Creature.cs", "region": { "startLine": 8, "startColumn": 14, "endLine": 8, "endColumn": 22 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S2342", "level": "warning", "message": "Rename this enumeration to match the regular expression: '^([A-Z]{1,3}[a-z0-9]+)*([A-Z]{2})?$'.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Weapon.cs", "region": { "startLine": 3, "startColumn": 17, "endLine": 3, "endColumn": 28 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S2342", "level": "warning", "message": "Rename this enumeration to match the regular expression: '^([A-Z]{1,3}[a-z0-9]+)*([A-Z]{2})?$'.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Weapon.cs", "region": { "startLine": 11, "startColumn": 17, "endLine": 11, "endColumn": 28 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S1186", "level": "warning", "message": "Add a nested comment explaining why this method is empty, throw a 'NotSupportedException' or complete the implementation.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/SpellAction.cs", "region": { "startLine": 16, "startColumn": 10, "endLine": 16, "endColumn": 15 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S1186", "level": "warning", "message": "Add a nested comment explaining why this method is empty, throw a 'NotSupportedException' or complete the implementation.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/SpellAction.cs", "region": { "startLine": 21, "startColumn": 10, "endLine": 21, "endColumn": 16 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S2696", "level": "warning", "message": "Make the enclosing instance method 'static' or remove this set on the 'static' field.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/CameraManager.cs", "region": { "startLine": 14, "startColumn": 9, "endLine": 14, "endColumn": 19 } } } ], "relatedLocations": [ { "physicalLocation": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/CameraManager.cs", "region": { "startLine": 7, "startColumn": 34, "endLine": 7, "endColumn": 42 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S1186", "level": "warning", "message": "Add a nested comment explaining why this method is empty, throw a 'NotSupportedException' or complete the implementation.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Skeleton.cs", "region": { "startLine": 60, "startColumn": 21, "endLine": 60, "endColumn": 29 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S1186", "level": "warning", "message": "Add a nested comment explaining why this method is empty, throw a 'NotSupportedException' or complete the implementation.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Human.cs", "region": { "startLine": 18, "startColumn": 10, "endLine": 18, "endColumn": 16 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S2259", "level": "warning", "message": "'closestEnemy' is null on at least one execution path.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Creature.cs", "region": { "startLine": 110, "startColumn": 41, "endLine": 110, "endColumn": 53 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S1186", "level": "warning", "message": "Add a nested comment explaining why this method is empty, throw a 'NotSupportedException' or complete the implementation.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/MoveAction.cs", "region": { "startLine": 123, "startColumn": 18, "endLine": 123, "endColumn": 34 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S2184", "level": "warning", "message": "Cast one of the operands of this division to 'float'.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Creature.cs", "region": { "startLine": 125, "startColumn": 85, "endLine": 125, "endColumn": 110 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S2696", "level": "warning", "message": "Make the enclosing instance method 'static' or remove this set on the 'static' field.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/GameManagerScript.cs", "region": { "startLine": 37, "startColumn": 9, "endLine": 37, "endColumn": 19 } } } ], "relatedLocations": [ { "physicalLocation": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/GameManagerScript.cs", "region": { "startLine": 30, "startColumn": 30, "endLine": 30, "endColumn": 38 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S112", "level": "warning", "message": "'System.Exception' should not be thrown by user code.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/MoveAction.cs", "region": { "startLine": 78, "startColumn": 27, "endLine": 78, "endColumn": 67 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S112", "level": "warning", "message": "'System.Exception' should not be thrown by user code.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/MoveAction.cs", "region": { "startLine": 115, "startColumn": 27, "endLine": 115, "endColumn": 68 } } } ], "properties": { "warningLevel": 1 } }, { "ruleId": "S3776", "level": "warning", "message": "Refactor this method to reduce its Cognitive Complexity from 48 to the 15 allowed.", "locations": [ { "resultFile": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/MoveAction.cs", "region": { "startLine": 42, "startColumn": 24, "endLine": 42, "endColumn": 37 } } } ], "relatedLocations": [ { "physicalLocation": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/MoveAction.cs", "region": { "startLine": 44, "startColumn": 9, "endLine": 44, "endColumn": 11 } } }, { "physicalLocation": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/MoveAction.cs", "region": { "startLine": 47, "startColumn": 13, "endLine": 47, "endColumn": 18 } } }, { "physicalLocation": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/MoveAction.cs", "region": { "startLine": 49, "startColumn": 17, "endLine": 49, "endColumn": 19 } } }, { "physicalLocation": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/MoveAction.cs", "region": { "startLine": 49, "startColumn": 37, "endLine": 49, "endColumn": 39 } } }, { "physicalLocation": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/MoveAction.cs", "region": { "startLine": 51, "startColumn": 21, "endLine": 51, "endColumn": 23 } } }, { "physicalLocation": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/MoveAction.cs", "region": { "startLine": 54, "startColumn": 23, "endLine": 54, "endColumn": 27 } } }, { "physicalLocation": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/MoveAction.cs", "region": { "startLine": 59, "startColumn": 21, "endLine": 59, "endColumn": 23 } } }, { "physicalLocation": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/MoveAction.cs", "region": { "startLine": 62, "startColumn": 23, "endLine": 62, "endColumn": 27 } } }, { "physicalLocation": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/MoveAction.cs", "region": { "startLine": 71, "startColumn": 21, "endLine": 71, "endColumn": 23 } } }, { "physicalLocation": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/MoveAction.cs", "region": { "startLine": 77, "startColumn": 17, "endLine": 77, "endColumn": 19 } } }, { "physicalLocation": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/MoveAction.cs", "region": { "startLine": 81, "startColumn": 11, "endLine": 81, "endColumn": 15 } } }, { "physicalLocation": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/MoveAction.cs", "region": { "startLine": 84, "startColumn": 13, "endLine": 84, "endColumn": 18 } } }, { "physicalLocation": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/MoveAction.cs", "region": { "startLine": 86, "startColumn": 17, "endLine": 86, "endColumn": 19 } } }, { "physicalLocation": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/MoveAction.cs", "region": { "startLine": 86, "startColumn": 37, "endLine": 86, "endColumn": 39 } } }, { "physicalLocation": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/MoveAction.cs", "region": { "startLine": 88, "startColumn": 21, "endLine": 88, "endColumn": 23 } } }, { "physicalLocation": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/MoveAction.cs", "region": { "startLine": 91, "startColumn": 23, "endLine": 91, "endColumn": 27 } } }, { "physicalLocation": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/MoveAction.cs", "region": { "startLine": 96, "startColumn": 21, "endLine": 96, "endColumn": 23 } } }, { "physicalLocation": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/MoveAction.cs", "region": { "startLine": 99, "startColumn": 23, "endLine": 99, "endColumn": 27 } } }, { "physicalLocation": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/MoveAction.cs", "region": { "startLine": 105, "startColumn": 21, "endLine": 105, "endColumn": 23 } } }, { "physicalLocation": { "uri": "file:///F:/Unity/Projects/RPG-Fight-Test/Assets/Scripts/Creatures/Actions/MoveAction.cs", "region": { "startLine": 114, "startColumn": 17, "endLine": 114, "endColumn": 19 } } } ], "properties": { "warningLevel": 1, "customProperties": { "0": "+1", "1": "+2 (incl 1 for nesting)", "10": "+1", "11": "+2 (incl 1 for nesting)", "12": "+3 (incl 2 for nesting)", "13": "+1", "14": "+4 (incl 3 for nesting)", "15": "+1", "16": "+4 (incl 3 for nesting)", "17": "+1", "18": "+4 (incl 3 for nesting)", "19": "+3 (incl 2 for nesting)", "2": "+3 (incl 2 for nesting)", "3": "+1", "4": "+4 (incl 3 for nesting)", "5": "+1", "6": "+4 (incl 3 for nesting)", "7": "+1", "8": "+4 (incl 3 for nesting)", "9": "+3 (incl 2 for nesting)" } } }, { "ruleId": "S3904", "level": "warning", "message": "Provide an 'AssemblyVersion' attribute for assembly 'Assembly-CSharp'.", "properties": { "warningLevel": 1 } } ], "rules": { "CS0414": { "id": "CS0414", "shortDescription": "Field is assigned but its value is never used", "defaultLevel": "warning", "properties": { "category": "Compiler", "isEnabledByDefault": true, "tags": [ "Compiler", "Telemetry" ] } }, "CS0649": { "id": "CS0649", "shortDescription": "Field is never assigned to, and will always have its default value", "defaultLevel": "warning", "properties": { "category": "Compiler", "isEnabledByDefault": true, "tags": [ "Compiler", "Telemetry" ] } }, "S112": { "id": "S112", "shortDescription": "General exceptions should never be thrown", "fullDescription": "Throwing such general exceptions as Exception, SystemException, ApplicationException, IndexOutOfRangeException, NullReferenceException, OutOfMemoryException and ExecutionEngineException prevents calling methods from handling true, system-generated exceptions differently than application-generated errors.", "defaultLevel": "warning", "helpUri": "https://rules.sonarsource.com/csharp/RSPEC-112", "properties": { "category": "Major Code Smell", "isEnabledByDefault": true, "tags": [ "C#", "SonarWay", "MainSourceScope" ] } }, "S1134": { "id": "S1134", "shortDescription": "Track uses of \"FIXME\" tags", "fullDescription": "FIXME tags are commonly used to mark places where a bug is suspected, but which the developer wants to deal with later.", "defaultLevel": "warning", "helpUri": "https://rules.sonarsource.com/csharp/RSPEC-1134", "properties": { "category": "Major Code Smell", "isEnabledByDefault": true, "tags": [ "C#", "SonarWay", "MainSourceScope", "TestSourceScope" ] } }, "S1135": { "id": "S1135", "shortDescription": "Track uses of \"TODO\" tags", "fullDescription": "TODO tags are commonly used to mark places where some more code is required, but which the developer wants to implement later.", "defaultLevel": "warning", "helpUri": "https://rules.sonarsource.com/csharp/RSPEC-1135", "properties": { "category": "Info Code Smell", "isEnabledByDefault": true, "tags": [ "C#", "SonarWay", "MainSourceScope", "TestSourceScope" ] } }, "S1144": { "id": "S1144", "shortDescription": "Unused private types or members should be removed", "fullDescription": "private or internal types or private members that are never executed or referenced are dead code: unnecessary, inoperative code that should be removed. Cleaning out dead code decreases the size of the maintained codebase, making it easier to understand the program and preventing bugs from being introduced.", "defaultLevel": "note", "helpUri": "https://rules.sonarsource.com/csharp/RSPEC-1144", "properties": { "category": "Major Code Smell", "isEnabledByDefault": true, "tags": [ "C#", "SonarWay", "MainSourceScope", "TestSourceScope", "Unnecessary" ] } }, "S1186": { "id": "S1186", "shortDescription": "Methods should not be empty", "fullDescription": "There are several reasons for a method not to have a method body:", "defaultLevel": "warning", "helpUri": "https://rules.sonarsource.com/csharp/RSPEC-1186", "properties": { "category": "Critical Code Smell", "isEnabledByDefault": true, "tags": [ "C#", "SonarWay", "MainSourceScope", "TestSourceScope" ] } }, "S125": { "id": "S125", "shortDescription": "Sections of code should not be commented out", "fullDescription": "Programmers should not comment out code as it bloats programs and reduces readability.", "defaultLevel": "warning", "helpUri": "https://rules.sonarsource.com/csharp/RSPEC-125", "properties": { "category": "Major Code Smell", "isEnabledByDefault": true, "tags": [ "C#", "SonarWay", "MainSourceScope", "TestSourceScope" ] } }, "S2184": { "id": "S2184", "shortDescription": "Results of integer division should not be assigned to floating point variables", "fullDescription": "When division is performed on ints, the result will always be an int. You can assign that result to a double, float or decimal with automatic type conversion, but having started as an int, the result will likely not be what you expect. If the result of int division is assigned to a floating-point variable, precision will have been lost before the assignment. Instead, at least one operand should be cast or promoted to the final type before the operation takes place.", "defaultLevel": "warning", "helpUri": "https://rules.sonarsource.com/csharp/RSPEC-2184", "properties": { "category": "Minor Bug", "isEnabledByDefault": true, "tags": [ "C#", "SonarWay", "MainSourceScope", "TestSourceScope" ] } }, "S2245": { "id": "S2245", "shortDescription": "Using pseudorandom number generators (PRNGs) is security-sensitive", "fullDescription": "Using pseudorandom number generators (PRNGs) is security-sensitive. For example, it has led in the past to the following vulnerabilities:", "defaultLevel": "warning", "helpUri": "https://rules.sonarsource.com/csharp/RSPEC-2245", "properties": { "category": "Critical Security Hotspot", "isEnabledByDefault": true, "tags": [ "C#", "SonarWay", "MainSourceScope", "NotConfigurable" ] } }, "S2259": { "id": "S2259", "shortDescription": "Null pointers should not be dereferenced", "fullDescription": "A reference to null should never be dereferenced/accessed. Doing so will cause a NullReferenceException to be thrown. At best, such an exception will cause abrupt program termination. At worst, it could expose debugging information that would be useful to an attacker, or it could allow an attacker to bypass security measures.", "defaultLevel": "warning", "helpUri": "https://rules.sonarsource.com/csharp/RSPEC-2259", "properties": { "category": "Major Bug", "isEnabledByDefault": true, "tags": [ "C#", "SonarWay", "MainSourceScope" ] } }, "S2292": { "id": "S2292", "shortDescription": "Trivial properties should be auto-implemented", "fullDescription": "Trivial properties, which include no logic but setting and getting a backing field should be converted to auto-implemented properties, yielding cleaner and more readable code.", "defaultLevel": "warning", "helpUri": "https://rules.sonarsource.com/csharp/RSPEC-2292", "properties": { "category": "Minor Code Smell", "isEnabledByDefault": true, "tags": [ "C#", "SonarWay", "MainSourceScope", "TestSourceScope" ] } }, "S2342": { "id": "S2342", "shortDescription": "Enumeration types should comply with a naming convention", "fullDescription": "Shared naming conventions allow teams to collaborate efficiently. This rule checks that all enum names match a provided regular expression.", "defaultLevel": "warning", "helpUri": "https://rules.sonarsource.com/csharp/RSPEC-2342", "properties": { "category": "Minor Code Smell", "isEnabledByDefault": false, "tags": [ "C#", "SonarWay", "MainSourceScope", "TestSourceScope" ] } }, "S2696": { "id": "S2696", "shortDescription": "Instance members should not write to \"static\" fields", "fullDescription": "Correctly updating a static field from a non-static method is tricky to get right and could easily lead to bugs if there are multiple class instances and/or multiple threads in play.", "defaultLevel": "warning", "helpUri": "https://rules.sonarsource.com/csharp/RSPEC-2696", "properties": { "category": "Critical Code Smell", "isEnabledByDefault": true, "tags": [ "C#", "SonarWay", "MainSourceScope" ] } }, "S2933": { "id": "S2933", "shortDescription": "Fields that are only assigned in the constructor should be \"readonly\"", "fullDescription": "readonly fields can only be assigned in a class constructor. If a class has a field that’s not marked readonly but is only set in the constructor, it could cause confusion about the field’s intended use. To avoid confusion, such fields should be marked readonly to make their intended use explicit, and to prevent future maintainers from inadvertently changing their use.", "defaultLevel": "warning", "helpUri": "https://rules.sonarsource.com/csharp/RSPEC-2933", "properties": { "category": "Major Code Smell", "isEnabledByDefault": true, "tags": [ "C#", "SonarWay", "MainSourceScope", "TestSourceScope" ] } }, "S3453": { "id": "S3453", "shortDescription": "Classes should not have only \"private\" constructors", "fullDescription": "A class with only private constructors can’t be instantiated, thus, it seems to be pointless code.", "defaultLevel": "warning", "helpUri": "https://rules.sonarsource.com/csharp/RSPEC-3453", "properties": { "category": "Major Bug", "isEnabledByDefault": true, "tags": [ "C#", "SonarWay", "MainSourceScope", "TestSourceScope" ] } }, "S3776": { "id": "S3776", "shortDescription": "Cognitive Complexity of methods should not be too high", "fullDescription": "Cognitive Complexity is a measure of how hard the control flow of a method is to understand. Methods with high Cognitive Complexity will be difficult to maintain.", "defaultLevel": "warning", "helpUri": "https://rules.sonarsource.com/csharp/RSPEC-3776", "properties": { "category": "Critical Code Smell", "isEnabledByDefault": false, "tags": [ "C#", "SonarWay", "MainSourceScope", "TestSourceScope" ] } }, "S3903": { "id": "S3903", "shortDescription": "Types should be defined in named namespaces", "fullDescription": "Types are declared in namespaces in order to prevent name collisions and as a way to organize them into the object hierarchy. Types that are defined outside any named namespace are in a global namespace that cannot be referenced in code.", "defaultLevel": "warning", "helpUri": "https://rules.sonarsource.com/csharp/RSPEC-3903", "properties": { "category": "Major Bug", "isEnabledByDefault": true, "tags": [ "C#", "SonarWay", "MainSourceScope", "TestSourceScope" ] } }, "S3904": { "id": "S3904", "shortDescription": "Assemblies should have version information", "fullDescription": "If no AssemblyVersionAttribute is provided, the same default version will be used for every build. Since the version number is used by The .NET Framework to uniquely identify an assembly this can lead to broken dependencies.", "defaultLevel": "warning", "helpUri": "https://rules.sonarsource.com/csharp/RSPEC-3904", "properties": { "category": "Critical Code Smell", "isEnabledByDefault": true, "tags": [ "C#", "SonarWay", "MainSourceScope" ] } }, "S4487": { "id": "S4487", "shortDescription": "Unread \"private\" fields should be removed", "fullDescription": "Private fields only used to store values without reading them later is a case of dead store. So changing the value of such field is useless and most probably indicates a serious error in the code.", "defaultLevel": "note", "helpUri": "https://rules.sonarsource.com/csharp/RSPEC-4487", "properties": { "category": "Critical Code Smell", "isEnabledByDefault": true, "tags": [ "C#", "SonarWay", "MainSourceScope", "TestSourceScope", "Unnecessary" ] } } } } ] }