How can we help you today? How can we help you today?

include/exclude not working

Hi,

I run: R:\Tim van Loosbroek\code guard>SqlCodeGuard30.Cmd.exe /server:** /database:** /outfile:**.xml /include:ME003 /log:**.log

The log:
Use of SQL Code Guard is subject to the terms described in License.rtf
[2018-06-06 10:06:57.634][000][INF]Server:**
[2018-06-06 10:06:57.638][003][INF]Database:**
[2018-06-06 10:06:57.639][000][INF]Starting
Rules specified for inclusion:ME003
Rules specified for exclusion:
[2018-06-06 10:06:57.811][171][INF]Connecting to server
[2018-06-06 10:06:57.851][039][INF]Loading objects
[2018-06-06 10:06:58.109][258][INF]All objects loaded
[2018-06-06 10:06:58.109][000][INF]Processing
[2018-06-06 10:07:02.561][4452][INF]Analysis completed
[2018-06-06 10:07:02.562][000][INF]Finished

But the XML output files contains all rules?
tim_vl
0

Comments

13 comments

  • tulla01

    It looks like SQL Code Guard didn't filter out the rules correctly. Have you tried explicitly specifying exclusions using /exclude:ME001,ME002? Also, does the log confirm only ME003 was applied?

    tulla01
    0
  • Saim01

    You’re right to check the exclusions explicitly. I’ll try using /exclude:ME001,ME002 and review the log to confirm if only ME003 was applied. If the issue persists, I’ll investigate further or adjust the configuration. Thanks for the suggestion!

    Saim01
    0
  • Hawke john

    It seems like SqlCodeGuard isn't properly filtering the output for rule ME003, even though it's specified in the command. Double-check that the rule code is correct and ensure the tool is handling the /include flag properly. If the issue continues, consider checking the documentation or contacting support for help.

    Hawke john
    0
  • kinseysmith

    It looks like SQL Code Guard isn't correctly filtering the output—even though ME003 is specified using the /include flag, other rules may still be applied. Try explicitly excluding unwanted rules using /exclude:ME001,ME002, and then check the logs to confirm whether only ME003 was enforced. If the issue persists, it might be worth revisiting the configuration or consulting the official documentation or support for more clarity.

    kinseysmith
    0
  • jeemsith

    It seems that SQL Code Guard isn't limiting the output strictly to ME003, even though the /include:ME003 flag is used. To ensure only ME003 is enforced, try explicitly excluding other rules using /exclude:ME001,ME002. After that, review the app logs to verify if only ME003 is active. If the issue still occurs, it might be a good idea to recheck the tool’s configuration or refer to the official documentation or support for a more precise fix.

    jeemsith
    0
  • MARKERM

    If your include or exclude directive isn't working, double-check the syntax and path format—issues often arise from incorrect relative paths or missing wildcards. Also, ensure there are no conflicting rules or overrides elsewhere in your configuration.Blooket join

    MARKERM
    0
  • gtasanandreas
    • Connect to the specified server and database (details hidden with **).
    • Analyze the code using only rule ME003.
    • Output the results to an XML file.
    • Log the process to a .log file.

    📄 Log Interpretation

    • License terms acknowledged.
    • Successfully connected to the server and database.
    • Rule ME003 was selected for inclusion.
    • No rules were excluded.
    • Objects were loaded in under a second.
    • The analysis process ran for about 4.5 seconds.
    • No errors or warnings were reported.
    • Analysis completed and process finished successfully.

    Conclusion

    Everything appears to be working as intended! If you're not seeing output in the XML or expected results, you may want to:

    • Double-check that the rule ME003 actually applies to any object in your database.
    • Ensure the output path is valid and not blocked by permissions.

    If you want help parsing the .xml output or adding more rules, feel free to ask!

    Also, if you’re into tools and customizations, take a break and check out some cool game

    gtasanandreas
    0
  • jimmycorta

    Hi Tim,

    It looks like SQL Code Guard is ignoring the /include:ME003 filter and still running all rules. This is a known quirk with some versions where the /include flag doesn't override the full ruleset as expected.

    To narrow down to only ME003, try both:

    /include:ME003 /exclude:ALL
    

    Then, explicitly re-include ME003, which forces the tool to bypass the default rule set. Alternatively, create a custom rule set XML with just ME003 and point to it using /ruleset:yourrules.xml.

    Also, make sure you're using the latest version—some older builds have bugs with include/exclude logic. If the problem still persists, contacting support or checking for patches may help.

     

    jimmycorta
    0
  • Adam

    Interesting thread—filter logic bugs can be frustrating. Reminds me of how older Shadow Fight 2 versions handled things more predictably, with unlocked features and fewer issues. Simpler setups often mean smoother performance.

    Adam
    0
  • extremecar

    Based on the command and log you’ve shared, it looks like SQL Code Guard is launching correctly and processing the specified inputs. Here's a breakdown and interpretation of what you're seeing, along with what might come next or what to check extreme car driving simulator  mod apk 

    Command Breakdown:

    bash

    CopyEdit

    SqlCodeGuard30.Cmd.exe /server:** /database:** /outfile:**.xml /include:ME003 /log:**.log 

    • /server:** – You're connecting to the SQL Server instance (** is masked for privacy).
    • /database:** – Targeting a specific database.
    • /outfile:**.xml – You want the output (violations, issues) written to an XML file.
    • /include:ME003 – You're only including rule ME003 (for example, this might be a rule like "Avoid SELECT *", depending on your rule set).
    •  
    extremecar
    0
  • zainbhoohn078

    his looks like a known issue where the /include flag in SQL Code Guard doesn’t override the default rule set properly. Even though the log confirms ME003 is selected, it still runs the full set.

    Workaround that usually works:
    Use both /include:ME003 and /exclude:ALL, like this:

    bash

    CopyEdit

    SqlCodeGuard30.Cmd.exe ... /exclude:ALL /include:ME003 ...

    This forces the tool to wipe out the default rules first, then re-apply only ME003.

    Alternatively, define a custom ruleset XML with only ME003 enabled, and point to it with:

    bash

    CopyEdit

    /ruleset:custom_rules.xml

    Also, double-check that you're using the latest version of the tool—older builds have bugs with filter logic that were fixed later on.

     

    zainbhoohn078
    0
  • Whelibeiren

    If your include or exclude directive isn’t working, review the syntax and path format carefully, as errors often come from incorrect relative paths or missing wildcards. Also,Mobilecric PAK vs IND make sure no other rules or overrides in your configuration are causing conflicts.

    Whelibeiren
    0
  • scott09

    tim_vl, this is actually a known quirk with certain versions of SQL Code Guard. Even when you specify /include:ME003, the tool sometimes still processes the entire default ruleset. A workaround that usually fixes it is running: SqlCodeGuard30.Cmd.exe ... /exclude:ALL /include:ME003 ... That clears out the default rules first, then forces only ME003 to run. Another approach is to create a custom ruleset.xml with just ME003 enabled and reference it using /ruleset. Also make sure you’re on the latest build—some of the older releases had bugs with include/exclude logic. On a side note, if you’re into tweaking tools and getting the most out of software, you might find Spotify Mod interesting—it’s similar in the sense that it unlocks extra functionality compared to the default app.

    scott09
    0

Add comment

Please sign in to leave a comment.